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
25 views

magento 2 How to store Customer Address custom attribute value quote_address table column

I have created customer address type custom attribute and it's value store as custom attribute now I want to store this value on quote address column. I have create observer ...
Keval Chauhan's user avatar
0 votes
2 answers
33 views

REST API PUT /V1/carts/mine

Trough the rest API I'm trying to achieve that customers can save their cart/quote and have another new active one. For that I'm trying to figure what PUT /V1/carts/mine does, as the docs states that ...
AP87's user avatar
  • 125
0 votes
0 answers
62 views

Magento 2 How to update quote totals information from admin

Magento 2.4.5-p1 version using. We want to give custom discount via our custom module Using this code - <?php namespace Namespce\Modulename\Controller\Adminhtml\Quote; use Magento\Backend\App\...
sumeet bajaj's user avatar
  • 1,225
0 votes
0 answers
64 views

Magento 2 : Graphql setShippingAddressesOnCart default query duplicates the addresses in quote_address table

I'm using Magento version 2.4.5-p1 And I'm trying to setShippingAddressesOnCart using graphql for logged-in customers. This is the default Magento setShippingAddressesOnCart query I'm using but it's ...
Mohit Rane's user avatar
  • 1,935
1 vote
0 answers
70 views

Coupon code is not saving at quote table in magento 2

I upgraded my website from 2.3.6-p1 to 2.4.5-p1 . After that when i applied the cart rule with coupon code, it shows the error that The coupon code "GHSDYFEWFCER" is not valid. When ...
jaisa2's user avatar
  • 15
1 vote
1 answer
92 views

Magento 2 - Customer sometimes receiving 503 Error when performing random actions on the cart

I'm experiencing an issue where customers are intermittently receiving a 503 error (maintenance flag) when performing certain actions on the cart in Magento 2. For example, in one scenario, a guest ...
David Young's user avatar
0 votes
1 answer
62 views

$quote->getAllVisibleItems() giving same product data on every iteration

I have added some products in cart pragmatically when i Iterate on quote it iterates but on each iteration it is giving same product data $quote = $this->quoteRepository->get( $quote->getId()...
Syed Hassan Zamir's user avatar
0 votes
0 answers
28 views

Customer quote does not exists after product save from the backend

I am facing the one issue in local. while saving the product from the back end customer quote does not exists getting the error in report log Infinite loop detected, review the trace for the looping ...
Team18's user avatar
  • 716
0 votes
1 answer
503 views

how to get customer selected shipping method code from quote in magento2

how to get shipping method carrier code as $rate->getCarrier() from quote.
Abhay Agrawal's user avatar
1 vote
0 answers
64 views

Magento 2 add configurable product to quote with a custom price, the price is always the original from database

When adding a configurable product to a quote and trying to set a custom price on the product, magento is always showing the product original price in the cart and not the custom price: $...
noname's user avatar
  • 11
0 votes
1 answer
118 views

Magento 2 how to split cart data based on product attribute

I want to split cart data based on product dropdown attributes. I want to show multiple cart data data on cart page. If anyone knows so please help me.
Mr ND's user avatar
  • 19
0 votes
0 answers
41 views

Magento 2: Facing issue with get current quote cart subtotal from RulesApplier plugin

I have using Magento\SalesRule\Model\RulesApplier Plugin. Using aroundApplyRules method need to get current cart subtotal. I have need customisation to validate condition for cart subtotal with cart ...
Kirti Nariya's user avatar
  • 3,391
0 votes
0 answers
21 views

How to add custom price type value of a product to cart?

I'm trying to create a custom price type in Magento. And for that I've created a custom attribute to a product. And I've added this price type to Magento\Catalog\Pricing\Price\Pool like below in my ...
Amit Biswas's user avatar
0 votes
0 answers
116 views

Magento 2: Quote is null in collect() totals function immediately after a successful order has been placed?

So I am overriding collect() using etc/sales.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="...
Michael Mussulis's user avatar
0 votes
1 answer
1k views

Magento 2 Get order from quote id

How would I get a order's info from a quote id? if I have quote id of 253 and once I load that quote using.. $quote = $this->quoteFactory->create()->load("253"); How do i get the ...
Dean Van Greunen's user avatar
0 votes
3 answers
402 views

Magento 2 : How to overwrite Magento\Quote\Model\ShippingMethodManagement

I want to make changes in function estimateByAddressId() which is public method. I tried following : app/etc/di.xml also tried in app/etc/frontend/di.xml <preference for="Magento\Quote\Model\...
Jayshree's user avatar
0 votes
0 answers
43 views

In magento 2.4.3 how to do mandatory a shipping address field based on country selection in js

In Magento in the shipping address page, based on user selected country i need to make Address 2 field as mandatory. When the user select US - the address 2 field no need to be mandatory. When the ...
Venkatesh .dk's user avatar
0 votes
3 answers
152 views

Authentic way to access quote for admin and frontend area

I am working on shipping module where i need to fetch quote subtotal in both area frontend as well as admin order create. I am using Magento\Checkout\Model\Session to get the quote subtotal but when i ...
M2 Dev's user avatar
  • 460
0 votes
1 answer
181 views

how can discount apply on another product Y based on X Product Step Qty

I need to apply discount on another different product Y based on X Product Step Qty. So that why I was created custom simple action in sales rule. I created custom action class for calculation ...
Harsh Patel's user avatar
2 votes
1 answer
182 views

How to change quotes expiration date on Magento B2B?

My clients are able to quote items within a period of 30 days. I can see the expiration date on the screen below. How could I change it?
Rafael Corrêa Gomes's user avatar
1 vote
1 answer
159 views

Duplicate cart items

community! Bumped into an issue - duplicate items in a cart. In the quote table, I have multiple quotes for the same customer. Items_count is increased like an exponent, eg 2, 3, 6, 178, 192. In the ...
vadim vadim's user avatar
1 vote
2 answers
297 views

How to change the Product NAME and SKU permanently in quote_item table when it is added to cart?

How to do this? I am using checkout_cart_product_add_after event. EDIT: After I did it like this <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Mohmad Ashik M A's user avatar
0 votes
0 answers
136 views

How Quote Works in Magento 2 and Data is inserted into Quote and Quote Item Table?

I want to know how Quote system works and how data is inserted into quote tables and how api retrieves data.Everything about quote by pure coding point of view i know that quote is cart object later ...
Magento2-learner's user avatar
1 vote
0 answers
102 views

how to add product comments in product display page and save in database?

I want to add product comment options in PDP and save that in database and pull back and show that in shopping cart page. How can I do it?
Mohmad Ashik M A's user avatar
1 vote
1 answer
70 views

How to add custom attribute in PDP and save that in database?

How to add a custom attribute in Product Detail page and save it's value in quote table after the add to cart is clicked?
Mohmad Ashik M A's user avatar
0 votes
1 answer
157 views

I have added a custom attribute in PDP page, I want to get that value in Observer/SaveToQuote.php to save in the quote table

I have added a custom attribute in PDP page, I want to get that value in Observer/SaveToQuote.php to save in the quote table after the product is added to cart. I am using the event ...
Mohmad Ashik M A's user avatar
0 votes
1 answer
42 views

Comment History in Sales Quote Admin view

In magento backend sales qoute admin panel , the history and comemnt tab not able to load. https://i.stack.imgur.com/5Nlan.png
aaru vdc's user avatar
1 vote
1 answer
445 views

Magneto 2 : How to get quote id in order create page admin?

Magento 2 i want qoute id in order crete page admin, but i got null in quote id. I'm Using Magento\Checkout\Model\Session $this->checkoutSession->getQuote()->getId();
Darshit's user avatar
  • 43
1 vote
0 answers
248 views

Magento 2.3.7-p3 Unable to save extension attribute to Quote Item

I want to show customers how many 'points' they could be making, per quote item, on each item row of the basket. Using extension attributes, this is what I have: di.xml <type name="Magento\...
Surreal Disco's user avatar
0 votes
1 answer
172 views

Get region and set region from quote not working in magento 2

I'm using getRegion() and setRegion() but in my quote isn't saving values from setRegion(). How can I solve this problem?
NoOn's user avatar
  • 65
0 votes
2 answers
969 views

Send Custom Data to quote table

I am new to magento 2. I have created a custom checkout step where user can select delivery day and time via dropdown. Dropdown options are coming from system.xml via customConfigProvider after seller ...
Muhammad Uzair Aziz's user avatar
0 votes
1 answer
331 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 ...
manish_khot's user avatar
0 votes
0 answers
781 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/...
Mohit Rane's user avatar
  • 1,935
2 votes
1 answer
253 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 ...
bhargav shastri's user avatar
0 votes
1 answer
556 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 ...
Vishwanath Kharabe's user avatar
1 vote
0 answers
265 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->...
user2270134's user avatar
0 votes
1 answer
216 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
Web developer's user avatar
0 votes
1 answer
530 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 ...
Aaron Wang's user avatar
1 vote
0 answers
330 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(...
GenZ Dev's user avatar
  • 590
0 votes
1 answer
396 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 ...
Litsher - Nathan's user avatar
0 votes
1 answer
448 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::...
Prits's user avatar
  • 626
0 votes
0 answers
404 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 ...
tanu's user avatar
  • 12
0 votes
1 answer
706 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 ...
Soumyo Deepto's user avatar
1 vote
0 answers
271 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, &...
Ghulam.M's user avatar
  • 953
0 votes
1 answer
367 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 ...
J. Doe's user avatar
  • 249
0 votes
1 answer
54 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:...
lucas's user avatar
  • 307
0 votes
2 answers
320 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. ...
Dhaduk Mitesh's user avatar
0 votes
0 answers
167 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.
NewDeveloper's user avatar
0 votes
1 answer
510 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 ...
Dexter's user avatar
  • 3,593
0 votes
1 answer
117 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 , ...
J. Doe's user avatar
  • 249

1
2 3 4 5
13