count of related products in module

  • Posts: 490
  • Thank you received: 2
8 years 4 months ago #260941

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

thank you for your patience

this question is in relation to thread
www.hikashop.com/support/forum/19-hikama...dor-page.html#260854

i would like to know how i can display the number of products of a product listing module. Maybe you can give me an idea.

thanks

Last edit: 8 years 4 months ago by Jerome. Reason: correct the real context of the request

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

  • Posts: 12953
  • Thank you received: 1778
8 years 4 months ago #260961

Hello,

Sure, to do that you'll have to directly edit the "Listing" file of the "Product" view of your front-end template via "Hikashop->Display->Views", and use some PHP code like that for example :

echo 'Number of product(s) : ' .$this->pageInfo->elements->total;

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

  • Posts: 490
  • Thank you received: 2
8 years 4 months ago #261209

hi

this works only for the listing.

i would like to add the information in the vendor page. How do i do this?

thanks

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

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
8 years 4 months ago #261211

Hi,

The "product listing module" is also the listing and you're displaying that module in the vendor page.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum