We want to add some logic when Magento saves shipping information during checkout, so we have tried using a before plugin for saveAddressInformation method This would be method definition /** * Save address information. * * @param int $cartId * @param ShippingInformationInterface $addressInformation * @return PaymentDetailsInterface * @throws InputException * […]
Magento
I am preparing to get Magento certified, doing some test questions I have found this: A client has asked you to include category url keys in product URLs. How is this done? A. Create an observer for controller_action_postdispatch_catalog_product_view B. This is not possible because products can belong to multiple categories […]
I am trying to add custom fonts in magento 2 transactional emails however, it does not work. I am using hyva theme. I have imported Sofia-pro font under app/design/frontend///web/fonts/SofiaProRegular.woff2 and app/design/frontend///web/fonts/Sofia_pro_regular.ttf Then I have added _typography.less file under app/design/frontend///web/css/source/_typography.less and added the following code in it .lib-font-face { @family-name: @font-family-name__base; […]
While I am trying to save a product, I am getting this error: SQLSTATE[22003]: Numeric value out of range: 167 Out of range value for column ‘value_id’ at row 1, query was: INSERT INTO catalog_product_entity_decimal (attribute_id,store_id,row_id,value) VALUES (?, ?, ?, ?) ON DUPLICATE KEY UPDATE attribute_id = VALUES(attribute_id), store_id = […]
my website has been running for while and the url key for some category have been using for long. but suddenly some category pages (most others are still valid) referenced by url-key.html not working. the backend report show Unable to serialize value. Error: Malformed UTF-8 characters, possibly incorrectly encoded i […]
Need some assistance with this one. Within Magento my store seems to be throwing up a parse error whenever you try to do any simple tasks like sending order notes to customers from within Magento. ERR MSG: “ParseError:syntax error, unexpected ‘fn’ (T_STRING), expected :: (T_PAAMAYIM_NEKUDOTAYIM) Here’s some images to show […]
After upgrading Magento version the custom checkout component created to handle customer informations does not work anymore, with the previous version everything was fine but now I am getting those errors in browser console: [ERROR] Failed to load the “ui/form/field” template requested by “checkout.billing.address.lastname”. [ERROR] Failed to load the “ui/group/group” […]
Change repository visibility Make public git push origin main remote: Permission to repository.git denied to test. fatal: unable to access ‘https://github.com/repository.git’: The requested URL returned error: 403 Change repository visibility Make private git push origin main remote: Repository not found. fatal: repository ‘https://github.com/repository.git/’ not found
I’m trying to use the Magento2 config:sensitive:set CLI command to set a sensitive configuration value, but Magento is throwing the following error: There are no sensitive configurations to fill I’ve already searched the web, came across one Magento stackexchange question, and another one, as well as a Magento2 GitHub issue, […]