I created a new storeview and noticed that I can’t log in as a customer. It works on the main store view perfectly fine. There are no errors in the server and magento logfiles. I always get: “Invalid Form Key. Please refresh the page. “ I disabled ALL third party […]
Magento
I am trying to create a simple module to return JSON data, if i returned string or array it will return the targeted data, but i can’t return JSON object with key value when i return the interface it will return error 500, the second time i refresh it will […]
Working with a client that has different tax requirements for different customers. These include: Customers in UK with tax of 20% added onto grand total exc. VAT Customers with 0 product tax charged but 20% tax charged to shipping Customers with 0% tax charged to products or shipping ( customers […]
Currently the information I receive from older version of PayGate in the additional_information field of the sales_order_payment table is: {"paygate-payment-type":"EW-MOBICRED","method_title":"PayGate"} and new version I’m getting this : {"raw_details_info":{"PAY_REQUEST_ID":"0155ED4B-6D5B-8BB7-F6DB-9EBE834B65AD","TRANSACTION_STATUS":"1","CHECKSUM":"6468b5614c4404633de42c94bfa71c5d","PAYMENT_TITLE":"PAYGATE_PAYWEB"}} How to get similar values as old version. I have tried modifying the codes from Model and controller but i fail to […]
I’m trying to pull a customers collection but i need to join it to their billing address details to add filters. The only info i can find so far seems to be for Magento 1, such as this: Magento join customer collection with customer address I have tried similar but […]
I have updraded Magento from 2.4.0 to 2.4.5 and now in the product page, there’s an error: Uncaught TypeError: Cannot read properties of undefined (reading ‘set’) update: function (sections) { var sectionId = 0, sectionDataIds = $.cookieStorage.get('section_data_ids') || {}; _.each(sections, function (sectionData, sectionName) { sectionId = sectionData['data_id']; sectionDataIds[sectionName] = sectionId; […]
I have an issue about mass Update Attributes because I used datetime in product attribute and seem Magento not support it. ref: https://github.com/magento/magento2/issues/35214 So I tried skip that attribute by override MagentoBackendBlockWidgetForm.php di.xml: <preference for="MagentoBackendBlockWidgetForm" type="[Vendor][Module]BlockWidgetForm" /> Change this: protected function _setFieldset($attributes, $fieldset, $exclude = []) { $this->_addElementTypes($fieldset); foreach ($attributes […]
working on an upgrade from 2.3.5 to 2.3.7 and suddenly got this error when compiling, does anybody know how to fix this? Looks like it had to do with me changing to “minimum-stability”: “dev”, because of mageplaza smtp asking for that. I tried to search for information, did a complete […]
I using the following code to redirect all visitors to the login page. Everything is working fine with the exception of the Forgotten Password link… how would be make an exception for that /customer/account/forgotpassword/ $redirect_url = Mage::getUrl('customer/account/login/'); $current_url = Mage::helper('core/url')->getCurrentUrl(); if ((!$this->helper('customer')->isLoggedIn()) && ($current_url != $redirect_url)) { Mage::app()->getFrontController()->getResponse()->setRedirect($redirect_url); }