Questions tagged [shopping-cart]
Denotes questions related to the shopping cart in Magento.
576
questions
0
votes
0
answers
15
views
On Cart Page Estimate shipping and taxes section add custom validation to zipcode
How can I add custom js validation to my cart estimate page for the zipcode?
The default Magento 2 behavior is that, on any change in pincode field, the prediction action starts and a spinner is shown,...
0
votes
0
answers
16
views
Cart crossell products on PDP
I'm using magento 2.4.6 and I want display the crosssell products that is set using cart-product rule on PDP. Is this possible?
0
votes
3
answers
60
views
Magento2: How we can add cacheable block on cart page using block_html cache type?
I want to add a cacheable block on the cart page. The cacheable block should be cached using the block_html cache type.
0
votes
0
answers
16
views
Why does my free-shipping.phtml template only show in my minicart when i'm in checkout/cart page?
I have a custom free-shipping.phtml template which shows the amount remaining until free shipping. I can see it only in my minicart when i'm in checkout/cart page.
I referenced the container with the ...
0
votes
0
answers
17
views
Fedex Configuration "This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us"
I configured the fedex in magento 2 but it gives this error always.
I might have entered some data incorrectly I need help configuring it.
0
votes
0
answers
40
views
Coupon code is not validating the customer segment condition on cart page?
I have customer segment and sku condition in the cart rule with specific coupon code. This is working fine for sku condition but this is not working for exact customer segment id.
Same coupon code is ...
0
votes
0
answers
58
views
remove discount from the cart page
Is there any way to remove discount price [NOT THE COUPON FORM] from the cart page and adjust the Totals accordingly but should be visible on checkout page ?
0
votes
2
answers
132
views
Tax calculation showing wrong in magento2
Total is 607.77 and TAX is 6%, it's 36.4662
But magento showing 37.67
Can anyone help me how i can get 36.4662 insted 37.67?
Admin side tax settings:
Thanks in advanced.
1
vote
0
answers
59
views
OpenMage LTS 19.4.15 (Magento 1.9) Super slow POS and Cart functions, but fast backend and frontend performance
We use AWS to host our site, and shortly after I increased memory from the standard 30gb to 40gb on a t3.medium, I noticed that the POS we use (magestore) was acting super slow. Where it would ...
0
votes
1
answer
56
views
get the value from quote_item_option table (info_buyRequest) in GetCartDetails graphql Magento 2
How can we get info_buyrequest value using customer cart graphql magento2?
Any suggestions
1
vote
0
answers
181
views
Magento 2 Hyva: How to add a loader in cart on increasing and decreasing qty using Hyva?
I want to add a Hyva loader on the cart page using the Hyva theme. I
checked this doc from hyva Hyva doc loader but I am not sure
How I can implement this on increasing and decreasing qty.
Let me ...
0
votes
1
answer
95
views
Magento 2.4.6 How to remove or hide My Cart?
I am using Magento 2.4.6, and using the multi-site function, One of the sites, I like to display as a catalog, does not need a shopping cart (My Cart). I know that hiding prices can hide the add to ...
0
votes
0
answers
22
views
Magento 2 empty shopping cart showing shipping & total blocks on cart page?
I don't want to show the Apply Coupon, Shipping Method, Total & Proceed to Checkout Button when the shopping cart is empty.
You can check the below screenshot for the same.
Please provide your ...
2
votes
1
answer
470
views
Current customer doesnot have an active cart
I'm using Magento 2.4.3-p2 version, now I'm facing a strange error at the checkout page. When I click on place order button, it says Something went wrong and Current customer doesnot have an active ...
0
votes
0
answers
135
views
Magento 2.4.5: Change price of a particular product on cart update
I am using this observer event for updating price for a particular product based n it's attribute value and subtotal but it applying on all products:
checkout_cart_save_after
My code:
public ...
0
votes
2
answers
60
views
How to override grid.php block or cart.php block to remove some items from shopping cart
I want to filter the products (excluding products with some attributes) when the shopping cart is loaded. What is the best way to achieve this. I have looked into overriding getItems function of ...
1
vote
1
answer
255
views
Where in Magento admin can I set/change expiry time for the cart?
Where in Magento admin can I set expiry time for products in the cart? Currently, the product is not going to stay in the cart for more than 24 hours once a cart is abondoned.
2
votes
0
answers
98
views
Magento 2 - Go to checkout button is not clickable
Site was working fine and then suddenly "Go to checkout" buttons in minicart and shopping cart are not clickable. Can't seems to find the reason behind it. Does anyone has any idea why this ...
2
votes
2
answers
101
views
Empty shopping cart button not working
I'm not sure what I have done to mess up the empty cart button in the shopping-cart page. Nothing happens, not even a page-refresh.
Its a multishop and it dosnt work on any shop. Not even using ...
0
votes
0
answers
61
views
Magento 2.3 empties cart after a failed payment
Firstly, this is the environment we're working in:
Magento 2.3.0 (PHP 7.2.34, MySQL 8.0.30)
Cogito - Clean, Minimal Magento 2 Theme
Mageplaza Magento Instagram Feed Plugin
Barclaycard integration
...
2
votes
0
answers
68
views
Unable to remove item from customer shopping cart from admin panel
I am using magento 2.3.5p2 Community Edition ( open source one )
I encountered this issue in which when trying to remove an item from a customer cart via admin panel, an error as below appear
Fatal ...
0
votes
1
answer
29
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,...
2
votes
1
answer
164
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
97
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
1
answer
155
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
466
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
300
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
262
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
343
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
143
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
2k
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
137
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
253
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
1
answer
14
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
120
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
262
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 ...
2
votes
0
answers
145
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
601
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
114
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
30
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
968
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
144
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
42
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
162
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
2k
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
252
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
4
answers
10k
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
1k
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
225
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
28
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 ...