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
8 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
36 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
12 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
11 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
26 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
67 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
3 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
28 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
35 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
36 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
19 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 ...
0
votes
1answer
25 views

Magento 2 Add product to cart programmatically returning to original price

I have a product of $1, because I change the price later. What I'm doing is that I send the price on an Ajax request to a Controller, just like this: $.ajax({ ...
0
votes
0answers
15 views

Redirecting to cart after product added to cart

Magento 2.3.5 Having some trouble getting a module I've been working on to redirect to cart after altering the cart contents. As you'll see below I started with Gaiterjones's BuyXGetY module (https://...
0
votes
1answer
17 views

checkout cart page stock status check in magento 2.3

How to check checkout cart page stock status in magento 2.3 my custom code add this file but not working <?php if ($product->isAvailable()): ?> <div class=&...
0
votes
1answer
18 views

When I select the payment method and return back to the site, cart is cleared

When I select the payment method and return back to the site, cart is cleared. I am testing this on Mollie payments but it works fine for all payments. If I go to the payment page, select a payment ...
0
votes
0answers
19 views

Add multiple items to cart while saving cart

I've run into a problem with my code when I try to add multiple items to my cart. I've added a product with the ID of 7 to the cart and then i'm trying to add a product with an ID of 8 to the cart, ...
0
votes
1answer
37 views

Remove quantity of item in cart

The Problem I'm looking at removing a specific quantity of an item that I already know is within the cart. There are lots of guides explaining how to remove items completely from the cart but let's ...
0
votes
1answer
28 views

Magento 2 How to Render Child blocks in controller

I want to remove the 'Proceed to Checkout' button when the qty reaches a specified limit. For that I add a condition check in this page module-checkout\view\frontend\templates\onepage\link.phtml On ...
0
votes
2answers
53 views

Magento 2.4.2. Mini cart count not updating after free product remove on update cart button click

When total price is above $200 cart price rule is applied and free products are added to the cart. when total price is below $200, cart price rule is applied and free products are removed from the ...
0
votes
0answers
13 views

Minicart shows the wrong cart qty after add product to the cart programmatically

I'm using magento v2.4.1 and i tried to add a product programmatically to the cart like this from salesrule_validator_process observer : $newQuoteItem = $quote->addProduct($...
0
votes
2answers
41 views

Magento 1.9 can not remove product fom quote

I have some problem with removing product from quote. I observe "Add to cart" with "checkout_cart_product_add_after" event and there simply do this: $quote->removeItem($...
0
votes
1answer
60 views

Got error when trying to submit order via rest api and stripe

I have magento 2 setup, with Stripe plugin, and I'm trying to create order using PUT http://ec2-3-236-104-131.compute-1.amazonaws.com/rest/V1/carts/mine/order BODY { "paymentMethod": { ...
0
votes
0answers
17 views

How to update a Magento 2 cart?

Maybe I don't know enough about Magento, but is there not a setting for allowing a cart update? I have a Magento 2.3 site, and when I add items to the cart, it opens up a minicart with the quantities. ...
0
votes
2answers
46 views

Magento 2 - need super simple way of assessing whether cart is empty or not in list.phtml file

Client wants to display a conditional message on the category list.phtml page depending on whether or not the cart has ANYTHING in it I've found a lot of posts about creating a custom module to be ...
0
votes
0answers
19 views

Magento 2 Quote Refresh Api

HI I am developing an API where I faced a challenge in my cart listing api, I need to apply cart rule and add it in quote and need to update quote accordingly. The Problem here is my quote do get ...
1
vote
0answers
29 views

Magento 2.4.1 EE checkout and cart page blank with 400 products

In magento2.4.1 EE I have added 400 products to cart. I click on proceed to checkout, getting blank page and cart page is also blank. My php_value memory_limit 756M php_value max_execution_time 18000 ...
0
votes
1answer
31 views

Magento salerule really slow query 2 minutes to execute

We run Magento with many sales rules as each user has a referral promo code that he can share with his friends. However this impact the performance of our magento server as it is really slow when ...
1
vote
0answers
26 views

Magento 2.3 same product with different custom options is not showing separate in the cart?

I am adding the same product in the cart with different custom options but the product is merging with the first one and item quantity increased in the cart only. I want to show separate same products ...
0
votes
1answer
20 views

How to change Quote Item attributes after adding it to cart?

I want to change almost all the quote item attributes after adding it to care like name,price,sku and almost everything. As we have a requirement where at the runtime only we will decide this ...
0
votes
2answers
43 views

Cart items not shows in cart on using Magento 2 REST API

I am using Magento 2 REST API for add to cart item in guest but after checking on cart page it's just empty. Why it is empty. http://127.0.0.1/mag/rest/V1/guest-carts/Hkt4RC38lJX1rAalFoPlsk2suRwb8Fnp/...
0
votes
1answer
31 views

How to add products in cart using REST API in Magento 2?

I want to add products in cart in Magento 2 using Rest API I have created a controller and using this code. <?php $userData = array("username" => "admin", "password&...
0
votes
0answers
20 views

Magento 2 cart and checkout Array to string conversion error

Cart and Checkout Page error due to street address becomes array.
0
votes
0answers
15 views

Magento 2: New customer-session = new quote

I have to solve the following problem in Magento 2.3.4: Several people log in at the same time with the same email address. Each person should start with an empty shopping cart after logging in. So ...
0
votes
2answers
186 views

After upgrade Magento 2.4.1 not redirect on success page after place order

After upgrade Magento 2.4.1 We are getting issues on the checkout page. Redirect on back to cart page after place an order instead of the success page. Order look fine in the admin panel. And not get ...
0
votes
1answer
104 views

Magento 2.4.2 GraphQL not get uid from customerCart and cart query

I installed Magento 2.4.2 According to Magento GraphQL DevDocs updateCartItems mutation cart_item_id is Deprecated. Use cart_item_uid instead. The unique ID assigned when a customer places an item in ...
0
votes
1answer
21 views

First product added to new cart returned with no JSON “price”

This is my first time currently working with Magento. I am developing a custom web shop solution for a machine shop with React.js. My issue is the following: After having completed a purchase and ...
0
votes
1answer
30 views

How to set phtml file in specific area Magento 1.9 using an Observer

I'm trying to set/ display a template file instead of the default messaging in Magento 1.9 using an Observer when the checkout loads but I cannot get the phtml file to show up and I don't know why?? ...
0
votes
2answers
62 views

How can I prevent a product to be added to cart without show any messages?

I'm trying to prevent a product to be added to cart without showing any messages. In order to do that I'm using a beforeAddProduct plugin and it works well but it shows an exception message in order ...
0
votes
1answer
35 views

Magento 2 : How can I add my custom side bar below Summary side bar in Cart page?

In cart page I want to add custom side bar below Summary side bar. Please give me some suggestions. Thanks!
0
votes
0answers
12 views

Magento 2 : Need to put coupon form and proceed to check-out button outside cart-summary

Currently I have below layout in my cart page. I need to put coupon form and proceed to checkout button outside cart-summary. Please check the second image for what I need. If anyone having knowledge ...
0
votes
2answers
68 views

How to prevent adding same product to cart more than one time?

As title says, how can I prevent adding same product to cart more than one time in Magento 2.4.2?
0
votes
1answer
54 views

How to change SUMMARY title of cart page in Magento 2?

I need to change text SUMMARY to BASKET SUMMARY. Please help!
0
votes
1answer
13 views

How to Redirect Buy Now Button to View Cart instead of Shipping Address

When we click on Buy Now button it is redirecting to the shipping page (https://vitalticks.in/checkout/#shipping) But for us, it will be redirected to the View Cart page. https://vitalticks.in/...
0
votes
1answer
18 views

Cart lost for logged in customer. Retrieved only after adding item

We run a B2B webshop in Magento 2.3.5 and customers have to log in to be able to add items to the cart (Amasty Hide Price-module). However we are experiencing problems with disappearing carts: ...
0
votes
0answers
34 views

Magento 2: How to unset existing custom option and set new custom option and add product in cart programmatically

I am using Magento 2.3.1, and I have products which have one custom option that is required. Now I have create a custom controller to add product in cart without existing custom options as sample ...
0
votes
0answers
11 views

Magento2 - How to create Text Field On Cart Page and Save data in Sales Order?

How to create Custom Text field on Cart Page ? And how to save that value After Checkout text field value save in Sales Order?
0
votes
0answers
17 views

Remove custom options only from cart item

I want to remove only the custom options added with the cart item without removing the product. Is there any solution for this? I am using Magento 2.3.4 version.
0
votes
0answers
28 views

Refresh checkout cart after adding cross selling items

We have a Magento 2.3.5 with a simple custom theme. In the normal checkout card (not mini cart!) there are some cross selling items beneath. If a customer presses the .to-cart button on such a cross ...
0
votes
1answer
35 views

Urgent help - Place Order button is not working on click. Nothing happens and no errors logged for Magento 2.4.0

I am getting complaints from few users that when they go to Checkout and click on "Place Order" button nothing happens. I tried adding lots of debug and system logs but no errors or issues ...

1
2 3 4 5
44