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
0answers
8 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
5 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
23 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
17 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
0answers
13 views

Magento 2: Details in checkout formatted with HTML-tags

For the description 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 an article.<...
2
votes
2answers
52 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
24 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
23 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
8 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
19 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
22 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
23 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
6 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
15 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
21 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
31 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
32 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
26 views

How to stop shipping calculation in checkout/cart page in magento2.1.7? [on hold]

I want to stop shipping calculation in checkout/cart page in magento2.1.7?
0
votes
0answers
14 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
14 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
9 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
22 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
52 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
16 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
15 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 ...
1
vote
0answers
27 views

Where does the price precision come from?

I have my Magento 2.2.6 webshop set up locally (development mode) and on the server (production mode). On my local installation the cart summary shows a precision of 2 decimals, on my server it shows ...
3
votes
6answers
69 views

Getting Items in Cart

I've tried many methods over the web including here too but still I can't seem to be able to get items currently in cart, tried checkout sessions cart model, cart helper nothing works, It sometimes ...
0
votes
1answer
41 views

Magento 1 with Php 7.2, add to cart error if product have option

I have Magento 1.9.3.10 with the patch for PHP 7.2 applied. If I click "add to cart" on a product that has options and no options are selected, I get this error: Exception: Warning: count(): ...
0
votes
1answer
27 views

Magento 1.9 Randomly Allowed memory size of 2GB exhausted PHP 7.1.1

I got a php error randomly, Allowed memory size of 2147483648 bytes exhauste and customers see the 500 Internal Server Error. It happens most often after importing products with Dataflow, when ...
0
votes
2answers
26 views

Magento2: How to redirect minicart on checkout cart page?

How can I redirect on checkout cart page once I click on Minicart instead of toggle.
0
votes
0answers
18 views

Magento 2 Partial order payment

I am using magento 2.2.6. i have two payment mode. that is "now" or "later". if later is selected, then after placing order, it will remain save in cart, and if now is selected, then order is placed ...
4
votes
2answers
58 views

Magento 2 : specific product remove from quote

I set product's expire time in my custom module. When, product is expire at that time that specific product should be remove from quote. I used event layout_load_before for that. Because, this code ...
0
votes
0answers
14 views

Adding related product with main product must show quantity as one in cart box in magento2.1.7?

Adding related product with main product must show quantity as one in cart box. but it is showing as a separate product with quantity two in magento2.1.7? Refer my screenshot.
0
votes
0answers
20 views

Magento 2 How display payment method on cart page

How I can display payment block on Cart page by XML <block class="Ilho\Region\Block\Payment" htmlClass="cart-payment" name="customer_payment" template="cart/payment.phtml" cacheable="false"> ...
0
votes
1answer
31 views

Shipping estimation block missing if there are many products on the cart

I have a custom shipping estimation block on the checkout cart page to calculate the shipping rate. It's working well until there are many products (5 or more) on the cart. I add the product one by ...
0
votes
0answers
32 views

display shipping methods in cart page

i want display shipping methods in cart page instead of checkout page any help? i have checkout_cart_index.xml <?xml version="1.0"?> <!-- /** * Copyright © 2015 Magento. All rights ...
0
votes
0answers
9 views

Magento 2 cart page cross sell move next to cart summary

I am customizing the cart page design, so that moves the cart-summary next to an item list, then cross-sell section is a next to cart-summary. I try the below code for move the cart-summary, it's ...
1
vote
1answer
29 views

magento 2 set shipping amount for each item

How I can set shipping amount for each order items. In my cart, I set for each cart item one shipment but I don't know how I can save it and which model or table saved it?
0
votes
0answers
11 views

Magento 1 product not merging in cart

We have this issue on our magento 1 that when I add product from different location, it will not merge in cart or show 2 lines at the cart. Example, when you are on the category page, and you click ...
0
votes
0answers
28 views

How to update Magento cart items quantity using ajax?

I'm using this code for showing cart items quantity in my Magento 1 site. <span><?php echo Mage::helper('checkout/cart')->getCart()->getItemsCount(); ?></span> It's updating ...
0
votes
1answer
61 views

Get Cross sell items in cart page Programmatically in magento2

I am trying to get cross sell products in cart page programmatically. Below code i have used in layout/checkout_cart_index.xml <referenceContainer name="content"> <block class="...
1
vote
2answers
32 views

Update the Price of an item when adding to the cart

So here's my project. Make our giftcard integration purchasable. Basically I need to get an "Enter Custom Amount" input field to update the price of the item. What I have been told by our ...
0
votes
0answers
46 views

Product URL is not retaining the Category path in Cart, Checkout,Widget and Search result pages

I have been trying to display product full path URL (with category path) in sore wide all the places. Def URL : http://someurl.com/product-name Full path URL : http://someurl.com/category1/category2/...
0
votes
1answer
33 views

Magento 1 REST API Get shopping cart items

I want to retrieve the list of items in a customer's shopping cart programmatically through REST API. I have tried this code and other similar ones on stackexchange for which each fail to retrieve the ...
0
votes
0answers
30 views

Add product to quote in admin programmatically magento 2

I am trying to add a free product to another product if a min qty of product is added to cart . I am able to do this in front end . In Backend admin same code is not working .So i tried to get quote ...
0
votes
2answers
52 views

How to load address in cart.phtml

How can I load all addresses and address form on cart page ? I tried the bellow code but it doesn't work ! <referenceContainer name="content"> <block class="Magento\Checkout\Block\Cart\...
0
votes
1answer
36 views

How to add multiple product to cart and get cart id in magento 1.9 for guest checkout?

I am trying to store multiple products to cart and getting cart id of the products list for generating order in Magento 1.9. I don't know how to create cart and order for guest checkout.
0
votes
1answer
44 views

Magento 1.9 version Custom discount is not working

I am using these 2 observers - 1 - sales_quote_collect_totals_after 2 - sales_order_place_before Custom discount(which is 3%) is working fine when customer do order from Cash on delivery but ...
1
vote
1answer
30 views

How to customise the coupons in Magento 2?

I want to apply 50% coupon to lowest product only. If the cart has 2 products means when the customer applies the coupon "COUPON50". Product A = $20 Product B = $10 then the coupons must be apply to ...