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 $...
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:...
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 ...
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 ...
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-...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
addtocart × 1098magento2 × 443
magento-1.9 × 269
cart × 198
product × 107
configurable-product × 58
event-observer × 54
ajax × 52
magento-2.1 × 51
shopping-cart × 48
checkout × 47
custom-options × 47
quote × 33
magento2.2 × 30
mini-cart × 30
magento2.3 × 29
price × 28
php × 24
programmatically × 23
quoteitem × 23
javascript × 22
magento-1.8 × 20
module × 20
custom × 19
shopping-cart-price-rules × 19