Product in category behaviour change

  • batchass
  • Topic Author
10 years 6 months ago #190747

-- 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.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 6 months ago #190771

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.

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.
The following user(s) said Thank You: batchass

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

  • batchass
  • Topic Author
10 years 6 months ago #191076

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.

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 6 months ago #191145

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.

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.050 seconds
Powered by Kunena Forum