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
8 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
19 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
26 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
0answers
12 views

Magento 2.3 Customer specific price gets overwritten with original price when entering checkout

I have a problem from which I really can't wrap my finger around what the cause is. I made an extension in which on the frontend the product price gets updated with customer specific prices that are ...
0
votes
1answer
26 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
13 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
23 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
15 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
18 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 ...
0
votes
0answers
16 views

Magento 2: How to add configurable product to cart programmatically with custom price?

I want to add child product to cart on same action, child product added successfully but I want to set custom price to 0, I can successfully set the price of Simple Product but don't know about the ...
0
votes
1answer
16 views

Magento 2: Cart product image shows 404 error in new products

I have uploaded some new products to my store, and when I add some of the new product to the cart, the images are not seen: And this happens because the image are not generated in pub/media/catalog/...
0
votes
0answers
21 views

Uncaught TypeError: Unable to process binding “html: function(){return getInstructions() }” ( Magento 2 )

I'm using a third party one page checkout module on this system. And added an observer "payment_method_is_active" event for the cash on delivery and bank transfer methods to enable them only ...
0
votes
0answers
12 views

checkout cart page add cms static block in magento 2.4.0

Now i am trying add cms static block in checkout_cart_index.xml file add but not added block in checkout cart page checkout_cart_index.xml <?xml version="1.0"?> <page layout=&...
0
votes
1answer
17 views

Magento 2 handling custom field in Estimate Shipping and Tax block

I would like to know how to handle custom fields in Estimate Shipping and Tax block with help of this answer. I updated block with custom field(radio button) but I'm not sure how to handle custom ...
0
votes
0answers
8 views

Cart merge issue in magento 2.3.5

I am facing an issue of cart item merge. I have set Max cart allowed qty to 1. Create a customer add 1 item to cart & logout, now add same item to cart as guest & now login as previously ...
0
votes
0answers
10 views

Magento2 Cart Discount rules - 2 different rules for two different products

I have tried setting up the following Magento2 Cart Discount rule and have not been successful : If cart total with tax is equal to or greater than 50 15% discount on products A or B or C or D if in ...
2
votes
3answers
77 views

Magento 2: What is the best way to observe cart change to modify cart item in magento 2?

I'm using Magento v2.3.4 and i want to modify the cart item, if there is an update on the cart (add to cart, update cart item, and remove cart item). Currently I'm using plugin for quote collectTotals(...
1
vote
0answers
19 views

Remove Item from Cart using before add product Plugin

I'm using magento 2.3 and i'm trying to Remove an especifc Item from Cart, using beforAddProduct Plugin. The problem is that i don't know how to remove the Item from Cart. It shows the following error:...
0
votes
0answers
8 views

Can I create + sell sample products with magento 2.3.3

I tried looking online but cant find any plugins that do what I want. I want to sell sample products for free, for example say I am selling T-shirts at $10 and I want to sell a sample of the T-shirts ...
0
votes
0answers
18 views

Magento 2 : Display Regular Price and percent on cart page

I am new in Magneto 2, in this I want to add the regular price and percent of discount on each product in cart page.
1
vote
0answers
33 views

Replace the QTY of the product in the cart on “add to cart” rather than increment

How to replace the quantity of the product in the cart instead of increment? Current behaviour: From the product page: Add 5 qty of product A Add 2 qty of product A (add product again) The cart qty ...
0
votes
0answers
24 views

In Magento 2.4 How to update subtotal with custom price after add product to cart and check if customer is login?

I want to update cart subtotal by custom price. Example : I have display member price which is 10% of final price and i have display it on product details page and cart page now i want to update ...
0
votes
1answer
16 views

CustomerData Messages Section is not showing up

What I am trying to do: Normally you have to click "Update Shopping Cart" button to update cart when you change the quantity. With this following code, you do not need to reload cart but it ...
0
votes
1answer
27 views

Magento 2 How to hide “Sub Total” div in mini cart if not items in cart?

In Magento 2.3.5-p1 I want to hide the "Sub Total" div if no items in the cart. Also, if the cart has items then that div will show again. How can I achieve this? There is a "subtotal....
0
votes
1answer
18 views

Magento 2 - getCategoryIds() returns wrong values

I try to run through each item in the cart and log the category names. But it always prints out the category names of the first item!! The first item in my cart is in the following categories: ...
0
votes
2answers
160 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
0answers
7 views

Fedex error on cart page in magento 2.3.2

I am getting this error on my cart page Notice: Trying to get property 'Message' of non-object in /srv/public_html/vendor/magento/module-fedex/Model/Carrier.php on line 570 https://prnt.sc/ubgsto ...
0
votes
0answers
14 views

multiple shipping multi-address fields on one product

To the 'Cart' page, I select multiple shipping. I get to a page where you can choose 1 delivery address for each product. Tell me how you can implement many delivery fields for one product. These ...
0
votes
3answers
63 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
0answers
13 views

Magento 2 insert Checkout Item List Into another layout

I am trying to insert the Magento 2 checkout form into another layout. I tried a few things but I think this somehow needs to be expanded: my_index_index.xml <?xml version="1.0"?> <...
0
votes
0answers
12 views

Magento 2: How to add or merge quote to customer cart using quote id programmatically?

I'm using Magento 2.3.4 and i need to add quote or merge quote to the customer cart using quote id, for example: $customerId = 12; $quoteId = 30; if($this->isGuessQuote($quoteId)){ // check whether ...
0
votes
0answers
7 views

Q: How to add Street to Estimate & Tax on Cart Page

I want to be able to add the Street field to the Shipping Estimation section. I already cloned the LayoutProcessor file into my own plugin, but now i want to show the street field. With the following ...
0
votes
1answer
39 views

Magento 2.3.2 sends me to an empty cart instead of thank you page after the payment

I'm using Magento 2.3.2, and I noticed that I get sent to an empty cart page after I do the payment. The money are taken and the order gets done, only thing, I want it to get sent to the thank you ...
0
votes
0answers
12 views

Magento 2 - How to get carts list

I need to create some reports using information such as order, clients and carts. I could not find a way to get for a list of all abandoned carts using collections. I couldn't understand quote tables ...
0
votes
0answers
4 views

Keep cart item when registers and confirm account using different browsers?

I'm using magento 2.3.4, before register i add some items to the cart, after i registered then confirm the account link using the same browser the cart items before i registered will shows up, but ...
0
votes
2answers
15 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
0answers
15 views

Add custom infomation to cart listing data in checkout#payment

I added some information to the cart listing overriding the getConfig function result it work well in shipping page but these results change when moving to payment page: Here is the results dumped in ...
0
votes
0answers
16 views

Enable Ajax Cart in Wishlist page

I'm writting ajax cart extension but it just worked with home page and compare page. How can i open ajax cart popup in wishlist page? Here are my code in controller: use Magento\Framework\App\Action\...
0
votes
0answers
15 views

How can I correct price format for arabic store in cart and checkout page

Price format for arabic comes wrong in cart and checkout page.Whereas On Product list and Product View page it shows correctly but in cart and checkout page ( order summary, shipping charge ). If ...
0
votes
1answer
15 views

Implement Owebia rules

this is the first time I'm working with owebia rules so as I don't really know where to start. I need to implement somes rules under some circumstances Exemple : If I have in my cart a specific set ...
0
votes
2answers
45 views

How to fetch all products in the cart after place order button in my custom module

Step 1: I want to fetch all products in the cart and Show them with a form individually Currently, I am fetching data using this code <?php namespace Softadroit\Prescription\Block; $objectManager =...
0
votes
0answers
22 views

Get list of modules called at order success page - M2

Place order is working good but after place order page redirect to cart page. I have put log in success.phtml file and found that success.phtml file is called. But I don't know why it's redirect to ...
0
votes
1answer
61 views

Magento 2 - get amount of items in cart by using knockout.js

I am creating a new header. It is supposed to look like this: I need to get the number of items in the cart and write it to a certain place in the header, where the minicart is showing. So I added ...
1
vote
1answer
30 views

M2: Can't decrease qty in cart: Attention The requested qty is not available

I have Magento 2.3.5 installed. Let's say we have 3 of Product A in stock and I add 5 of them to cart. It shows a notification at the cart saying: The requested qty is not available. That is fine and ...
1
vote
0answers
42 views

Magento 2 Show Login Popup [ Guest Checkout is disable ] Even Customer Already Login

We set guest checkout disable to show login popup at cart when customer click on process to checkout. But the problem is when customer is already login then also login popup show at cart page when ...
0
votes
0answers
17 views

Shipping Rates are not showing on cart page

I have upgraded my site from 2.2.4 to 2.3.5-p1. I am getting the shipping method name on the cart page but not getting the shipping rate.
0
votes
2answers
111 views

How check qty before add to cart in magento 2?

I need intercept the product qty before add in cart. I see the events list but don't find any observer to make this action. Any idea? Thanks.
0
votes
0answers
14 views

Can I make the Shopping Cart step “mandatory” before going to Checkout (Magento 1.9)?

We have created a Coupon Code for free shipping, and our cart widget displays two buttons (links): one goes to the Shopping Cart screen (where people can enter the Cupon Code) the other goes to the ...
0
votes
0answers
16 views

Magento 1 shopping cart: product list empty, but there is products

When I open shopping cart, the product list seems to be empty; however there is products, infact the total show the price. Any suggesion? Thank youenter image description here Magento 1.9.4.5

1
2 3 4 5
42