Questions tagged [addtocart]
Questions related to the functionality of adding product to shopping cart in Magento.
1,103 questions
0 votes
0 answers
41 views
Magento 2 Restrict add to cart button for particular customer group
I want to restrict the Add to Cart button for a particular customer group. When users from that group log in, the Add to Cart button should be displayed, and they should be able to add products to the ...
0 votes
1 answer
54 views
Magento 2.4.7-p4: Slow Add to Cart When Cart Price Rule with Customer Segments Is Enabled
I'm experiencing an issue with a Cart Price Rule that uses a condition based on Customer Segments. When this rule is active, the "Add to Cart" action becomes very slow. Has anyone else ...
0 votes
0 answers
27 views
Can't Add products to cart for particular customer in particular store
We have a multistore Magento2 instance. In that for a particular store and particular customer couldn't add any products to the cart. After clicking on the add to cart button, It is showing error '...
0 votes
2 answers
64 views
Magento 2.3 5 p1 - slow loading after pressing "Buy now"
After pressing "Buy Now" from Magento product page the checkout page loads very slow 30-60secs. It seems to do something with browser changes recently as the store itself has not been ...
0 votes
1 answer
220 views
How does Magento keep track of guest user sessions during add to cart event
I have created a custom add to cart section where a customer can customize their chosen configurable product for multi-options. It is a functionality where I will have to programmatically add to cart ...
0 votes
4 answers
150 views
Prevent selling the same item more than 1 time
I have a store which contains only downloadable products. I'd like to prevent the same product from being added in quantities greater than 1 and remove the quantity field from everywhere (cart, ...
0 votes
1 answer
93 views
Magento 2 - Change value Quote item when I add to cart via Reorder button
I am trying to change a custom value each time I add to the cart via the “reorder” button. Right now I am trying to do this in the file “Magento\Sales\Model\Reorder\Reorder.php” but without success. ...
1 vote
0 answers
164 views
Add to cart event not passing values to google analytics dashboard
As We are using Magento PWA Venia setup, we integrated google analytics code to our website manually. After adding the below code , Once we click on ADD TO CART, add_to_cart event is firing in Google ...