I’m trying to do an ajax api call on admin page, but it returns Decoding error: nUnable to unserialize value. Error: Syntax error… $('#button').on('click', function(){ $.ajax({ url: "<?php echo $block->getBaseUrl()."rest/V1/orders" ;?>", data: { "entity":{ "entity_id": Number(<?php echo $order_id; ?>), "status":"processing", "state":"processing" } }, type: 'POST', headers: { "Content-Type": "application/json", "Authorization": […]
Magento1
Please see this code first public function setRefreshToken($token, $store = null) { $scope = 'default'; $scopeId = 0; if ($store !== null) { $scope = 'stores'; $scopeId = $store->getId(); } Mage::getConfig()->saveConfig('clougistic_twinfield/general/refresh_token', $token, $scope, $scopeId); Mage::getConfig()->cleanCache(); } This is magento 1 save config and clear cache code, here they save access […]
Magento 2.4.2-p1 Smartwave Porto theme Amasty One Step Checkout and other Amasty extensions PayPal Payments Pro set up in the Admin panel We use PayPal to process payments on our website (via the PayPal Payments Pro option in the Magento Admin panel). We have been getting a lot of declines. […]
an anyone tell me, how can I call the cropper variable in the opened function of the options modal into the cropImage function? define([ 'jquery', 'cropper', 'Magento_Ui/js/modal/modal', 'mage/translate', ], function ($, Cropper, modal) { 'use strict'; $.widget('mage.scale_image', { /** * Options common to all instances of this widget. * @type […]
i am wondering is there a company out there which provides plugin for importing of reviews from amazon,aliexpress and different websites with few clicks ? i am running magento version 1.9.x thank you for your help
Hi. I’m trying to clone my repository in magento-cloud, but it’s cloning some folders and not others, what could this be?
I would like to change the way the company field is rendering in the billing address and I’m trying to apply a new elementTmpl which I’ve defined and works well for shipping address fields. Here’s the xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <head> <script src="Vendor_Module::js/invoice-dependencies.js"/> </head> <body> <referenceBlock name="checkout.root"> <arguments> <argument name="jsLayout" […]
I have installed a payment method extension and it requires to add the following; Can I please know what element to input and where to find the path Thank you
Currently product name (title) is displayed from attribute name. How to display product name (title) from custom attribute second_name on product view page?