Questions tagged [shopping-cart]

Denotes questions related to the shopping cart in Magento.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Magento 2 clear cart doesn't work properly on grouped product items

When I add products from a grouped product, go to cart and click the clear cart button, The products are removed but the form and minicart count and total are still reading the previous items. I ...
user avatar
0 votes
0 answers
22 views

Cart Price Rules by condition

In my code i can apply 50% discount on cart but i want this discount to apply only when product from a specific category is added. \Magento\Quote\Model\Quote $quote, \Magento\Quote\Api\...
user avatar
0 votes
0 answers
16 views

disable shared cart between stores of 1 website in magento 2

I have 1 website and 3 stores. I want to disable cart sharing between stores. eg: If I have a product in a cart of 1st store then it should not display in 2nd store. I have applied this solution: In ...
user avatar
0 votes
0 answers
26 views

Does Magento 2.4.2 Cart Price Rule's Applicability Check Works Fine?

lately I am trying to tweak Magento 2 Cart Price Rule feature for our business requirements and I realized something. First of all, I need to say that we override Magento\SalesRule\Model\Rule\...
user avatar
1 vote
0 answers
16 views

Magento 2 add buy now button on product page & mini cart

I am using Magento 2.4. I am trying to add a "buy now" button on the product & cart page, but unfortunately, when I click on the button it adds the product into the cart. Instead of this,...
user avatar
2 votes
1 answer
43 views

Magento 2 : Disabled product is removed from the cart

I want to set a message when a disabled product is removed from the cart. Does anyone have any idea about it?
user avatar
0 votes
2 answers
45 views

How to add borders on Shopping cart page column header names

I'm trying to add borders on the Shopping cart page column header name. Anyone advises me
user avatar
0 votes
0 answers
80 views

How to get Cart list in Magento 2 using REST API?

I want to get all the cart details in a single API call. Is there any default API available in Magento 2? Thanks in advance!
user avatar
  • 480
0 votes
0 answers
47 views

Magento 2 minicart icon as link to shoping cart

I'm working in Magento 2.3.5 - p1. I have the minicart in the sidebar, when a product is added the minicart opens for a few seconds and then closes automatically. When the minicart icon is clicked, ...
user avatar
  • 64
0 votes
0 answers
18 views

Additional Field on Shopping cart page

I would like to add an additional field on shopping cart page called "Order Reference". I have experience with adding on checkout page, however this is specifically for shopping cart page. ...
user avatar
  • 3,554
0 votes
0 answers
9 views

How to get the values of additional_options values to updatecart.phtml file for edit in magento 2

I have a form on the product details page that collects some values to print the initials on the cufflinks of the shirts. Saved as additional_options and retrieved in orders in backend. Flow is ...
user avatar
  • 2,577
0 votes
1 answer
40 views

Magento 2: Create order without cart

I have a requirement to implement Google Pay in PDP. Like Buy with GPay in PDP. So once user click Buy Now with GPay button then we are adding that product to cart and once payment is done then we are ...
user avatar
0 votes
1 answer
138 views

Set Default Value for Country and State in cart page

as per my requirement, the state and country in the cart page should be a default of US and Washington. I found a configuration for the default of country but I wasn't able to find any for the state. ...
user avatar
0 votes
2 answers
27 views

Magento 2 Get In Cart Product Brand, Variant and Quantity

in Magento 2 I am trying to get below details of the product from the customer cart Name ID Price Brand Category Variant Quantity This process I added in observer during customer proceed to checkout ...
user avatar
0 votes
1 answer
64 views

How to get value from quote_address table in Magento2

How to get value from quote_address table for checkout and cart page in Magento2. Need values for guest and login user both in Magento2 cart and checkout page
user avatar
0 votes
1 answer
63 views

Show custom table value in cart summary in magento2

I have a requirement to show a custom label with the value from the custom table inside the cart and checkout summary. Example : I have added the below code. Vendor/Module/etc/frontend/di.xml <...
user avatar
  • 135
0 votes
0 answers
18 views

Getting error message after cart item delete even item has delete in cart

Getting error message after cart item delete even item has delete in cart.
user avatar
  • 3,109
0 votes
0 answers
38 views

How to add bundle product to cart using Magento\Quote\Model\Quote\ItemFactory

I want to add bundle products to the cart using \Magento\Quote\Model\Quote\ItemFactory. I have tried the below code and it is working fine. /** @var \Magento\Quote\Model\Quote\Item $quoteItem */ $...
user avatar
0 votes
1 answer
354 views

Show price with and without Vat

Is there anyway to display price with and without vAT in cart summary bloxk in cart page please
user avatar
0 votes
0 answers
73 views

How to get selected product attribute label and option label in magento 2.4.2-p1

Here id configrable product:- Simple product assign to configrable product:- How to get a product that simple product attribute label and value using parent product id or child product id ???
user avatar
  • 5,666
0 votes
0 answers
101 views

Cart page Total amount change observable

Three statements to explain my question: Without page load: I want to update one value on the same page via ajax request if cart total change. I want to observe Cart Total changes by increasing/...
user avatar
0 votes
1 answer
13 views

Getting issue while updating cart price

Hi i am trying to update cart price based on a system config option using observer but its not working below is my code.......... CheckoutCartProductAddAfterObserver.php class ...
user avatar
  • 1,704
0 votes
0 answers
25 views

Undefined index error on going to shopping cart page in magento 2.3.3

After adding Product to cart and clicking on shopping cart link. I am getting this error Undefined index: 8039,8219 in /srv/public_html/vendor/magento/module-catalog/Model/ProductRepository.php on ...
user avatar
  • 700
0 votes
2 answers
77 views

How to remove shipping from Cart (Magento 2.4)

I am trying to remove the Shipping & Coupon container from the /checkout/cart page. I tried to copy the XML file into layout/override/base and edit it, but then I get blank page on /cart. A ...
user avatar
  • 107
1 vote
0 answers
84 views

Magento 2.3 same product with different custom options is not showing separate in the cart?

I am adding the same product in the cart with different custom options but the product is merging with the first one and item quantity increased in the cart only. I want to show separate same products ...
user avatar
  • 1,965
0 votes
1 answer
229 views

Magento 2.3.6 - The attribute 'name' is required but missing in checkout/cart page

I'm working on a store in Magento 2.3.6 with Porto theme, all work correctly but I have an error page when go to "show edit cart" (checkout/cart/) "The attribute 'name' is required but ...
user avatar
0 votes
1 answer
39 views

Magento 2 : How can I add my custom side bar below Summary side bar in Cart page?

In cart page I want to add custom side bar below Summary side bar. Please give me some suggestions. Thanks!
user avatar
0 votes
0 answers
17 views

Magento 2 : Need to put coupon form and proceed to check-out button outside cart-summary

Currently I have below layout in my cart page. I need to put coupon form and proceed to checkout button outside cart-summary. Please check the second image for what I need. If anyone having knowledge ...
user avatar
0 votes
1 answer
451 views

How to change SUMMARY title of cart page in Magento 2?

I need to change text SUMMARY to BASKET SUMMARY. Please help!
user avatar
0 votes
1 answer
46 views

cart page & checkout is not working (500 http error)

I am using magento 1.9.4.My cart & checkout is working fine for guest users & logged out customers but when user is logged in then whenever he view cart or try to checkout , gets an error of ...
user avatar
0 votes
1 answer
26 views

how to apply only 1 coupon code when there are multiples coupon codes

I am running magento 1.9 and i have multiple coupon codes on site. how to make that only 1 coupon code apply on cart? any body know how to apply on 1 coupon on cart?
user avatar
0 votes
1 answer
55 views

Shipping Estimator from ShipperHQ fails on page load if I remove item from cart or leave and come back to cart

My shopping cart has a shipping estimator from ShipperHQ. If the value changes in the zip code field it calculates the shipping cost. If you remove an item from the cart, update the quantity, leave ...
user avatar
1 vote
2 answers
1k views

M2.2: Using REST API, Can Clear Cart but Mini-Cart Not Clearing

We are currently integrating another checkout portal to go on top of our existing Magento 2 platform. They are using the REST API to do most of their calls to Magento 2, including that of clearing the ...
user avatar
  • 207
1 vote
1 answer
216 views

Magento - PayPal express checkout button missing in Shopping cart

Anyone else getting PayPal express checkout button in shopping cart missing? From older posts It looks like It might be from the server being down? Anyway, when I got to : fpdbs.paypal.com I can't ...
user avatar
  • 392
0 votes
4 answers
5k views

Magento 2 - How to display messages on ajax success change

What I am trying to do: When I update the cart qty so that the qty is higher than the quantity available, I want my code to be able to show an alert ‘The requested qty is not available’ pop up or ...
user avatar
0 votes
3 answers
687 views

Magento 2 - How to make ajax show messages

I want to display messages on the cart page. I have made a custom module so that the shopping cart will automatically reload when the qty changes using AJAX. Here is my js code: define([ 'jquery', '...
user avatar
0 votes
1 answer
81 views

Magento2 : Add simple product with custom options To cart Rest API

hello I need to Add simple product with custom options To cart throw Rest API I succeeded t add the simple product , price is correct and every thing is ok but unfortunately I didn't succeed to add ...
user avatar
0 votes
2 answers
25 views

How can I modify my cart form page to complete https

I am working on my client's website https://gerrykeane.ie/ and when I add a product to the cart I get promoted a warning message that the form page is not secure. I have updated the security ...
user avatar
0 votes
1 answer
265 views

Magento2.3 Cart page registration form add in new popup

I have enable guest checkout. So when a customer clicks on the checkout button in the cart page then a popup opens, like seen in the screenshot below: My goal is to add a click event listener to the &...
user avatar
  • 5,134
0 votes
1 answer
176 views

Products stuck in quick cart

When I add multiple items to a cart, they get stuck in the quick cart. They even pass from computer to computer some how and I am unable to remove them. This is one of the pages affected https://...
user avatar
  • 36
0 votes
1 answer
35 views

How to modify magento 2 submission form?

How can I add labels to the address fields. Example: Field 1: Field 2: Field 3:
user avatar
0 votes
1 answer
64 views

Magento 2.3 slow with over 200 Items

https://9a1843a442.nxcli.net/ If you add more than 100 products cart almost does not load quickly, superslow. after adding 800 cart items, Cart page stop loading and took 3 min to come up. its magento ...
user avatar
1 vote
0 answers
240 views

"Update Shopping Cart" button redirects to homepage when admin setting "Product Redirect to Shopping Cart" is set to No

Magento 2.3.5 Under Nginx Update Shopping Cart button redirects to homepage when pressed. The quantity is updated but the customer is forced to go to the homepage instead of staying in the shopping ...
user avatar
1 vote
1 answer
211 views

Magento 2.3.5-p1 blank checkout

I have installed Magento 2.3.5-p1, and to test the default order/checkout. I added an item to the cart, however, the shopping cart button shows nothing but a blank popup as shown in the image below. ...
user avatar
  • 107
1 vote
3 answers
235 views

Magento 2 move tax section in to grand totals in cart page

I want to move the tax in between the order total incl tax and order total excl tax in the cartpage. The Tax section is in the vendor/magento-tax/view/frontend/web/template/checkout/cart/totals/tax....
user avatar
0 votes
1 answer
95 views

Products not shown in shopping cart when add to cart is clicked

I have made one custom module. Where i want to show some custom related products on product page. I select the product with checkbox to add to cart and When i click add to cart, products are added in ...
user avatar
  • 700
2 votes
1 answer
446 views

Magento 2: Shopping Cart quantity doesnt update after custom Add to cart form is submitted

I have a custom Add to Cart button for bundled products. This is on my phtml for the /test-page : <?php /** @var Magento\Checkout\Helper\Cart $_checkoutCartHelper */ $_checkoutCartHelper = $this-&...
user avatar
0 votes
1 answer
63 views

Add to cart functionality is not working for any product

my add to cart not working, its showing nothing in cart for 2 stores and for 1 store adding a default product everytime, doesn't matter which product we added, its showing this exception.... We can't ...
user avatar
0 votes
2 answers
131 views

css is not working in magento 2 cart page

I have issue in cart page of my website . Currently home page and product pages are loading correctly but the cart page have issue Css and js fies in the cart page is not working Please help to ...
user avatar
0 votes
1 answer
2k views

Magento 2 - Get All product information at checkout

I am trying to get all the information for each product in the cart at checkout so I can do a few things but I cannot get it to work. I have create the below module: Block/Quote.php namespace ...
user avatar
  • 121

1
2 3 4 5
12