Questions tagged [quote]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
10 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 $...
1
vote
1answer
16 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.
0
votes
1answer
30 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 ...
4
votes
3answers
78 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 & ...
1
vote
0answers
15 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][...
1
vote
0answers
5 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 ...
0
votes
0answers
21 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?
0
votes
0answers
11 views

Add description and datasheet to table sales_flat_quote_item

I would like to add a description column in the sales_flat_quote_item table so that it is populated automatically thanks to the long_description field of the product. I would also like to add a field:...
0
votes
0answers
7 views

Magento2: Should I generate Multiple Quote for register customer while I add to cart product?

I want to generate multiple quote for same customer,Like when I add to cart product it create new quote in quote table every time also flow of quote_item table is same.
1
vote
0answers
15 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.
0
votes
0answers
20 views

Magento2 replicate quote data in orders, shipping and invoice

Magento2: How to create a custom get quote attribute and replicate them in orders, shipping and invoice. Basically i will be having some custom quote fields on checkout page which is filled and when ...
0
votes
0answers
20 views

Magento 2 - Render payment method options outside of checkout page

It seems there are many resources on how to add a payment method to the checkout process, but I try to add the payment method options form to a page that is not in the checkout process. I can display ...
0
votes
0answers
20 views

Magento 2 Apply Custom Discount to the Quote Programmatically

I want to add custom discount to the quote programmatically but the total not updated and when place the order the discount is not affected. $cartId = 199; $quote = $this->...
0
votes
0answers
40 views

Problem saving magento order 1.9.4.3

I have a problem with the order creation on Magento via direct PHP I use Magento version 1.9.4.3 This is the code I made: <?php require_once '../../app/Mage.php'; Mage::app()->...
0
votes
1answer
20 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 ...
0
votes
2answers
47 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 ...
0
votes
0answers
18 views

Get product configurable attribute with value (Child of configurable) from QuoteFactory

How can I retrieve simple product configurable attribute with its value from \Magento\Quote\Model\QuoteFactory (or any other method?)? I can retrieve some information using this: public ...
0
votes
1answer
34 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 ...
0
votes
1answer
33 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 ...
0
votes
1answer
48 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(); $...
0
votes
0answers
15 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, .... ) { .......
0
votes
1answer
40 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 ...
0
votes
1answer
24 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 ...
0
votes
0answers
51 views

Magento 2 : How to retrieve 'custom quote params' from quote object after order placed

I want to retrieve custom params saved in the table: "quote_item_option" I have built an observer to capture the purchase event and also to retrieve the quote object i.e public function execute(\...
0
votes
1answer
40 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 ...
0
votes
2answers
127 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 ...
0
votes
0answers
15 views

How can i set new attribute from quote item

I added a new column into sales_order_item i created programaticly order create and i would like to use this column in the order as attribute. This code add items to quote. Quote use sales_order_item ...
0
votes
0answers
17 views

API returns quote totals data for a specified cart not properly working

I'm using rest API of Magento ver 2.2.8 to develop a mobile app base on Reactjs. Steps to reproduce Place order via API (carts/mine/payment-information) Create a new quote (carts/mine) Add product ...
0
votes
1answer
92 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()->...
0
votes
1answer
22 views

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

I need to assign data to quote, how can I do this?
1
vote
2answers
171 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, $...
0
votes
0answers
98 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 ...
1
vote
1answer
47 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 ...
2
votes
2answers
151 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"&...
0
votes
1answer
22 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->...
0
votes
1answer
45 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 ...
1
vote
2answers
87 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) { ...
0
votes
1answer
22 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 ...
2
votes
1answer
363 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 ...
0
votes
1answer
38 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-&...
1
vote
0answers
33 views

Magento 2.2.3 How to change GrandTotal

var billingAddress = quote.billingAddress(); var billingCountryId = (billingAddress.countryId); // console.log(billingCountryId); console.log({billing: ...
0
votes
0answers
147 views

Apply discount amount on cart line items in Magento 2

I am trying to set discount amount on each cart item in the cart with some condition. I have followed like this to achieve that. Vendor/Module/etc/sales.xml <config xmlns:xsi="http://www.w3.org/...
0
votes
0answers
26 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="...
0
votes
0answers
25 views

Change Shipping method in quote before magento validation occurs on admin order create

I am creating order from magento admin side but I want my custom method to be set in the quote before the order is submitted I have tried the following code. di.xml <preference for="Magento\...
0
votes
0answers
20 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?
0
votes
1answer
216 views

Magento 2: Change quote base currency programmatically?

I am creating orders programmatically in Magento 2 and want to change the order base currency as well as current currency to my custom currency, irrespective to currency available in Store as I don't ...
0
votes
0answers
32 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')->...
0
votes
2answers
226 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="...
0
votes
0answers
36 views

Add product point to quote, order and invoice magento 2

I have a voucher point custom attribute for each of my product. I need to keep track of this point across each quote_item, sales_order_item and sales_invoice_item (Meaning I need a voucher_pts ...
1
vote
0answers
37 views

Updated address not reflecting at Checkout in Magento 2

I have customized the Checkout, Where I split the checkout into 3 steps. Cart section. Shipping Payment. In the Shipping section, I am showing the customer address details with an edit button to ...