News:

Support the VirtueMart project and become a member

Main Menu

Dynamic pricing of product based on custom condition

Started by sandomatyas, September 08, 2022, 14:10:20 PM

Previous topic - Next topic

sandomatyas

Is there a progmatically method to set the product price based on dynamic custom conditions?
Like

  • if an other product is in the cart, set the specific product's price to the 30% of the cart sum price
  • I run a custom API, can I set custom price based on the response of an API call
  • when the user has subscription on the site
  • when he subscribed to newsletter
  • when he already purchased the product before

I don't want to use shopper groups or set fixed prices to the database, I'm looking for a dynamic plugin method which can change the product price on the fly.
I have PHP skills just don't know where to find ord is there a method for this? Maybe VmCalculationPlugin somehow?

sandomatyas

Any idea? Is it possible to change product price on-the-fly via plugin?

balai

You need a plugin of type "vmcalculation".
We use something like that in our Product Bundles.