Questions tagged [quote]

Denotes questions related to the quote on Magento (creation, management, modification, relations)

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

Magento 1.9 add to cart slow when cached

We have been experiencing an odd issue on some of our sites since moving from Magento 1.7 to 1.9. When a sites cache hasn't been cleared for a while add to cart is extremely slow. This also affect the ...
user avatar
0 votes
1 answer
11 views

Multiple shipping method for single order

I wanted to build a functionality where user can choose or select shipping method per cart item. For example I have 3 items in my cart as below- Item-1 Item-2 Item-3 On cart page all the available ...
user avatar
0 votes
0 answers
10 views

Why does trigger_recollect go to an endless loop?

I am facing some issues after customer login. When I debug, I check the quote table of that customer, and it is set trigger_recollect=1 If I am set trigger_recollect=0 all works perfectly. can anyone ...
user avatar
0 votes
0 answers
51 views

Magento 2 : Show a custom error message on cart page if bundle product options has changed

I want to catch this error "Some of the products below do not have all the required options." which is coming from checkData() from the path vendor/magento/module-quote/Model/Quote/Item/...
user avatar
  • 1,838
2 votes
1 answer
67 views

Magento2 quote item row total rounding issue

We are facing issue in quote_item table with row_total column in which its not rounding prices of items. for example please check below screenshot: 14.2250 should be 14.23 15.9750 should be 15.98 We ...
user avatar
0 votes
0 answers
18 views

How to add product programmatically for custom guest Quote in Magento 2

Please let me know how to add product to cart programmatically for custom guest user quote using an event observer in Magento 2 I try to add product for the registered user it was added successfully ...
user avatar
0 votes
1 answer
41 views

Magento 2 No quote data for Checkout Session in custom api

\Magento\Checkout\Model\Session\Proxy $checkoutSession $quoteId = $this->checkoutSession->getQuote()->getId(); When accessing this code from rest api $quoteId is null, but when accessed from ...
user avatar
0 votes
0 answers
63 views

Magento 2 $quote->getAllItems(); set StoreId or Website

Try to catch the quote items, it's working fine. But when quote is not in default website, the request is empty. How to change website ID or store ID in quote request? Did try with: $quote->...
user avatar
0 votes
0 answers
10 views

Do Files uploaded through a Product-File-Option ever get deleted automatically?

Magento features the possibility to allow customers to upload files when ordering certain products using an option on product-configuration. The uploaded pictures are stored under magento-root/pub/...
user avatar
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
user avatar
0 votes
0 answers
31 views

Get tax price from Quote

I got the zip code, city, and region from the customer's IP. And set the shipping address to the quote object. Is there any way to get the tax price from the quote?
user avatar
0 votes
1 answer
28 views

Add Shipping Address after add the product to Cart for all Customers

I added the Shipping price, Subtotal and Grand Total to the Mini Cart. So that the customers can check their shipping price in the Mini Cart. I think the magento is stored the shipping price in Quote ...
user avatar
0 votes
2 answers
55 views

Shipping charges not showing on Totals admin order

I am trying to create an order from the backend side. after adding all details and selecting any shipping method the price adds to the total but is not visible on the order. Any way to override the ...
user avatar
0 votes
0 answers
15 views

Product added to existing order does not merge and does not add when more than one item

order code does not merge the same products, but I include separate and even separate if you have more than one item and do not multiply the unit value by the quantity. namespace Funarbe\...
user avatar
0 votes
0 answers
15 views

Getting the category of the page the product was added from. Needed to be used in Checkout for shipping method

I've looked high and low for this but have had no luck. I need to get the category of the page that the product was added from. I have written an Observer that hooks into the add to cart event that ...
user avatar
  • 1
0 votes
0 answers
21 views

Magento 2: Apply shipping rate to quote

I want to apply the matrix rate shipping method which has multiple rates based on quantity in the cart. I tried the following code but it is not working $shippingAddress->setCollectShippingRates(...
user avatar
  • 548
0 votes
1 answer
86 views

Magento 2 - Get the original Qty on Qty change

I have a product for which another product needs to be added in the cart. For this I need to check if the quantity of said product is changed in order to change the number of associated products. I ...
user avatar
0 votes
0 answers
79 views

How to add a product with custom price to the quote with plugin [beforeSubmit] in Magento 2

I have a plugin to replace one of the products in the last step before a quote is submitted. I'm able to add a new product, remove the old one but I can't set the new product price to the price of the ...
user avatar
  • 15
0 votes
1 answer
73 views

How to get only Simple products from cart?

How to get only simple products from cart as currently i am getting configurable product also. currently i need to check with an if condition $objectManager = \Magento\Framework\App\ObjectManager::...
user avatar
  • 526
0 votes
0 answers
59 views

Magento 2 : Update the product name while adding into the cart

I want to add something with the product name dynamically while adding to the cart. Each product have different concatenation with product name. And that product name should be updated on everywhere ...
user avatar
  • 12
0 votes
0 answers
17 views

What is the purpose of converted_at in the quote table? (Magento 2)

Simple questions which I couldn't find the answer for on this site: What is the purpose of converted_at column in quote table in Magento 2 When is it set and/or changed? Which values can it have and ...
user avatar
  • 1,280
0 votes
0 answers
21 views

Why update cart for configurable product gives error? Magento 2

Basically I am getting error We can't find the quote item after update cart for configurable product. There are no issues in adding item to cart. Also I am not getting any error's or warnings while ...
user avatar
  • 109
0 votes
1 answer
79 views

How to override magento/module-checkout/view/frontend/web/template/minicart/item/default.html in custom module

I have custom additional options in quote and want to hide few options in the mini cart. How to skip a specific index in Knockout js array from the following code <dl class="product options ...
user avatar
0 votes
0 answers
21 views

How do I set guest address programmatically before proceeding to checkout?

I have a custom guest checkout form. I want to use those fields to set the address (and firstname, lastname, email etc) programmatically before proceeding to checkout. How would I do this? I tried ...
user avatar
  • 1,280
1 vote
0 answers
92 views

Magento 2 Add/Remove Extra info in API(carts/mine/items/) payload

I'm trying to add product via API call https://testdomain.com/rest/V1/carts/mine/items/ my payload is { "cartItem": { "sku": "444375", "qty": 1, &...
user avatar
  • 871
0 votes
1 answer
49 views

How to add additional fee to subtotal of checkout/cart using events and observers? magento 2

Basically, I am trying to add additional fees to the subtotal of checkout/cart based on product_type. Here is what I tried but I am not able to get print_r($item->getBasePrice()); because I want to ...
user avatar
  • 109
0 votes
1 answer
20 views

Magento 1.9 - programmatically removing products from the cart

I'm trying to replicate the cart on another page and I'm using 'checkout / cart' to retrieve item info, but I need to replicate the remove cart button and I just don't know how. Here's my code example:...
user avatar
  • 177
0 votes
2 answers
67 views

Magento 2.4.2 - Not able to get quote using customer id with cronjob

Not able to get quote data by customer id using Magento\Quote\Api\CartRepositoryInterface (method getForCustomer) with cron. Also tried with Magento\Quote\Model\Quote with loadByCustomer method. ...
user avatar
0 votes
0 answers
38 views

Magento 2 - Incorrect updated_at value for quote session

im using Magento\Checkout\Model\Session to get the current quote on the cart. $quote = $this->checkoutSession->getQuote(); $updated_at = $quote->getUpdatedAt(); my problem is the update_at ...
user avatar
  • 133
0 votes
0 answers
47 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 ...
user avatar
0 votes
0 answers
42 views

Magento 2 : From where the total discount from cart is returned

I need to know from where the total discount after all validation & calculation is returned for a cart ? I need to get total discount for a cart/quote.
user avatar
0 votes
1 answer
113 views

How to read a value from `quote_address` table

I have created a custom column in quote_address table and now trying to copy the value from quote_address to sales_customer_address table by trying to observe the event ...
user avatar
  • 3,554
0 votes
0 answers
29 views

Magento EE 2.3.5-P2: Customer Store Credit Remove After Selecting Payment Method On Checkout

I'm using Magento EE 2.3.5-P2, The Main issue I'm getting is when customer use Store Credit for their order, goes to checkout, select shipping method, proceed to payment, when customer select payment ...
user avatar
0 votes
1 answer
26 views

Updating configurable product throws error We can\'t find the quote item. Magento 2

Basically I am trying to update configurable product which has been successfully added to the shopping cart. I can see record of added configurable product item in my database quote, quote_item , ...
user avatar
  • 109
0 votes
1 answer
19 views

Magento 2 - Shippiing Address doesnt have a shipping method

im trying to get the quote shipping method by $quote->getShippingAddress()->getShippingMethod(); but it always returns null. then i figured out the shipping_method is not part of the instance ...
user avatar
  • 133
1 vote
1 answer
221 views

Magento 2 : Save quote

What is the Difference between $this->quoteRepository->save($quote); & $quote->save(); In below code public function aroundApply_shipping( \StripeIntegration\Payments\Api\...
user avatar
  • 367
0 votes
1 answer
99 views

Magento 2.3 EE: Make reward points to not apply automatically

In Magento 2.3 EE, if a customer has reward points balance it is automatically applied to cart when the cart page is loaded and customer goes to the checkout process. I want to remove this ...
user avatar
  • 548
0 votes
1 answer
97 views

Magento 2 - Show modal if no quote shipping address

I am trying to alert the user that they have not added a postcode into their session when clicking "Add to cart" I have created a mixin, "catalog-add-to-cart-mixin.js" within my ...
user avatar
0 votes
0 answers
49 views

Why is there CartInterface instead of QuoteInterface?

Standard practice is to have Entity and EntityInterface (Order - OrderInterface, Customer - CustomerInterface). But for Quote this rule is broken, regardless class Quote is the one implementer of ...
user avatar
0 votes
1 answer
30 views

Collect quote totals at init checkout page and cart page?

i'm using magento v2.4.1. I tried to add the product to the cart programmatically using salesrule_validator_process observer, this is to add a product if a cart rule being applied to the cart: $quote =...
user avatar
  • 98
3 votes
2 answers
550 views

How to properly get current quote in Carrier Collect Rates function?

I'm using Magento 2.4.1 and I want to retrieve the current quote in collectRates function in my Carrier model, but sometimes it will prompt an infinite loop error like this: this is how i retrieve ...
user avatar
  • 98
0 votes
0 answers
30 views

Order split based on product attribute reducing qty twice

I have integrated Magento 2 order split based on product attributes with help of this extension. https://github.com/magestat/magento2-split-order My plugin file is below. public function ...
user avatar
  • 828
2 votes
1 answer
2k views

Getting No such entity with cartId = {quoteId} on Guest Checkout issue

I saw several posts about this issue, with getting the following error message: No such entity with cartId = {quoteId} but none of them worked for me :( Or I didn't find exactly what is the cause of ...
user avatar
  • 3,535
0 votes
1 answer
68 views

Session or SessionFactory which one to Use in Magento 2?

I am have been working on a payment method where I need Current Quote So I used \Magento\Checkout\Model\SessionFactory $checkoutSession and then get Quote from the Checkout session using $this->...
user avatar
  • 2,029
0 votes
1 answer
177 views

magento2 add simple product to order

I want add surprise functionality so when custom try to place an order, one simple product will get automatically added to their cart. I want to add that item after customer click on place order ...
user avatar
0 votes
1 answer
205 views

Magento 2 get address extension attribute value in carrier collect rate model

I successfully pass the extension attribute value to estimate-shipping-method,like this: etc/extension_attributes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3....
user avatar
  • 98
0 votes
2 answers
538 views

How to create new quote programmatically from old order after place the order in magento 2

I want to create a new quote based on the old order. I can create order programmatically but not able to just add to cart product in a new quote. I don't want to place the order. Need is only add to ...
user avatar
0 votes
1 answer
1k views

Magento 2 : No such entity with %fieldName

I am getting this error any thoughts, why this error appearing ? "message": "No such entity with %fieldName = %fieldValue", "parameters": { "fieldName&...
user avatar
1 vote
0 answers
85 views

Magento2 negotiable quote save programatically

How to create and save the negotiable quote programatically in M2. Can any one provide some example with dummy data / (or) provide me the test script with simple example please Thanks
user avatar
0 votes
2 answers
287 views

Force start / add sales_clean_quotes to cron job list in Magento 2

We started to have some issues with our quotes not being cleaned correctly. I checked list of cron jobs and could not find sales_clean_quotes in the list. We are currently running Magento 2.3.3. How ...
user avatar

1
2 3 4 5
13