I’m trying to remove an item from the cart, but I need to remove it on the payment page (checkout) I’m using the following code $cartHelper = Mage::helper('checkout/cart'); $cartItemId = 651; $cartHelper->getCart()->removeItem($cartItemId)->save(); but the product is not removed, am I doing it wrong? I saw that there is a URL […]
Magento
We had so many serious problems with Magento 2.4.2-p1 and Magento 2.4.3-p1. I am hoping that today released version Magento 2.4.4 will work better for us (to be fair – the issues we had might have stemmed from us using the Magento Migration Tool). I was hoping I could just […]
I have a category landing phtml, I want to add a this main category name there. This page is main category page, under this main category page, it has few subcategory. I would like to get the MAIN category name in this landing page. But I cannot retrieve it. <?php […]
I’m using Magento 2.4.4, clients reported issues with the items in the cart, and I’m able to simulate by having two carts in different clients’ accounts with the same item that has 1 item in stock. The error message is below. The requested qty is not available How could I […]
The website have 12 store views. 6 of them have .html suffix for products while the other 6 doesnt. I am not sure how that happened. I edit the store settings for all of them to have the .html suffix but it is not working even with the magento flush […]
There seems to be an issue with a module I have called Aheadworks AutoRelatedProducts. Basically, the requirejs section looks like this: map: { '*': { 'awArpGrid': 'Aheadworks_Autorelated/js/aw-arp-grid', 'awArpSlider': 'Aheadworks_Autorelated/js/aw-arp-slider', 'awArpSendClickStatistics': 'Aheadworks_Autorelated/js/aw-arp-send-click-statistics', 'awArpAjax': 'Aheadworks_Autorelated/js/aw-arp-ajax' } }, So for example, the awArpSlider alias does not work when referenced, e.g that is referenced […]
I have that in my backoffice : and I need that: This solution does not work for me : if($key == 1){ $prod->addImageToMediaGallery($imgPath, array('image', 'small_image','thumbnail'), false, false); }else{ $prod->addImageToMediaGallery($imgPath, null, false, false); } $prod->save(); How can I do ? Thank you
Trying to run a Delta migration but I’m getting a Volume Check Failed message, but unlike others I’ve faced, this one has no further info? Does anyone know how to extract something more useful out of this? [2022-04-11 14:49:56][INFO][mode: delta][stage: delta delivering][step: Customer Attributes Step]: started [2022-04-11 14:49:56][INFO][mode: delta][stage: volume […]