Questions tagged [cart]

Question related to the shopping cart: adding/removing products, shoping cart price rules, the appearance of the shopping cart page.

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

On Cart Page Estimate shipping and taxes section add custom validation to zipcode

How can I add custom js validation to my cart estimate page for the zipcode? The default Magento 2 behavior is that, on any change in pincode field, the prediction action starts and a spinner is shown,...
user73267's user avatar
  • 183
0 votes
1 answer
37 views

Magento 2 Add Quantity Dropdown and to show Textbox when Quantity selection is 10 from dropdown at Cart Page

I want to add dropdown of 1 to 10 of quantity at cart page and if customer choose the 10 from quantity dropdown then the textbox appears for quantity field. please help me. thank you.
Jantar Mantar's user avatar
0 votes
0 answers
26 views

Add product attribute data to cart data

I'm working on displaying two specific options, compound_id and medication_id, in the checkout data within Magento. At present, I've managed to display mif in the cart data, but that's outside the ...
Demasys's user avatar
  • 11
0 votes
1 answer
41 views

How to remove or disable empty cart button confirmation popup in Magento2 - 2.4.5

We've recently updated a customer Magento2 to 2.4.5-p5, now the cart page added a confirmation popup when clicking the empty cart button: Magento_Checkout/js/shopping-cart.js _confirmClearCart:...
SantiBM's user avatar
  • 1,351
1 vote
1 answer
31 views

Adding items to the basket when fewer are available

We are looking to solve a problem with Magento 2.4.6 (version probably irrelevant). We have multiple configurable products available for sale and customers will place orders for big quantities of the ...
Oracle's user avatar
  • 11
0 votes
1 answer
44 views

XHR Request recognized as a redirect

Our store is experiencing issues with adding products to the cart. We use the QuickCartPro extension, and this always worked, but we migrated to a different server, and it broke down. We can't add ...
Wouter Pleijsier's user avatar
1 vote
1 answer
26 views

Update qty of cart item - Magento 2.4

We want to create a input field, that loads the qty of the latest item added to the cart and when changing this input field, it should change the qty of that item in the cart. The first part, to check ...
JGeer's user avatar
  • 1,418
1 vote
1 answer
37 views

Add Product to cart with 0 price and remove FPT from this product Magento 2.4.5

I making a promo on Magento 2.4.5 Like buy any specific 5 products and get 1 free. We have products having FPT on them. I want to add this FPT product to cart with 0 price and 0 FPT when someone buy 5 ...
OBAID's user avatar
  • 279
1 vote
0 answers
52 views

Magento 2 - How can I update the cart summary totals when quote grand total is modified

I have a controller that is called by ajax in the cart page. A gift card amount is passed to the controller and a function then updates the quote grand total based on that amount. protected ...
nickcobb's user avatar
0 votes
0 answers
21 views

Show Related Product Price rule Products in the Cart Page

I am using this code in the Magento_Catalog (items.phtml. switch ($type = $block->getType()) { case 'related-rule': if ($exist = $block->hasItems()) { $type = 'related'; ...
Rana Zain's user avatar
  • 662
0 votes
0 answers
11 views

Magneto add to cart not working with loadrunner

I am doing performance testing with loadrunner. The add to cart request is not adding any products to the cart instead it just redirects to another page when i replay with loadrunner. I have ...
Combospirit's user avatar
0 votes
1 answer
37 views

How to add cart rule buy five bags get 10% discount in magento 2

how to add the cart rule in magento 2, when a customer buy 5 bags (he can selecte different bags) and get 10% discount on the whole amount. Thank you
mark.ronnie's user avatar
0 votes
0 answers
58 views

remove discount from the cart page

Is there any way to remove discount price [NOT THE COUPON FORM] from the cart page and adjust the Totals accordingly but should be visible on checkout page ?
Cv Gandhi's user avatar
0 votes
1 answer
74 views

Cart price rules problem

Strange behaviour cart price rules. Situation: I have set price rules for free delivery above some price and its working more or less Let assume that I have different 3 products, different prices. ...
Petka's user avatar
  • 1
0 votes
0 answers
37 views

How to Bundle products based on customer selection?

What is the best approach to achieve a step-by-step walkthrough experience, prompting customers to select items from 3 categories and sell them as a bundle with a single dynamic price during checkout? ...
Nxlevel's user avatar
  • 407
1 vote
0 answers
17 views

Cart Price Rules - Quantity in cart equals or greater than 10 (from a same category, but with different sku's)

We face an issue here. We want to create a 5%, 10%, and 15% rebate when customer add 5, 10, or 15 units of a same category. It work well, until magento dont advise that the condition "Quantity in ...
Manuel Bisson's user avatar
0 votes
1 answer
56 views

get the value from quote_item_option table (info_buyRequest) in GetCartDetails graphql Magento 2

How can we get info_buyrequest value using customer cart graphql magento2? Any suggestions
Ila Makwana's user avatar
1 vote
0 answers
181 views

Magento 2 Hyva: How to add a loader in cart on increasing and decreasing qty using Hyva?

I want to add a Hyva loader on the cart page using the Hyva theme. I checked this doc from hyva Hyva doc loader but I am not sure How I can implement this on increasing and decreasing qty. Let me ...
Mohit Rane's user avatar
  • 1,955
1 vote
1 answer
37 views

Guest user cart automatically empties itself after 1 hour

I am facing an issue where the products added in the cart automatically gets removed after 1 hour. I am facing this issue only for guest user. I have checked the following values and found them to be ...
Ranvir Singh's user avatar
0 votes
0 answers
13 views

Running a special discount, but the price not reflecting on cart page

So i updated the pricing for the discount campaign. However, for the people who have added the products added in the cart can see the old pricing and add the coupon code. please help
Spardha Kudalkar's user avatar
1 vote
5 answers
620 views

Magento 2.4.6 - No such entity with cartId - checkout_cart_index.xml

We face the issue that we sometimes get the error in the exception.log: Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId = #0 /vendor/magento/module-quote/...
JGeer's user avatar
  • 1,418
1 vote
0 answers
68 views

I am experiencing an "Item qty Declaration Error" in Magento 2

Problem: I am experiencing an "Item qty Declaration Error" in Magento when a logged-in user adds items to the cart. Description: Unexpectedly, the "Item qty Declaration Error" ...
qɐʇǝɥɐW's user avatar
0 votes
2 answers
145 views

Add to cart button, Not working on 2.4.2

After update magento (from 2.3.4 > 2.4.2) and migrated on a new hosting, Add to cart button stop working. After i select a product and then "Add to cart" button, website is reloading on ...
Hector Solutions's user avatar
0 votes
0 answers
79 views

Cart clear after 2 hours in magento 2.4.5

As a guest I add products in the cart at 10am and when I check the cart back at 12am the cart is empty. i have set a time approx 1 year but still it's not working . We have no cron job for this . I ...
Ranvir Singh's user avatar
0 votes
1 answer
468 views

Magento 2 - Get cart item qty change in Javascript

I have a javascript file that loads when the page loads. This file defines two variables (one for the shopping cart items and one for the count). This script also contains a subscribe that fires ...
JamesS's user avatar
  • 101
1 vote
1 answer
174 views

Magento 2 - Customer sometimes receiving 503 Error when performing random actions on the cart

I'm experiencing an issue where customers are intermittently receiving a 503 error (maintenance flag) when performing certain actions on the cart in Magento 2. For example, in one scenario, a guest ...
David Young's user avatar
0 votes
1 answer
171 views

How to get Reward Points data in Custom API?

In Magento 2.4, I want to get the Reward-points which going to earn for particular order from cart page into custom API. How to get Reward Points data in Custom API?
Saravanan DS's user avatar
  • 1,126
0 votes
2 answers
60 views

How to override grid.php block or cart.php block to remove some items from shopping cart

I want to filter the products (excluding products with some attributes) when the shopping cart is loaded. What is the best way to achieve this. I have looked into overriding getItems function of ...
Siri's user avatar
  • 115
0 votes
1 answer
1k views

how to get customer selected shipping method code from quote in magento2

how to get shipping method carrier code as $rate->getCarrier() from quote.
Abhay Agrawal's user avatar
0 votes
1 answer
106 views

Cart automatically empty after 2 hour

I add the product in cart at 10:00 am then when i refresh the page at 12:00 pm i see cart is empty automatically . I check the admin settings there are we set the time [ 31536000 ] in Persistence ...
Mohit Thakur's user avatar
0 votes
1 answer
22 views

Cart page Producrs

I am add new products but the user in cart page can change country i want the user can not change country in cart page how can I disable this ? Can not the user change country? Please give me response ...
user111476's user avatar
1 vote
0 answers
51 views

switch store view with select country in checkout / cart

I would like to trigger the store view to change according to the selected country in cart and checkout in Magento 2.4.3 Does anyone do have a clue if or how this is possible? Thanks
guest123's user avatar
0 votes
1 answer
209 views

Magento shopping - existing cart items removed when new product added

Hopefully someone can help as we can't find anyone else having the same issue that we are. We have just gone live with our new Magento 2 website. We noticed that if we add an item to the cart and ...
ciaran's user avatar
  • 1
0 votes
0 answers
43 views

Magento 2: Facing issue with get current quote cart subtotal from RulesApplier plugin

I have using Magento\SalesRule\Model\RulesApplier Plugin. Using aroundApplyRules method need to get current cart subtotal. I have need customisation to validate condition for cart subtotal with cart ...
Kirti Nariya's user avatar
  • 3,471
0 votes
1 answer
49 views

Subtotal on Magento 2.4.5, when coupon is applied

Subtotal in the cart doesn't change on applying a coupon. Is it possible for Subtotal to be: (order total - coupon discount) - tax ?
Senku's user avatar
  • 33
0 votes
1 answer
29 views

Remove Items from cart if call_to_order attribute is true

I want to remove products with call_to_order attribute is "yes". Add to cart button is disabled and phone number is showing. If customer reorder from his account, and cart has this product, ...
Jasvir Singh's user avatar
0 votes
1 answer
794 views

Get cart items in Magento 2.4 blocks

I'm trying to get access to all items in the shopping cart in a block, but I can't seem to get them. If I try the code below to construct and $items = $this->_cart->getQuote()->...
Teun K's user avatar
  • 23
0 votes
1 answer
445 views

How can I set discount in price at product order by a customer programmatically

If a customer places an order for 5 Qty of a product, then a 10% discount would be given. How can I do in Magento2 programmatically
Muhammad Zahoor's user avatar
0 votes
1 answer
87 views

Add new tab in cart page with form in Magento 2.4.4

I want to add a new Tab on the cart page with a custom form. Thank You.
Ronak Rathod's user avatar
  • 6,320
-1 votes
1 answer
407 views

Place order button is missing in the checkout

I don't know how did that happened but I'm using onepagecheckout Website: https://femascu.net/ Product to add to cart: https://femascu.net/femascu-leather-watch-8401.html
Amjad Khoulani's user avatar
0 votes
0 answers
120 views

Add discount on each product based on product price

I have 100 products in my store and each product has different price. I want to add discount on each product based on specific price. For example, If a product is added into the cart and it has 100usd ...
Asad Ali's user avatar
1 vote
2 answers
356 views

Magento 2 - Send data into a new quote_item column from an API call

I have added a new column in quote_item table and want to add this field as a parameter in cart API payload but I don't how this will happen. This is what I get when i try to hit add to cart api. ...
Asad Ali's user avatar
0 votes
2 answers
280 views

How to override CartItemInterface class in in my custom model?

I have to add 2 new methods getter and setter in CartItemInterface but i am facing issues. Basically I have added a new column in quote item table and now I want to add this column in cart api. Please ...
Asad Ali's user avatar
0 votes
1 answer
29 views

How to multiply the quantity of the added product by 2 by clicking the add to cart button through the plugin?

How to multiply the quantity of the added product by 2 by clicking the add to cart button through the before plugin?
Eugene Morrison's user avatar
0 votes
2 answers
173 views

How can i remove object manager from my code of Magento 2

I don't want to use object manager, how can i change my code? In the past, i have used method cart $cart but it is deprecated <?php namespace Custom\ShippingMethod\Model\Carrier; use ...
Miron's user avatar
  • 79
0 votes
1 answer
23 views

Get coupon / Discount object

In (themePath)/Magento_Checkout/templates/cart/item/default.phtml, i want get the coupon / Discount object. I use this code : @var \Magento\Framework\View\Element\AbstractBlock $block [...] var_dump($...
clama4242's user avatar
1 vote
0 answers
152 views

Why creating an empty cart via REST API requires parameters for quote address for this customer account?

I'm using Magento 2.3.3. Normally, calling this endpoint will return customer's quote ID. But for this specific user, I got this error as a response: { "message": "One or more input ...
nawawishkid's user avatar
2 votes
0 answers
98 views

Magento 2 - Go to checkout button is not clickable

Site was working fine and then suddenly "Go to checkout" buttons in minicart and shopping cart are not clickable. Can't seems to find the reason behind it. Does anyone has any idea why this ...
Nayem323's user avatar
  • 751
2 votes
1 answer
256 views

Duplicate cart items

community! Bumped into an issue - duplicate items in a cart. In the quote table, I have multiple quotes for the same customer. Items_count is increased like an exponent, eg 2, 3, 6, 178, 192. In the ...
vadim vadim's user avatar
3 votes
1 answer
713 views

How to set Shipping Method on product add to cart and show total including shipping cost in mini cart?

I want to set shipping method when product is added to cart and want to change shipping method based on products added to cart.I have tried multiple way but unable to set and change shipping method ...
Mehran's user avatar
  • 492

1
2 3 4 5
45