cancel
Showing results for 
Search instead for 
Did you mean: 

Using custom option in product listing page using event-observe

Using custom option in product listing page using event-observe

I have used custom options to create a drop down for prices based on weight for products, like 250gms-$10, 500gms-$20.
When the user selects the required weight of the product, the price of the product will change. It is working in the product view page, as the changes are automatically handled.
I am looking to add it in product listing page, where the product price change is not handled. 

The steps could be, like

  1. Create a select menu in default/template/catalog/product/list.phtml
  2. When a selection is performed, an event is triggered
  3. An observer handles the event to update the price of the product in the listing page

 

Can this be done (using event-observe)? If so, how to do it? What should be the triggered event(like catalog_product_collection_load_after)?

1 REPLY

Re: Using custom option in product listing page using event-observe

Magento events are as follows:
- http://www.magentocommerce.com/wiki/5_-_modules_and_development/reference/magento_events

You can achieve this requirement by creating an observer on the particular event.
If you are using some overriding methods it will become more complex.

http://magento.stackexchange.com/questions/41277/how-to-create-an-new-observer-on-the-event-catalog-...