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
0answers
16 views

How to add custom column value in quote_item table magento 2

i have added new custom column in quote_item table. i want to add the value in that custom column by item_id in controller. i have item_id 16,17,18 of quote 3 and i want to add value in custom column ...
0
votes
0answers
6 views

Magento2 cart price rule with configurable product and simple product

I have a configurable product and 5 simple products Configurable product sku is DF-123 and its child products which are 5 different simple products sku is a,b,c,d,e 5 simple products:- a1,b1,c1,d1,e1 ...
0
votes
0answers
6 views

magento 2 : get simple product attribute on checkout cart

i am trying to get simple product attribute on checkout/cart Below is my code on Magento_Checkout/templates/cart/item/default.phtml $_item = $block->getItem(); $product = $_item->...
0
votes
1answer
14 views

Magento 2 How to Override Cart/Item/default.phtml file in my Custom module

I create Default.phtml file in Vdcstore/QuantityDropdown/View/frontend/templates/cart/item/default.phtml Hello I Create checkout_cart_item_renderers.xml file in Vdcstore/QuantityDropdown/View/frontend/...
0
votes
1answer
18 views

Magento 2: Create order without cart

I have a requirement to implement Google Pay in PDP. Like Buy with GPay in PDP. So once user click Buy Now with GPay button then we are adding that product to cart and once payment is done then we are ...
0
votes
1answer
14 views

Set Default Value for Country and State in cart page

as per my requirement, the state and country in the cart page should be a default of US and Washington. I found a configuration for the default of country but I wasn't able to find any for the state. ...
1
vote
1answer
37 views

How can i add $5 Handling fee if free shipping method is selected?

I need to add $5 Handling Fee if Free Shipping method is selected.
0
votes
1answer
21 views

Magento 2 REST API on add to cart "quoteId" is required. Enter and try again

When I try to add to card any item via REST API I get this error: "{"message":"\"%fieldName\" is required. Enter and try again.","parameters":{"...
0
votes
1answer
12 views

Magento 2 Get In Cart Product Brand, Variant and Quantity

in Magento 2 I am trying to get below details of the product from the customer cart Name ID Price Brand Category Variant Quantity This process I added in observer during customer proceed to checkout ...
0
votes
0answers
19 views

Magento 2.4 how to prevent the merging of the guest cart items into the logged-in cart

I need to prevent the cart from merging in a way that only old items remains in the cart, so: guest user adds an item to the cart guest user logs in customer cart had already an item inside on ...
0
votes
1answer
15 views

Magento2: Unable to re-calculate the cart after applying the coupon

I want to apply the coupon automatically to the cart. I have used the below code in my custom module to apply the coupon code. $quote->setCouponCode($rule->getCode())->collectTotals()->...
0
votes
2answers
24 views

How to move contents before go to checkout button on checkout cart page

I am using the below code to show custom data. file: checkout_cart_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
1answer
19 views

showing quantity of items in cart in a custom magento 2 file does not work

When I put the code to show the number of items in the cart in my custom headerfile.phtml it doesn't work, but when I access a checkout page it works perfectly, what to do? Here's the code: <?php $...
0
votes
0answers
25 views

Magento 2 Cart Price Rules Problem

I have two types of discounts on my site. General multibuy discount: 10% for buying =>3 cans 15% for buying =>5 cans 30% for buying =>10 cans Discount with code "XYZ" which ...
0
votes
0answers
21 views

How to get cart subtotal and subtotal in checkout shipping page?

I want to show cart subtotal and subtotal on Magento 2 shipping page How to do that? I have extended the file in my child theme but how to get these price details can anyone help me. app/design/...
0
votes
1answer
40 views

Magento 2.4.4 - Unable to place order: There are no source items with the in stock status

I assume that the client couldn't proceed with items in the cart that aren't in stock, but even with a clean Magento installation, it's happening. How could I solve or find the reason for this issue?
0
votes
1answer
33 views

Magento2.4 How to override \Magento\Checkout\Controller\Cart?

Even if I simply copy the file without changes, it does not work as a preference. Any idea why? I created a preference in di.xml <?xml version="1.0"?> <config xmlns:xsi="http://...
0
votes
4answers
45 views

Get all items from cart

I have a custom module where I want to get all items from the cart and take a custom attribute(days_to_dispatch), but I don't know why I don't see that attribute and others(description, ...
0
votes
1answer
78 views

api_key cannot contain whitespace space Stripe

I have installed Stripe PHP Library and the latest Stripe extensions and getting the error api_key cannot contain whitespace Steps for installing Stripe. Download extension from https://code.stripe....
0
votes
2answers
21 views

Configurable Product - Simple Product Stock Level

I have a selection of configurable products, mainly all color-related. I want to be able to add custom code in the cart showing the stock levels on each child. The example below has 2 parts added to ...
0
votes
1answer
25 views

Magento 2 shopping cart based on quanity

i want to cart rule setup for specific category product my all product price is $14.99 so i want to rule like when customer buy 1 product price total : $14.99 when customer buy 2 products total : $...
0
votes
0answers
16 views

Put cart summary below the cart items in the cart overview in Magento 2.4.3

I've tried to put the cart totals below the cart items in the cart display as described in this thread: Put cart totals below the cart products in Magento 2.1 That works - but - then the cart totals ...
0
votes
0answers
13 views

[Cart price rule Discount problem

I have a problem connected with discounts on Magento. I don't know how I should set up a discount campaign. I mean, I want to create a discount of 50% for only 12 items. If there are more than 12 ...
0
votes
0answers
56 views

Magento 2 PHPSESSID Cookie Value is the same to different devices / browsers

I am running Magento 2.4.3 with Nginx, PHP-FPM, Varnish and Redis for session and caching storage. When I have already added a product to cart and then I add another product, visiting the site through ...
0
votes
1answer
21 views

How to add item to cart?

How to add product to cart with price 0. It is something like an free product add to cart programmatic ally without any cart rule?
0
votes
1answer
46 views

Cart Price Rules - discount on certain number of products

i am new in Magento, i want to to add discount on certain number of products. I mean, i have products on my store, every product has SKU. I want to make discount 50% for purchasing 12 products on my ...
0
votes
1answer
10 views

Magento 2 : Get Global Max Allowed Quantity

How can I get global max sales qty in cart page.
0
votes
1answer
12 views

Cart Price Rules to allow discount on limited products

I'm really struggling with Cart Price conditions. I want to be able to offer a discount code (say, 10%) to customers, but on limited products. I have created an attribute for my products already, &...
0
votes
1answer
552 views

Magento 2.4.3 currency symbol not showing on product,cart and checkout page

I have just setup fresh Magento 2.4.3 on the VPS server and noticed that the Currency symbol not showing on my website, Any help is highly appreciated. Url - https://stagingsgwdirect.com https://prnt....
0
votes
1answer
26 views

Combine place order and update cart in button

In cart page, when we change quantity of product, we want the Place Order button to change to Update Cart. When the page gets refreshed with chosen quantities when we click on Update Cart, then the ...
0
votes
1answer
25 views

How to get only Simple products from cart?

How to get only simple products from cart as currently i am getting configurable product also. currently i need to check with an if condition $objectManager = \Magento\Framework\App\ObjectManager::...
2
votes
2answers
79 views

Magento 2 : remove all products from cart

I am using Magento 2.4.3 EE Is there any way we can remove all products from the cart using the cart id? I have checked on using "removeItem" & "deleteItem" but it needs to ...
0
votes
0answers
35 views

Magento 2 : Update the product name while adding into the cart

I want to add something with the product name dynamically while adding to the cart. Each product have different concatenation with product name. And that product name should be updated on everywhere ...
0
votes
0answers
28 views

Magento 2 : Create duplicate cart price rule using existing cart price rule id

I want to duplicate the cart price rule in magento 2 by using cart price rule id. is there any way?
1
vote
3answers
295 views

Magento 2.4.3 Remove products from cart

The customer has 500+ items in their cart. Items has not removed when click "Remove All" button. The below code in resolve function is used to remove cart items <?php declare (...
0
votes
0answers
42 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
19 views

change place order button text when quantity is modified

I need to change place order button text when quantity is modified in cart page help please!
0
votes
0answers
25 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
20 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
26 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 ...
0
votes
1answer
47 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. ...
1
vote
0answers
34 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
35 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
162 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
36 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
14 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
21 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
24 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 ...

1
2 3 4 5
44