I would be grateful for all the help.

I need to catch an event that brings the Manage Products in the table price. Regardless of the price in the database, you need to display a different price.

Price is taken dynamically via XML with other resources.

For the frontend, I decided this through events catalog_product_get_final_price and catalog_product_collection_load_after

But what event could be used to substitute the price of goods in the admin can not find.

Prompt who knows how to do this?


Maybe someone will come in handy. I used the event catalog_product_save_after. That's part of the code:




 public function updateProductPrice($observer)
    $product = $observer->getProduct();
    $price = 10;
    $product->getResource()->saveAttribute($product, 'price');

This is an example of code that works for me.

| improve this answer | |

Your Answer

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

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