Questions tagged [quote]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

Magento 2 - Incorrect updated_at value for quote session

im using Magento\Checkout\Model\Session to get the current quote on the cart. $quote = $this->checkoutSession->getQuote(); $updated_at = $quote->getUpdatedAt(); my problem is the update_at ...
0
votes
0answers
12 views

Magento 2 how to update cart price is modified?

I have a form, and when I submit the first time it adds a product with a custom price, that works fine, then I go to the checkout without problem, but when i hit the back button on browser and change ...
0
votes
0answers
17 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.
0
votes
1answer
21 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 ...
0
votes
0answers
21 views

Magento EE 2.3.5-P2: Customer Store Credit Remove After Selecting Payment Method On Checkout

I'm using Magento EE 2.3.5-P2, The Main issue I'm getting is when customer use Store Credit for their order, goes to checkout, select shipping method, proceed to payment, when customer select payment ...
0
votes
1answer
10 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 , ...
0
votes
1answer
11 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 ...
0
votes
1answer
30 views

Magento 2 : Save quote

What is the Difference between $this->quoteRepository->save($quote); & $quote->save(); In below code public function aroundApply_shipping( \StripeIntegration\Payments\Api\...
0
votes
1answer
14 views

Magento 2.3 EE: Make reward points to not apply automatically

In Magento 2.3 EE, if a customer has reward points balance it is automatically applied to cart when the cart page is loaded and customer goes to the checkout process. I want to remove this ...
0
votes
1answer
14 views

Magento 2 - Show modal if no quote shipping address

I am trying to alert the user that they have not added a postcode into their session when clicking "Add to cart" I have created a mixin, "catalog-add-to-cart-mixin.js" within my ...
0
votes
0answers
33 views

Why is there CartInterface instead of QuoteInterface?

Standard practice is to have Entity and EntityInterface (Order - OrderInterface, Customer - CustomerInterface). But for Quote this rule is broken, regardless class Quote is the one implementer of ...
0
votes
1answer
12 views

Collect quote totals at init checkout page and cart page?

i'm using magento v2.4.1. I tried to add the product to the cart programmatically using salesrule_validator_process observer, this is to add a product if a cart rule being applied to the cart: $quote =...
1
vote
2answers
63 views

How to properly get current quote in Carrier Collect Rates function?

I'm using Magento 2.4.1 and I want to retrieve the current quote in collectRates function in my Carrier model, but sometimes it will prompt an infinite loop error like this: this is how i retrieve ...
0
votes
0answers
15 views

Order split based on product attribute reducing qty twice

I have integrated Magento 2 order split based on product attributes with help of this extension. https://github.com/magestat/magento2-split-order My plugin file is below. public function ...
2
votes
1answer
38 views

Getting No such entity with cartId = {quoteId} on Guest Checkout issue

I saw several posts about this issue, with getting the following error message: No such entity with cartId = {quoteId} but none of them worked for me :( Or I didn't find exactly what is the cause of ...
0
votes
1answer
37 views

Session or SessionFactory which one to Use in Magento 2?

I am have been working on a payment method where I need Current Quote So I used \Magento\Checkout\Model\SessionFactory $checkoutSession and then get Quote from the Checkout session using $this->...
0
votes
1answer
20 views

magento2 add simple product to order

I want add surprise functionality so when custom try to place an order, one simple product will get automatically added to their cart. I want to add that item after customer click on place order ...
0
votes
1answer
30 views

Magento 2 get address extension attribute value in carrier collect rate model

I successfully pass the extension attribute value to estimate-shipping-method,like this: etc/extension_attributes.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3....
0
votes
0answers
31 views

How to add a discount or apply a cart rule programmatically to quote in checkout_submit_before observer Magento 2

I want to apply some discounts amounts to the the quote, the observer I'm using is checkout_submit_before. There I have the access to the quote and order objects. How can I apply a cart rule or a ...
0
votes
0answers
13 views

Minicart shows the wrong cart qty after add product to the cart programmatically

I'm using magento v2.4.1 and i tried to add a product programmatically to the cart like this from salesrule_validator_process observer : $newQuoteItem = $quote->addProduct($...
0
votes
2answers
94 views

How to create new quote programmatically from old order after place the order in magento 2

I want to create a new quote based on the old order. I can create order programmatically but not able to just add to cart product in a new quote. I don't want to place the order. Need is only add to ...
0
votes
0answers
20 views

How can I reverse create Quote for Order in Magento 2?

I want to validate some data in the quote using rule conditions, but the quote gets delete after a period of time. How can I reverse create Order -> Quote programmatically?
-1
votes
1answer
72 views

Magento 2 : No such entity with %fieldName

I am getting this error any thoughts, why this error appearing ? "message": "No such entity with %fieldName = %fieldValue", "parameters": { "fieldName&...
0
votes
0answers
19 views

Magento 2 Quote Refresh Api

HI I am developing an API where I faced a challenge in my cart listing api, I need to apply cart rule and add it in quote and need to update quote accordingly. The Problem here is my quote do get ...
1
vote
0answers
24 views

Magento2 negotiable quote save programatically

How to create and save the negotiable quote programatically in M2. Can any one provide some example with dummy data / (or) provide me the test script with simple example please Thanks
0
votes
1answer
62 views

Force start / add sales_clean_quotes to cron job list in Magento 2

We started to have some issues with our quotes not being cleaned correctly. I checked list of cron jobs and could not find sales_clean_quotes in the list. We are currently running Magento 2.3.3. How ...
0
votes
0answers
22 views

Double order generated in Magento2

Version: Magento2.3.4-P2 ECE Issue: Customer sees two orders with the same details within 3 minutes. Two transactions happened. But the order placed only one time. Paypal through Braintree payment ...
0
votes
0answers
18 views

Multiple Website, When change the customer group from admin that “customer_tax_class_id” Dose not change in Magento 2

When change the customer group from admin that the "customer_tax_class_id" dose not change in quote table in normal defaul web site they working fine but in other store they not working
0
votes
1answer
31 views

M2: Quote Lifetime vs Persistent Shopping Cart

Most previous questions on this are old, related to M1 and never garnered a conclusive response. Why is there a need for a Persistent Shopping Cart (PSC) and how does this interact with Quotes? On our ...
1
vote
2answers
42 views

M2: all quotes remain active - where should they be set inactive?

M2.3.3: We have a situation where all quotes remain active (i.e. is_active=1). That means they're never cleared by cron as that only clears inactive quotes. We now have ~186k quotes in the database, ...
0
votes
0answers
23 views

Magento 2: Add a product programmatically in the checkout page

What the client wants is to add a step (product-selector-step.js) before the shipping-step and in that step he shows three options to select representing three simple products. What I need is to know ...
1
vote
0answers
18 views

Customer login changes shipping method

We've made a custom implementation for Magento 1.9.2.2 in which a customer can select his preferred shipping method in the cart. The form for the implementation in the cart looks like this <form id=...
0
votes
1answer
48 views

how to add custom fee/extra fee in total by api?

I want to add an additional charge in the order total by Api. when a customer needs that. I added an additional amount by following this link https://webkul.com/blog/add-custom-pricefee-order-total-...
0
votes
0answers
36 views

Get current cart (quote) items for not logged in users

I have such issue: Need to change template of login page based on products (items) in cart. I tried to get current quote by checkoutSession in block class, but there was no items. However I added ...
0
votes
0answers
27 views

Magento 2.3 - Paypal express review not work

When I am on the paypal/express/review page after completed payment in website of paypal I see this type of error on Magento: "Fatal error: Call to a member function getPayment() on null in ...
0
votes
1answer
715 views

Magento 2.4 REST API for Create Cart Not Working

I am trying to create the magento default REST API for add simple product to cart like this way. First I generate the customer token with the use of this API Call. https://www.domain.com/rest/default/...
0
votes
0answers
28 views

Apply cart price rule to cart programmatically without a coupon code

This is my code to add some products to cart(quote): foreach ($params as $param) { $product = $this->productRepository->getById($param['product']); $this->cart->addProduct($product, $...
0
votes
0answers
32 views

How can we restrict by calling unnecessary third-party API invoking in collectRates() method Magento 2

We are using a third-party extension to get the rates for customers with discounted rates based on customer preferences, Items and etc. And it's working well. Here I have couple of questions. When ...
1
vote
1answer
23 views

Magento 2 - cant modify quote before placing order

I try to delete all items with a custom product type from the quote before the order is placed. So I created an observer for the event sales_order_place_before. In this observer I am collection all ...
2
votes
2answers
136 views

Magento 2 - New product added to cart has subtotal price value of 0

I created a new product programmatically and added it to the cart, but the subtotal value which is showing in the cart is 0. use \Magento\Catalog\Model\ProductFactory; use \Magento\Catalog\Api\...
0
votes
0answers
44 views

Magento2 How can I create an order on behalf of customer with admin Token

I need to implement salesman logic where he can place orders on behalf of customers. With the available Order processing Rest API I can only place an order with Customer Token. Is there any way that I ...
0
votes
2answers
104 views

Magento 2 - How to properly load quote model by quote id?

I used to load the quote like this: $quote = $this->quoteModel->load($quoteId); But now I get a warning in PhpStorm saying that this method is deprecated: Deprecated: 100.1.0 because entities ...
0
votes
1answer
52 views

Extension_attribute value save in DB in magento 2

I am using Magento 2.3.4, and i created custom attibute in quote_item 'up_flag'. and throgh rest api i am passing the value of "up_flag": Post request Body for V1/carts/mine/items: {"...
0
votes
0answers
34 views

How to create multiple active quotes for a single customer

I want to create multiple quotes for a single customer and assign the quotes based on some identifier in the quote table. For checkout, I want to use a single quote every time but in the quote table ...
0
votes
0answers
14 views

Ideal place for checking quote and change it

After the user adds a product to the cart, I need to run a check on the quote because I have to manipulate the total price if necessary and then save the changed quote. Where is the ideal place to ...
0
votes
0answers
10 views

I want to customisation in magento(2.4 EE) quote functionality, like add other steps like checkout process have, is there any way?

In my simple quotes functionality, I want to add some more steps like the first default step of upload files, Comment and in Second step I want to shipping address, billing address selections like ...
0
votes
0answers
15 views

Negotiable Quote steps like checkout

Is there any way to make the Negotiable Quote in Enterprise edtion to have steps like that of checkout. Final Step will submit the negotiable quote instead of orders.
3
votes
1answer
166 views

Will quote be removed after order created?

Currently when I look in database, the quote of order still exist after order successfully created. Will the order quote be removed later under some conditions? What happens to order if associated ...
2
votes
1answer
20 views

How to calculate and store shipping rate in Magento 2.3.0?

I'm using Magento v 2.3.0. I am trying to skip Shipping Address section and navigate directly to Payment section if customer has a default address. I have overridden below class to change the link of ...
0
votes
0answers
9 views

Shopping cart rule applied but totals are not updated with discount amount

I am using magento 1 On admin reorder page their is no shopping cart rule applied ? Where i should check for it ? any thoughts ?

1
2 3 4 5
13