2

I have put my custom logic for change price in product listing page using below event

catalog_product_collection_load_after

This event set successfully set custom price in product listing page but it display wrong price in layered navigation .

so my question is How to set custom price in layered navigation ?

Any help or guidance will be appreciated

Thank you

2
  • Is it displaying wrong price in navigation, or no price? Can I see your logic? I suspect the 'used in layered navigation' property is not being set. Commented May 18, 2015 at 17:53
  • it display product orignal price @TimHallman
    – Keyur Shah
    Commented May 19, 2015 at 6:22

1 Answer 1

4

Layered navigation uses prices from the table catalog_product_index_price

This table is created and maintained up to date by Magento built in price indexing mechanism.

So you can modify the price on the event catalog_product_save_before, modified price will be saved and the core will do all the magic.

4
  • Thanks for the answer But I want to change price of layered navigation on fly due to some my custom condition. @Amasty
    – Keyur Shah
    Commented Jan 16, 2016 at 12:05
  • Then you need to alter the table values on the fly for corresponding products as well.
    – Amasty
    Commented Jan 16, 2016 at 15:58
  • Hi @KeyurShah, have you got the answer?
    – gks
    Commented May 2, 2017 at 9:25
  • unfortunately not ! :) @Gmb
    – Keyur Shah
    Commented May 4, 2017 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.