Skip to main content

Product in category behaviour change

  • batchass
  • batchass's Avatar Topic Author
More
11 years 7 months ago #190747 by batchass
Product in category behaviour change was created by batchass
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

hi,
I have a menu item pointing to a hikashop category (index.php?option=com_hikashop&view=category&layout=listing), when there products they are is displayed which is perfect for me.
But I would like to change the behaviour when someone clicks on a product's image: I would like the product image to display in a lightbox instead of navigating to the product details page.
Thank you for any hint

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

More
11 years 7 months ago #190771 by Jerome
Hi,

At this moment you will have to override the product listing view in order to change the link to the product page.
Thanks to that you can put a link to open a popup and add the parameter "tmpl=component" to the URL so the product page will be display correctly in the popup.

www.hikashop.com/support/documentation/1...ize-the-display.html

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: batchass

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

  • batchass
  • batchass's Avatar Topic Author
More
11 years 7 months ago #191076 by batchass
Replied by batchass on topic Product in category behaviour change
thank you for the hint, I must now find the correct php files to edit.

it seems it's listing_img_title line 25, listing_img_pane line 29, listing_img_desc line 31, listing_img line 24

I should put <a title="" onclick="SqueezeBox.fromElement(this,{parse:'rel'});return false;" href="/media/com_hikashop/upload/flvd201.jpg" rel="{handler:'image'}" target="_blank"><img id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" title="" alt="" src="/media/com_hikashop/upload/thumbnails/100x100f/flvd201.jpg"></a> instead but which is the php file containing this?

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

More
11 years 7 months ago #191145 by Jerome
Hi,

In the "customize the display" documentation page, in the "layout" section you will find a little explanation of the different views.
Depending the listing type you're using for your menu, the view will be different. So you have to check your menu (or module) configuration to see which layout type you're using (or you can determine it thanks to the content.. If you got just an image and the title, it's "listing_img_title").

Regards,

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

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

Time to create page: 0.204 seconds
Powered by Kunena Forum