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

Need to get Customizable option title & values from array in quote

From quote I got array of customizable option. How can I retrieve it's title & value $quote = $this->_cart->getQuote(); $cartAllItems = $quote->getAllItems(); foreach ($...
0
votes
0answers
5 views

Magento 2 - Can not add grouped product child to cart

In Magento 2, I have a grouped product with 3 childs. Child 1 and Child 2 are out of stock. Child 3 is in stock. When I try to add Child 3 into cart, there is an error about the two other product ...
0
votes
1answer
15 views

Magento 1.9 I need add qty in category page and mask should not load

My template used ajax cart this code in my category page(list.phtml) <a href="<?php if(!Mage::getStoreConfig("ajaxcart/addtocart/enablecategory", $code) && !Mage::getStoreConfig("...
0
votes
0answers
8 views

Save custom data to ('checktout/session') when product added to cart and remove when removed

Save custom data to ('checktout/session') when product added to cart and remove when removed So i need to add custom data for each product when customer adds it to card and remove it when customer ...
0
votes
0answers
12 views

Add Increment and Decrement Button After Clicking Add To Cart on Home Page Products

I would like to call an event where the add to cart button is clicked and switches to an increment and decrement button. I cannot find the file which I can edit to do this. I'm not using any modules. ...
0
votes
0answers
24 views

Magento2 - How to add up-sells block in to cart page?

How to add up-sells block in to cart page for every item? I have added in checkout_cart_index.xml. <block class="Magento\Catalog\Block\Product\ProductList\Upsell" name="product.info.upsell" ...
0
votes
0answers
27 views

Magento 2: Add custom field on cart summary section

I want to add the address type radio button(Office and Home). On Cart Page, under the summary section so can anyone has a reference link for this? Also the value of field will store in database when ...
0
votes
2answers
33 views

Magento 2 - Load image of group product for simple product

I created a group product which has two simple products. I did not upload an image to the simple product, only to the grouped product. If I add a simple product into the card, then no images loads: ...
0
votes
3answers
43 views

How to auto remove items from cart after 1 day - Magento 2.2.4

Guest / Logged-in user: Auto removes items from the cart after 24 hours. Canceling and returning from the payment page auto-remove cart after 24 hours.
0
votes
1answer
47 views

Magento 2.3: My layout handle is not working in email template

I had created the custom email template in that I declared the layout handle email template it is not working what can I do for it. I passed the data from the controller but the email is not coming ...
0
votes
1answer
11 views

Move an inactive quote to checkout

How to move an inactive quote to a checkout page. At some point i change the active quote to an inactive quote. But after some times the customer will use this inactive quote and proceed to checkout. ...
0
votes
1answer
22 views

Magento add to cart via GET

I have the following problem: I need to add products into the cart with for example: http://host.com/checkout/cart/add?product=2&qty=5 I have tried to create a module to "catch" the GET request ...
0
votes
1answer
25 views

After upgrade to Magento 2.3 - js error in arrays.js in cart and checkout

I am updating an e-commerce with Magento, from version 2.1.18 to version 2.3.4 (I have verified that it also happens by updating to version 2.2.11). Everything went well, but when I add a product to ...
0
votes
0answers
23 views

How to show the cart products in email template - Magento 2.3.4

How to show the cart products in the email template i can't loop into email template, and i can't pass the products into email template, I want send mail with the current cart products so I'am working ...
0
votes
0answers
9 views

Apply Cart Promo Rules on backoffice created order

I'm having trouble with backend created orders. As the shopping cart price rules such a gift item are not applying .. Is there a workaround in order to call their execution in such context ? Thanks ...
0
votes
0answers
7 views

How to make card bag in margento

I m making new Mobile app and backend. A card/character collecting game where you can sell, trade, auction cards for in-app currency that can be exchanged to real money. Some characters will be but ...
0
votes
1answer
35 views

Magento 2: How to show the number of cart items in a custom phtml using KnockoutJS?

I'm trying to get total number of cart items in my custom_header.phmtl. But I'm unbale to get the result. I've tried using KnockoutJS. I added minicart UI component to my block, which allowed me to ...
0
votes
0answers
19 views

Magento2.2.3 Display added product qty for each product under add to cart button in category page

I really wanna have the same feature like this. Magento 2 - How to display the quantity of each product in cart under the add to cart button in the product tile But I can't find the correct solution. ...
1
vote
1answer
94 views

Magento 2 varnish Checkout to cart Redirect Problem

Preconditions 1.Magento 2.3.4 2.Must Varnish Enable Steps to reproduce 1)Do not add any product to the cart. 2)Directly go to https://www.sample.domain/checkout/ 3)Because No product in cart ...
0
votes
2answers
39 views

Magneto 2.3 - How to redirect when customer click add to cart button with out logged in

I want to redirect the customer when they click Add to Cart without logged in. I had done some action or event with this below code but it is not working.I had tried it is showing oly the error ...
0
votes
1answer
22 views

Magento 2 - How to format cart item price?

In magento 2, I don't know how to format cart item price. I have a price format like this : £1,522.58 and I want this format £1522,58 I succeed to change the format of the total cart price by ...
0
votes
1answer
48 views

Magento2.3: Product level validation in cart price rule is not working

I want to apply coupon for a particular product, so I have set the coupon is valid for SKU basis and selected the product which I wanted that the coupon has to apply. Please see the below screenshot. ...
0
votes
1answer
29 views

Place custom block below cart table?

I need to place a custom block below the cart table on the cart page in magento 2. At the moment I'm only able to place it above, so it's displayed above the table AND the cart summary sidebar. Any ...
0
votes
0answers
28 views

Magento 2.3.3 : Edit product in minicart error

I am facing an error like this: when I add product have option and press button "edit cart" of it product it redirects to product detail and show error js like this: this error only in the product ...
0
votes
1answer
42 views

Magento 2 Change 'Add to Cart' button to 'Go to Cart' after product is added to cart

I have tried to achieve this using answer from the question here Magento 2 : Add to cart button change to go to cart after adding product However the button text is not changed immediately as the ...
1
vote
1answer
28 views

Enable free shipping only for coupon only

How do I configure the Magento2 can do below promotion? Free shipping with coupon code: (order >= $50)? I did google some result, some ask to enable free shipping method and set min-order-amount ...
0
votes
1answer
33 views

Magento2 - Need to change order Item by Price in email

I need to customize order Email to display items order by High to Low price. But unable to find the exact file for this. Any help will be appreciated !!
0
votes
1answer
84 views

magento 2 move inactive quote to checkout

I want to move an inactive quote to the checkout page. A customer searches for products and adds them in the cart but doesn't want to checkout on that day. Now on next day he wants to order some ...
0
votes
1answer
26 views

How to get items tax_amount in magento 2.3 collectTotals()

All data I need in my module visible in next print print_r($quote->collectTotals()->debug()); Output is show me Array ( [entity_id] => 3 [store_id] => 1 [...
0
votes
0answers
23 views

getItemById not returning the correct data

I'm trying to get the quote_item table attribute 'name' of my product inside my cart view. So I extended the default block used for the cart template and modified the template accordingly. But when I ...
0
votes
1answer
30 views

Magento2 Cart prices Multi Currency store

I have an online store with 3 different currencies. I fetch the prices of each product from an external web-service. A weird thing is happening, when I switch the currency from the store, the prices ...
1
vote
0answers
21 views

Magento2 - Remove Extra space from Shopping cart image

Here I am facing a UI issue but don't know how to solve it. In My shopping cart page my product image is getting extra space i dont know from where it is coming.
0
votes
1answer
98 views

How to redirect to cart after adding product to cart programmatically

I want to redirect to cart page after adding the product into cart, I know there is a provision in config but I have a custom product type and that config is not working for that product. That ...
0
votes
0answers
26 views

How to solve Add to cart not working in Magento 2?

Our "add to cart" button are not working... When we click on the button, the page refresh then nothing. Any ideas? https://stage.shopunder.com
0
votes
0answers
18 views

Magento 2 - Show cart items on checkoutpage

I created a new step in the Magento checkout page. I need to show the current cart details in that step. How can I do this? <div id="checkout-step-title" class="step-content" data-role="...
0
votes
1answer
29 views

How can we unset messages in magento 2?

$result->setMessage( sprintf( $this->helper->getCartMessage(), $this->stockStatus->getStockItem()->getProductName(), ...
0
votes
1answer
31 views

How to access cart total from js file in magento 2?

I want to access the cart total from js. I have minicart-mixin.js in my custom module. I want to get the cart total there. My file is minicart-mixin.js below. define([ 'uiComponent', '...
0
votes
0answers
14 views

Magento 2 to translation of variable is not working in cart page

I'm working on Magento 2.2.3 CE. I have faced one issue on the cart page while applying coupon code. The coupon code is applied properly. But cart summary it's showing like Discount (%1) instead of ...
1
vote
1answer
28 views

Cart total doesnt update after remove an item programatically Magento 2

Events.xml <event name="controller_action_postdispatch_customer_account_loginPost"> <observer name="customer_login_observer" instance="vendor\module\Observer\Customercart" /> </...
0
votes
0answers
16 views

View Magento's Rest API generated guest-cart in Store Website using URL with guest-cart id

I have a requirement to show guest-cart items(created and items added using Magento rest API) on the Magento store website to initiate checkout from the website. I tried http://storeurl.com/checkout/...
1
vote
1answer
22 views

Load product details of inactive quote

I am trying to get the details of a product whose quote has been inactive. I am getting the following error when i use the this code. $cartItem = $this->quoteItem->load($itemId); return $...
1
vote
1answer
132 views

Magento2: How to get Cart items collection on Product view page?

I want to get Cart items collection on product page. customer-data.js define([ 'jquery', 'ko', 'uiComponent', 'Magento_Customer/js/customer-data' ], function ($, ko, Component, ...
0
votes
0answers
17 views

Limit Quantity For the Products With Specific Attribute Magento2

Trying to Limit all the products with having a specific attribute (Yes/No) and others will behave normal. I have used the event in my module my event.xml <event name="...
0
votes
1answer
35 views

Is there any way in magento 2 to prevent user to add more than 1 product in cart

I want to set a limit of 1 product in the cart. Magento 2 C.E provides an option to set a limit of qty of a single product in the cart but that option allows two individual products in the cart. I ...
0
votes
0answers
46 views

how can add Proceed to checkout for single single product in cart in magento 2.3.2

Magento provides proceed to checkout button in cart and when we click it all the items in cart goes for checkout like this. And on payment page it is calculated for all products. But i want checkout ...
0
votes
0answers
12 views

magento 2.3.3 share cart accoss multiple websites

I've set up a Magento site with 5 websites each website has one store and each store has one store view. I am using subdomains for websites example: dev.test.com for default and foo.dev.test.com for ...
0
votes
1answer
34 views

Paypal Payments Pro - Transfer Shopping Cart Line Items?

I am using Paypal Payments Pro in Magento 2.3.1. I have Paypal Express checkout enabled as an alternate checkout option. First of all, let me clarify that both payment options are working just fine - ...
1
vote
2answers
37 views

How can i translate custom elements in .phtml file according to store view

I have added a tag in form.phtml file which shows on view Cart Page. <h1>Custom Cart Information</h1> which effects as Hence my store is multi-lingual when i change store view to ...
1
vote
1answer
17 views

Empty the Cart items but keep the quote and quote items

I have added a button on cart page. Clicking on the button the cart items should get deleted but the quote should not be erased.
1
vote
0answers
28 views

Excess qty adding into cart when adding product in cart with custom option programmatically

I am using this the following code to add a product in cart with custom option value. But all the time cart qty taking the value of "Maximum Qty Allowed in Shopping Cart" and then adding 1. For ...

1
2 3 4 5
41