We changed our privacy policy. Read more.

Questions tagged [cart]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
25 views

Magento 2.4.3 Remove products from cart

Customer has 500+ items in their cart. "Remove All" button does not remove items from the cart. The below code in resolver is used to remove cart items /** * Remove multiple items from cart *...
0
votes
0answers
20 views

Select some item from cart to checkout

I'm currently using Magento 2.3 and I'm trying to customize cart page. So basically I want to add checkbox to cart so I can select some item in my cart to proceed checkout. I have no lead to do this ...
0
votes
0answers
6 views

How to add product cart (+ people added this item to their cart in the last 5hrs) counting statistics below product

20 people added this item to their cart in the last 5hrs or hurray! 20 people have this item in cart
0
votes
0answers
11 views

change place order button text when change quantity value

I need to change place order button text when increment or decrement quantity in cart page help please
0
votes
0answers
11 views

Error checkout cart add uenc

I have been receive alot of this search result that starts with; checkout cart add uenc ahr0chm6ly93..... What causes this error?
0
votes
0answers
12 views

Why update cart for configurable product gives error? Magento 2

Basically I am getting error We can't find the quote item after update cart for configurable product. There are no issues in adding item to cart. Also I am not getting any error's or warnings while ...
0
votes
2answers
23 views

Custom attribute not working in cart

We have an "Yes/No" product attribute and we need this information on product image renderer. So I have overrided the ImageFactory.php with di preference. The code looks like that: private ...
-1
votes
0answers
27 views

sales_model_service_quote_submit_before in custom module

I am using sales_model_service_quote_submit_before in my custom module for adding quote additional_options to order item options its working fine but vendor/magento/module-quote/Model/QuoteManagement....
0
votes
1answer
26 views

Combine Catalog Price Rule and cart price rule

In Magento 2, I want to use a catalog price rule and exclude the Cart Price Rules. For example, I want to add 10% discount in some products and the user couldn't use a coupon code for extra discount. ...
0
votes
0answers
13 views

How to stop custom options price to apply on each quantity of configurable product? magento 2

Basically I have a custom option price which gets applied to each quantity. But I only want to apply that custom option price once instead of applying to each quantity. Below I am adding image of ...
0
votes
1answer
27 views

How to override magento/module-checkout/view/frontend/web/template/minicart/item/default.html in custom module

I have custom additional options in quote and want to hide few options in the mini cart. How to skip a specific index in Knockout js array from the following code <dl class="product options ...
0
votes
1answer
14 views

I want to select multiple products using a checkbox and add to the cart all in a single click

Is there anything out in the marketplace like this already? I'm willing to put in the work to build the solution but thought I'd check here for some pre-existing module or partial code I could use.
0
votes
1answer
33 views

Magento2.4.2 Checkout Infinite loop detected When Using Discount Codes

I am getting a strange error with Magento. When I go to checkout out and do store pickup, set up a coupon code to pay for item and then I hit the checkout button, I get thrown this error page. Any ...
0
votes
0answers
17 views

how to hide custom option data in cart magento 2

I made a custom option programmatically in cart observer, now I want that custom option to be hidden in the cart so that users can't see it $additionalOptions[] = [ 'label' =&...
0
votes
1answer
12 views

Url para remover itens do carrinho magento 1.9 ? Meu codigo não funciona

I'm trying to remove an item from the cart by adding a link to a href and it currently looks like this: <a href="<?php echo $this->getUrl('checkout/cart/delete', array('id' => $...
0
votes
1answer
19 views

How to get the information of the items in the cart? magento 1.9

I was trying to get the information of the items in the cart and got it using the code below, the problem is that I need to get a lot of other information. And when giving a var_dump($cart), it showed ...
0
votes
0answers
21 views

Magento Cart Rule: discount increases with number of items in the cart from the same category

I want to make a cart rule where if you put: 1 item in cart you get 20% off 2 items in cart you get 30% off the whole cart 3 or more items in the cart you get 40% off the whole cart All items are ...
0
votes
0answers
24 views

Minicart Not Updating When Cart Price Rule Applied

I created a Cart Rule for all of the categories as Qty is greater than 3 . Then you will get a 1000 flat discount. When I added 3 products to the cart then the mini cart showing 3 as qty and subtotal ...
0
votes
1answer
16 views

How to show only US country in cart page estimate shipping & tax dropdown and admin orders side display all countries

How to show US country only in magento2 cart page estimate shipping & tax dropdown and admin orders sideshow all countries How to restrict all countries except US country in magento2 cart page ...
0
votes
0answers
22 views

Which event gets dispatched when Update Cart action is triggered in magento 2?

I am trying to modify the subtotal in the checkout/cart page when the item gets updated using the Update Cart action button on the product page. After the product has been successfully added to the ...
0
votes
0answers
12 views

Address checkout format

Hello I like to know how to change the fields form a selector in the checkout section because I want to know in which file is {{var numero_documento}. <b>Nombre: </b>{{var firstname}} {{...
0
votes
0answers
21 views

Add product to cart by url in magento 2

On the configuration page, I define the product id, now I need to call the URL: http://localhost: 3000/custom point/secret/addprizeproduct in the browser and add this product to the cart - this is ...
0
votes
0answers
13 views

how to redirect sales_order_place_before event on checkout page on redirect?

I have used sales_order_place_before event in Magento 2 but on error it goes to cart page but i want it goes to checkout page first step. My observer code is : if(in_array($curruseradd, $fulladdress)){...
0
votes
0answers
10 views

Add product to cart via phtml template

I have a separate product - id 2256, I would like to make it possible to add it through ajax in the template - i.e. there should be a separate button on the page - what is the best way to do this, ...
0
votes
1answer
40 views

How to display the cart number on each page?

I am having an issue,How to display the cart number on each page? $helper = $this->helper('\Magento\Checkout\Helper\Cart'); echo $helper->getItemsCount(); or $helper = $this->helper('\...
0
votes
1answer
48 views

Magento 2.4.2: How to get order sub total in my custom module?

With the code below, I am trying to get the order sub total. Please note I am querying the table that I created in the Magento Database. $subtotal = $request->getOrderSubtotal(); doesn't get the ...
0
votes
0answers
17 views

Magento 2: How to change bundle items without getting an error in client's cart?

Let's say I have a PC as bundle and I want to update the items in it (change the HDD brand/size, the price will change also) I don't want to loose or change the URL of the product but if I update the ...
0
votes
0answers
17 views

No such entity error in magento 2.3.7

I am using magento 2.3.7 . I am getting "No such entity with cartid = null " error when i try to login after adding products to cart. See https://prnt.sc/19p5191 Any idea how to resolve this?...
0
votes
1answer
10 views

Updating configurable product throws error We can\'t find the quote item. Magento 2

Basically I am trying to update configurable product which has been successfully added to the shopping cart. I can see record of added configurable product item in my database quote, quote_item , ...
0
votes
0answers
19 views

Adding Different Price Components

I would like to ask about adding different price components for both: A Simple Product A Bundled Product For example, I would like to offer the customers the option to buy the product either on Full ...
0
votes
1answer
28 views

Fill HTML space while KnockoutJS renders

I'm doing an extension for the shopping cart which consists on adding and removing quantities using + and - buttons without reloading the whole page. Thus I'm using Ajax for sending the request and ...
0
votes
1answer
17 views

Can't find the option to exclude SKU

I can't find this screen: I'm trying to exclude an SKU from a cart rule, How do I get to it? I got here: And I can't see where there's an option to choose SKU.
0
votes
1answer
46 views

Product Attribute Magento 2 Cart Checkout don't show

In my checkout cart I got 2 attributes color and Talla but only work color, In the admin the attribute talla is working When I debug the phtml app/design/frontend/mytheme/default/Magento_Checkout/...
0
votes
1answer
28 views

Js error on shopping cart on magento 2.4.2-p1

I have this issue on a 2.2.11 Magento migrated to 2.4.2-p1 : To reproduce it I just have to : -Place product(s) on shopping cart -Go to shopping cart -Insert location for shipping click "order&...
0
votes
0answers
13 views

Magento add to cart in sub domain not working

I have configured a staging environment from the live environment. I have completely copied all files and the exact database of live and configured staging. But, the issue is I can add to the cart in ...
0
votes
1answer
14 views

How to add only one product using Magento 2 REST API?

I am using REST API for Magento 2. I want to add 1 product only in Cart using REST API. Like if cart is empty one product is added is cart and if one product is in cart then remove that existing ...
0
votes
0answers
17 views

Elements disappear when manipulating the xml. Checkout_Cart_iten (Cart)

Whenever I try to move or remove a block, some elements on the page just seem to disappear. The cart page is being too complicated for me, I don't understand why this is happening. The price next to ...
0
votes
1answer
31 views

Magento2 sort Cart items with Name

I am working on of Mageto2.4.0 projects and currenly there is requirement to sort cart items with name e.g suppose that we have some items in cart "Argus All-Weather Tank" ,"Hero Hoodie&...
0
votes
0answers
21 views

Cart page issues with js code

Uncaught TypeError: Cannot read property 'quoteData' of undefined at quote.js:33 at Object.execCb (0296d0f644f38fe0e0e3da5fa2b801de.js:1650) at Object.context.execCb (resolver.js:156) ...
0
votes
0answers
5 views

How to I add a field in order email to show order count

I want to show a field in the order confirmation which has a count of the current customers orders, how can I get that done? (for Magento 1.9)
0
votes
2answers
44 views

How to redirect to custom cms in magento2

When quote table or customer session destroy page is rediecting to cart empty page. I want to redirect to my custom cms page. how to do that? I used below code but not working: $this->...
0
votes
1answer
24 views

Javascript issues in Magento 2 cart page

In my magento 2 theme in cart page in console, I have errors: Uncaught SyntaxError: Unable to parse bindings. Bindings value: if: getCartParam(summary_count') Message: missing ) after argument list ...
0
votes
1answer
17 views

Collect quote totals at init checkout page and cart page?

i'm using magento v2.4.1. I tried to add the product to the cart programmatically using salesrule_validator_process observer, this is to add a product if a cart rule being applied to the cart: $quote =...
0
votes
1answer
31 views

Shopping Cart Not Working On All Pages

Please help. My online store's shopping cart is not working on all pages. I cannot go to the checkout page after I added an item to the cart, the store's cart is always empty. When I check the ...
1
vote
1answer
332 views

Is there is a way to apply automatic coupon code in Magento 2 if total is greater than 1000?

I have a Magento 2.4 Store in which i want to auto apply coupon code when the total of the product is greater than 1000. Like i don't want to enter that in discount box Like here i don't want to ...
0
votes
0answers
5 views

Is there is a way to add Name of the product in place of Image in Cart and checkout page in Magento 2.4?

I want to add name of the product in place of image in checkout and cart page in Magento 2.4? Like to remove there is way or another but how to add name with some class on that place is the part which ...
0
votes
1answer
30 views

Magento 2 : Issue with cart rule

I have created a custom cart rule "Percent of product original price discount" I am checking If coupon discount is better deal than special price for the customer then to use the coupon ...
0
votes
4answers
37 views

How to clear cart programmatically using a cart ID

I have a custom module which, among other things, when installed will create a page. I want to pass a cart ID (encrypted) to this page as a param and then get this cart ID and delete. This needs to be ...
0
votes
0answers
52 views

Magento 2.4.2 translation problem in cart

I try translate info about quantity in cart but after i add this translate in csv file it doesn't work. This info is in the core module vendor/magento/module-inventory-sales/Model/...
0
votes
1answer
24 views

magento2 add simple product to order

I want add surprise functionality so when custom try to place an order, one simple product will get automatically added to their cart. I want to add that item after customer click on place order ...

1
2 3 4 5
44