Questions tagged [cart]

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

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

Magento 2.4.1 If shopping cart is not empty place a Go To Shopping Cart button next to Add To Cart on Product Detail page

When the shopping cart is NOT empty, I want a button next to the Add To Cart button on the product detail page and have it go to the Shopping Cart File using to override is: /app/design/frontend/THEME/...
0
votes
0answers
18 views

product price in cart turns 0 on cart update

I've created a plugin on afterGetPrice() to live update the price of product of Simple products. Everything works fine until I update product quantity or add more product in the cart. Whenever I add ...
0
votes
1answer
9 views

Magento 2 get country Id when on change in estimate shipping on cart page

Due to some custom requirement on cart page, I need country id when someone change it using jquery. I have tried with below jquery script but its not working. <script> require(['jquery', '...
0
votes
0answers
12 views

Add a new dropdown attribute to product and display on product and check out pages

I want to add a new product attribute like sku or color option . The attribute is drop down. This i can do through admin side with out issues. But how can i display the value of the attribute in ...
0
votes
0answers
18 views

How to get the value of a field on the cart page in magento 2

Well, I would like to know if there are any observables that I can observe on the cart page. Or if there is a way to capture the value of a custom field that has been inserted. Explaining further, a ...
0
votes
2answers
30 views

Magento 2 - Passing Values From Product Page to Cart

I have created 5 Custom Input Fields (not Attributes) in the Product View Page. The Customer can write his Values inside if he want to modify the Product Values. I want to pass them to Cart, and later ...
1
vote
1answer
44 views

Add custom content in order summary on checkout page

I have added a custom text inside the cart summary checkout page using a simple HTML template file. My question is how can I add dynamic content(from .phtml file or Block file) to this section? I ...
0
votes
0answers
13 views

Add block content cart summary

How can I add the content of Block/Phtml files besides Order Total on the cart summary?
1
vote
1answer
12 views

M1 - How to set different tax class IDs on different instances of the same product in a cart based on custom options

I'm using the latest version of Magento 1.9 and I'm stuck trying to make a change. I checked all the related questions and couldn't find a solution. I figured I should see if someone can help before I ...
0
votes
1answer
9 views

Subtotal vs Subtotal (Excl. Tax) when creating a condition for discount rule

I'm creating a coupon code with a minimum order amount. While adding a condition, I'm not sure the difference between Subtotal and Subtotal (Excl. Tax). Could anyone help?
0
votes
0answers
14 views

expired sale price retained in customer cart

I'm new to Magento, and setting up a cart using Magento 2.4.1, CE 2.4.1 (on Debian 10). Problem: customer logs in and puts sale item in cart, then goes away without checking out sale expires customer ...
0
votes
2answers
38 views

Magento 2 : Add extra “Proceed to Checkout” Button on top of grid on shopping cart page

On the shopping cart page, there are a proceed to checkout button display after order summary. I want to display also before the shopping cart grid. How to display it? Any help would be appreciated. ...
0
votes
0answers
8 views

Multistore Advanced Inventory

I have two stores one which is going to be wholesale store and the other a retail store I want to create a product which allows me to set the cart minimum order quantity to 100 for the wholesale ...
0
votes
0answers
21 views

Limit Checkout Order or Add to Cart Limit to allow only 6 type of items

How can I achieve this functionality in Magento 2.3 Limit Checkout Order or Add to Cart Limit to allow only 6 or any particular number type of items. These 6 items can have variable Qty value. Eg: One ...
0
votes
0answers
8 views

Cart rule is not applied for Euro Currency format

Below are the cart rule which is working fine for $ currency format but it is not working or Euro currency format,Please help on this Apply the rule only if the following conditions are met (leave ...
0
votes
0answers
15 views

Magento 2 - Add checkbox in cart page?

In Magento 2 I have created a custom column for quote and order tables : loyalty_card (simple boolean field) In my shopping cart I need to add a checkbox to allow customer to choose to create loyalty ...
2
votes
2answers
132 views

Magento 2 how to display shipping methods sort order by price?

Hi we would like to sort and display the shipping methods by price Low to High on checkout page. For example: $31.72 Express Saver Federal Express $37.50 2 DayFederal Express $80.47 Standard ...
0
votes
0answers
11 views

Magento 2.2.2 cart price rule 3 for $ 1 of each category

Is there a rule so I can trigger when 3 items are in cart but it needs to be 1 of each category! E.G: (1x Women) + (1x Men) + (1x kid) then trigger fixed price for all of them 3 e.g: $15 it cannot be (...
0
votes
0answers
15 views

Is it Possible to add Remove from cart in product page?

I want to add a remove from cart button in product page, do you have an clue guys?
0
votes
0answers
22 views

Magento 2 - How to get post parameters in observer?

In Magento 2 I have add a custom checkbox in cart page. I managed to add this checkbox in this file : app/design/frontend/[Vendor]/[Module]/Magento_Checkout/templates/cart/form.phtml And I need to get ...
0
votes
0answers
24 views

Magento 2 LocalStorageCart

I want to manipulate localstorage and add or remove items from cart, the problem is with backend everything works from the frontend but when i go to the checkout page i see all the items that i ...
0
votes
0answers
23 views

Ajax based cart update Magento 2

I have implemented the ajax cart update following this. But the issue is when I enter the max qty for a product it does not shows any error. (which is Magento default behavior, should show a popup)....
0
votes
0answers
14 views

Attribute not loading in Cart

I am trying to use custom code to show shipping estimates based on the product SKU or Manufacturer. the SKU is loading fine in the cart but I can't get the product to load a custom attribute '...
1
vote
1answer
18 views

Magento 2 - cant modify quote before placing order

I try to delete all items with a custom product type from the quote before the order is placed. So I created an observer for the event sales_order_place_before. In this observer I am collection all ...
0
votes
0answers
8 views

Magento 2: persistent cart continues working even after deactivated

I am trying to disable the persistent cart function in Magento 2.3.4 In the administration panel I disabled the option in Stores> Configuration> Customers> Persistent Shopping Cart Enable ...
0
votes
0answers
28 views

Magento 2.4.1 varnish cart flushed issue

I am having this major issue which forced me to bypass varnish for magento 2.4.1 instance. I use varnish 6.4 with Magento default vcl file. When you add a product in cart and then go to cart or ...
0
votes
2answers
312 views

Magento 2.4.1 Checkout Error - Current Customer Does Not Have An Active Cart

I have a weird issue here... When the user tries to complete their order, they get the error seen below. However, the order completes. There's nothing alarming in the logs either. Can anyone point me ...
1
vote
1answer
37 views

Cart summary_count not updated when “add to cart” is pressed

I'm using the following code to show the total number of items in a users cart: <span data-bind="text: JSON.parse(window.localStorage.getItem('mage-cache-storage')).cart.summary_count">...
0
votes
0answers
14 views

How To Add Multiple Simple Product In Cart Programmatically Magetno 2

I want add multiple products in cart programmatically, but when I execute my code I see same product in cart added multiple times. public function addAllToCart() { $selected_values ...
1
vote
2answers
59 views

Magento 2 - New product added to cart has subtotal price value of 0

I created a new product programmatically and added it to the cart, but the subtotal value which is showing in the cart is 0. use \Magento\Catalog\Model\ProductFactory; use \Magento\Catalog\Api\...
0
votes
0answers
10 views

How to place customer orders through Admin Token API Magento2

I have to place an order through API REST on behalf of a customer like the Magento admin panel. Sales >> Order >> Create New Order I can see on the Doc that an Admin Can create a CART but ...
0
votes
0answers
55 views

How to display cart item count in custom header using JavaScript?

I've created a custom header that works fine. I replaced Magento's cart, and instead added a shopping basket icon in the header. Like so: When pressed it redirects to the cart. What I want to do is ...
0
votes
0answers
24 views

Zend http client exception: Unable to read response

I have an issue with a Magento 2.2.4 store, sometimes when customer tries to pay by Creditcard Authorize.net CIM module,when he clicks to order button the page reloads and the cart empties without any ...
0
votes
1answer
20 views

Magento 2.3.5 - Remove product groups in the cart programmatically

I'm trying to remove simple and virtual products in groups through a custom form I created. The code is this and it seems to work but in reality when you reload the page the minicart does not update ...
0
votes
0answers
112 views

/rest/default/V1/guest-carts/{cartId}/totals-information 404 magento 2

when Visitor add a product to cart. Go to Cart Page. Click on Proceed to Checkout Login Pop-up will prompt to login. When try to login it shows alert box with error "No such entity with %...
0
votes
0answers
12 views

Ideal place for checking quote and change it

After the user adds a product to the cart, I need to run a check on the quote because I have to manipulate the total price if necessary and then save the changed quote. Where is the ideal place to ...
0
votes
0answers
17 views

Astound Affirm Monthly Payment

I found out that there is an admin config that lets you show a promotional message for affirm monthly payment in the cart page summary. However, I would like to change its verbiage and it seems that ...
0
votes
0answers
11 views

Guest Cart Items API returns 0 for the price of item added last to the cart - M 2.2.6

The API rest/V1/guest-carts/cart_id/items returns the value 0 for the item which was added last to the cart, in case the guest cart has more than one item and in the case of one item the value is ...
0
votes
2answers
87 views

Special Price Not Applying in Magento2 Cart

I am creating simple products through API call. Product is created finely and showing all attributes finely in admin part but when ever i am seeing product in frontend it is not showing any special ...
0
votes
0answers
12 views

Apply Special Price to SKUs with a Coupon Code?

We're using Magento 2.34. We want to set up a shopping cart coupon where customers get a special price for a set of SKUs with different price levels if they enter the correct coupon code at checkout....
0
votes
1answer
25 views

In magento 2 how can i give discount to product if particular category's product exist in cart?

In Magento 2 I am want to give a 15% display to the product which do not exist in the "member" category but in cart must be 1 product available which is from the "member" category. ...
0
votes
0answers
12 views

Custom product price for 1 item of many the same product in cart Magento 1.9

I have a custom module to create orders. And in the module, can customize a product value. But, i have a problem. For the example, If I add 10 qtd of the product and apply a custom price in 1 product ...
0
votes
0answers
26 views

Magento 2 how to disable cart sharing between stores?

I wan't to disable the shared cart between stores under same website. I wan't accounts to be shared, but not carts, is it possible? I tried the following solutions: Disable cart sharing between ...
2
votes
2answers
36 views

Magento 2 : Minimum Cart Value for Certain Category

We need to setup a rules to ensure below is satisfied. When an item is added only from category x then minimum cart price should be set to 25 When an item is added from category x and also has items ...
0
votes
1answer
28 views

Hide add to cart based on cart items

I need to be able to hide the add to cart button of certain products are already in the cart. I have Full Page Cache turned on so it seems to cant access the checkout session. What would be the best ...
0
votes
0answers
19 views

Getting all items in the cart in Magento 2 with FPC turned on

I would like to get all items in the cart with Full Page Cache (FPC) turned on Normally I would do something like: use Magento\Checkout\Model\Session; public function __construct( ... ...
2
votes
0answers
28 views

Checkout City Dropdown Magento 2

please I am trying to add specific cities to which my shipping carrier destination and make them dropdown in my plugin. This is my code so far but it's not working and I get Exception #0 (...
0
votes
0answers
16 views

Empty Current Cart Items And Add new cart items programmatically in magento2

I want to generate a sharecart link to customers , here the problem is when i am sharing cart link i am adding one unique key to the sharecart url. Based on this key added products to customers cart ...
0
votes
0answers
19 views

Magento2 Disable Shipping Method Selection Only in Shipping Method page

I want to ask customers to select their own shipping method rather than selecting one shipping method by default. here i tried the following code in app/design/frontend/Mypackahe/mytheme/...
0
votes
1answer
19 views

Step by step instructions for adding a block to the shopping cart in Magento 2

Can anyone provide a link or write out step-by-step instruction for adding a link to the Magento 2 shopping cart page? I have tried following several provided by 3rd parties, but I haven't had any ...

1
2 3 4 5
43