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.