Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sales-quote]

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

0
votes
2answers
697 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 ...
1
vote
1answer
22 views

How can I get customer_taxvat on sales flat quote in - Magento 1

public function loadAttributeOptions() { $customerAttributes = Mage::getResourceSingleton('customer/customer')->loadAllAttributes()->getAttributesByCode(); $attributes = array(); ...
1
vote
1answer
344 views

Tracing missing order numbers in the database, possibly even before they are “reserved”

Hoping for someone to chime in who extensively knows the Magento database architecture inside out. Missing order numbers. Example, in Magento, order number increments like: 100002410 100002411 ...
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....
1
vote
1answer
1k views

How to save quote billing address in magento 2?

For our project we have customized theme in Magento2. This has billing and shipping address pages. We have to save the billing address details in quote address table. But we didn't come across any ...
0
votes
1answer
22 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
1answer
393 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
386 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
457 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
418 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
133 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, ...
-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($...
10
votes
0answers
257 views

Is there an event or plugin spot for when cart rule is no longer valid?

Is there an event or place I can plugin for when a shopping cart price rule is no longer valid (such as when it expires or if you change the quantity of other products where it no longer applies)? I ...
2
votes
0answers
30 views

How to correctly add an extra charge to a Magento 2 order's total amount?

We're using a custom module to calculate an amount we need to include in the grand total of the order, i.e. the customer will be charged for the product PLUS this custom amount. The result is our ...
2
votes
0answers
375 views

Create quote with product options programmatically

i created a product with customizable options like this: and i've successfully create a quote like this: $store = $this->storeManager->getStore(); $websiteId = $this->storeManager->...
1
vote
0answers
13 views

Magento 1.9 moving products between websites

How to move a product/item who was added to cart/quote on websiteA to cart/quote which is on websiteB. I would like to solve this problem with controller, but I am not very successfull. Do you ...
1
vote
0answers
19 views

Magento 2 : Send email of unused quote information to store admin with separate module

If customer not generated any order while fill checkout form and not created any order for few hours like 6 hours , so store admin getting email and get details of that customer.
1
vote
0answers
38 views

How to change Submit Order button on Magento 2

How can I change the "Submit Order" button on new order view? I tried changing Magento_Sales::order/create/totals.phtml Text get changes, but the page does not refresh on adding or deleting a ...
1
vote
0answers
126 views

Magento 2: How do I join sales_order_grid table to sales_order_item table?

select * from sales_order_item t1 inner join quote_item t2 on t1.quote_item_id=t2.item_id inner join sales_order_grid t3 on t1.order_id=t3.entity_id I am trying to pull a report along with each ...
0
votes
0answers
19 views

Magento 2 customer is saved as guest even if he logged-in in quote table

We have an issue that if a customer is logged-in and add product to cart, in quote table we have a column as customer_is_guest, it is saving as 1, even if the customer is logged-in, it is showing as ...
0
votes
0answers
16 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
24 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
35 views

Unable to Update a quote item additional_options on cart edit item action

I would like to update the quote item additional option with my custom input value I am trying below event checkout_cart_update_item_complete public function customPriceUpdate(...
0
votes
0answers
60 views

Request for quote and checkout at same time

We have a requirement like a customer can quote an item and checkout on same time by click on the process to checkout button. we have 2 type of products on our website. one for quote item and normal ...
0
votes
0answers
141 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
0answers
263 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
0answers
222 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 ...