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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

0
votes
2answers
27 views

Display product on checkout/cart when empty

I would like to display products on site.com/checkout/cart when there are no items in the cart because a lot or visitors click the cart button without having a product in there. The current code of ...
0
votes
0answers
24 views

GET products for my cart with customer token

I want to insert items in a cart using a customer token. I already found how to insert the products but it needs the SKU of the products. The problem is I can't find a way to get the product's SKU ...
0
votes
1answer
32 views

Customer logged out when clicking 'Go to checkout' from basket

Customers are being logged out when they click 'Go to checkout' before the basket page has fully loaded. It also looks like guests are having their basket emptied when they follow the same process. ...
1
vote
1answer
29 views

Fatal error: Call to a member function … on a non-object

I need help with the following error: Fatal error: Call to a member function getno_cart_button() on a non-object in /var/home/hifi-studio_at/www/app/design/frontend/default/theme582/template/...
1
vote
0answers
20 views

Changing order of shopping cart totals is not working after changed the sequence from admin panel

I appreciate your solution for resolving my problem. I have changed the cart totals sequence from my admin panel but it is not reflecting on the front end. Steps for changing a sequence from admin ...
0
votes
0answers
62 views

CE 1.9.3.x: Customer cart (quote items) not merged correctly on login (new cart is replaced instead of merged)

I think I have found a strange bug with the cart in Magento 1.9.3.x which causes customers to lose their cart contents when they login. Any help or insight towards fixing this would be great! Steps ...
0
votes
0answers
13 views

Magento 2 how to run reindex for single product or some cart line products

Is there any way in magento to achieve to reindex only single product or some items. I have a inventory existing /update call on product page load and cart page load. Right now doing indexing for ...
1
vote
2answers
53 views

Programatically update cart item quantity

Below is my code: namespace Ves\Productlist\Controller\Cart; use Magento\Quote\Model\QuoteRepository; class CartUpdate extends \Magento\Framework\App\Action\Action { protected $quoteRepository; ...
0
votes
0answers
14 views

Estimate Shipping section is not retained after Update Basket

I upgrade my Magento store from 2.1.7 to 2.2.5 and I faced an issue on cart page. When adding a product to cart and go to /checkout/cart/, In shipping summary section update the shipping country, ...
1
vote
0answers
19 views

How to override the cart block in magento 2? [closed]

When I try to override the cart block, the front end templates on the cart page disappear except the header and the footer.
0
votes
0answers
17 views

how to use estimate-shipping-methods api

How i can use this API URL Without adding product to cart? "rest/default/V1/carts/mine/estimate-shipping-methods" I check on checkout and find should pass address id for collect MG shipping ...
0
votes
3answers
35 views

No photo for configurable product in cart

After added product to the basket no display photo for configurable product. In magento photo have only main product. Sizes no have photo. (simple product work perfect). @ update I dont know why ...
0
votes
0answers
12 views

Making addToCart and cart page execute synchronously in magento 1.9

I am a complete newbie in magento, javascript and php So I am using magento 1 and my checkout page takes around 1 sec and cart page takes around 1.5 sec to load I want to decrease the time these two ...
0
votes
0answers
25 views

Magento 2 : Add Edit Cart Link on Checkout Page

I am trying to add Edit cart link on checkout page but it is not working. I am using onepage checkout extension of Webkul. I am using below code: <div class="secondary"> <span id="...
1
vote
0answers
14 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
0answers
17 views

Magento 2 products are not being added to cart

Does anyone know why this would be happening. My SSL cert is not installed correctly, can this be an issue? If not what can it be? I am taken to the cart page but it's empty.
0
votes
0answers
10 views

Split cart in magento according to item

I wish to wish split my cart according to the item. At a time I want to checkout with one product.For multiple products, cart will split into multiple carts and user at a time can checkout with one ...
1
vote
1answer
38 views

Remove tax from cart per default

I have tax rules for 1 US state in my Magento store configured. If shipping goes within our state, then the tax will be applied, for all other states the tax will not be applied. The problem is when ...
0
votes
2answers
19 views

Magento Checkout per product

I need a solution for checkout per product. In my website there is two type of product Heavy and Normal. For Heavy we using Fedex. For Samll we using Southeastern. Now on cart page I want to button ...
0
votes
1answer
25 views

How to change item custom option in cart

I have products with custom options. One of these products options must be updated just after product has been added to cart. I then created an event launched just after ...
0
votes
0answers
14 views

Show discount including tax, calculate discount excluding tax

I want to display the discount amount including tax on cart overview page (totals summary). Magento 2.1.8 Relevant settings: Catalog prices: Excluding tax Apply Customer Tax: After discount Apply ...
0
votes
1answer
44 views

Show Item total Weight Cart summary Magento 2 [duplicate]

I need to get the total weight of products which are added to cart in Show Cart summary Magento 2 How can We achieve this? Thanks in advance.
0
votes
0answers
16 views

Magento 2 checkout cart shipping method name i just want to do some changes

Magento 2 checkout cart shipping method name I just want to make some changes from where the shipping method name is populating data. /vendor/magento/module-checkout/view/frontend/web/template/cart/...
2
votes
2answers
83 views

Magento 2 how to get custom attribute value in cart page and mini cart

Please help me out on this Magento 2 how to get custom attribute value in cart page and weight in mini cart Thanks in advance.
1
vote
1answer
22 views

Add multiple products to cart

I am able to get my last order thanks to this code: $collection = $this->collection->create(); $collection->addFieldToFilter('customer_id', $customerId); // echo "<pre&...
0
votes
0answers
15 views

Avoid exception

I'm creating a page where the user can add to his cart the products from his last quote. But when there's not enough product, I have an exception. How can I avoid to show this exception and display ...
0
votes
1answer
33 views

Magento 1: Cannot update shopping cart

I have tried to update the core functionality, <?php echo $this->getBlockHtml('formkey'); ?>(after form tag begun) and also added this too: <form method="post" action="<?php echo $...
0
votes
0answers
21 views

Magento 2 Remove Items From Cart With Qty = 0

In Magento 1.9, when we added multiple products into the cart, we can removing them by entering 0 in the Quantity field for each product, and then click on Update Basket button, then those products ...
1
vote
0answers
34 views

How to Show Products Custom attribute value in cart and checkout summary?

I Have a custom attribute for all products. its integer types. and i want show attributes total value in cart and checkout summary. please help.
1
vote
0answers
16 views

Magento 2 Gift Card Message Text area want maximum 220 characters only?

I enable gift option from magento 2 admin end. Now i want to make gift card message text area need to allow maximum 220 characters only. How do we achieve this? Thanks
1
vote
0answers
18 views

Magento 2: How to validate cart price rule in product view?

I'm trying to show the price rules in the product view, but I can not find a way to validate if a product meets the rule... At the moment I just get all the rules. Block: class RuleDescription ...
1
vote
1answer
50 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
0answers
9 views

Add percentage of cart total depending on location

I would like to add X% to the cart total depending on the customers location, I have looked in Cart Price Rules and this only seems to be for discount only. Does anyone have any straight forward ...
1
vote
0answers
16 views

Magento 2: Not Allow to Rest Estimate Shipping and Tax value on qty change in checkout/cart/ page

After Adding a product into the cart I go to checkout cart page and fill the Estimate Shipping and Tax data it is set fine. after that I refresh the page and again check Estimate Shipping and Tax data ...
1
vote
1answer
37 views

Magento 2 Override checkout model class

I am working with Magento2, so as per my requirement I need to override the "Magento\Checkout\Model\Cart.php" class, but the cart.php class look like as follow namespace Magento\Checkout\Model; use ...
1
vote
0answers
15 views

Magento2 : How to change Grouped product child item template in cart?

I have grouped products made of several child products. I would like to change these childs template in cart. I tried to modify checkout_cart_item_renderers.xml, but the original default.phtml ...
5
votes
3answers
208 views

Magento 2 : When adding 10 (or any number) products to cart with the same sku is there a way to not increment?

But instead build new line items. For instance if it's the same product just list it twice on the cart page. As you can see in the picture: the "Portia Capri-29-Blue" have qty 2. But instead of it to ...
0
votes
1answer
19 views

Related product not adding to cart in Magento 2

I made a custom module for adding products to cart with help of ajax. Here I'm adding related products too. But the problem is that related products are not adding to cart. In my controller public ...
0
votes
1answer
18 views

Change checkout redirection to custom page (2.2.4)

I've created a custom page where I submit my cart to create an order. Now, on the checkout/cart page, when I click on the button to go to the payment, I want to go to my custom page. I try many ...
0
votes
1answer
20 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 ...
0
votes
1answer
20 views

Error when trying to put product into cart (tempnam())

On my live system (PHP7.1 fcgi, magento 2.2.4, prod mode) I get an error when trying to put a product into cart. The product does not end up in the cart. Instead I get this error in the exception.log:...
0
votes
1answer
17 views

Magento 1.9 Programmatically removing promo items from cart

I have a controller that loops through all items in the cart, and removes the item if it matches the condition, in this case all products should be removed because of the true as condition. $cart = ...
1
vote
0answers
33 views

Magento 2 shopping Cart section call in cms page

I want to add the cart section on cms page using Admin -> CMS -> Pages -> Select any page on which you want to display block -> Click on design tab from left navigation ->Under Page Layout section ...
0
votes
0answers
24 views

magento 2 cross sell add all to cart not working

I have added cross-sell block to my cart page as below and cross sell products are coming as expected.The items.phtm now has a button add all to cart.This is not working .How can i make this work . ...
0
votes
0answers
26 views

Create orders programatticaly 2.2.4

I want to know how to create orders programmaticaly without passing through the payement step. I know it's possible, using helper (or model, but I can't find the link) : https://webkul.com/blog/...
1
vote
0answers
40 views

Magento 2 - multiple error messages while reordering

I have a custom plugin which checks for a customer attribute and if is enabled will throw an error message while adding to cart and is working as expected. When the customer has an order with ...
3
votes
1answer
41 views

How to display swatch on cart page for added products in cart

How to display swatch on cart page for added products in cart. Right now it shows as Text, like Color Blue, but it should show like swatch icon.
0
votes
0answers
56 views

Displaying custom product attributes to cart and quote / order Magento 2.2.x

I need to be able to show custom attributes that are attached to my simple products in cart and send them through the quote / order. I've followed - Magento 2 - Display Attribute on Cart Page and ...
0
votes
1answer
54 views

Redirecting to homepage after add to cart

I'm having issues that when you add a product to the cart, it automatically redirects to the homepage. I have tried switching it to redirect to cart as well, but it still redirects to the homepage. I ...
2
votes
0answers
161 views

Product dimensions in Magento 2.2.5 update

I have installed Magento 2.2.5 locally with sample data. Now three new attributes Length, Width, Height Added. These are the default attributes, created by Magento 2.2.5 or by some third party ...