News:

Looking for documentation? Take a look on our wiki

Main Menu

Custom Field Types - Which?

Started by Tryer, November 25, 2018, 11:00:19 AM

Previous topic - Next topic

Tryer

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.

StefanSTS

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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts

Please use only stable versions with even numbers for your live shop! Use Alpha versions only if you know what risk you are taking.