News:

Looking for documentation? Take a look on our wiki

Main Menu

How to manually change product's price with a custom field of my own

Started by OriyanJ, March 01, 2016, 09:37:05 AM

Previous topic - Next topic

OriyanJ

I'm trying to create a drop-down that acts just like a custom field, different options will add different price values to the product.
I know I can do that with a custom field, but in case I don't want or I have a bigger plan\reason to, do you know a way to make the price change by a manual field I've created?

I'm basically selling tours. Quantity acts as number of travelers, I just want another + and - buttons to add travelers with discount (children or students) -



I can add a string custom field that has 10 options that each add price value, but that's (1) bad practice, (2) doesn't affect product's quantity, (3) needs to be added 10 times for each product.

VirtueMart 3.2.2

Studio 42

Hi,
Check existing testinput plugin in plugins/vmcustom/textinput.
If you don't understand how it work, then you cannot do your own plugin.
But your plugin is possible to do.
Regards,
Patrick

OriyanJ

Thank you, I've managed to achieve the solution needed.
VirtueMart 3.2.2