Questions tagged [cart]

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

770 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
10 votes
1 answer
294 views

Persistence Lifetime not working in Magento 2

I have configured Persistence Lifetime on Magento 2 but it's not working as expected. I have configured 60 seconds cookie lifetime but it's not affecting the same. I have checked with default Magento ...
Ashna's user avatar
  • 518
8 votes
2 answers
7k views

Magento 2 No such entity with cartid =

I'm experiencing this error on my site quite often: Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId = It's not using multiple stores, so the entity_ids ...
Howliee's user avatar
  • 153
8 votes
1 answer
938 views

Please specify the product's required option(s) Custom Option type file

I got only one custom option, which is file type, I tried to add product to cart programmatically like this: $logoSku = 'lg-brnd01'; $productLogo = Mage::getModel('catalog/product')->...
Hunter's user avatar
  • 1,484
7 votes
3 answers
8k views

How to get item id from quote item collection in Magento 2?

I am trying to get all item ids currently added in cart. Here is what I have done so far. public function __construct( \Magento\Checkout\Model\Cart $cart ) { $this->_cart = $cart; } ...
Arshad Hussain's user avatar
6 votes
0 answers
961 views

Multi-shipping depending on specific product attribute

I have been struggling hard from a few days to find out a way for multi shipping of products depending on product type (type is not magento's type where as it is custom attribute i.e type can be ...
CodeGenius's user avatar
5 votes
3 answers
449 views

Duplicate Product in Cart Magento 2

I have an issue in Magento 2.1.6. When I add the same product in cart it's adding as a new line not update Qty of product. The same issue in the mini cart also. Actual Result: Add as a separate ...
Divyarajsinh Dodiya's user avatar
5 votes
0 answers
37 views

Load default address when logged in on magento2

I want to load magento2.1 default address on my cart page address box when i'm logged in. mean that, when i'm in one step checkout page and logged in, in my address part, see default address instead ...
MGPM's user avatar
  • 741
5 votes
1 answer
2k views

Magento 2 order redirected to cart -> getLastSuccessQuoteId() returns false

I'm trying to place order in magento 2.1.7 but every-time I click the "place order" button, I get redirected to the cart page. With debugging I found out, that in the class /vendor/magento/module-...
NthDegree's user avatar
  • 343
4 votes
3 answers
2k views

Magento 2: What is the best way to observe cart change to modify cart item in magento 2?

I'm using Magento v2.3.4 and i want to modify the cart item, if there is an update on the cart (add to cart, update cart item, and remove cart item). Currently I'm using plugin for quote collectTotals(...
jojo's user avatar
  • 39
4 votes
0 answers
300 views

How to Remove a Block From layout Programatically in magento 2

i am trying to remove a Crossell from cart page in my phtml file how i can do this when i researched i found crosssell products are viewed in checkout_cart_index.xml file as <...
Waqar Ali's user avatar
  • 2,319
4 votes
1 answer
5k views

Magento 2 check which catalog rule is applied to cart product

I have created 3 catalog rules for category. Shoes Category: 5% Off , Catalog Rule Name: Shoes Offer Toys Category: 10% Off, Catalog Rule Name: Toys Offer Fashion Accessories: 8% Off, Catalog ...
jack's user avatar
  • 920
4 votes
2 answers
70 views

broken minicart - urgent

I have attempted to edit the minicart on our webstore, however this resulted in an error occurring which seems to be quite common but no one seems to have an easy fix. The minicart now outputs a JS ...
user avatar
4 votes
0 answers
8k views

Programmatically added quote item Option [additional_options] showing in cart but not showing in order details on front and admin

I Am Creating Quote Item Option [additional_option] To Cart. I Am Using This Code Base $item->addOption([ 'product' => $data['product'], 'code' => 'additional_options', ...
Rizwan Khan's user avatar
  • 1,939
4 votes
2 answers
2k views

Add product to guest cart with custom option and its price in Magento 2 api

I need to add product in cart using magento 2 api. I am using below api "rest/V1/guest-carts/{cart_id}/items I am passing parameters like below, { "cartItem": { "sku": "...
Anand's user avatar
  • 439
3 votes
0 answers
169 views

Magento 2: Set custom discount price to existing cart/quote in controller

I would like to set a custom discount price to an existing cart/quote in my controller and found some other people that had this question but none of them got answered: I want to add discount to ...
Felix Schönherr's user avatar
3 votes
0 answers
93 views

Cache issue in magento 1

Hello I have used ves and varnish full page cache extensions for better speed performance but it is creating some issues now like my cart page is not showing all newly added product or showing old/...
Stack user's user avatar
3 votes
0 answers
120 views

Magento 1.9 - How to get JSON config by a bundle item id in cart?

When I have a bundle product in the cart, I can edit it by clicking the edit button . At this point, a page with the product to edit will be loaded. Also, a function named "getJSONConfig()" will be ...
Donny's user avatar
  • 171
3 votes
0 answers
985 views

How to add a additional field in Summary Section magento 2.3

My Actual Screen look like I Expexted Result look like How to Display Total Savings like above mentioned screenshot. I need to print Sum of total added product savings amount in summary section
Shafeel Sha's user avatar
  • 1,395
3 votes
0 answers
122 views

Cart page shipping method loading issue. Magento2

I have set 'Minimum Order Amount' to 25 for Free Shipping & other shipping method is 'Flat rate'. My issue is when I redirect back from paypal to cart page after canceling the payment from paypal ...
Arjun's user avatar
  • 3,586
3 votes
1 answer
724 views

Grouped Product - force same quantity for all products

I am using Magento 2.3. I have defined 4 different simple products with a price of 3.99 each. I want to create a grouped product to allow the user to purchase 1 of each product, with a total price of ...
Nicola Lepetit's user avatar
3 votes
0 answers
60 views

Magento 1.9.4.0 Checkout and cart page broken

I have upgraded my website from 1.9.1.1 to 1.9.4.0. I am facing the issue of cart and checkout page get broken when the customer is logged in. If we disable the compilation or disable system log, both ...
Moin Malek's user avatar
3 votes
0 answers
162 views

Adding a configurable item to cart via ajax

I've inherited a project which lists configurable products in the catalog view, as well as listing the simple products attached to that configurable product. For example; Configurable Product: ...
user77658's user avatar
3 votes
0 answers
1k views

Magento 2 : keep disable product in cart

I want to keep disabled product in cart. Let's say I have added one product to the cart. After that I have disabled that product from Magento admin. Now when I visit cart page, there is message that ...
Hardik's user avatar
  • 499
3 votes
0 answers
291 views

Magento 2 Cart Price Rule -"Category does not contain" not working

i have created cart price rule to give 10 percent off ,but have excluded few category as shown in screenshot , but does not works properly and 10 pc discount is applied for product category excluded ...
user1799722's user avatar
3 votes
0 answers
320 views

Failed Payment Redirect in Magento 2

When a customer has an order canceled due to their credit card being declined it seems all extensions redirect customers back to the cart page and not the actual payment page in the checkout. Is this ...
Goose84's user avatar
  • 2,611
3 votes
0 answers
2k views

Magento 2 Limit Product quantity per customer

In my magento store there are virtual subscription products which come as trials. I need to set maximum 1 product which is allowed to purchase by a customer. Does any one knows what is the ...
ashanr's user avatar
  • 115
3 votes
0 answers
422 views

How to apply tier price with custom option product in Magento 2

I have a product with more than 5 custom option in Magento and I want to apply tier price rules on a combination of custom option product in the cart. Ex. I have tier price rules like Buy 3 for $95....
Divyarajsinh Dodiya's user avatar
3 votes
1 answer
707 views

Magento2.1 Configurable attributes in cart

I want to add configurable products attributes to cart page too. Example: T-Shirt color:red size:m already added to cart by price 100$, Now I want to change attributes on cart and use color:green ...
MGPM's user avatar
  • 741
3 votes
1 answer
2k views

How to show all cart items in phtml file Magento 2?

What is the best way to show all the items/products that are in checkout/cart in a PHTML page? I have added a custom phtml page that shows some products, and also have a phtml page that want to ...
Algert Zharri's user avatar
3 votes
0 answers
2k views

The element 'product.info.options' already has a child with alias 'text' - Magento 2.2.0

After data migration (1.9.1 CE - 2.2.0 CE) I got the below error when I click add to cart button in magento 2 we can't add this item to your shopping cart right now I did research about this but ...
Prathap Gunasekaran's user avatar
3 votes
0 answers
156 views

How can i hide flat rate shipping method when free shipping is available in magento 2.1.5?

I have set free shipping when amount is greater than 300rs, but when amount is greater than rs 300 two methods are still showing. How can I hide the Flat rate when cart amount is greater than Rs 300.?...
christy's user avatar
  • 157
3 votes
0 answers
374 views

Check if Magento cart is empty using Javascript?

So I need to check if the cart on my magento site is empty or not. I can do this using php like this: <?php $count = $this->helper('checkout/cart')->getSummaryCount(); if($count==0){ ...
hello123's user avatar
3 votes
2 answers
1k views

Override minicar sidebar price renderer

How can I override a sidebar.phtml from: module-weee/view/frontend/templates/checkout/cart/item/price/sidebar.phtml I have tried in the following ways: <referenceBlock name="checkout.cart.item....
marcio's user avatar
  • 31
3 votes
1 answer
4k views

How To Increase frontend session timeout to 10 day In Magento

I am trying to increase session time out limit to 10 days in magento for non logged in customer but it is expiring before may be witthin 1 days. I went to System->Configuration->Web->Session ...
Sid's user avatar
  • 31
3 votes
2 answers
3k views

What settings control how long the products stay in cart for guests?

At the moment most of our customers are guests (we do no require accounts) Very often when customers returns to our website they see empty cart page (verified by testing and screen recording tools) ...
MployBy's user avatar
  • 125
3 votes
1 answer
4k views

Magento 2 adding multiple items to cart at one time

I am trying to add multiple products to Cart at one time, But i am facing issue while second product adding to cart as per attached screen shot. The second product showing in cart items but price is ...
Ramesh's user avatar
  • 986
3 votes
0 answers
1k views

Magento 2 : How to Update Price After Changing Qty On Cart

How to update price after qty changed by dropdown in magento 2. I changed qty input type to dropdown like below code in default.phtml: <td class="col qty" data-th="<?php echo $block->...
sangan's user avatar
  • 437
3 votes
0 answers
861 views

Add to cart is not working in fresh Magento

I've installed Magento 2 fresh on localhost. trying add to cart items but it is not working when clicking on add to cart button. It shows You have no items in your shopping cart. Click here to ...
Saachi's user avatar
  • 61
3 votes
1 answer
867 views

Magento 2.1.1 Add to Cart message stuck

I have just completed a new installation and have noticed that the "Add to Cart" message is appearing on every page. Any ideas as to why this is happening?
bondimedical's user avatar
3 votes
2 answers
1k views

How to change the Persistent Cart time for Guest Users?

Magento 2 cleans up the guest cart data under 24 mins if left idle, is there any setting which can help to persist cart data for a guest user for around 90 days?
Atish Goswami's user avatar
3 votes
0 answers
736 views

How to get images of products in cart using rest API

Doing a request to "V1/guest-carts/666ef786077b70c95016727cfaf21830/items" will give: [ { "item_id": 129, "sku": "24-UG05", "qty": 1, "name": "Go-Get'r Pushup Grips", "price": ...
Mackelito's user avatar
  • 261
3 votes
1 answer
871 views

The difference of "remove product links" in the cart and minicart (rwd theme)

Looking at the remove product links I found two different below codes: In .../checkout/cart/item/default.phtml <a href="<?php echo $this->getDeleteUrl() ?>" title="<?php echo Mage::...
Zinat's user avatar
  • 2,069
3 votes
2 answers
3k views

How to reload the quote or cart in Magento 2

I am working on ajax cart. When i update the cart qty, I am trying to reload the quote but its not loading properly $this->cart->getQuote()->getShippingAddress()->collectShippingRates()-&...
Pradeep Kumar's user avatar
3 votes
1 answer
721 views

How can I move my cart from my header into the right of my navigation?

I would like to know how to move my cart icon into my navigation instead of the header. How can I do this?
Oli Tuck's user avatar
  • 305
3 votes
3 answers
867 views

problem adding items to cart from outside magento

I'm having this problem and getting pretty annoyed by it. here's the situation. I was running a website on the codeigniter framework, and our customer wanted to add a shop to sell a couple of ...
lagiacrux's user avatar
3 votes
0 answers
605 views

How to display shipping estimate and auto add this to grand total on cart page?

I am currently working on a magento website and trying to get the estimated shipping charge auto added to the grand total on the cart page. By doing this on the cart page I am trying to remove one of ...
AlphaOne's user avatar
  • 143
3 votes
1 answer
2k views

Modifying the redirect after editing a product in the cart

I have a problem modifying a redirect in magento CE 1.9.2. Let's say a customer has a configurable product in the cart, and would like to edit that product (ie. changing color or size or something). ...
Simon Strandman's user avatar
3 votes
1 answer
209 views

Multistore feature troubleshooting

I'm asking you your help because I created two stores in the same Magento installation : store.example.com : for customers (default store) b2b.example.com : for retailers The installation was done ...
merguez's user avatar
  • 31
3 votes
3 answers
236 views

Disallow adding products if sku or shipping type exists in cart

As the title says. I need to be able to disable adding to cart if a product sku or shipping type already exists in the cart. Any way this can be done? Created checkout_stop.xml in app/etc/modules ...
MHeredia'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

1
2 3 4 5
16