5

To add custom price while adding to cart I have used catalog_product_load_after observer and used the function to add price.

public function checkoutCartProductAddAfter(Varien_Event_Observer $observer) 
{
    $newPrice = 200;
    $item = $observer->getQuoteItem();
    $item->setCustomPrice($newPrice);
    $item->setOriginalCustomPrice($newPrice);
    $item->getProduct()->setIsSuperMode(true);

}

this is working fine for changing the price. But if I change currency on cart page currency is not changing properly. Any solutions??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.