Cannot Disable Links to Product Detail Pages

  • Posts: 34
  • Thank you received: 4
  • Hikashop Essential
4 years 3 weeks ago #325287

-- HikaShop version -- : 4.4.0
-- Joomla version -- : 3.9.22
-- PHP version -- : 7.4.3
-- Browser(s) name and version -- : Firefox 82.0

I am attempting to disable the links to the products detail pages on my products listing page.

My procedure: Administrator > Components > HikaShop > Configuration > System > Display > Default parameters for products > Link to the product page. Set the value to No. Then Save & Close. The setting is successfully written to the database and is retained.

Check the /administrator/components/com_hikashop/views/config/tmpl/display.php file starting at line 440.

If I temporarily override the /components/com_hikashop/views/product/tmpl/listing_img_description.php file and echo the value of $haveLink after line 16, it is always 1. The hikashop_product_name and the associated image in hikashop_product_image_subdiv classes still have anchor elements linking to the product details page.

For the hikashop_product_image_subdiv test, see line 33. For the hikashop_product_name test, see line 186 in the /components/com_hikashop/views/product/tmpl/listing_img_description.php file.

I didn't see this problem reported as a bug. Perhaps my configuration procedure is wrong.

How can I remove the anchors (links) to the product detail pages? I would prefer to use the Administrator setting and not override the listing_img_description.php file.


Charles
Last edit: 4 years 3 weeks ago by cmb. Reason: I tried to add a [SOLVED] flag to the subject line of this thread but wasn't saved.

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

  • Posts: 4747
  • Thank you received: 644
  • MODERATOR
4 years 3 weeks ago #325320

Hello,

If you want remove completely the link to the product page your first step is the good one, you have just to as well for your Item Menu (or your module).
For your item Menu :
- Menus => Main Menu, then select your required listing Item Menu and HikaShop option tab
- Extensions => Modules, then look for HikaShop option tab

In both case have a look on the "Link to detail page" option.
Hope this will meet your needs.

Regards

Last edit: 4 years 3 weeks ago by Philip.

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

  • Posts: 34
  • Thank you received: 4
  • Hikashop Essential
4 years 3 weeks ago #325345

Oh, there's two places to set it! I hadn't checked the menu item > Product Options tab. In that tab, I changed Link to detail page to No. Now it works just the way I want it.


Charles

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

Time to create page: 0.058 seconds
Powered by Kunena Forum