I am working on an extension in which I need to create different prices based on the different store view. I have created own table in which I am saving store view id and product id on event catalog_product_save_after.

I want to join this table with a product price table in the data provider of product form in admin. I tried with different tricks, but I failed. I need to show the price per store view. Could anyone help me to achieve this? Help will be appreciated

Thank You

enter image description here

  • Did you try to change price with diffrent store view?? – Jigs Parmar Sep 18 '17 at 12:29
  • Have you used default price attribute or you created new attribute for your custom extenison? – Dhiren Vasoya Sep 18 '17 at 12:42
  • yep, i tried, default magento set price on base of website and i tried to change price with store view wise with code too @jigs parmar – Sameer Bhayani Sep 18 '17 at 12:43
  • I am using default price attribute. i have edited it in my install script. i have changed it's scope from global to store view @DhirenVasoya – Sameer Bhayani Sep 18 '17 at 12:44
  • did you code for that?? or directly use magneto standard to change price for diffrant store – Jigs Parmar Sep 18 '17 at 12:44

I got the answer the answer of above question by printing events in \vendor\magento\framework\Event\Manager.php

On event catalog_product_edit_action call your own observer just fetch price data for particular store view and set that price like this


that's it, here static price 50 is set in admin product edit form.

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.