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
1 answer
10 views

Link from cart item to product page

When you add a product to your cart, it's showing on your minicart. When you click on that item it's bringing back to the product page. I'm looking to find how this link is made...looks like there is ...
user avatar
  • 772
1 vote
0 answers
15 views

Load shipping rates on click instead of page load on cart page

One of my website's cart page is slow and after some digging up I found that the shipping-rates.html is taking up time to load. Is there any way, through which instead of implicitly loading I can load ...
user avatar
  • 728
0 votes
1 answer
17 views

move shipping field to below shipping methods

I have a block that display in shipping-address-fieldset and i have try to move it using layout but i'm failing. i want it to be displayed below Shipping Methods. please help Below is the layout file &...
user avatar
0 votes
0 answers
15 views

Magento 2.4.0 = How to I can apply Cart Price Rule Condition in this coupon Code?

I want to Add Cart price rule condition in my custom auto generated Coupon Code. If email is equal to test@gmail.com. How to i'll do this. Please check my code. This code is working Perfectly i just ...
user avatar
0 votes
1 answer
18 views

Unable to retrieve the qty updated product value in the cart using Observer

I am trying to get the cart item value once the qty updated in the Cart page for the specific Item. Have used the below code to get the value, But the event triggered still its showing the old value. ...
user avatar
0 votes
0 answers
11 views

shipping method auto select

Below is the picture of click n collect shipping method. if store view selected how to auto select in this drop down.
user avatar
0 votes
0 answers
13 views

How to notify customer when a product item increases or decreases in Magento 2 Cart Page

As you can see in the image I have added custom functionality so that the customer can increase or decrease the item quantity Now I have to show a message that as soon as the customer increases or ...
user avatar
0 votes
1 answer
38 views

Show a Text if attribute is set to "yes"

I want to display "it working" on default.phtml if the product is assigned to attribute [Franke] with "yes". Please help. I have tried the below code, but it doesn't work ...
user avatar
0 votes
1 answer
23 views

Add custom option Programmatically in cart its not increasing quantity in cart

I am adding custom option programatically in below observer. <event name="checkout_cart_product_add_after"> <observer name="mymodule_checkout_cart_product_add_after" ...
user avatar
  • 3,069
0 votes
0 answers
7 views

Separate carts by store group

I've been operating a multi store group website for the past two years (Magento 2.4.1). Each store group has 2 store views (one in our native language and another in english). Store Group 1 -- Store ...
user avatar
  • 1,107
0 votes
0 answers
14 views

Cart Tax rate Calculation Issue

I am using Magento 2.4.1. I have created a tax rule of reduced 2.5 % on a product basis. I have added a product having a price of 1 and quantity of 10, normally tax rule should calculate 0.25 as tax ...
user avatar
  • 121
0 votes
0 answers
17 views

How to add add to cart with ajax to custom phtml

I have to add add to cart button on homepage. I have custom phtml in my own module. I would like this button to work with ajax. Could someone please suggest something?
user avatar
  • 27
0 votes
1 answer
21 views

Magento 2: How to show price in decimal (Instead rounding) in cart items & cart summary?

In above image showing product price KWD0.245 but Summary section Subtotal showing KWD0.250 (Automatic roundup) , how to avoid subtotal automatic roundup. I want to show subtotal as KWD0.245. Thank ...
user avatar
0 votes
1 answer
27 views

Setting a custom item subtotal when adding product to cart?

Magento 2.4 I already have my observer in place, but setting a custom subtotal for my item does not work. I am listening to the checkout_cart_product_add_after event. This is my observer code: $item = ...
user avatar
0 votes
1 answer
17 views

how to get the name of the category that the user used to add the product to the cart. Magento 1.9

I need to get at cart what category the product came from. The problem is that the product is added to several different categories, and I need the category in which the user accessed to add the ...
user avatar
  • 197
0 votes
0 answers
26 views

Magento 1.9 add to cart slow when cached

We have been experiencing an odd issue on some of our sites since moving from Magento 1.7 to 1.9. When a sites cache hasn't been cleared for a while add to cart is extremely slow. This also affect the ...
user avatar
0 votes
0 answers
22 views

why update cart on checkout doesn't work properly?

I'm in Magento 2.4.3 and when I try to update the cart quantity and click on Update Cart in the right corner, the quantity I've setted is gone (so if I wrote 2, it comes back to default 1). Here's the ...
user avatar
  • 3
0 votes
1 answer
19 views

Multiple shipping method for single order

I wanted to build a functionality where user can choose or select shipping method per cart item. For example I have 3 items in my cart as below- Item-1 Item-2 Item-3 On cart page all the available ...
user avatar
0 votes
0 answers
6 views

Cart, incl. tax not calculated ye

On my cart, do you know why my tax calculation is not "calculated yet"? I used to see the tax value but now I see "Not calculated yet" do you know what do I need to change to see ...
user avatar
  • 431
0 votes
0 answers
13 views

disable shared cart between stores of 1 website in magento 2

I have 1 website and 3 stores. I want to disable cart sharing between stores. eg: If I have a product in a cart of 1st store then it should not display in 2nd store. I have applied this solution: In ...
user avatar
2 votes
1 answer
35 views

Undefined index: simple_sku Magento 1.9

I am writing code in magento 1.9 checkout and when adding a new product to cart it generates the error in the log, and my code seems to be correct. Error message that appears in the log. The problem ...
user avatar
  • 197
1 vote
1 answer
23 views

Products add to cart button alignment

I have an issue i cant seem to find a setting for in the admin panel. On the products page everything looks good except the add to cart button ( displayed in dutch ) is not aligned. Is there a way i ...
user avatar
1 vote
1 answer
68 views

Checkout cart error: The requested qty is not available

I'm using Magento 2.4.4, clients reported issues with the items in the cart, and I'm able to simulate by having two carts in different clients' accounts with the same item that has 1 item in stock. ...
user avatar
0 votes
0 answers
15 views

M2: Convert customer cart to wishlist

I have a website where customer's participate in "wishlisting" by building their carts over several months and they tie up inventory doing so. Is there a way in Magento 2 to convert carts to ...
user avatar
1 vote
1 answer
41 views

Magento 2.4.3: Cart products not showing

So I'm facing this issue in my DEV environment. When I add a product to the cart it shows correctly on the mini cart but when I go to the cart editing page it shows an empty list. I don't have any ...
user avatar
  • 1,107
1 vote
0 answers
34 views

How to have order summary moved from the mini cart to the page in checkout (mobile)

On my checkout on my theme, I have the order summary condensed into a mobile menu when it's mobile. The issue with this is that we are having issues in regards to make it more obvious what is in the ...
user avatar
  • 113
0 votes
0 answers
109 views

Magento 2 : Show a custom error message on cart page if bundle product options has changed

I want to catch this error "Some of the products below do not have all the required options." which is coming from checkData() from the path vendor/magento/module-quote/Model/Quote/Item/...
user avatar
  • 1,838
0 votes
1 answer
25 views

Not able to add the product in the cart in product detail page

Facing issuse If someone want to add a product to the cart from the list view it works fine. But from a product detail page the Error appears: We can't add this item to your shopping cart right now.
user avatar
  • 1
0 votes
0 answers
22 views

Magento 2: Move Estimate Shipping Rate section inside Order Summary before grand total on cart page

I want to move Estimate Shipping Rate section inside Order Summary before grand total. Any help will be appreciated.
user avatar
0 votes
3 answers
35 views

Error when extend vendor wishlist cart file

I am using Magento2.3.5-p2 I want to extend instead of overwriting a Magento class The class that I want to extend is vendor/magento/module-wishlist/Controller/Index/Cart.php so to extend this I ...
user avatar
0 votes
0 answers
11 views

Shopping cart popup does not close when clicked the cross icon

in my Store when we open mini cart on any page and if cart is empty then when we click on cross button icon its not closed but if 1 product in cart and we click on cross icon its worked.
user avatar
  • 1
1 vote
1 answer
22 views

Capture minicart configureable product variant info

I just finish install magento2.3.5-p2 with sample data, I want to understand how to collect variant data of product being added to cart at minicart The reason for this is to be able for me to push ...
user avatar
0 votes
0 answers
18 views

Magento 2: How to get cart item details for specific item id using api?

I'm new to Magento API. I'm using the below api endpoint to get cart item details but I want to get the cart item details for the specific item id. Is that possible in Magento out of the box? GET V1/...
user avatar
  • 480
0 votes
0 answers
22 views

Custom attribute in cart for configurable products

I am trying to show custom attributes in the checkout/cart page. I have created a catalog_attributes.xml and put it in a custom module <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
user avatar
0 votes
1 answer
30 views

How to get Product attribute from Cart Model

I am trying to get the product attributes using the below 2 ways from the checkout cart model code but it is not working. public function beforeAddProduct($subject, $productInfo, $requestInfo = null) {...
user avatar
  • 121
0 votes
1 answer
32 views

Magento 2: How to get cart items and its stocks using custom API?

I'm learning Magento 2 API. I need to create a custom API to get cart items and its stocks. I can see there is an API available to get cart items in Magento by default which is the below GET V1/carts/...
user avatar
  • 480
0 votes
0 answers
11 views

Magento 2 exclude a product from UPS shipping but not from flatrate

For Magento 2 we have created an attribute to exclude that product from shipping methods and that product that is excluded will have an individual shipping price on it. For example, we have 2 products ...
user avatar
0 votes
0 answers
13 views

Get Category, Brand and Product Attribute From Cart Subscribe Javascript When User Add or Remove Product From Cart

I am using magento 2.3.5-p2 I am required to get details of product attribute during user add/remove product in cart the details include :- Product name Product Sku Product Price Product Brand ( ...
user avatar
0 votes
0 answers
16 views

Error with region after buy product

When i try get temp order after buy product: protected function getTempOrder($customer) { $address = []; if(!empty($customer->getAddresses()) && $existingAddress = $...
user avatar
  • 57
0 votes
1 answer
20 views

The cart price rule is not working in magento 2.2.3

The cart price rule is not working in magento 2.How to apply cart price rule for free shipping.
user avatar
0 votes
2 answers
43 views

How to add borders on Shopping cart page column header names

I'm trying to add borders on the Shopping cart page column header name. Anyone advises me
user avatar
0 votes
1 answer
26 views

How to log query for cart event?

I want to see the mysql query when adding a product to the cart. I have referred this link, How to log all Magento 2 SQL queries? but I need query only for cart. How to get the query for cart events? ...
user avatar
  • 480
0 votes
1 answer
26 views

Do not increment qty for same product in cart?

Magento 2.4.2 Is it possible to only have a qty of 1 in the cart for the same product? Like if I add a qty of 10 to the cart, it only adds 1 because its the same product. Possible?
user avatar
0 votes
2 answers
102 views

product add to cart after loading the product ajax call

How to trigger add to cart function After loading product by Ajax call. this above product loaded by ajax call I have to found solution if I click add to cart button, then add to cart function ...
user avatar
0 votes
0 answers
11 views

Magento 2 stop clearing cart if user switch between Websites

I'm working on a Magento 2.4.2 with different websites. If a user add some items on a Web Site, open a new tab on the same browser and then visites another Web Site, the cart get emptied. How can I ...
user avatar
  • 1
0 votes
0 answers
34 views

mini cart product price chnage magento 2

Product details page product price $10.123123 and mini cart page product price rounding $10.123100 so i am facing rounding issue in mini cart item price please check screen short. Thanks in advance. ...
user avatar
0 votes
0 answers
33 views

How to Select some product from cart to checkout

I'm currently using Magento 2.4 and I'm trying to customize cart page. So 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 and I'm new ...
user avatar
0 votes
0 answers
18 views

Additional Field on Shopping cart page

I would like to add an additional field on shopping cart page called "Order Reference". I have experience with adding on checkout page, however this is specifically for shopping cart page. ...
user avatar
  • 3,554
0 votes
1 answer
197 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 ...
user avatar
0 votes
0 answers
41 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 ...
user avatar

1
2 3 4 5
45