Separate line item for each product in magento products

1. In magento normally, once product added into the cart, one line item will create in the cart page. If you are trying to add the same product once again, then normally magento will uppend(add with existing) the qty and append the price into the cart (Exist available + newly added if product is same).

2. If product is defferent then new line item will create.

3. But incustomization, i need to add new line item if already product is exist into the cart. Then what we want to do,

4. Override “Mage_Sales_Model_Quote_Item” into your local

class Jute_Sales_Model_Quote_Item extends Mage_Sales_Model_Quote_Item
{
public function representProduct($product)
{
—————–
—————–
return false; // Make false instead of true
}
}

Clear the cache and check it.

2 thoughts on “Separate line item for each product in magento products”

  1. Its working fine when i am login or guest user, let me gave you one example

    I have same item with 3 qty and its display me three individual row for each item with 1 qty with guest user, Now i am going to login after that its is display me 3 item with single row ЁЯЩБ

    Please help me to get out with this

    Laxman

    1. Hi Laxman sorry for the delay response. Check with same file, you will get one more condition for customer logged in or not. (one more function) In that condition like customer after logged in merge the qty. There u have to comment it.

Leave a Reply