Skip to main content

Questions tagged [quote]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
321 views

Load product details of inactive quote

I am trying to get the details of a product whose quote has been inactive. I am getting the following error when i use the this code. $cartItem = $this->quoteItem->load($itemId); return $...
Avesh Naik's user avatar
  • 1,208
1 vote
1 answer
99 views

Empty the Cart items but keep the quote and quote items

I have added a button on cart page. Clicking on the button the cart items should get deleted but the quote should not be erased.
Avesh Naik's user avatar
  • 1,208
0 votes
1 answer
1k views

How can I get all quote which is active with customer ID

Is there anyway I could print out in a table in phtml the following: Entity_id , is_active and store Is it possible to get all active quote within a customer_id? I want to show this in a table I ...
Jack Brooks's user avatar
7 votes
3 answers
1k views

Magento 2: quote data is not working with cache enable

I tried the below code but when the cache is disabled. it works, but when I enable cache it does not work. Overview of retrieving the data of shopping cart items, subtotal, grand total, billing & ...
Kushal Dani's user avatar
  • 2,114
1 vote
0 answers
101 views

quoteCartRepositoryV1 serach by nested field

I would apply searchCriteria to /V1/carts/search in order to get all carts which contain specific sku. I've performed this query https://shop.dicanio.it/rest/all/V1/carts/search?[filterGroups][0][...
Claudio Pomo's user avatar
1 vote
1 answer
439 views

Add some information in additional_options of quote_item_option table while adding item to quote while creating order from backend

I want to add some information in additional_options of quote_item_option table while adding item to quote while creating order from backend. For this purpose I need an event that called after adding ...
Ashwani Rana's user avatar
0 votes
0 answers
142 views

Need event to update quote item while creating an order from admin

Can someone tell me an event for updating quote items while creating an order from admin?
Ashwani Rana's user avatar
1 vote
0 answers
102 views

Magento 2 - Empty Cart and Quote behaviour

When the session quote has no visible items should it be set as inactive or still kept as active? Does anyone know how to do it? Thanks in advance.
Trenox's user avatar
  • 397
0 votes
0 answers
802 views

Can't write; duplicate key in table

SQLSTATE[23000]: Integrity constraint violation: 1022 Can't write; duplicate key in table 'quote_address', query was: CREATE TABLE quote_address can any body explain this error?
imtiazau's user avatar
  • 379
0 votes
1 answer
161 views

Magento 2 - Get all options from a quote item

I need to get all the configurable items related to an item in the cart. For example, if the cart item is of a size "XL", then I need to get all the other options like "S", "M" and "L" together with ...
Joe_Coder's user avatar
1 vote
2 answers
2k views

Add each product items separately to a shopping cart

I want to make adding to the shopping cart as a separate item on every action of clicking to a button Add to Cart. If the customer clicks Add to Cart a couple of times he/she should see different ...
underser's user avatar
  • 550
0 votes
1 answer
260 views

How do i get the value from addressInformation Magento 2

How do I get the example value which is the date. $billingAddress = $order->getBillingAddress(); $shippingAddress = $order->getShippingAddress(); these two don't have it But it saves in ...
jibin george's user avatar
0 votes
1 answer
593 views

Magento 2 Order ID missing from both both quote and sales_order tables

A client's site has been running for three years with order IDs being consistent with sales_order table's entity_id. A month ago, three order IDs were skipped all on the same day but hasn't happened ...
jsalita's user avatar
  • 21
0 votes
1 answer
467 views

How do you get values from Quote_address table Magento 2

I have added new column in Quote_address table but I am not able to get the value when i do the following steps; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
jibin george's user avatar
0 votes
0 answers
110 views

Magento 2: Is it no longer possible to load Quotes by ID?

In the past, to load a quote by id, i used to use the factory: protected $quoteFactory; public function __construct( ... \Magento\Quote\Model\QuoteFactory $quoteFactory, .... ) { .......
Long M K Nguyễn's user avatar
0 votes
1 answer
652 views

Magento2 adding bundle product to existing quote not working

I want to add bundle product with its required options in existing quote in admin,i have added following code to add products to existing quote, its working fine for simple product but bundle products ...
bhargav shastri's user avatar
0 votes
1 answer
262 views

Create order from quote with existing payment method, but do not place payment?

I am working on a webhook endpoint that will take quotes and turn them into finished orders. As part of this, I want to set the quotes payment method to a custom existing payment method, but I do not ...
Paul Canning's user avatar
0 votes
1 answer
814 views

How to get is_active column value from quote table ? Magento2

I want to get the value of the is_active column through the method $this-> getQuoteCollection ($customerId) -> getLastItem (), I used getColumnValues('is_active'), but it doesn't return the last ...
Robinio's user avatar
  • 771
0 votes
2 answers
3k views

Magento 2: Create order from quote without quote submit

I want to create order from quote programmatically without submit quote. Because if customer redirect to failure page then we have one button like Make payment which redirect to customer on checkout ...
Hiren Shah's user avatar
0 votes
1 answer
2k views

Restore quote in magento2

I have canceled the current order like use Magento\Sales\Model\OrderFactory; $order = $this->orderFactory->create()->loadByIncrementId($order->getIncrementId()); $order->cancel()->...
Mahi M's user avatar
  • 2,540
0 votes
1 answer
183 views

Magento 1.9.X: How to assign data to quote?

I need to assign data to quote, how can I do this?
Roman Romanchuk's user avatar
1 vote
2 answers
3k views

How to add out of stock product to cart programmatically in Magento 2.3

I'm using Magento v2.3, I want to add out of stock products to cart without changing any configuration from backend. I'm using following function to add product to cart addProduct($productInfo, $...
Nausif's user avatar
  • 1,554
1 vote
0 answers
1k views

Magento 2: Billing address same as shipping doesn't work while changing the shipping method

So I have 3 shipping methods on my checkout page, Shipping Method Free Ground Shipping- $0 2-Day Shipping - $15 Overnight - $35 By default, the first one Free Ground Shipping- $0 is always ...
summu's user avatar
  • 847
1 vote
1 answer
432 views

How do I add a api created guest cart to active guest user or how to get quote ID from active guest user

I have a Magento store and a Wordpress website on the same domain, I want to view edit add and delete products from both sites. So far I've been able to get the products from the local storage and ...
Nico Shultz's user avatar
2 votes
3 answers
2k views

Magento 2: Change quote currency code before place order with Observer

I am trying to change the quote currency before placing any order. I have used below event for that. Vendor\Module\etc\frontend\events.xml <event name="sales_model_service_quote_submit_before"&...
Manjunath's user avatar
  • 177
0 votes
1 answer
126 views

Getting a list of basket items in Magento 2.3

I am trying to get a list of products in the basket. I have the following in my class public function __construct(\Magento\Quote\Api\Data\CartInterface $cartInterface) { $this->...
Goose84's user avatar
  • 2,611
0 votes
1 answer
778 views

How to check if a sales rules coupon is allowed

I'm trying to know how can I check if a sales rules coupon is allowed for a quote in magento 1.9. Here the scenario : I have a few active rules in my shop and I would like to check if one of them is ...
C_Amixys's user avatar
1 vote
2 answers
14k views

Magento 2.3 How to get Quote Data on product detail page

i want to get this quote data on product page but that not return any data ... only return below array instead of all quote data On other page it working fine issue only on product page. array(4) { ...
Navin Bhudiya's user avatar
0 votes
1 answer
34 views

Magento which model is correct for getting the quote in the cart?

I have tried every different combo of model that returns a quote in order to try and find the one that has the quote for the current customer's cart. So far none of them work, and I can't figure out ...
joeybab3's user avatar
  • 378
2 votes
1 answer
2k views

Customers Cannot checkout as guest in Magento 2.3

Several of our customers have complained that they cannot checkout as a guest. The issue seems to have started around the time we upgraded to Magento 2.3.2. I have tried to checkout as a guest ...
CJNotts's user avatar
  • 402
0 votes
1 answer
771 views

Get Last Added Product ID of Cart without using checkout session

I am using RESTful APIs of Magento and I want to get the last added product id of in the cart. All of my searches are using the Checkout Session method of Magento which is $this->checkoutSession-&...
Brandon Orphiano's user avatar
1 vote
0 answers
34 views

Magento 2.2.3 How to change GrandTotal

var billingAddress = quote.billingAddress(); var billingCountryId = (billingAddress.countryId); // console.log(billingCountryId); console.log({billing: ...
jibin george's user avatar
0 votes
0 answers
137 views

Quote Items are showing only if flush cache - Magento 2

I am trying to get cart quote items by the following code: File: app/code/Essence/Fcf/view/frontend/templates/packages.phtml I called this file in my cms page by following code: {{block class="...
Arshad Hussain's user avatar
0 votes
0 answers
63 views

How can I know if reward points are used in quote

How can I know if reward points are used in current cart and also how can I remove them?
miloszowi's user avatar
0 votes
1 answer
2k views

Magento 2: Change quote base currency programmatically?

I am creating orders programmatically in Magento 2. I wanted to change the order base currency. The current currency is my custom currency, irrespective of currency available in Store as I don't want ...
Milind Singh's user avatar
  • 1,594
0 votes
0 answers
264 views

Magento 1 get quote id of current user

I've gone through a number of questions on here relating to retrieving the current quote for the current browsing user, but each one yields the same result: Mage::getSingleton('checkout/cart')->...
joeybab3's user avatar
  • 378
1 vote
2 answers
2k views

Item not deleting from quote in Magento2

I have used observer to delete the quote item. Used this event controller_action_predispatch_checkout_index_index This is the code of my etc/events.xml. <event name="...
Manjunath's user avatar
  • 177
2 votes
0 answers
268 views

Add product with customized option in the cart through API

I'm having a problem adding a product with custom options in the Magento cart 2.3.1. After defining a custom option as multiple selection, I tried to add the product to the cart with the following ...
Luis Faconi's user avatar
2 votes
1 answer
2k views

How to get product price from \Magento\Quote\Model\Cart\Totals\Item $item

I need to get the product price from \Magento\Quote\Model\Cart\Totals\Item $item. I tried this but it doesn't work /** @var \Magento\Quote\Model\Cart\Totals\Item $item */ $item->getProduct()-&...
summu's user avatar
  • 847
2 votes
1 answer
2k views

magento 2 remove shipping amount from cart total

I want to remove shipping amount from cart page because we do not provide estimate shipping amount calculation block. Also, when customer add product to cart then its display grand total without ...
Hiren Shah's user avatar
1 vote
0 answers
98 views

Selected payment method in quote not get changed to default when reload the onepagecheckout in magento 2

I am having two payment methods Online payment and COD in Magento 2. But the default one is an online payment. When I reload the page, the online payment option gets selected by default(even if I ...
Arul's user avatar
  • 309
1 vote
1 answer
7k views

set discount amount while creating order progrmmatically in magento2

I am creating order pro-grammatically. I have referred below code https://www.rakeshjesadiya.com/how-to-create-order-programmatically-in-magento-2/ My requirement is to set discount amount for each ...
Manjunath's user avatar
  • 177
5 votes
1 answer
3k views

What does "setIsSuperMode" do on Quote Object in Magento 2?

I am creating a Quote programmatically, I have found a field IsSuperMode on Quote object. What effect does it have on the Quote ? Class: /Magento/Backend/Model/Session/Quote.php https://github.com/...
Milind Singh's user avatar
  • 1,594
2 votes
0 answers
263 views

Why cart ID is null even though i can see the id from \Magento\Checkout\Helper\Cart

I am trying to get the cart value, i can get the quote id when i do x-debug. if i try to get the id i get NULL Anyone know why i get this
jibin george's user avatar
0 votes
2 answers
2k views

Fatal error: Uncaught Error: Call to a member function getQuote() on null

I'm trying to get store information from Shopping cart page To do so I have created a module Following is my block file <? namespace Magento\History\Block; class ViewQuote extends \...
Kite Hany's user avatar
  • 235
1 vote
0 answers
46 views

How to display data from 2 tables that already have data on Magento 2.3

How to display data from two tables quote_item and sales_order_item from the database to .phtml file. Can anyone help me step by step, I am new to Magento, if someone can help me, it's very useful ...
Kite Hany's user avatar
  • 235
0 votes
1 answer
3k views

Magento2 : Which Magento Event for Update cart quantity only?

I have work on the task in which I need to handle quote item, here I have use two event checkout_cart_add_product_complete checkout_cart_update_item_complete here it work fine, But when I ...
Bhavesh Prajapati's user avatar
1 vote
0 answers
85 views

How to transform a quote into an order from CALLBACK HOOKS, MAGENTO 2.3

I'm trying to integrate a payment gateway. And they provide a callback hooks i've set for them to return me the CartID (Quote's entity_id). But from here on, it feels like it isnt right for me to ...
Kyouichi LogPose's user avatar
3 votes
0 answers
128 views

Magento 2.3 Convert Quote from store to another store

I need to convert a quote from one store in GBP to another website store in EUR dynamically on the fly, but i can save the item with the new store_Id and the quote with the correct store_id but ...
TTech IT Solutions's user avatar
0 votes
1 answer
19 views

SetBillingAdress not working (prog) on quote

I'm creating orders programmaticaly but my billings address are not updating. I can set the shipping address that I want (another from the connected user) but the billing is still the one from the ...
Morgan Tartreau's user avatar

1 2
3
4 5
13