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
1 answer
36 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
23 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
33 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
38 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
29 views

Keep cart active on logout

I'm trying to keep the cart contents alive when a user is logging out. I have Persistant Cart disabled, since I do NOT want to store it in their account. I only want the user to logout from the ...
esteemedparomomycin's user avatar
1 vote
1 answer
25 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,416
1 vote
1 answer
36 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
48 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
20 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
  • 642
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
35 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
55 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
61 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
34 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
46 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
0 votes
0 answers
143 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,935
1 vote
1 answer
36 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
530 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,416
1 vote
0 answers
59 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
107 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
75 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
389 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
138 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
136 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
0 answers
123 views

Magento 2.4.5: Change price of a particular product on cart update

I am using this observer event for updating price for a particular product based n it's attribute value and subtotal but it applying on all products: checkout_cart_save_after My code: public ...
mechanic's user avatar
  • 440
0 votes
2 answers
57 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
90 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
0 votes
0 answers
26 views

Magento 2: Disable Shipping Rate Calculation But Show Shipping Fee in Cart Page Summary

I don't want to show the Shipping Rate calculation, as only one shipping method I am using, Here is the code, which disable the shipping calculation block. <?xml version="1.0"?> <...
Rahul Singh's user avatar
  • 1,650
0 votes
0 answers
40 views

Show applied cart rule on each product in cart/minicart

I have a cart rule that goes like this: if you have an item from category A and an item from category B, the item from B gets a 50% discount. So the way it works now is, the discount is displayed in '...
kray's user avatar
  • 3
1 vote
0 answers
48 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
0 answers
30 views

Magento 2.4 move cart page shipping rates on top of the page

Hi I need to remove the cart page shipping rates list under the "Estimate Shipping and Tax" and move that block on the top of cart page. Can you give me some support to do that. SO far I ...
Sahan Thilakarathna's user avatar
0 votes
0 answers
13 views

conditions at cart rule mage2

I have problems creating cart rules, I don't quite understand how it works, I need to programmatically create a rule that fulfills the following: 3% automatic discount if you have between 7 and 13 ...
Jose Valdivia's user avatar
0 votes
1 answer
161 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,461
0 votes
1 answer
48 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
713 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
389 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
82 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,309
-1 votes
1 answer
368 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
119 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
328 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
266 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
28 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
167 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

1
2 3 4 5
45