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
3 views

Magento 2 Reload checkout button on cart page

I want to disable the 'Proceed to Checkout' button when the qty reaches a specified limit. For that I am planning to add a condition check in this page module-checkout\view\frontend\templates\onepage\...
0
votes
0answers
12 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
33 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
17 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
38 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
15 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
25 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
22 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 ...
0
votes
0answers
21 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
17 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
37 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
24 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
19 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
12 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
67 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
0answers
31 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
25 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
50 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
33 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
66 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
22 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
12 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
15 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
20 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
9 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
15 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
27 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
23 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 ...
0
votes
1answer
14 views

Customizable option price not updated to cart

I have aaded some custom option like When i checked the checkbox on product details page it shows price less than 200 but when i hit add to cart it added the normal price of product not the price ...
0
votes
1answer
14 views

cart page & checkout is not working (500 http error)

I am using magento 1.9.4.My cart & checkout is working fine for guest users & logged out customers but when user is logged in then whenever he view cart or try to checkout , gets an error of ...
0
votes
1answer
21 views

Cart page showing HTTP 500 Error and Not working

I am using porto theme in magento 1.9.4.When user add products to cart then items added in cart but when user click to view cart or continue for checkout than gets 500 error. Any body know what might ...
0
votes
1answer
19 views

How to get order total including Shipping and Tax cost

I am trying to get the cart total on checkkout_cart_index by using the below code. But this code is returning cart total without Shipping and Tax. How can I get the total including Shipping Cost and ...
0
votes
0answers
15 views

how to change enquiry to add to cart?

I had changed ''add to cart '' button into enquiry then I BUILT UP a popup but I feel it is not good so I want recover my ''add to cart'' but really can not,I would love to get some help from ...
0
votes
1answer
17 views

Magento2.3 - How to add grouped product in cart using REST API?

Currently i am using Magento2.3.5. I checked documentation 2.3, there is no statement like grouped product in it.. So any one tell me how can we add grouped product in cart using magento rest api?
0
votes
0answers
22 views

magento 2.3 add custom jsLayout component in cart page (not checkout!)

in my custom module I've successfully added a jsLayout component in the checkout page by modifying the checkout_index_index.xml layout file: <?xml version="1.0"?> <page xmlns:xsi=&...
1
vote
0answers
34 views

How to set the Product Default Price while increasing or decreasing quantity in cart and checkout page in Magento 2

I don't want to increase or decrease product prices based on quantity. Please help me with how we can achieve this. Suppose Bag product price is 10 and the quantity added is 20, the price should be 10 ...
0
votes
1answer
25 views

Custom Block Not Rendering on Checkout Cart

I want to add a custom block Below Order Total using a knockout template but unable to render it on the checkout cart page. Here I have done so far. 1) checkout_cart_index.xml at app/code/Ishaq/...
0
votes
1answer
34 views

Magento2- How to add a block after Cart Total on Cart and Payment

In Magento 2.3.5 How can I add a block of code/static content after Cart Total on checkout_cart_index.xml and checkout_index_index.xml? I want this block should be observable so that if Cart Total ...
0
votes
0answers
10 views

Stop customers changing the quantity of a product at basket stage

We have 200 SKUs but for 2 of those SKUs we would like the customer to only purchase these one at a time eg they can't change the quantity but we still want the customers to change the quantity for ...
0
votes
0answers
13 views

Magento 2 : what is magento 2 equivalent of checkout/cart?

What is the magento 2 equivalent of $checkout = Mage::getSingleton('checkout/cart'); ?
0
votes
1answer
21 views

Fully truncate cart on visiting a specific URL

I'm trying to fully truncate the cart. I've override getAllVisibleItems in the checkout \Magento\Quote\Model\Quote Model But I still can visit the cart page and see the empty table of it, and the ...
0
votes
2answers
25 views

Magento 2 - Change Product Price if Custom Value is Selected

I am using Magento 2.3.6 I have on the Product Page an Custom HTML Select Field: Yes / No I want the price to Change if selected Field is set to "Yes" and keep the same price if it is set to ...
0
votes
0answers
15 views

Alternative for Cart::updateItems method

In Magento 2.4 (maybe earlier also) the class Magento\Checkout\Model\Cart is deprecated. This class contains a very convenient method updateItems which updates the qty of the items in the cart based ...
0
votes
0answers
22 views

Magento 2.4.1 If shopping cart is not empty place a Go To Shopping Cart button next to Add To Cart on Product Detail page

When the shopping cart is NOT empty, I want a button next to the Add To Cart button on the product detail page and have it go to the Shopping Cart File using to override is: /app/design/frontend/THEME/...
0
votes
0answers
18 views

product price in cart turns 0 on cart update

I've created a plugin on afterGetPrice() to live update the price of product of Simple products. Everything works fine until I update product quantity or add more product in the cart. Whenever I add ...
0
votes
1answer
14 views

Magento 2 get country Id when on change in estimate shipping on cart page

Due to some custom requirement on cart page, I need country id when someone change it using jquery. I have tried with below jquery script but its not working. <script> require(['jquery', '...
0
votes
0answers
14 views

Add a new dropdown attribute to product and display on product and check out pages

I want to add a new product attribute like sku or color option . The attribute is drop down. This i can do through admin side with out issues. But how can i display the value of the attribute in ...

1
2 3 4 5
43