Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Make your voice heard. Take the 2019 Developer Survey now

Questions tagged [shopping-cart]

Denotes questions related to the shopping cart in Magento.

0
votes
0answers
10 views

Rest API to get thumbnail image in shopping cart

In rest api, I am using "rest/V1/carts/1/items" method to get the magento cart items. It works well and the result is { "item_id": 1, "sku": "sk1", "qty": 4, "name": "test", "price"...
2
votes
0answers
13 views

How to apply tier price with custom option product in Magento 2

I have a product with more than 5 custom option in Magento and I want to apply tier price rules on a combination of custom option product in the cart. Ex. I have tier price rules like Buy 3 for $95....
0
votes
0answers
18 views

Magento 2 Get Seller's address from the Item/Product that is added to your cart

For example in order to get total qty in the cart, the following code can be used: $quote->getItemsQty(); For example, in order to get product details in the cart, the following code can be used: ...
0
votes
1answer
34 views

Magento 2: Cache problem Cart items drops

Have been struggling with this problem for some time now and its a bit confusing. The problem is the following that my cart drops the products added when I visit a new category on the site. When FPC ...
1
vote
1answer
33 views

Shopping Cart Thumbnails not showing

Have a little problem with my M2 V 2.3. In the shopping cart the thumbnails image is not displayed. I can see that it gets a 404 for the image and when I look ind the pub/media I can not find the ...
0
votes
0answers
24 views

Magento 2 weird error

When I click this setting icon I get this following error. 1 exception(s): Exception #0 (Magento\Framework\Exception\NoSuchEntityException): Requested product doesn't exist Exception #0 (Magento\...
0
votes
0answers
8 views

Tax is failed to calculate

I have added tax rules to my site,but the tax is not calculated , even it is not showing in the cart page while entering shipping details. I have created tax rules at backend . But since it is not ...
0
votes
0answers
54 views

Magento2 : Why I'm redirect to Empty Cart After Checkout?

I am running Magento 2.2.6. I noticed my analytics data seemed off so I went in and checked and I am only receiving about 50% of my transactions. I can see the transaction id so I have compared the ...
0
votes
0answers
21 views

Magento throws a report error when customer session expires and shopping cart persistent is active

So recently I experienced a different issue in Magento 2.2.5, related to the shopping cart persistent. Basically what happens is when a customer is logged in with a product in the cart, and this ...
0
votes
1answer
24 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
0answers
18 views

Auto selected shipping method in magento2

I want to show auto selected shipping method based on order subtotal. So customer need not to manually select it.
0
votes
1answer
31 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
22 views

How to prefill shipping details in cart page in Magento 2

I have created one custom button in cart page to save country, state, postal code which is entered by the customer. After entering the country, state, postal code the customer wish to save the the ...
0
votes
0answers
15 views

Automatic update the cart on proceeding to checkout is clicked Magento 2

I want to automatically update quantity in cart product on proceeding to checkout button is clicked on a shopping cart page. so that my values are saved without the effort to click on update cart.
0
votes
1answer
37 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.
2
votes
1answer
75 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
43 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....
0
votes
0answers
19 views

How to Change Price of bundle product option in cart in magento-2.1?

I want to set bundle option price in the cart by getting through options custom attribute. Suppose one option is the fabric of bundle product, this fabric has some custom attribute like twopiece,...
1
vote
1answer
30 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
13 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 ...
1
vote
2answers
108 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
63 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
24 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
1answer
23 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 ...
-1
votes
0answers
27 views

Magento 2 created product using rest api and price in cart shows 0

I am setting online fashion store. I am using meigee team theme. I am using Magento 2 default rest API to create the configurable products. Products are being created and it does show the price in ...
4
votes
2answers
82 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/...
0
votes
2answers
66 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
92 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
57 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
43 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 ...
0
votes
2answers
204 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
25 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\...
0
votes
0answers
56 views

cart page show this error Estimate Shipping and Tax

My cart page didn't show anything except Estimate Shipping and Tax. Please review my code and share code where I mistake. <?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING....
0
votes
1answer
43 views

Why /guest-carts/:cart_id/totals is showing wrong item price details in Magento-2.1?

When I used /guest-carts/:cart_id/totals Endpoint,It show wrong information in response. It show Item_price exclusive tax in all prices, but tax_price is showing zero. Why it is showing 0 in Magento-...
2
votes
0answers
23 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
31 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
26 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 ...
0
votes
0answers
18 views

How to show Price_Inclusive_Tax in /V1/carts/mine/ and /V1/carts/mine/items API in Magento-2.1?

I want to show Price_inclusive_tax in /carts/mine/items API in Magento-2.1 Please suggest me any solution.
1
vote
0answers
65 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
45 views

Removeing exist item during update items from cart : magento 2

I am doing some customization 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 during ...
1
vote
0answers
23 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
45 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
47 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
27 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')->...
1
vote
4answers
309 views

magento 2- get cart items for a given product id

in magento 1 done like this $quote = Mage::getSingleton('checkout/cart')->getQuote(); $cartItems = $quote->getItemByProduct($product); it possible in magento 2?
0
votes
0answers
112 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 ...
0
votes
0answers
80 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 ...
0
votes
0answers
47 views

When I used API carts/mine/estimate-shipping-address,it should return empty.Why It returns empty in Magento-2.1?

I have added some items in Cart.When I call this API carts/mine/estimate-shipping-address,It return empty array.After that,If we add one more items in cart,then hit again this API,it return carrier ...
1
vote
1answer
222 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
347 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\...