Standard Joomla Custom Module on Product Listing and Product Details pages

  • Posts: 48
  • Thank you received: 5
4 years 7 months ago #323082

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.2.32


Hello there,

Using Hikashop for the first time and so far, so good. However, I've come up against a frustrating issue, but I'm sure there's a simple solution:

  • I'd like to add some introductory text at the top of the product listing page. Naturally, I did this through a custom module and assigned it only to the product listing page.
  • however, this module also appears on the individual product and checkout pages as well.

Could some one please describe how i can display the module on the product listing page, but hide it on the individual product and checkout pages.

Many thanks for any help,
Marcus

Last edit: 4 years 7 months ago by marcusadamski. Reason: changed formatting

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

  • Posts: 12953
  • Thank you received: 1778
4 years 6 months ago #323086

Hello Marcus,

Your issue is coming from the fact that when you access to a product page through a defined product listing menu, then the item_id that will be set on that product page will be the one of the product listing menu. So joomla menu restriction's option won't differentiate these 2 pages.

Using that kind of extension will probably do the job in your case :
www.regularlabs.com/extensions/modulesanywhere

Else, another solution will be to directly use the "Display view files" option via "Hikashop->System->Configuration->Advanced" to find the file you'll have to edit to add your custom code and properly adapt it so that it will only be displayed for that menu.

Kind regards,
Mohamed.

Last edit: 4 years 7 months ago by Mohamed Thelji.

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

Time to create page: 0.067 seconds
Powered by Kunena Forum