Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [quote]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
55 views

i am fetching the data from database and display in magento admin grid, and the grid display blank

I have tried all of my thinking, I don't understand why the grid displays a blank Controller namespace StateDrives\RequestQuote\Controller\Adminhtml\Bulkquote; use Magento\Backend\App\Action; use ...
abbas fakhruddin's user avatar
1 vote
1 answer
27 views

Itemcollection get latest updated_at item - Magento 2.4

We use the following code, to get the last item that was most recent updated. $itemsCollection = $cart->getQuote()->getItemsCollection(); $itemsCollection->getSelect()->order('updated_at ...
JGeer's user avatar
  • 1,418
1 vote
0 answers
52 views

Magento 2 - How can I update the cart summary totals when quote grand total is modified

I have a controller that is called by ajax in the cart page. A gift card amount is passed to the controller and a function then updates the quote grand total based on that amount. protected ...
nickcobb's user avatar
0 votes
1 answer
347 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
122 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
  • 197
0 votes
0 answers
194 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,296
0 votes
0 answers
285 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,955
1 vote
0 answers
126 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
210 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
154 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
1 answer
2k 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
189 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
225 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
43 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,041
0 votes
1 answer
2k 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 ...
X3R0's user avatar
  • 105
0 votes
3 answers
623 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
3 answers
352 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
  • 538
1 vote
1 answer
222 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
3 votes
1 answer
303 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
2 votes
1 answer
273 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
2 votes
2 answers
422 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
181 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
126 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
99 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
1 vote
1 answer
204 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
45 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.sstatic.net/5Nlan.png
aaru vdc's user avatar
1 vote
1 answer
605 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
  • 53
1 vote
0 answers
296 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
202 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
1k 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
465 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
988 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,955
2 votes
1 answer
311 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
705 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
2 votes
0 answers
308 views

Magento 2 update quote StoreId ($quote->setStoreId()) or Store ($quote->setStore()) not working

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
272 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
694 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
403 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
  • 600
0 votes
1 answer
415 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
569 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
  • 625
0 votes
0 answers
476 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
  • 22
0 votes
1 answer
851 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
281 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
  • 963
0 votes
1 answer
604 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
  • 259
0 votes
1 answer
82 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
  • 309
0 votes
2 answers
367 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
182 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
609 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,613
0 votes
1 answer
143 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
  • 259
0 votes
1 answer
277 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 ...
mendz's user avatar
  • 143

1
2 3 4 5
13