module that displays products according to a custom field

  • Posts: 127
  • Thank you received: 3
4 years 2 months ago #328056

-- url of the page with the problem -- : www.abierto.uy/
-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.3

Hello good afternoon

I need to know if I have any way to configure a carousel of products, in which the products are displayed according to the value of a custom field.
What I am looking for is to improve the photos that the sellers include in the products, for this it occurs to me to add a custom field, where to assess the quality of the photos, and then, in a product module, show those that have the highest valuation.
I checked hikashop content module, but can't find a way to filter on the value of a custom field
Do I have a way to do it with some other hikashop tool or configuration?

Thanks greetings !

Please Log in or Create an account to join the conversation.

  • Posts: 83404
  • Thank you received: 13498
  • MODERATOR
4 years 2 months ago #328059

Hi,

There is no way to filter a module's products based on a custom field value.
What you could do is this:
1 create an unpublished category "high res products"
2 create a mass action with:
- a trigger "after a product is created" and "after a product is updated"
- a filter on the custom field column with the value you want for high res image
- an action add category to add the product to the "high res products"
3 create a second action to remove the product from that category if the custom field value is different
4 in the settings of your module, select the "high res products" category as the main category.
That way, you module will only display the products with that specific value in your custom field.

Last edit: 4 years 2 months ago by nicolas.

Please Log in or Create an account to join the conversation.

  • Posts: 127
  • Thank you received: 3
4 years 2 months ago #328101

Hello, thanks for the answer

Perfect, I'll apply what you say

Thanks greetings !

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum