Questions tagged [shopping-cart]
Denotes questions related to the shopping cart in Magento.
565
questions
0
votes
0
answers
11
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 ...
0
votes
0
answers
19
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\...
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,...
1
vote
1
answer
34
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?
0
votes
2
answers
42
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
0
votes
0
answers
45
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!
0
votes
0
answers
27
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, ...
0
votes
0
answers
17
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.
...
0
votes
0
answers
8
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 ...
0
votes
1
answer
28
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 ...
0
votes
1
answer
59
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. ...
0
votes
2
answers
22
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
...
0
votes
1
answer
47
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
0
votes
1
answer
49
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
<...
0
votes
0
answers
16
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.
0
votes
0
answers
23
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 */
$...
0
votes
1
answer
195
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
0
votes
0
answers
61
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 ???
0
votes
0
answers
59
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/...
0
votes
0
answers
21
views
Auto add product items
Magento 1. I want to create an offer that if a customer selects for purchase two certain sku's , he will get another specific sku for free. I want to do it with auto add promo items. My problem is ...
0
votes
0
answers
53
views
Magento 2 how to update cart price is modified?
I have a form, and when I submit the first time it adds a product with a custom price, that works fine, then I go to the checkout without problem, but when i hit the back button on browser and change ...
0
votes
0
answers
21
views
Adding Different Price Components
I would like to ask about adding different price components for both:
A Simple Product
A Bundled Product
For example, I would like to offer the customers the option to buy the product either on Full ...
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 ...
0
votes
0
answers
18
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 ...
0
votes
2
answers
69
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 ...
1
vote
0
answers
63
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 ...
0
votes
1
answer
194
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 ...
0
votes
1
answer
36
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!
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 ...
0
votes
1
answer
384
views
How to change SUMMARY title of cart page in Magento 2?
I need to change text SUMMARY to BASKET SUMMARY. Please help!
0
votes
1
answer
38
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 ...
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?
0
votes
1
answer
51
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 ...
1
vote
2
answers
904
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 ...
1
vote
1
answer
207
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 ...
0
votes
3
answers
4k
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 ...
0
votes
3
answers
565
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',
'...
0
votes
1
answer
55
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 ...
0
votes
2
answers
23
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 ...
0
votes
1
answer
250
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 &...
0
votes
1
answer
170
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://...
0
votes
1
answer
30
views
How to modify magento 2 submission form?
How can I add labels to the address fields.
Example:
Field 1:
Field 2:
Field 3:
0
votes
1
answer
62
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 ...
1
vote
0
answers
204
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 ...
1
vote
1
answer
201
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.
...
1
vote
3
answers
209
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....
0
votes
1
answer
84
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 ...
2
votes
1
answer
404
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-&...
0
votes
1
answer
57
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 ...
0
votes
2
answers
128
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 ...