Stack Exchange Network

Stack Exchange network consists of 174 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 [cart]

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

0
votes
1answer
21 views

Disable Shopsystem

first of all, I am absolutely new to Magento. I want to put a Magento installation in catalog mode. Is it possible to disable all add to cart buttons, the cart, and the checkout? I bought a theme ...
0
votes
0answers
13 views

Only allow to proceed to checkout if a minimum order total for specific products is reached

I have configurable products where users can select different colors. There are many RAL colors which the users can choose. These colors have RAL in the name, so it is easy to identify them, e.g. "...
2
votes
2answers
107 views

How to add multiple products to cart programatically in Magento 2

This is the code snippet that I am using $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $quote = $objectManager->get('\Magento\Checkout\Model\Cart'); $_product = $...
0
votes
0answers
25 views

Magento 1.9.3 Overselling

I have a Magento website, that occasionally sell very requested and popular items with very limited quantity available. In that cases the traffic on the site become 20x/40x the normal traffic. When ...
0
votes
1answer
33 views

Cart Page Redirect to Customer Login Page

When Click on View and Edit cart button from Mini-cart, It will redirect to checkout/cart page. And sometimes after 1 second it will automatically redirect to customer/account/login. When i try ...
0
votes
0answers
12 views

Magento 2 Clear cart is not working

In Magento 2.2.5, I dont want to maintain the cart items. I need only at the time of login to place order. It should be cleared once I logout or session expires. I used this persistent cart link. But ...
0
votes
0answers
11 views

show base price and special price on cart page

I want to show special price and base price on cart page, now it only showing special price on cart page, e.g if product has 500 price and it's special price is 300 then on cart page strike the ...
0
votes
0answers
10 views

Magento 2 Cannot change the amount in the cart

When I try to change order more than one item per product, it is not possible. Also I can not change the amount in the cart. I checked the stock of the products, there are no configurations that ...
0
votes
1answer
24 views

Observer after product is added to cart

what is the name of the event that I can trigger after adding a product to the cart ? I need this : The customer adds a product to his cart Intercept the event thanks to the result of and API, add ...
0
votes
0answers
15 views

In Magento 2.2.5, Update the cart items with custom options

In Magento 2.2.5, I want to update the cart products with custom options. While adding to cart, It is added correctly and updated in quote_item_option table. While updating only qty is updated, ...
0
votes
0answers
25 views

Quantity increment validation failure

On the cart page, when i try to change the qunatity of a float quantity increment product and update the cart, its showing a validation error like this one : This product having set a 1.99 qunatity ...
1
vote
1answer
37 views

cart empty after payment fail issue in magento 1.9.3

How can I stop Magento to empty cart after the customer fails to pay with a card? I am using Midtrans: Veritrans-Payment module for payment method. I am using Magento ver.1.9.3 Please give me a ...
1
vote
0answers
8 views

How to get remain stock of product , if some of added in cart

I am just modifying magento add to cart ajax functionality. I want to check remain quantity of product if some is added to cart. But i tried ,many ways but i did not success. Instead of message ...
1
vote
0answers
68 views
+50

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 ...
0
votes
0answers
23 views

How to move Proceed to checkout button On shopping cart page Magento 2

You can try below code in checkout_cart_index.xml <move element="checkout.cart.methods.bottom" destination="cart.summary" before="checkout.cart.summary.title"/>
0
votes
1answer
31 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
29 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
22 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
3answers
51 views

Magento 2 How can I hide the price and total from cart and checkout summary?

I want to hide price and totals from cart/checkout Summary. You can see in below image. How can I achieve this functionality with a custom module? Is there any common file from I can hide the price? ...
0
votes
1answer
24 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
21 views

Empty Cart before adding to cart

In Magento 2.2.5, I want to clear/empty cart before the current product addtocart. Check the below scenario: Added the new product to cart, Up to cart page user not logged In. I have disabled guest ...
0
votes
1answer
21 views

Magento 2: Does a user created cart interfere with a REST created cart or continue?

The question I have, If a customer has created a cart via a website. And then for customer service reasons, the customer calls in a want to place an order, By using the API's (let's say Salesforce or ...
0
votes
1answer
28 views

Bundle product on cart shows up price 0 (REST API)

I'm using Magento 2.3 as a headless solution, having an Angular app as a storefront and using REST API to manage eCommerce functionalities. The fact is, in certain conditions, a bundled product with ...
0
votes
1answer
30 views

How to update cart total on payment page dynamically in Magento 2

How can I update cart total on payment page in Magento 2, I tried using jQuery and PHP both, but I am unable to update cart total.Can anyone please direct me in right direction.
1
vote
1answer
15 views

Magento 2 | Hide zipp fleld in Cart

I tried to hide the Postcode (zipp) field in the cart in the block shipping costs but nothing is working. The name of the DIV is 'shippingAddress.postcode'. Hide with CSS is not working and also some ...
0
votes
1answer
102 views

Magento 2 Update cart automatically on carty quantity update gives error “Mismatched anonymous define() module”

I have done everything mentioned in this post, however, it gives me an error in console: require.js:166 Uncaught Error: Mismatched anonymous define() module: function ($, getTotalsAction, ...
2
votes
0answers
16 views

Magento : How to do share cart between different domain

I have tried share-cart between different domain but it isn't working. I have two websites with different domains like https://www.site1.com and http://www.site2.com I want to share this ...
0
votes
2answers
28 views

Magento 2 add products to cart by using code?

I tried to add the products to cart by using code. I tried with below code class Producttocart extends \Magento\Framework\App\Action\Action { protected $formKey; protected $cart; ...
0
votes
1answer
18 views

Item Price being Ignored in Cart Price Rules

I'm trying to setup a promotion in Magento 2.2.2. and I'm really not getting the result that I want. I want it to be like: If you have at least 3 items in your Cart, and at least one (1) of the items ...
0
votes
1answer
34 views

Magento 2: Details in checkout formatted with HTML-tags

For the title of an article, I am using HTML-code. Unfortunately, the HTML-code in the cart is not written as formatted in HTML – it is written with the HTML-tags, like: "This is a title.<br>...
2
votes
2answers
102 views

How to Get Product Image data in Cart API Magento 2?

GET /V1/carts/mine This API Returns information for the cart for a specified customer. How to get Cart Item Images Because in Mobile Application we show Product Images in CART - so how Can I get ...
2
votes
2answers
48 views

Magento 2 Get cart detail API doesn't show subtotal and total

Cart API url http://magento.host/rest/V1/carts/mine/ Authorization <Customer Token> This API provided Lists items that are assigned to a specified cart. But Not Subtotal and Total price of ...
0
votes
1answer
25 views

Update quantity showing error in magento 2.1

I update my shopping cart but it showing me fatal error: Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Framework\Exception\InputException::__construct() must be an instance of ...
0
votes
0answers
14 views

Magento 2 - Custom input field for each item in the Checkout Cart

I need to implement a custom field for each item in the checkout cart. Is there any proper way to add this custom field like the image below? Thanks!
0
votes
0answers
20 views

Magento 2: Get Cart Items From Outside Magento

I am fairly new to Magento, and I am trying to integrate its cart in a website that is not using Magento. Basically I have a central website, a shop, running Magento 2. I would like to show items in ...
0
votes
2answers
48 views

how to redirect to cart page by clicking go to check out button

I need to redirect to cart page instead of checkout page as i click go to checkout button in cart drop-down.
1
vote
1answer
29 views

Magento 2 not passing minimum QTY when adding related products to cart

I'm currently experiencing an issue on Magento 2.2.5. We have a number of simple products that have a minimum order qty set as 100. If I view on of these simple products, we'll call this Product A. ...
0
votes
0answers
8 views

What is the best way to buy a Product individually

In Magento 2.2 I want a specific product(say PRO_01) to be bought individually, if PRO_01 is added to cart other product get removed and if other product added to cart PRO_01 gets removed. When login ...
0
votes
0answers
7 views

Issue with Cart detail page order total with Magento 2.1.7 core

The order total adds shipment in cart detail page if I return back from checkout payment. On adding a product to cart and viewing for the first time without going to checkout payment the shipment ...
0
votes
0answers
19 views

Magento2: How to add custom discount in percentage the whole cart?

I want to add a custom discount in percentage for the whole cart programmatically. Also, view the custom discount label on the cart page.
0
votes
1answer
36 views

Remove wishlist items when added to cart

I want to remove the wishlist products that are added to the cart. I've followed this link: Keeping wishlist items for keeping the wish list items after being added to the cart.i have set my $delete ...
0
votes
0answers
81 views

Remove sticky behaviour of cart summary in Magento 2.2

i need to disable sticky behaviour from the cart summary block in checkout cart page, but can't figure out how to do it. I tried overriding js file /vendor/magento/theme-frontend-blank/...
0
votes
1answer
48 views

Magento2: How to apply discount on all cart items programatically

I want to add a discount on cart items for the specific customer.
0
votes
0answers
16 views

Cart item disappears after adding another product to cart

I'm currently troubleshooting an issue where a specific product in my store consistently disappears from a customer cart if (1) it is added to a given cart (whether empty or with other items), and (2) ...
1
vote
0answers
15 views

Magento 1.9 soap API : Totals and subtotals always equal 0 after adding products to cart

I am facing an issue when adding product to a created cart, the product is added to the cart successfully so as the customer, but when I retrieve the cart info total shows always 0, here is steps that ...
0
votes
0answers
14 views

Magento 2.2.5 Show and process with custom price instead default product price

In Magento 2.2.5, I want to achieve the below functionality: I have a Virtual Product, When I add it to cart, It should have the default product's base price. In the cart page, Right side summary ...
0
votes
0answers
28 views

Shipping costs remove in cart grand total in magento 2.2.0? [duplicate]

How to remove Shipping costs in cart grand total in magento2.1.7. I just need to remove the shipping price value from summary in cart. After returning from checkout to cart page the shipping price ...
2
votes
1answer
70 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
0answers
22 views

How to hide Flat rate shipping method when store pick up is selected for Order Summary in (checkout/cart page) in magento2.1.7?

I want to hide Flat rate shipping method when store pick up is selected for Summary in (checkout/cart page) in magento2.1.7? Currently the flat rate shipping method is also shown for store pick up. ...
0
votes
0answers
20 views

Mini Cart Not Working in Mobile view in magento 2

For Mobile view, I have added the items in the cart, the mini cart icon shows the product count correctly, But it will fail to trigger the minicart-wrapper class which means while clicking the cart ...