Author Topic: Custom Field Types - Which?  (Read 146 times)

Tryer

  • Beginner
  • *
  • Posts: 37
Custom Field Types - Which?
« 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.

StefanSTS

  • Global Moderator
  • Jr. Member
  • *
  • Posts: 221
  • VirtueMart Version: VM 4.2 on Joomla 4.5
Re: Custom Field Types - Which?
« Reply #1 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
--
Stefan Schumacher
www.jooglies.com - VirtueMart Invoice Layouts