2 votes

How to change the Product NAME and SKU permanently in quote_item table when it is added to cart?

Use the following one for checkout_cart_product_add_after event class Mynamespace_Model_Observer { public function salesQuoteItemSetProduct(Varien_Event_Observer $observer) { /* @var $...
Mitul Vadalia's user avatar
1 vote

Add custom option Programmatically in cart its not increasing quantity in cart

/app/code/Namespace/Mymodule/etc/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:...
Rutvik Monpara's user avatar
1 vote

Cart automatically empty after 2 hour

Try to check if there is a cron job or module that is affecting or maybe there is an issue with the caching mechanism in Magento, you may want to check your cache settings to make sure that they are ...
Zephyr's user avatar
  • 100
1 vote
Accepted

Get cart items in Magento 2.4 blocks

Try below code and check. In Magento 2.4, you can use the \Magento\Checkout\Block\Cart block to access the cart items. You can inject the \Magento\Checkout\Block\Cart block into your custom block's ...
Mohit Patel's user avatar
  • 3,568
1 vote

Magento 2 change the addtocart button text on detail page based on the product increment

It seems you need three things to achieve this I hope you added the Increment/Decrement button by overriding Magento_GroupedProduct::product/view/type/grouped.phtml in which please add data-item-...
Rajkumar Vellaiswamy's user avatar
1 vote
Accepted

Order summary showing Zero subtotal checkout page

You need to create a patch for it. And it's a local issue. Install package for managing patches in composer: composer require cweagans/composer-patches --ignore-platform-reqs Create a new patch ...
Msquare's user avatar
  • 7,318
1 vote
Accepted

How to add available when customer add to cart more available qty

You can override this class: vendor/magento/module-inventory-sales/Model/IsProductSalableForRequestedQtyCondition/IsSalableWithReservationsCondition.php:95 'message' => __('The requested qty is not ...
Zahid Hussain Magento's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible