Questions tagged [quote]

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

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

How to get information about product in cart

I want to get information about product in cart such as customer_firstname, customer_email. I use this code: $carts = Mage::getModel('checkout/cart')->getQuote(); foreach( $carts->...
0
votes
1answer
778 views

Admin order update price programmatically in quote loop

I have a bit of custom pricing that needs to be carried out for each product in an order which alters the end price of the item. I am using an observer with the sales_quote_item_qty_set_after event ...
9
votes
2answers
1k views

merge guest quote with customer quote(if custommer log in) magento 2 rest api

if 2 items in cart if customer login both item should need to add cart , Both quote (before login & after login) merge and create final quote which contain all item of customer quote Refference ...
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, .... ) { .......
1
vote
1answer
611 views

Magento 2 : How to update Quote Customer?

I want to move all cart items of a current customer with another customer(move all cart items to another customer cart items). In other words, I want to share One Customer Cart items with another ...
4
votes
0answers
599 views

Magento-2 : How to update cart total on check-box checked/unchecked

Magento2 - in checkout page, I have one check-box just before the payment method on the checkout payment step. I need to update cart total on check-box check/unchecked. Currently system is working ...
0
votes
1answer
23 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
1k views

Magento 2 : How Can I Update Quote Total

I am creating functionality for additional donation. I am trying to add donation amount in quote total but it will not reflect. This my code portion of that part : <?php namespace ...
0
votes
1answer
20 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
1answer
1k views

Extract total tax amount from Quote when using TaxJar

I have run into an issue with a Magento 1.9 instance that uses TaxJar. I am trying to extract the total tax on the Quote. With a standard Magento 1.9 instance, I can get the total tax as follows $tax ...
2
votes
2answers
64 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"&...
1
vote
0answers
50 views

Magento 1 problem adding shipping price

Been struggling with this for a week now. I have some code where I create a quote and add shipping details but I can't get the shipping price to save on the quote. Everything else such as the shipping ...
0
votes
0answers
37 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
2answers
34 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 ...
1
vote
1answer
1k views

How to save order comment programmatically in magento2?

1)I'm creating custom order comment text box in sales->order->create new order . 2) Created order_comment column in sales_ order grid/quote. 3) I need to save order comment text box value into db....
4
votes
1answer
1k views

Magento2 SOAP API for multi-store

Background: I am planning to use Magento2 web-service using SOAP. This will be for Mobile App where customer are allowed to add to cart then checkout. The store will be a multi-store website where ...
5
votes
1answer
3k views

Magento 2 Restore Quote/Cart after order is cancelled/Failed

I am Trying to Restore Quote/Cart after order is cancelled/Failed in custom payment gateway (CCAvenue) but the problem it the quantity of item restored is doubled. protected function _cancelPayment($...
3
votes
1answer
3k views

Can't Access Quote from checkout session after returning from payment Gateway

I am building payment gateway extension and i am facing small issue to get the quote object after control return from payment Gateway. Let me explain you in detail. I am using below funtion to ...
0
votes
1answer
18 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
0answers
14 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
12 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
49 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
16 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
41 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, $...
1
vote
1answer
35 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 ...
1
vote
1answer
2k views

Magento 2: how to programatically set free shipping from an observer?

I need to set free shipping in observer, under certain very specific conditions. I can't have free shipping enabled in the back end because customers shouldn't be able to select it. I already tried ...
1
vote
3answers
1k views

How to get quote_id in “checkout_cart_product_add_after” event

I have added checkout_cart_product_add_after event in my custom module like : <checkout_cart_product_add_after> <observers> <custom_detect_product_changes> &...
0
votes
0answers
19 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 ...
4
votes
1answer
3k views

How to get quote and update total through AJAX Magento 1.9

In cart page when postal code is entered and pressed get quote button then it submits one form and shows the rate of that postal code after that update button appears and clicking on that updates the ...
0
votes
1answer
285 views

Magento2 Reorder using REST Api

Can anyone let me know if we can Reorder in Magento2 using REST webapi? Actually i have made one api and used same code as magento default reorder does, here is my code in API function using order_id ...
2
votes
3answers
4k views

How to get quote Id using sales_quote_collect_totals_after events

I have create a programmatically order. But when submit order sales_quote_collect_totals_after events fire before save collect totals. Here is my code : $storeId = Mage::app()->getStore()->...
0
votes
1answer
21 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
2answers
220 views

How to adding Custom Attributes to Magento 2 Quotes and Orders

I have followed this: https://www.siphor.com/adding-custom-attributes-to-magento-2-quotes-and-orders/ It works well when creating custom attributes and adding data quote but after checkout, quote ...
0
votes
1answer
24 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 ...
2
votes
1answer
2k views

Quote with no items - add to cart error

I'm facing this strange issue on add to cart action: sometime after I checkout (with a registered customer) correctly my order, if I try to purchase another item I got the following error: Call to a ...
3
votes
1answer
1k views

How to reload the quote or cart in Magento 2

I am working on ajax cart. When i update the cart qty, I am trying to reload the quote but its not loading properly $this->cart->getQuote()->getShippingAddress()->collectShippingRates()-&...
2
votes
1answer
647 views

Magento 2 has NULL value for customer_id in the quotes table, even after the customer is logged in. Causing error “cartId is a required field”

In a Magento 2 store, the checkout breaks when the user successfully logs in. When the user logs in and enters their address info, they receive no shipping quotes, and an error pops up saying "cartId ...
2
votes
0answers
120 views

Get quote discount total for each applied discount/promo

I want to display each promo name and total applied for current quote in checkout/cart , right now i'm able to display the name of each promo like this: $quote = Mage::getSingleton('checkout/session'...
2
votes
1answer
673 views

Magento 2: After login how to get current quote id?

Magento 2: After Customer Login Get Cart Information? On observer I got 2 active quote id's. I can get by latest from quote table. Is there any way to get current quote id?
1
vote
2answers
35 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) { ...
2
votes
1answer
1k views

How to change Tax percentage during checkout

We would like to change the Tax percentage on my current order during checkout. Current setup: Magento 2.1.4 Magestore OneStepCheckout Current challenge: We currently ask our customers some ...
0
votes
1answer
21 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
99 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 ...
1
vote
3answers
4k views

USPS - “Sorry, no quotes are available for this order at this time.”

I have been all over looking for a solution for this. Unfortunately, nothing I tried so far seems to work. I started receiving this error a while ago. When a customer tries to get a shipping quote in ...
5
votes
1answer
2k views

Tier price when adding product to basket - where is it calculated?

When adding a product to the basket, where exactly is the price that appears in the quote for each item calculated? (base, special, tier...) My issue is this: I have a simple product with a tier ...
0
votes
1answer
24 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-&...
14
votes
2answers
805 views

How to update Shipping rates using Ajax when cart item is deleted on Checkout-Cart page?

My Shipping rates are calculated based on item present in cart and now on deletion of item on Checkout/Cart page, I need to update the Shipping rates. As of now, Remove Item on Checkout/Cart page ...
0
votes
0answers
80 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
31 views

Magento 2.2.3 How to change GrandTotal

var billingAddress = quote.billingAddress(); var billingCountryId = (billingAddress.countryId); // console.log(billingCountryId); console.log({billing: ...
1
vote
1answer
63 views

Quote Payment in Magento2

I want to getAddtional infomation from quote payment by order id.