I can’t add custom css file
I created the default_head_blocks.xml file in app/design/frontend/Magento_Theme/luma/layout and the local-m.css file in app/design/frontend/web/css/ and the code for the xml is:
Auto Added by WPeMatico
I created the default_head_blocks.xml file in app/design/frontend/Magento_Theme/luma/layout and the local-m.css file in app/design/frontend/web/css/ and the code for the xml is:
I’m using magento version 2.4.1 and composer version 1.10.25. i tried to update it to magento 2.4.3-p1 using composer but i always received an error. First i run this command: composer require magento/product-community-edition=2.4.3-p1 –no-update then i run php -d memory_limit=-1… Read More »Failed to upgrade from Magento 2.4.1 to Magento 2.4.3-p1
I want to optimize my website and remove unused javascript/jquery and also defer or lazy load javascript/jquery for better performance any tools or techniques to achieve this?
In my magento we are using Mexbs Bunlde Discount extension to create cart price rules. i created one rule like – A product from X category + B product form Y category + C product from Z category for 10$… Read More »Cart Price rule is not working if the product is available in multiple categories Magento 2.4.6
Broken layout XML files after installing Magento 2.4.6 on Ubuntu 22.04 Nginx, PHP 8.1. domain: kiqlik.com Looks all good in the front… /var/www/html/2.4.6-p2$ cd /var/www/html/2.4.6-p2/var/log deborah@webserver-magento-poc:/var/www/html/2.4.6-p2/var/log$ tail -f system.log [2023-11-24T22:32:49.257513+00:00] main.INFO: Broken reference: the ‘page.actions.toolbar’ tries to reorder itself towards… Read More »Broken layout XML LUMA CE2.4.6-p2
I am working on upgrading a bit older Magento site (version 2.4.2 to 2.4.6) hosted in AWS. I began it as a series of incremental upgrade through versions and subversions to avoid dependency version gaps. I upgraded up to 2.4.2-p2… Read More »Composer conflict : Magento Upgrade from 2.4.2-p2 to 2.4.3
I’ve been having trouble finding documentation to implement a custom payment method. The flow needs to be like this: User selects [custom payment method] on the checkout page. Order is placed. afterOrderPlaced should check if [custom payment method] was used… Read More »Creating custom redirect payment method?
Using Magento 2.4 MaySql 8 I am investing now a lot of time to try finding the option_id (red marked) of the connected simple product to the configurable products. I ended up in the following tables: catalog_product_relation -> this gives… Read More »Finding attribute option value between configurable product and its simple products by sql query
We use the following code, to get the last item that was most recent updated. $itemsCollection = $cart->getQuote()->getItemsCollection(); $itemsCollection->getSelect()->order(‘updated_at DESC’); $latestItem = $itemsCollection->getLastItem(); But for some reason $latestItem does not return the last updated item, but the last created_at item.… Read More »Itemcollection get latest updated_at item – Magento 2.4
I Have a product export script that uses product collection to create an array and write the array to CSV, I want to know if this script can be optimized. <?php error_reporting(E_ALL); ini_set(‘display_errors’, 1); ini_set(‘memory_limit’, ’16G’); use MagentoFrameworkAppBootstrap; include __DIR__… Read More »Magento2.3.5: How to optimize product export scripts?