Products count

  • Posts: 52
  • Thank you received: 3
3 months 2 weeks ago #362948

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 5.1.4
-- PHP version -- : 8.1

I need to display the quantity of products in my products list page which br updates once the user filtered the list,
is there any way that i can do this ?

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
3 months 2 weeks ago #362957

Hi,

I'm not sure what you mean.
If you want to display the stock of each product on products listings, you can activate the add to cart display setting on the listing settings page (menu item or module). That will add the add to cart button and the stock message for each product. And if you don't want to add to cart button, you can then hide it with CSS code.

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

  • Posts: 52
  • Thank you received: 3
3 months 2 weeks ago #362983

I mean something like this



i want to display the number of products of the list in the top of the list
in this case it is 7

Attachments:

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

  • Posts: 83007
  • Thank you received: 13398
  • MODERATOR
3 months 2 weeks ago #362985

Hi,

By default, the pagination at the bottom of the listing displays the number of elements:
i.imgur.com/SOp2JBN.png

Now, that information is available in the product / listing view file and its sub views in the $this->pagination object.
For example:

<?php echo $this->pagination->total; ?>
You can edit the views via the menu Display>Views of HikaShop.

The following user(s) said Thank You: demoisellegol

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

Time to create page: 0.071 seconds
Powered by Kunena Forum