A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
10 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
25 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
35 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
17 views

Need to add the cart quanity and sub quantity on the shoping cart page [closed]

<?php /** * Class RefundableAmount * * @package Emc\Packaging\Model\Total\Quote */ class RefundableAmount extends \Magento\Quote\Model\Quote\Address\Total\AbstractTotal { /** * @var ...
0
votes
0answers
9 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
10 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
24 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 ...
0
votes
0answers
14 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
24 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 ...
0
votes
0answers
23 views

Always show shipping cost in cart total summary on cart page

On cart page, How can I always show shipping cost in total summary, without filling up shipping estimation form first? Because we just have one shipping methods : flat rate shipping. Thank you!
1
vote
1answer
37 views

How can I add a Static Block between Discount and CrossSell

i want to add a block between Apply Discount form and crossell Block on Cart page in magento 2 I have tried this Code but its not working <referenceContainer name="checkout.cart.items"> ...
1
vote
1answer
67 views

plus, minus in cart page

I have the following design below, in which it has plus and minus on the cart page and mini cart page. I have achieved it in minicart but couldn't achieve it on the cart page. can someone help to ...
0
votes
1answer
38 views

Update Banner Text dynamically in Magento 2

I have a FreeShipping banner in every pate after Top of the Page after mega menu. FreeShipping banner text will change based on customer cart specific items amount and customer group. For this, I have ...
1
vote
2answers
33 views

Magento 2:- Updating table value

I want to update the value of amount column in custom database table where customer_id with value of $total. $total = $array['amount'] - $arr['base_grand_total']; $sortedData = $prepaidModel->...
0
votes
0answers
27 views

Magento 2 : Prevent Redirect to Cart Page when Place Order Error

As I know on Magento 2 when there is problem after click "Place Order" button on the checkout page, it will redirect to cart page. How I change this and create global validation to show the error on ...
0
votes
0answers
6 views

How to add delivery charges depending upon the quantity of product is in cart?

If 1.5 kg product is in cart add 2rs as delivery charge. If 1 kg product add 4rs as delivery charge. At present I have to change the delivery charges depending upon the quantity of the product, how ...
1
vote
1answer
54 views

How to Remove Disable Product from Cart

I want to delete the Disable product completely, through Observer! Programatically Like if we have a Disable Product, We have to delete it. Product is disabled an event is triggered and remove that ...
0
votes
0answers
26 views

How to Update grand Total amount on cart page Using js in Magento 2.2.6

I have added an extra fee on the cart page and its working properly and its also calculated on order total amount. but I want to show that extra fee on particular country selection. for e.g., if I m ...
1
vote
1answer
105 views

Magento 2: How to add Additional Options in cart on “sales_quote_remove_item” event observer

I want to add additional options to the next product on the sales_quote_remove_item event while removing the first product from a cart. First Product, I have already added the first product to cart ...
0
votes
0answers
8 views

How to show modal popup after click “go to checkout” on cartpage

How can i call modal popup after click "go to checkout" on cart page after on modal click go to checkout page. Is this possible to do? If so whats the best efficient way of doing it?
0
votes
3answers
48 views

Magento 2 create a button in customer account page

I want to create a button in customer account page. My aim is add a button to remove all active carts. To do this what shall I do? do I need to override any files? Please let me know if there is ...
0
votes
1answer
33 views

Update custom option in cart Magento 2

I have a simple product with a date custom option. When I click on the date a calendar opens and I select the date. After adding the product to cart, I can see the product along with the date as a ...
1
vote
1answer
17 views

Edit Magento 2.1.6 Cart Sidebar Links

I need to change the Links to which those buttons in the cart sidebar redirect. I can't find the file to edit them. I have marked in a red box the buttoms to edit My version of Magento is 2.1.6
1
vote
0answers
8 views

Magento 1.9.4.3 - Separate the same products in the cart

I would like to separate the same virtual products in the cart that are added several times by different product pages. Consequently I would like the subtotal to be calculated based on this separation....
0
votes
1answer
26 views

Add to cart button does not appear

I am working in version 1.9.2.4. I have a problem with the add to cart button when I am not logged. It does not appear in the category grid search but in the list view it does. That happened with ...
1
vote
2answers
76 views

Magento2 Cart and Checkout page is not working

I am using Magento 2.3.1. When entering the cart and checkout page, the errors appear in the console log. I am trying with an upgrade and a clear cache. but it's not working. Try with some solution. ...
1
vote
1answer
35 views

Add item to the cart automatically

Hi I'm pretty new in magento. I need to create a blank page that, when visited by a client, automatically adds an specific item to the cart in and redirects him to the checkout screen. How should I ...
0
votes
0answers
21 views

How to remove the Cart, Shipping and payment Page product price and subtotal amount in magento 2

Only i need to show the number of quantity items in the cart,shipping and payment page. if any one know the answer please share the exact code and folder structure. since i'm new to magento. Any ...
1
vote
0answers
12 views

Magento 2 Cart empty using Memcache

I am using Magento2.2.2 with memcache. Facing some issue with memcache with-out memcache adding cart is working fine and cart page showing added items. If enable memcache and configured env.php ...
2
votes
0answers
17 views

How to get the shipping rates via AJAX?

When I update the product qty in the cart page I want to have the shipping rates estimated again via AJAX, how could I call this JS method in order to do that?
0
votes
0answers
45 views

share cart is not working in magento 2.3.3

I upgrade the magento 2.3.2 to 2.3.3 after that share cart is not working. I seen the change is SID is removed in magento 2.3.3 and hashgenerator is using. anyone please help me. Thanks
0
votes
0answers
11 views

Add description and datasheet to table sales_flat_quote_item

I would like to add a description column in the sales_flat_quote_item table so that it is populated automatically thanks to the long_description field of the product. I would also like to add a field:...
0
votes
0answers
20 views

Set grand total in cart page Magento 2.3

Each Customer has few points in their account. 1 point = 1 Rupee. I want to give a textbox and a button in a cart page when the customer enters the points in the text box I want to subtract that ...
0
votes
0answers
32 views

Different price in cart

I'm using Magento 2, there is a difference in the price of the product and the subtotal, how to fix it? the actual price in subtotal.
1
vote
0answers
25 views

Cart showing minimum order amount error

My cart has a total order amount greater than $1.00 still it shows an error Minimum order amount is $1.00 As the cart has an order total of $2.62 even after applying a discount which is greater than ...
0
votes
1answer
14 views

Magento 2 - Changing reference to Cart to Basket across site

I would like to change all reference of Cart to Basket, across the site. I have changed reference to this in the .CSV but no change across the website after clearing the cache. Please advise
1
vote
3answers
38 views

magento 2 : how to display product name in cart according to store view(English/Arabic)

In the current scenario when the user adds a product from the English view on the cart page it displays product English name and when I switch the store from English to Arabic product name still ...
1
vote
2answers
105 views

Magento 2 pass php session variable to minicart & hide proceed to checkout

I would like to pass a PHP session variable flag to mini cart-mixin.js dynamically. I followed the below steps mentioned here using the Config Provider concept I am able to pass variable to only cart ...
1
vote
1answer
44 views

Magento2 hide proceed to checkout button on cart page

Need to hide proceed to checkout button on the cart page when session variable set Need to add one more button PROCEED TO APPROVAL below the Proceed to checkout button on the cart page. Followed ...
0
votes
0answers
16 views

Magento2 How To Update Cart Subtotal After Checkout cart page is load

Does anyone know how to update cart subtotal after checkout cart page is loaded?
0
votes
0answers
25 views

Discount code shows in cart but not checkout Magento 2.2.5

We have a cart price rule that applies a discount to a certain product (e.g. if item found in cart with brand 'Nike' then discount 'Nike' product 10%). A customer goes to checkout/cart/ the discount ...
0
votes
0answers
35 views

M2: Child theme checkout cart XML ignored

I've been banging my head off a brick wall on this so I'd like to double check if I'm going about this the wrong way. I have set up a child theme, and have applied that to a store - all of the child ...
1
vote
0answers
15 views

Magento 2 - Empty Cart and Quote behaviour

When the session quote has no visible items should it be set as inactive or still kept as active? Does anyone know how to do it? Thanks in advance.
0
votes
0answers
243 views

Uncaught SyntaxError: Unexpected end of JSON input - Add Product in Cart in Page Product

VM82534:1 Uncaught SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at getData (main.js:58) at Array.map (<anonymous>) at HTMLDocument.apply (main.js:...
0
votes
1answer
34 views

Show Quantity as Item in Cart

I would like to display total quantity of items in cart in the minicart. Basically, we sell items in multiple quantities inside a box, if a user adds 1 box, technically they are adding 10 items. 1 box ...
0
votes
3answers
75 views

Unable to redirect to cart page from observer?

Here is the code, please review and advise. Demo/Test/etc/frontend/events.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
38 views

Cart items empty inside plugin for Configurable Product

I have tried many methods to get cart items inside plugin for "Magento\ConfigurableProduct\Block\Product\View\Type\Configurable" . I am trying to add additional cart item data to the "getJsonConfig" ...
1
vote
0answers
32 views

How to get Custom Attributes in Carts Item REST API?

End Point: /rest/V1/carts/mine/ Added Custom Attribute Name: Unit Type: Dropdown Response: { "id": 10, "created_at": "2019-10-19 10:23:20", "updated_at": "2019-11-01 09:27:51", "is_active":...
0
votes
1answer
35 views

Magento 2: Cart price rule condition programmatically

I have a cart price rule whose id is 5. This rule applied for all customers and no condition applied to this. I want to make a condition on this rule is False when the payment method is ...
0
votes
2answers
47 views

Add each product items separately to a shopping cart

I want to make adding to the shopping cart as a separate item on every action of clicking to a button Add to Cart. If the customer clicks Add to Cart a couple of times he/she should see different ...