display number of variants i.o number of products

  • Posts: 506
  • Thank you received: 21
  • Hikashop Business
5 years 8 months ago #296505

-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11
-- PHP version -- : 7.0

Hi,

In a content module it is possible to show the number of products in a list. But when I want to show the number of variants in the category instead of the number of products, would that possible too?

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
5 years 8 months ago #296520

Hi,

There is no option for that. But if you edit the view file displaying the area and run some MySQL queries to calculate that number, then it's not a problem to display it instead of the number of products.

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

  • Posts: 506
  • Thank you received: 21
  • Hikashop Business
5 years 8 months ago #296559

Thanks Nicolas,

I'm not a progammer, can you give me a hint for the required code? I guess the changes have to be made in the view category - listing_div ?

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

  • Posts: 81540
  • Thank you received: 13071
  • MODERATOR
5 years 8 months ago #296593

Hi,

It's just just one or two small lines of code.
It would require proper development and testing. A developer will probably spend one or two hours working on that.
The view file will depend on how you configured the module. If you're using the "DIV" layout with the "image and titlte" item layout, then it would be the file "listing_img_title" of the "category" view that you would have to edit.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum