Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shopping-cart]

Denotes questions related to the shopping cart in Magento.

0
votes
1answer
17 views

How to delete cart Item by SKU or productId in magento 2

I have retrieving all cart items and deleting the quote item by match with the product Sku, Here is my code. protected $checkoutSession; protected $_itemModel; protected $cart; public function ...
0
votes
0answers
27 views

Issue with Overriding cart in Magento2.3.1

I want to add a custom button having a different value on the cart page I am facing issues with JS and won't understand what below line will do: data-mage-init='{"Magento_Checkout/js/action/update-...
0
votes
0answers
13 views

Tax Configuration setting is not working properly

Shopping Cart Display Settings is not working properly. after selecting Including and Excluding Tax both price is coming same as per below screen. In product listing page coming proper.
-1
votes
1answer
39 views

Country drop down change based on geoIp location on cart page

When any guest user comes at cart page I want to change the country drop-down based on guest geoIp location. Here I am adding the actual picture.
0
votes
0answers
12 views

Magento 2 : Cart page “update” button is not working

While trying to update my product quantity in cart page it giving an error "something went wrong". Does anyone have any idea why it's happening?
0
votes
1answer
40 views

Fatal Error: 'Uncaught Error: Call to a member function setCustomPrice() on boolean magento 2.3

Here i am trying to add product to the cart using customerId and productId without customer logged in, it's working fine but its not adding custom Price to that product,please guide me if you have ...
0
votes
0answers
22 views

Edit cart summary

I am trying to edit the cart summary on Magento 2 to be similar to below I can see what templates I need to edit, though the problem is in editing shipping.phtml and totals.phtml I am presented with ...
0
votes
0answers
11 views

Magento 2 View cart from abandoned cart email auto redirect to cart after login

I want to redirect customers to cart page after they login to site from the abandoned cart email. There is a way to set redirect after login is successful but i want redirect to happen only when cart ...
0
votes
0answers
24 views

Updating Basket quantity using ENTER clears the basket entirely

Trying to update the quantity in the cart with the ENTER key, the entire cart is deleted. Viewing the form code I realized that in addition to the "update cart" button there are also the "Continue ...
0
votes
0answers
11 views

Change magento2 cart page from table to div

want to change magento2 cart page from table to div to use bootstrap. any body can help me about this topic?
0
votes
1answer
108 views

Magento 2.3.1 - Update Cart Quantity Empties Cart when pressing ENTER

I have just updated to Magento 2.3.1 and noticed that whenever a customer goes to his cart and changes the quantity of an item and press ENTER, then the whole cart gets empty instead to updating the ...
1
vote
0answers
31 views

Error message in cart page showing twice Magento2

In the cart page, I am getting error message multiple times. This is the scenario Product A having qty 4. I have added 3 qty of items to cart for Product 'A'. An item with qty 3 is there in the ...
0
votes
1answer
31 views

How to hide country and state & state from cart page?

As I am new in Magento and I stuck with a problem for 4 days. I want to hide the country selection dropdown and state from cart page as My requirements to provide shipping only single country. How ...
0
votes
0answers
14 views

Magento 2 Tax is not applied while change the product price in cart page

I've a product "A", base price of the product is 0, I also create one tax rule(10% without shopping price) and applied to that product. But when i added the product "A" to the cart I am changing the ...
1
vote
1answer
34 views

How to show Additional Shipping Fee of per product on checkout page by an attribute

I have added an attribute for use on the product page: Now I would like it show on cart page like this: If the quantity of a product in the cart is increased, I would like the additional shipping ...
1
vote
1answer
43 views

Magento 2 - Get abandoned shopping carts through Rest API

I'm trying to retrieve the abandoned shopping cart through the Magento Rest API. Here is my request https://<my_domain>/rest/V1/carts/search?searchCriteria[filter_groups][0][filters][0][field]=...
1
vote
0answers
45 views

Add multiple products in cart programatically magento 2

I am trying to add multiple products in cart programmatically. This below code is working properly but I need to set quantity dynamically. If quantity is not set that product to be skipped without ...
0
votes
0answers
18 views

Shipping Amout calculating automatically in magneto2 cart page

I have installed the webshop matrix rate. The shipping calculations are correct in the checkout based on the country selections. But in cart page also default the first shipping method value is ...
1
vote
1answer
33 views

Remove shipping method auto apply from cart in magento2 [closed]

I have installed Webshop matrix rate extension and its working fine. Whenever i add product to the cart, Automatically it takes the first shipping method and applies the shipping price for the cart ...
0
votes
0answers
43 views

why checkout and cart page not showing in magento 2

my site not showing checkout and cart page why this happening ?? Checkout page Cart page can anyone find the solution
1
vote
0answers
51 views

How to see the guest-cart in the webpage

I successfully added a product with the api rest using and the access point '/rest/default/V1/guest-carts/:cart-id:/items'. Now, I need to show this guest-cart in the cart page of the client Any idea?...
1
vote
1answer
44 views

Magento 1.9 multi stores with independent carts

Is it possible to have independent cart for each store under single magento installation. Now i have created a site with 2 stores, but each store is sharing the single cart. How it is possible to ...
2
votes
1answer
22 views

Magento2 ajaxsuite- ajax login

I want to show Ajax suit modules, Ajax login popup on cart page when press checkout button. right now, I used $('.modals-wrapper .popup-authentication').addClass("_show") and it shows magento2 ...
1
vote
0answers
23 views

Sticky cart summary on magento 2.1

I want to stick my cart.summary (sidebar) in cart page. mean that, when i scroll down to see other items in cart page, side bar stick in the left and always can see him over scroll up or down.
2
votes
1answer
28 views

Can't add products to shopping cart / cart keeps loading Magento 2

I recently copied a website over to another host by using the import tool. After this I don't seem able to add items into my shopping cart. The button keeps saying loading and the Ajax loader shows ...
0
votes
0answers
16 views

Copy the cart to new page, but no action triggered when click on “update shopping cart”

I've copied my cart summary into a new page. I see my cart like if it was in checkout_cart_index, that's ok. But when I change a quantity and click on "update shopping cart", the page reloads and ...
0
votes
0answers
93 views

Uncaught TypeError: Cannot read property 'undefined' at Object.formAddressDataToQuoteAddress (address-converter.js:52) magento 2

I'm working on a website and suddenly I found that error in cart page Uncaught TypeError: Cannot read property 'undefined' of undefined at Object.formAddressDataToQuoteAddress (address-converter.js:...
0
votes
0answers
13 views

Using only the cart and integrate?

I am in need to implement an interim shopping solution until we have fully implemented Magento. Instead of developing a cart from scratch allowing to populate multiple carts with items and forward to ...
0
votes
0answers
52 views

How to change row subtotal with custom price in cart?

I need to change row subtotal with custom price. Product X : $90 Applied Catalog Discount : $80 User trying to add : 4 Qty User can only purchase 3 items with discounted price. For the remaining ...
0
votes
1answer
44 views

How to add a product with two line items

I want to add a product with two line items. Say for example if i add Product A with qty of 4. I need to split cart into two line items. 3 qty as one line item and 1 is in another. How Can I achieve ...
0
votes
1answer
34 views

Rest API to get thumbnail image in shopping cart

In rest api, I am using "rest/V1/carts/1/items" method to get the magento cart items. It works well and the result is { "item_id": 1, "sku": "sk1", "qty": 4, "name": "test", "price"...
2
votes
0answers
64 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....
0
votes
0answers
23 views

Bundle products not showing in shopping cart

I'm having an issue with bundle products from magento 1.9.4 The products work fine but when I try to add them to the shopping cart they disappear. No error message or weird behaviour, just empty cart ...
0
votes
0answers
30 views

Magento 2 Get Seller's address from the Item/Product that is added to your cart

For example in order to get total qty in the cart, the following code can be used: $quote->getItemsQty(); For example, in order to get product details in the cart, the following code can be used: ...
0
votes
1answer
64 views

Magento 2: Cache problem Cart items drops

Have been struggling with this problem for some time now and its a bit confusing. The problem is the following that my cart drops the products added when I visit a new category on the site. When FPC ...
1
vote
1answer
106 views

Shopping Cart Thumbnails not showing

Have a little problem with my M2 V 2.3. In the shopping cart the thumbnails image is not displayed. I can see that it gets a 404 for the image and when I look ind the pub/media I can not find the ...
0
votes
0answers
55 views

Magento 2 weird error

When I click this setting icon I get this following error. 1 exception(s): Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested product doesn't exist Exception #0 (Magento\...
0
votes
0answers
8 views

Tax is failed to calculate

I have added tax rules to my site,but the tax is not calculated , even it is not showing in the cart page while entering shipping details. I have created tax rules at backend . But since it is not ...
0
votes
0answers
185 views

Magento2 : Why I'm redirect to Empty Cart After Checkout?

I am running Magento 2.2.6. I noticed my analytics data seemed off so I went in and checked and I am only receiving about 50% of my transactions. I can see the transaction id so I have compared the ...
0
votes
0answers
26 views

Magento throws a report error when customer session expires and shopping cart persistent is active

So recently I experienced a different issue in Magento 2.2.5, related to the shopping cart persistent. Basically what happens is when a customer is logged in with a product in the cart, and this ...
0
votes
1answer
34 views

How to enforce minimum quantity for a given sku?

I am seeking a way to enforce minimum order quantities for an individual SKU. This is for a member's only wholesale only website. Example: SKU: X6T, which has four color options (red,white,blue,amber)...
0
votes
0answers
42 views

Auto selected shipping method in magento2

I want to show auto selected shipping method based on order subtotal. So customer need not to manually select it.
0
votes
1answer
43 views

How to show Clear Shopping Cart in magento 2

I wish to show Clear Shopping cart button in cart page. In default magento it was display:none, So need to show only Clear Shopping cart button as mentioned like below image. Where I need to ...
0
votes
0answers
29 views

How to prefill shipping details in cart page in Magento 2

I have created one custom button in cart page to save country, state, postal code which is entered by the customer. After entering the country, state, postal code the customer wish to save the the ...
0
votes
0answers
19 views

Automatic update the cart on proceeding to checkout is clicked Magento 2

I want to automatically update quantity in cart product on proceeding to checkout button is clicked on a shopping cart page. so that my values are saved without the effort to click on update cart.
0
votes
1answer
133 views

How to display discount amount on shopping cart page magento 2 custom theme?

Actually i want to display discount amount once we apply the discount code in shopping cart page magento2 in custom theme.Please guide me if anyone have any idea.
2
votes
1answer
276 views

Hide State/Province from Estimate and shipping tax from cart page magento2

How to remove State/Province field from the cart page? I tried using jquery to remove it, that didn't work for me. <script> require(['jquery', 'jquery/ui'], function($){ $(document)....
0
votes
1answer
127 views

Country drop down is empty magento2

I have set default country as UK in admin, after the configuration is done, In checkout one empty drop down is showing before the UK country. so I have used below plugin to remove that empty dropdown....
0
votes
0answers
65 views

How to Change Price of bundle product option in cart in magento-2.1?

I want to set bundle option price in the cart by getting through options custom attribute. Suppose one option is the fabric of bundle product, this fabric has some custom attribute like twopiece,...
1
vote
1answer
73 views

Magento 2: Add button next to “Shopping Cart” title

When viewing my shopping cart there is an header "Shopping Cart", looks like this: How can I add an button (or just a "a href link which has div inside it" would also be good enough) in that header ...