Questions tagged [sales-quote]

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

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

Magento 2 how to get all the orders with pending as status and manually update the status to cancel

Magento 2.2.10 that’s the version I am using. Is it possible to get all the orders where the status is pending and manually update the order to cancel if that’s possible
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
0answers
26 views

Item (Mage_Sales_Model_Order) with the same id “611” already exist (by change “company” in checkout)

I have to fix mistakes of a former colleague. The customer changes his address in the checkout, everything works fine until the moment he uses the field "company". The order goes through completely ...
0
votes
1answer
34 views

When add second product, custom attributes not save data. Using event “ sales_quote_item_set_product ” in Magento 2

I used the sales_quote_item_set_product event to save data to the table when adding to cart product. It works but when I add the next product, it does not save the old data in the old field. My ...
0
votes
0answers
25 views

Error While saving quote programmatically

Notice: Array to string conversion in D:\Projects\magento\lib\Varien\Db\Adapter\Pdo\Mysql.php on line 3074
0
votes
0answers
29 views

How to get the custom quote field in quote Api?

I have added a custom attribute in my quote table and sales_order table. How can I get this custom attribute in my quote Api so that I get the custom attribute with quote_id in response. After ...
0
votes
0answers
159 views

How to add a custom serialize value in sales_flat_quote_item_option table

Here my code but it does't work $action = Mage::app()->getFrontController()->getAction(); //echo "<pre>";print_r($action);die; if ($action->getFullActionName() == '...
0
votes
1answer
473 views

Magento 1 OR 2 : Set custom product weight in quote

I have a dynamic product which is based on user size input. On the basis of user size input I am calculating product price and weight. I already set the product calculated price in custom price field ...
0
votes
1answer
557 views

Remove SalesRule from Quote Magento 1.x

I want to remove the SalesRule from Quote if rule Coupon type is Mage_SalesRule_Model_Rule::COUPON_TYPE_NO_COUPON I have this code: $event = $observer->getEvent(); $quote = $event->...
0
votes
1answer
528 views

Product price not being set for programmatically created quote item

I am using the following code to set the product to the quote object $product=Mage::getModel('catalog/product')->load($id); $quote->addProduct($product,new Varien_Object(array('qty' => $...
0
votes
1answer
487 views

Get all quote id from custom column data magento 1.9

I have the following code. Where I pass a device id which is stored as a custom column in sales_quote and get all the quote ids to that device id. By trying the below code I am able to get only first ...
0
votes
1answer
65 views

How to save customized field of sales_flat_quote_items table's in sales_flat_order_item table?

How to save customized field of sales_flat_quote_items table's in sales_flat_order_item table? <fieldsets> <sales_convert_quote_item> <recipients_name> <...
0
votes
1answer
153 views

Set Default Shipping Price in Cart When Customer Isn't Signed In

I am trying to set up Magento so that if a new customer that isn't signed in and they add a product to their cart, it has a pre-selected shipping method and shows the price for that shipping method, ...
0
votes
0answers
268 views

magento save checkout onepage custom step data without creating a new column in quote table

I have created a new custom step on checkout onepage and want to save the data of custom step. Is there any other option than creating a new column in quote tables and saving data there.
0
votes
0answers
1k views

programmatically adding product to cart returns every time diffrent quote id in android application

Below code work perfect on IOS application but now work in android application. <?php error_reporting(0); include("../app/Mage.php"); umask(0); Mage::app(); $store_id=$_POST["store_id"]; $...
0
votes
2answers
770 views

Get cart contents from my custom module

In my magento, I have added a product to cart - so I see the following on the checkout page: I have a custom module with a TestController with a IndexAction where I want to retrieve the current ...
0
votes
0answers
237 views

Why the same simple product with the same amount added twice into sales_flat_order_item table!

Sales Flat order Item table : Magento Order View Products Block : An other one, this time with 3 SAME SIMPLE ROWS: I recently had two orders which I see the exact same simple product created twice ...
-1
votes
1answer
4k views

How to set customer id for a quote in Magento?

I added a product into the cart and tried to map customer id, email to that quote using the code below $product_id = 123; $qty = 1; $product = Mage::getModel('catalog/product')->load($...

1 2