VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Tryer on November 25, 2018, 11:00:19 AM

Title: Custom Field Types - Which?
Post by: Tryer on November 25, 2018, 11:00:19 AM
I am trying to set up  custom field for selling specialized shoes that have different proces for different sizes. I want to achieve a simple dropdown list that enables the customer to simply select eg:

Size 6
Size 7
Size 8

I have created the child products, and can do something similar with a field type "string" but this produces options like "Size 7 +£3.00, Size 8 +£4.00" etc. I just want "Size 7, Size 8" as listed option but with the final price updated to reflect the size.

What type of custom field should I use?

Any help appreciated.
Title: Re: Custom Field Types - Which?
Post by: StefanSTS on November 28, 2018, 15:28:18 PM
String is the right custom field for you.

You need an override for the sublayout customfield.php. Somewhere inside for "case 'S':" you have to remove the $price.

Stefan