Author Topic: How to create custom field with conditions?  (Read 764 times)

panta7

  • Beginner
  • *
  • Posts: 4
  • A beginner
How to create custom field with conditions?
« on: June 26, 2021, 10:32:56 am »
Hello there, I would like to create a search box like https://www.greenlandmx.com/int/en/motorcycle_accessories-1 (view "Select your motorcycle").
"Type"'s select is active only if "brand"'s select is choosen. "Year"'s select and "model"'s select works as "type".
Ho can I make this search box with VirtueMart, please? Thanks a lot.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 28179
  • Always on vacation
    • Jenkin Hill Internet
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VirtueMart 3.8.9.10473 on Joomla 3.9.28 PHP 7.4.14

panta7

  • Beginner
  • *
  • Posts: 4
  • A beginner
Re: How to create custom field with conditions?
« Reply #2 on: June 26, 2021, 13:48:28 pm »
Thank, it sounds good.
What do you suggest to me for backend management? It's better to create custom fields or/and multivariand products?
What I would like as final output is to show only the products that have: the selected "brand" + the selected "type" + the selected "year" + the selected "model" (and not or). Thanks

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1199
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: How to create custom field with conditions?
« Reply #3 on: June 27, 2021, 09:04:10 am »
Quote
What do you suggest to me for backend management? It's better to create custom fields or/and multivariand products?
What I would like as final output is to show only the products that have: the selected "brand" + the selected "type" + the selected "year" + the selected "model" (and not or). Thanks

1. Nice project manager hard work - do you really think you catch up on this forum as free?
2. Nice custom develop with CF Filtering by Breakdesign - you have to install, develop and try and try and try - do you really think this work you can't do it, only ask on this forum?

You can check on this:
https://www.kolo-park.cz/obchod/kola-a-elektrokola/radit_podle,datum_vytvoreni?keyword=

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4475
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: How to create custom field with conditions?
« Reply #4 on: June 28, 2021, 10:23:07 am »
You have many solution
For eg https://www.cleancut.se/butik/knivmodeller/allknivar
I done the filter, it use AND for each filter type but OR for the values.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1199
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: How to create custom field with conditions?
« Reply #5 on: June 28, 2021, 10:35:49 am »
To Studio 42: Thanks
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates