Questions tagged [shopping-cart]

Denotes questions related to the shopping cart in Magento.

Filter by
Sorted by
Tagged with
0
votes
1answer
58 views

How to enforce minimum quantity for a given sku?

I am seeking a way to enforce minimum order quantities for an individual SKU. This is for a member's only wholesale only website. Example: SKU: X6T, which has four color options (red,white,blue,amber)...
0
votes
1answer
116 views

How to show Clear Shopping Cart in magento 2

I wish to show Clear Shopping cart button in cart page. In default magento it was display:none, So need to show only Clear Shopping cart button as mentioned like below image. Where I need to ...
0
votes
0answers
694 views

How to display discount amount on shopping cart page magento 2 custom theme?

Actually i want to display discount amount once we apply the discount code in shopping cart page magento2 in custom theme.Please guide me if anyone have any idea.
3
votes
1answer
935 views

Hide State/Province from Estimate and shipping tax from cart page magento2

How to remove State/Province field from the cart page? I tried using jquery to remove it, that didn't work for me. <script> require(['jquery', 'jquery/ui'], function($){ $(document)....
0
votes
1answer
424 views

Country drop down is empty magento2

I have set default country as UK in admin, after the configuration is done, In checkout one empty drop down is showing before the UK country. so I have used below plugin to remove that empty dropdown....
1
vote
1answer
312 views

Magento 2: Add button next to “Shopping Cart” title

When viewing my shopping cart there is an header "Shopping Cart", looks like this: How can I add an button (or just a "a href link which has div inside it" would also be good enough) in that header ...
0
votes
1answer
31 views

M1 - Remove shipping cost calculation from shoppingcart

In Magento 1 i want to hide the shipping costs from the shoppingcart view. So the totals that are visible should be without the shipping costs. Only when someone chooses to get the order delivered in ...
3
votes
2answers
2k views

Magento2 move coupon code inside summary

I am planing to move the coupon code section inside the summary page,before that i have moved the summary-section under the item list, and moved the cross-sell section next to summary-section. Now i ...
0
votes
2answers
1k views

Apply discount Block moving issue in magento2 cart page

I need to move apply discount block to the summary block in cart page. I have used below code in Vendor/Module/view/frontend/layout/checkout_cart_index.xml <move element="checkout.cart.coupon" ...
0
votes
1answer
82 views

Products can not be added to cart by click “Add to cart” for second time

I have Related products block in my product description page. I have configured a particular product's Minimum Qty = 5. So users can only buy products in multiples of 5. Below is the screenshot of ...
0
votes
2answers
300 views

Magento 2 Redirect shopping cart link on message notification in iframe

I can not redirect to the shopping cart link outside the iframe. It still redirect but it stays in the iframe. magento 2.2.6 when i click shopping cart result : I want it redirect to shopping cart ...
4
votes
2answers
184 views

Adding AddToCart link to facebook shopping page

I have a Magento v1.9.2.3 webshop and I'm also adding my products to my Facebook shopping page. I thought I could use the form action url from my webshop as the payment url in FB shopping: my-webshop/...
2
votes
2answers
3k views

How to pass data from PHP to JavaScript component

I've overridden the grand-total element in checkout_cart_index layout and in my custom component JS I need to get the data that I have in a PHP class with a specific logic. How can I get the data ...
0
votes
2answers
611 views

Magento 2 Shopping Cart add Images and Text below Proceed to checkout button

I want to add some text and images below proceed to checkout button on cart page but I am not able to find the file so that I can add my classes and images as well as text. Please suggest me in which ...
0
votes
0answers
441 views

Magento2: Create a new order from Admin panel for particular customer

Create a new order from Admin panel for a particular customer. Magento default functionality is not working When I add a new product and update to the shopping cart option then page refresh but the ...
3
votes
1answer
230 views

Gift wrap still showing when disabled in Admin

I met an issue when using gift wrap of M2. I added gift wrap in Shopping cart, then I disabled that gift wrap in Admin but it's still showing and applying amount into cart like the below image. It's ...
-1
votes
2answers
2k views

Exception #0 (Exception): Notice: Undefined variable: context in

Exception #0 (Exception): Notice: Undefined variable: context in /home/dukaania/public_html/testing2/app/code/Sugarcode/Test/Model/Total/Fee.php on line 37 <?php /** * Copyright © 2015 Magento. ...
0
votes
1answer
29 views

Shoping cart page fee value return 0

I want to retrieve database value in cart page but it shows 0. Please review my code. app/code/Sugarcode/Test/Model/Total/Fee.php /** * Collect grand total address amount * * @param \Magento\...
2
votes
0answers
28 views

Shopping Cart not loading while there are 1000 items in cart ( Magento 1 Enterprise )

My Shopping Cart is not loading while i put 1000 different items in cart . I know it seems odd but we have customers that do that , its a wholesale website . I did change the value of the default ...
0
votes
0answers
164 views

Magento 2: How to fetch data from custom table and show in Cart page [duplicate]

Magento 2: How to fetch data from a custom table and show in Cart page I want to show custom table data values in cart page and add those values in total. Please help me with some tutorials or code. ...
1
vote
1answer
28 views

I need to know that how can I add multiple vendor cost customization on shopping cart page

Basically, I have 5 vendors so I need to add shipping cost like this. If any customer selects one product from the first vendor then price added 15 dollars. And if user select product from any other ...
1
vote
0answers
85 views

Magento2: How to apply cart rules by condition?

I have accessories category products. If I add only accessories category product in the cart then apply to no free shipping for accessories category products. If I add accessories category product and ...
4
votes
0answers
303 views

Magento2 - Removing exist item during update items from cart :

Magento2 - I am doing some customisation work on cart page. I want to add product multiple times with same configuration during update items. Add to cart is working good but existing items get removed ...
1
vote
0answers
29 views

Cart price not updated on cart page - Magento 2.1.7

Cart is not getting updated when the product price in the cart is changed from the backend can you please help!
0
votes
2answers
65 views

Unable to get shopping cart data on Success.phtml

On the order confirmation page, I am trying to pull all the values of the items involved in the completed purchase, so they can be injected into a tracking iFrame. I found this code online, but it ...
7
votes
1answer
78 views

$block Class Some Method is won't appear in get_class_methods() call

I am working in \success.phtml file, with the final objective of placing a tracking iframe on the confirmation page. <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt ...
0
votes
0answers
79 views

how to remove item from cart after 10 Minutes using cron job

i have tried to delete item from cart after 10 Minutes but it does't work ` $productCollection = $objectManager->create('Magento\Catalog\Model\ResourceModel\Product\Collection')->...
2
votes
4answers
998 views

Magento 2- get cart items for a given product ID

In Magento 1 it's done like this $quote = Mage::getSingleton('checkout/cart')->getQuote(); $cartItems = $quote->getItemByProduct($product); Is it possible in Magento 2?
0
votes
0answers
247 views

“The required options you selected are not available.” in cart in Magento-2.1?

Bundle option id is change every time,when i will any change like add some option or remove some option.Suppose I have one bundle product in cart before changes.After bundle product changes, Carts is ...
2
votes
0answers
175 views

Magento2: How to get cart rules applied product details on product view page and cart page?

I want to display free shipping product promotion message on product view & cart page. But I cannot be getting promotion details. Magento2: How to get cart rules applied product details on ...
1
vote
1answer
717 views

Trigger Proceed to checkout button in Magento2

I need to execute my custom code on clicking proceed to checkout button. Can we trigger the action, I need to insert quote Id with some other details to custom table. How this can be done, is there ...
1
vote
3answers
2k views

Disable “Proceed to Checkout” button on cart page magento 2

In my custom module I have to check some conditions and have to disable "Proceed to Checkout" button from the Cart page. I know it's coming from magento\vendor\magento\module-checkout\view\frontend\...
1
vote
1answer
467 views

Magento 1.9 : How to add product with discount automatically in the shopping cart?

Hope you're all doing well. I need some guidance in how or if some tool already exist for this: If an specific product enters the shopping cart, automatically one other specific product appears in ...
2
votes
2answers
3k views

Magento 2 Custom remove item from cart button

I am trying to create a custom button to remove items from the shopping cart. I've tried the following code <a href="<?php echo $this->getUrl('checkout/cart/delete', array('id' => $this-&...
1
vote
1answer
953 views

I want to clear Reports->Marketing->Products in Carts,Abandoned Carts from admin panel in magento-2.1.How to achieve it?

I have deleted all customers, orders from admin panel. But I also want to delete "Reports >> Marketing >> Products in Carts, Abandoned Carts" from admin panel in "Magento 2.1". How can I do that? ...
2
votes
1answer
2k views

Magento 2 Load REST API cart quote on frontend via URL

I want to load a previous generated quote in magento 2 using REST API. Directly on frontend using custom URL like "/myurl/cart/index" that should redirect to "/checkout/cart" with the products loaded. ...
1
vote
0answers
74 views

Magento 2 - Shopping cart items order

I am trying to reorder the sections on my shopping cart page. This is what I currently have: And this is what I am trying to achieve: I need to add the cart totals inside \my-theme\...
0
votes
2answers
388 views

Debug problems on Mage::getSingleton('checkout/cart')->getQuote()

I'm investigate a compatibility problem with two m1 extensions. For this I need a simply output of any information I can get about Mage::getSingleton('checkout/cart')->getQuote(). I have tried ...
4
votes
3answers
7k views

How to update cart qty using ajax Magento 2

How to update cart qty using ajax magento 2 I want to change qty on cart page. I don't want to use the update button. It should be update automatically without reloading the page.
0
votes
1answer
216 views

When press browser back button cart is empty

Its my first question so I am very excited to become part of this big community. I am experiencing an issue with the cart.The point is when I press the browser back button after adding some product ...
1
vote
1answer
314 views

shopping cart item price turns zero when “checkout/cart/” page is viewed in magento1.9

The price in the shopping cart turns zero when "checkout/cart/" page is viewed. It worked fine before. This issue occurs suddenly without any change/update. It showing the correct price in product ...
2
votes
1answer
477 views

Magento 2 : Check before Cart Price Rules Applies

I have been looking for event || Plugin || Whatsoever !! I have a rule that will apply to the customer only one time, without using coupon code. I am willing to add some conditional statements ...
0
votes
2answers
327 views

Allow only specific number of quantity products per cart

I have to allow only specific numbers of total quantity products in cart. For example i have to allow total 10 products per cart. it's doesn't matter to specific product, products from specific ...
0
votes
1answer
38 views

inconsistent shipping charge calculation in cart page

Enabled shipping charge in my Magento1.9 store is table_rate and in store pickup. If As a login user I have added few items into my cart and logout. I login again and moving to cart page. It is not ...
3
votes
1answer
615 views

Extension attribute for shipping method in Magento 2

I want to display some custom message from admin in front of my custom shipping method. in extension attribute not set individually in shipping method for custom shipping method of cart and checkout. ...
1
vote
2answers
2k views

How to clear item in cart in frontend web page programmatically?

Using magento 2.2, I need to remove all items in current cart while going to other root category on my front page. I want some advice for coding this event.
7
votes
3answers
752 views

Disable cart sharing between different Stores of website in Magento 2?

My website is with Three different Stores and I'd like to disable the cart sharing feature between stores. So when I switch from one store to the other store, the product in my cart shouldn't be valid ...
1
vote
4answers
533 views

magento2 Only single product in cart [closed]

I want to do following in Magento 2 Only one product in an entire cart If the cart is not empty and I add a product to the cart then product in the cart will remove and newly added replace it(a ...
1
vote
2answers
2k views

Magento 2: How to replace minicart icon

How can I replace the minicart icon when using a custom theme?
1
vote
2answers
915 views

Magento 2 + How to share cart for guest users between multi websites

I have a magento 2 website where I want to share cart between websites (for logged in users and guest users). For ex. guest user added product1 to the cart from website1 and now user switches to ...

1 2
3
4 5
11