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

Question related to the shopping cart: adding/removing products, shoping cart price rules, the appearance of the shopping cart page.

0
votes
0answers
13 views

Add to cart url without going to checkout

From an external website I would like to send my customer to a specific product page with one product already added to cart. I am not able to change de code of the website and need to do it via URL. ...
0
votes
1answer
42 views

Can't add a product to cart

in my store I have some configurable product and other simple product. No problem until this morning. I can't add any product in my cart anymore. I don't know why, I have only this exception : &...
-1
votes
0answers
29 views

product price shows 0 after added to cart in magento2.2.6?

product price shows 0 after added to cart in magento2.2.6 please see the below pic clear understanding for clear understanding actually i give the product cost Rs.400/- after added to cart it ...
1
vote
1answer
38 views

How to auto update Subtotal, Total in cart when I update product qty?

As when I change product qty in shopping cart, total and subtotal value must change without clicking on Update Shoping item button
0
votes
1answer
24 views

Condition to add a product to cart

I have to product : ProductA and ProductB. I want to hide ProductB from the catalog and show it only on the ProductA page. But, the user can't add to cart the ProductB if the ProductA is not added ...
1
vote
0answers
16 views

Shopping Cart Rules for Mixed Products

How do I get items in the cart to apply discount if some product attributes are different, to explain. I have this rule set up for a 4 for £10 promo: If ALL of these conditions are TRUE : If total ...
0
votes
0answers
23 views

How do I set simple product name instead of configurable into cart,checkout Order summary , mini-cart and also order and email in Magento2?

I already used this answer but this answer is just half answer to my question- How do I get simple product name of configurable into checkout Order summary? I need to get the simple product name of ...
0
votes
2answers
25 views

Removing Cart items - Observer

I have added a custom product attribute with yes/no options. I need to delete products if 'no' attribute option is selected. I have successfully removed cart item using "...
0
votes
0answers
16 views

Ask if user want to add another product (up selling ?)

I have two issues : I need my user to add one product (1) on his cart. Then, when this product is added, I want to ask if the user wants to add another product (2) The product (2) is available only ...
0
votes
0answers
9 views

Magento1 In minicart twice product issue

I have used in magento1.9.3 if any product addtocart after mini cart twice product added but if go to cart page there only one product display so i am not figure out where is issue so if anyone facing ...
0
votes
0answers
11 views

Cart Price Rules Applied Per SKU not to entire Quantity in Shopping Cart

I am trying to set up cart pricing rules so that volume discounts are applied per product in the cart not to all items in the cart. I'm not seeing how to do this. I only see how to apply a volume ...
0
votes
1answer
28 views

Create order programmatically with UPS shipping method

I'm trying to get available shipping methods and create an order in model. I have Flatrate and UPS enabled, and see these options in checkout on frontend. Particularly, list of available methods is ...
0
votes
0answers
12 views

Magento 2 load cart page as ajax

How I can load cart page as Ajax? I create a controller and try to show cart block like below echo $block=$this->_view->getLayout() ->createBlock('Magento\Checkout\Block\Cart') ...
0
votes
2answers
44 views

Shopping cart is not clearing on the cart page

After I updated from Magento version 2.2.3 to 2.2.6 the shopping cart stopped clearing after I click "Clear Shopping Cart" on the cart page. After I click the button, the page reloads but everything ...
0
votes
0answers
28 views

Magento2 : How to add a custom option to Item in cart

I have product with a custom option. On the event checkout_cart_product_add_after, I want to assign to this option some value programmatically. If the option has been set by the customer in product ...
0
votes
1answer
28 views

custom table data fetch and show in cart page

I want to fetch custom table data and show on cart page. Don't need to do from customer id (session). Please review my code and give me a solution. Here's my code: /home1/dukaania/public_html/...
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\...
3
votes
1answer
32 views

Found this error does not extend \Magento\Framework\DataObject

Facing this error Exception #0 (InvalidArgumentException): Sugarcode\Test\Model\Fee does not extend \Magento\Framework\DataObject Here's my code /home1/dukaania/public_html/testing2/app/code/...
1
vote
0answers
23 views

Change price before rendering payment gatway in magento 2

I need to change price of product, before rendering the payment gateway in magento2. I have two conditions to change price for particular states with_in state Price and out of state price. SO, we ...
1
vote
2answers
29 views

How to edit cart item in Mageto 2 REST API?

How to edit cart item in Mageto 2 REST API ? I am adding product in cart using below API. http://magento.host/index.php/rest/default/V1/carts/mine/items method : POST Authorization Bearer <...
0
votes
0answers
15 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
38 views

I want to replace the static code of model to dynamic

Please someone review my code and make necessary changes in it. Basically, i want to replace my static code to dyanmic in model. Here's my code: /home1/dukaania/public_html/testing2/app/code/...
2
votes
0answers
13 views

custom table data show on shopping cart page

Can any one please guide me how can i show custom table data in shopping cart page. Any tutorial or any guidance will helpful for me, please let me know.
0
votes
0answers
8 views

how to fetch data from custom table and show in cart page

i want to fetch data from custom table and show in cart page. Please give me a code or any reference or any extension need serious help. I just create a module for show data in cart page but data is ...
0
votes
0answers
18 views

Removing Item from Checkout returns Blank Screen - Product not removing

In my Company's Magento Community 1.9.3 store, when I try to remove an item by clicking the X button, it redirect me to this link: http://yourstore.com/checkout/cart/delete/id/<product_id>/...
2
votes
0answers
19 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
20 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. ...
0
votes
0answers
29 views

want to show values in shopping cart page from custom table

Want to show values in the shopping cart page from the custom table. So I need any tutorials or extension or any code please help me anyone.
1
vote
2answers
32 views

magento 2 cart, product array

I want to manipulate the products showing in my mini cart. I have configurable products, now i want to show only 1 parent configuration with color White if the customer has added Color white with size ...
1
vote
1answer
33 views

Cart, login, one step checkout slow before cleaning cache

I have a very rare problem. The cart, the backend, the one step checkout takes a lot of time, more than a minute and only can be solved if I cleaning all the cache... but I do and after 30 minutes the ...
1
vote
1answer
20 views

Quote discounts by applied rules

I need to get cart rules applied to a quote, with the discount amount related to them. Say I have the following: **Rule 1**: Buy 2, get 1 free on product 1 **Rule 2**: 10% discount on all products *...
3
votes
1answer
66 views

Magento 2 | Mini Cart has items but cart is empty | Session problem? | Double clicking on “Proceed To Checkout” redirects to an empty cart

I have a weird problem where my mini-cart is showing that there are products in the cart, however, cart is showing empty. Also, when refreshing the checkout a few times, it redirects to the cart with ...
1
vote
0answers
41 views

Custom total (surcharge) added before subtotal but tax is to low in Magento 1.9

I have added a new custom subtotal to my totals in Magento CE 1.9.3.9. Each item in my shopping cart may have a different surcharge to avoid losses due to fluctuations in value. This is common in the ...
1
vote
0answers
21 views

Is there any default quick order extension for magento 2 enterprise codebase?

I tried to install the b2b quick order extension in magento2 with composer method, but it does not seem to work. Let me know if there any default Magento quick order extensions.
3
votes
2answers
74 views

Magento2 REST API - Cannot create cart/quote for customer

I am building a shoppingcart using the Magento2 Rest API and I want to create a cart for a customer and (if not logged in) for a guest. For guest carts is it working: Create a guestcart: POST ...
1
vote
2answers
48 views

Magento 2: change the design of minicart and cart popup

I am having png image. It should be act us mini-cart and i need to change the design of cart popup. I don't know the paths for that.
2
votes
1answer
43 views

How to prevent cart empty after checkout payment failure in magento 2.2.5?

In Magento 2.2.5, after payment failure cart is going empty. I want to keep this, that if payment failed cart will not be empty, that will show last cart items. I'm using the PayUMoney Payment Method....
1
vote
0answers
29 views

Magento 2 Product quantity showing empty on Update Product details page

Step to reproduce Add product to cart Go to cart page Click on Edit item parameter. Qty box value empty. Any help would be appreciated!
0
votes
0answers
15 views

Magento 1 Hide Tax

How to hide the tax from cart,checkout and also from emails? I still want the tax to be included in the final amount, but not shown in the cart, checkout and also in the email invoice?
1
vote
1answer
21 views

Magento 2 Extension Extra Fee based on Shopping Cart Price Rule

Magento provides by default Discount using shopping cart price rule. I want to create the same rule to Add Extra fee in this discount rule. I have added one extra field(extrafee) in salesrule table ...
1
vote
1answer
52 views

Remove items from cart after 30 minutes - Magento 2

I would like to remove items from cart for both logged in and guest shoppers.
0
votes
2answers
36 views

How to get quantity of each product in cart magento 1.9

After added products to cart, we can get all qty in cart. But I want to get qty of each product, how to do? Thanks. This is my cart I added product. I want to get qty of each product, example: ...
1
vote
1answer
47 views

Adding a modal after adding to cart [duplicate]

What would be the best way to create a modal after adding a product to cart (Showing "continue shopping" or "checkout")? I though about using just JS with event. But, I don't know how to concile this ...
1
vote
0answers
50 views

Magento 2 checkout page showing “No items to ship found in rates request” error

I'm new in Magento. I have purchased a theme and setup it. After that, I have uploaded some products, but I can't complete the order process. When I tried to order it showing below error in ...
0
votes
0answers
9 views

date from product page is in the cart minus one day

Datepicker is inserted in the main info product page, so far all good, when clicking on add to cart the date is not taken as it is shown on the product page, it is minus one day. What can I do? Tried ...
1
vote
1answer
55 views

Remove apply discount code from Cart

How do I remove the discount code from the cart ? There are loads of examples of how to remove it from the checkout but I also need to remove it from the cart.
4
votes
1answer
71 views

Magento 2 No such entity with cartid = help!

I'm experiencing this error on my site quite often: Exception #0 (Magento\Framework\Exception\NoSuchEntityException): No such entity with cartId = It's not using multiple stores, so the entity_ids ...
0
votes
1answer
17 views

Magento 2 | Get number of items in cart

I am trying to get items qualntity from car. I tried using this but it game not expected result: <?php $helper = $this->helper('\Magento\Checkout\Helper\Cart'); echo $helper->getItemsCount(...
0
votes
2answers
59 views

Magento 2 Mini Cart values with Full Page Cache

Running Magento 2.1.10 CE, with multiple stores. We have all the cache enabled, with Full Page Cache running with Varnish. Having an issue with the minicart values since enabling cache Steps: 1- ...
1
vote
1answer
63 views

Magento 2.2: (API) set UserContext user type to customer during token creation

I've been struggling with the following scenario: i have a custom API endpoint to process the guest to customer login. This endpoint basically does the same thing as /integration/customer/token with ...