All Questions

Tagged with
Filter by
Sorted by
Tagged with
44
votes
5answers
112k views

How to get all items in cart currently?

I want to get a collection of all the items in cart currently. How can I do this ? Any suggestions will be appreciated.
11
votes
4answers
23k views

Watching Add to Cart Event - quote item id is empty

I am trying to catch the event that fires once an item is added to the cart. I'm currently watching the following event: checkout_cart_product_add_after According to magento source this event is ...
8
votes
1answer
3k views

What does $quote->getIsSuperMode() mean in magento?

I see a function isSuperMode() which is called on quote and quote item objects. Can anyone tell me what isSuperMode() means in that case? I found the code in: checkQuoteItemQty function at class ...
6
votes
2answers
4k views

Same customer places duplicate order

I've observed a strange behavior whereby a customer managed to place three orders in quick succession which had the same order numbers. Each order was based on the same quote_id which in turn ...
4
votes
1answer
5k views

Add a column to quote item table

I want to add a column to the sales_flat_quote_item (and ..._order_item) table through an install script, but when I go to the table sales_flat_quote_item (or ..._order_item) in my database - the ...
3
votes
2answers
7k views

Is it possible to get the QuoteId that was used once an OrderId has been created

I'm tracking customer movements through the order process by using their QuoteId Mage::helper('checkout/cart')->getQuote() - which is created as soon as a customer ads a product to the cart, ...
3
votes
1answer
64 views

I am not getting the value in $quote in mulitple currency

I am facing the strange issue. I have enabled multi currence on the store but when I change the currency from cart page I seeing entire blank page and getting error'Allowed memory size of 268435456 ...
3
votes
0answers
5k views

Magento update quote item change row total [closed]

I am facing a problem in changing bundler product price in checkout_cart_product_add_after event. i have written code which changes the price of simple products which are child of bundle product. ...
2
votes
2answers
8k views

Get just the SIMPLE products ordered from a quote when Configurable Products are purchased

I have an observer attached to sales_order_place_before and from that event I am getting the order items using $event = $observer->getEvent(); $order = $event->getOrder(); $items = $...
2
votes
2answers
455 views

When is the quote object is generated in Magento?

I believe it should be made when we add an item in cart, but I need to find code in Magento core where quote ID is generated and an object is made and similarly in the DB.
2
votes
2answers
646 views

get configurable product ordered quantity from quote

I am using below code for fetching the ordered quantity for products, the value is correctly fetched for simple product. but in case of configurable product the quantity remains 1. foreach ($quote-&...
2
votes
1answer
389 views

How to create duplicate new quote from old order quote Magento 1.7?

I want to create a new order programmatically by copying an existing order's quote. Here is what I have tried: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ...
1
vote
2answers
4k views

How to copy one quote (only cart items) to other quote (only items )

i want to copy one quote (only cart items) to other quote (only items ). Only want to copy cart products to other new quote. Suppose: i have old quote,which id is 5,have 4 items i have another ...
1
vote
5answers
9k views

How to get cart / quote programmatically without session?

It's really common to get the quote with an existing session. Mage::getSingleton('checkout/session')->getQuote(); But now I want to get the quote by user without any session (Magento 1.9). Do you ...
1
vote
2answers
7k views

How to get the quote address object when user logged in?

One particular user logged in to his account from frontend and adds some items to the shopping cart. And then he logged out. And again when he logged in I want to get his quote address object. How to ...
1
vote
2answers
3k views

When to add custom data to quote?

I have a code that is being passed in via the URL (akin to the Google source codes) that I want to add to the quote and order. I already have a function that triggers on the event ...
1
vote
1answer
3k views

magento - unable to save products in quote

I am working magento payment gateway $product_model = Mage::getModel('catalog/product'); $code = Mage::app()->getStore()->getCode(); $product_id = $product_model->getIdBySku('...
0
votes
2answers
325 views

change product special price for current session

Is it possible to set product special price for current session? because i have to set product special price if my custom condition is satisfied?is it possible?
0
votes
1answer
734 views

Add disabled product to quote & special pricing

I'm busy creating an order programmatically, and want the process to add the product list to the order regardless of the product status. It works fine, but when the product has a status of disabled (...
0
votes
2answers
1k views

What is the event dispatching when abandoned cart save it's data?

I need to save some additional data in sales_flat_quote table. So what is the event which dispatching when the abandoned cart data saves in this table? EDIT: I need to save item names comma ...
0
votes
1answer
445 views

Split the quote object to multiple quotes with respect to category

I have successfully split the quote to multiple quotes and the orders are being placed seperatly for every category. Product price and subtotals are successfully calculated according to the products ...
0
votes
1answer
1k views

Get the object of the whole quotation in observer

I am doing this: public function setQuoteShippingMethod (Varien_Event_Observer $observer) { $item = $observer->getEvent()->getQuoteItem(); //to have more code } but it ...
0
votes
1answer
317 views

Copy array from product to quote item and order item

I am copying single valued attributes from product to quote item and converting to order item. But is it possible to do that with an array? If yes - what's the process and what type should the table ...