Jump to content

change SpecificPrice for a product


Recommended Posts

Hello everyone.


I have my product ID andmy promotional price that I want to apply. (there is already a promotional price, I just want to change it)

How to do this as cleanly as possible?


I've looked at SpecificPrice class and update function, but I do not know what parameters to use?


public function update ($ null_values ​​= false)
  if (parent :: update ($ null_values​​))
   / / Flush Cache When we updating a new Specific price
   self :: $ _specificPriceCache = array ();
   FlushPriceCache product :: ();
   return true;
  return false;



thank you for your help

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...