Author Topic: Show products based on specific custom fields?  (Read 269 times)

EvanGR

  • Jr. Member
  • **
  • Posts: 429
Show products based on specific custom fields?
« on: April 13, 2021, 14:47:46 pm »
I want to show products which have specific custom fields value, e.g.:

Show all products where color === "blue".

Is this possible to do from the template/product page, or category page?

Do I need to change the VM core files?

Thanks

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3479
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Show products based on specific custom fields?
« Reply #1 on: April 13, 2021, 15:11:57 pm »
Yes there are extensions for filtered search. Breakdesigns has a custom filter.

No core files need to be modified.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1129
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Show products based on specific custom fields?
« Reply #2 on: April 13, 2021, 21:45:31 pm »
Or you can use our VirtueMart product Extended, where is option show all products with the same customfiled ID
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

EvanGR

  • Jr. Member
  • **
  • Posts: 429
Re: Show products based on specific custom fields?
« Reply #3 on: April 14, 2021, 09:33:24 am »
Thanks,

I actually want to include these products in existing product/category page, not access them via a search link (like the extensions you mentioned, which we own as well).
So I would definitely need to get my hands dirty in VM code.

pinochico

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1129
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Show products based on specific custom fields?
« Reply #4 on: April 14, 2021, 10:40:26 am »
Quote
not access them via a search link (like the extensions you mentioned, which we own as well).

Which search link do you mean?

Oh man, I add this only one module in admin to product detail by advanced module from regular labs into position in template, not use search link  ;D
But definitelly, you can change core code VM too :)
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

balai

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1445
Re: Show products based on specific custom fields?
« Reply #5 on: April 14, 2021, 13:33:24 pm »
Quote
I actually want to include these products in existing product/category page, not access them via a search link (like the extensions you mentioned, which we own as well).

I think that you can create a new view in Custom Filters, to export the products in json or xml format.
It will require some coding but it is pretty straightforward. All the dirty job is done by Custom Filters and you just dictate the results format.