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 [cart]

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

1
vote
0answers
22 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 ...
-1
votes
0answers
9 views

Magento2 how to overtire Model for Checkout cart page and also cart quantity increase by ajax cart + and - button click events [on hold]

Magento2 how to overtire Model for Checkout cart page and also cart quantity increase by ajax cart + and - button click events so give me suggestion for plugin available for free Help Me
-1
votes
0answers
17 views

Cart and checkout URL Change in magento 2

Change url of final checkout page from funcorp.in/onepage to funcorp.in/checkout Change url of thank you page from funcorp.in/checkout/onepage/success/ to funcorp.in/checkout/thankyou
1
vote
1answer
19 views

Cart & Checkout blank Magento 2.3 after trying to add product to cart

In Magento 2.3 I am attempting to add an item to cart, however the cart shows empty and if I 'proceed to checkout' the checkout page is blank with just the loading gif icon. If I go to 'checkout/cart'...
4
votes
1answer
44 views

Difference between Minicart and Cart in Magento 2

I want to know the difference between Mini cart and Cart in details.
3
votes
0answers
14 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 ...
1
vote
0answers
25 views

Magento2 Checkout cart automatically updates when qty changes with ajax

Magento2 checkout cart page Please ensure when quantities are changed that the cart automatically updates. Some customers might change the quantity and if they dont click update cart they might move ...
2
votes
0answers
17 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 ...
0
votes
0answers
26 views

How to add product in cart programmatically in admin Magento 2?

I want to add to cart product in admin using script? Anyone has an idea about it? Thanks in advance
3
votes
0answers
27 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: ...
1
vote
0answers
23 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?...
0
votes
0answers
19 views

How to add update button in qty in checkout cart?

How to add update button in qty in checkout cart ? How to add update button in qty in checkout cart?
0
votes
0answers
13 views

How to share my cart via mail with others magento 2

I want to add the possibility of sharing a cart with others via mail so is their a solution for that please because i did not find any article that can help me in this
1
vote
0answers
22 views

Magento 2 : How to add configurable product to cart with the selected custom options?

I had a configurable product with two variants such as color and size and I have one customizable custom option, I am trying to add this product to cart with a custom controller, but it says the ...
2
votes
0answers
15 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 ...
0
votes
0answers
17 views

How to add custom option before adding to cart by code in Magento 2?

I have a list of custom options that are adding to cart when click on Add to Cart button. But what i want i have created a custom select box with image,so it should be added to cart with image name ...
1
vote
1answer
28 views

Magento 2 Minicart content not displaying

I'm working on developing my own theme by extending the Magento Blank theme. I'm trying to add the minicart to my header.phtml file. I'm loading the minicart in my header like so: <?php echo $...
2
votes
2answers
43 views

How to restrict customer only to add products in cart Magento 2?

I need to integrate a functionality where when a user clicks add to cart it should check whether he is a logged in customer or not. If he is a logged in customer the product should be added in cart. ...
1
vote
1answer
32 views

Magento 2 - Refill cart after refused from payment page

I want cart to be refilled after customer return back to my controller with some error. Here is my controller code, I can access increment_id here public function execute() { if(array_key_exists("...
3
votes
0answers
167 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 ...
2
votes
1answer
33 views

Magento 2 - How to reload cart summary section

I try following js code to reload cart summary section. <script> require(['jquery', 'jquery/ui', 'Magento_Checkout/js/model/quote', '...
0
votes
0answers
15 views

How to add a product to cart via URL on a website that uses magento?

I wanto to know how to create a "add to cart link" on a website that uses magento.
1
vote
0answers
16 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
27 views

Magento 2 Add discount on bundle product on add to cart time

I have to add some discount programmatically on the time of bundle product add to cart. So far I have developed the catalog product plugin Magento\Catalog\Model\Product function afterGetFinalPrice ...
4
votes
0answers
22 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 ...
3
votes
0answers
8 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 ...
2
votes
0answers
31 views

How to change the cart subtotal value using observer in magento 2?

I want to change the cart subtotal calculation in magento 2 but i try this code but not changing $quoteQty = $quote->getQuoteQty(); $priceOne=$priceOne/$quoteQty; $quoteItem->...
2
votes
1answer
48 views

Magento 2 translate the “You added … to your shopping cart.” line

I'm trying to translate the "You added ... to your shopping cart." line in my Magento 2 installation. I have already a .csv file in: "app/design/themevendor/themename/i18n/" with all the lines ...
1
vote
0answers
22 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 ...
1
vote
1answer
30 views

How to change price, the price calculation in cart through custom module Magento 2?

Here in my custom module: This product with 50 quantities price is 6,000 But when I add to cart this multiplies So how I can fix this? Can I use observer to change this or are there any ...
0
votes
2answers
55 views

Magento 2 : How to show special price and regular price in cart page?

I want to show base price and special price both in cart page, right now, by default it just shows special price. How to show exactly like product page or list page. Version 2.1x
1
vote
1answer
23 views

Mini cart with zero price for all the configurable products except first item

While adding set of configurable products to cart, it gets added and showing correct data in checkout/cart page, whereas in mini cart it is showing zero price for all the configurable products except ...
1
vote
0answers
32 views

Magento 2.3 add shipping line to cart totals

We use a quite simple shipping cost line. When the total is below 29.95 it adds 5.95 for shipping. If the subtotal is above 29.95 it is free. Now I want to extend the default totals column in the ...
3
votes
1answer
67 views

Magento 2.3 Minicart check if subtotal is above value

I want to check inside my /app/design/frontend/theme/theme/Magento_Checkout/web/template/minicart/subtotal/totals.html file if the subtotal is larger than 29.95. I want to display some additional ...
1
vote
0answers
14 views

Magento 2 remove lazy load header cart with items

We are currently developing a new Magento 2.3 store, but we find out that items in the cart in the header, are loaded quite late. When we load a page on frontend, first the entire page loads and then ...
2
votes
0answers
30 views

update reward points and recollect the quote total and list the discount with reward points

I have customized for applying the reward points from a third party Capillary. I want to update the cart total and display by deducting from the reward points after the response from the curl. I have ...
2
votes
1answer
51 views

Magento 2: How to disable Quantity Box for specific product from checkout cart and minicart

How can we disable Quantity Box for specific product from checkout cart and minicart? I have already search for the solution but it will disable quantity for all products reference URL Your help ...
1
vote
1answer
50 views

Get all order details from getItems() / getAllItems() / getAllVisibleItems()

I am trying to get all the order data. So I came across these three different types of methods to get items from an order getItems() getAllItems() getAllVisibleItems() I tried the first two getItems(...
2
votes
5answers
64 views

Error on checkout page while adding product to cart

I am using a custom module, where I want to redirect to checkout page once a product is adding to cart. For this I have created an event on frontend "checkout_cart_add_product_complete". For simple ...
1
vote
1answer
28 views

Magento 2 Bundle Product Add To Cart Like Simple Product

We have bundle products that are just groupings of simple products. I have disabled all options for the bundle products so that customers can't edit quantities etc. because I want them to act like ...
2
votes
0answers
59 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 ...
0
votes
0answers
18 views

How to set 2 prices for a product and add to cart same both 2 prices magento 2

Actually am trying to show 2 or more prices for a simple product and once we add to cart and it should sum the prices to cart and also display same prices in shopping cart. If anyone have ...
2
votes
0answers
24 views

How to update shipping methods on change of custom dropdown on cart page

I have created a custom dropdown above country dropdown on cart page. Now I want to update shipping methods list. I followed Devdocs to show custom field on address form (cart page). All in all I ...
0
votes
0answers
14 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
1answer
18 views

Magento v2.2.6: Proceed to Checkout displays a login popup even after logged in

A login popup window is displayed after clicking "Proceed to Checkout" button from cart instead of redirecting to checkout page.
0
votes
1answer
41 views

is it possible to filter checkout cart collection magento 2?

Actually i want to filter the checkout cart collection using custom attributes values using this link $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $quoteId = $objectManager-&...
1
vote
0answers
103 views

Magento Checkout Stuck: [ERROR] Failed to load the “StoreCredit_Discount/js/view/checkout/discountform” component

I want to create a Custom Store Credit section for my project, but after adding the component in checkout_index_index.xml I got the below error in console.log Failed to load the “Magento_Checkout/js/...
1
vote
1answer
27 views

How to customize a check cart item-action in magento 2?

How to customize or override a item-action tool bar in checkout cart in magento 2. My actual item-action is: My expectation is:
0
votes
1answer
52 views

Cart Rules - Not logged in

I've set up a cart rule that applies if: payment method is Bank Transfer. It is always applied, except when an order is placed as a guest. Can you help me? NB: All the user groups present are ...
8
votes
3answers
100 views

Getting Value of product attribute on cart page even not assigned to that particular product Magento 2

I am getting the product attribute from quote. It seems there is wrong value comes. Please check my below code. $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $cart = $...