mouseover image

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
13 years 4 months ago #21391

Hi

[url=http://www.singmuiheng.com/index.php?option=com_hikashop&ctrl=product&task=show&cid=279&name=craft-hse-fabrics-
fcy0000200100&Itemid=60&category_pathway=13]in this page
[/url] i would like the original image to be open up during mouseover instead of onclick


where should i do the modification?

can not find the related file

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 4 months ago #21393

Hi,

The code can be found in the file administrator/components/com_hikashop/helper/image.php :
$html = '<a title="'.$alt.'" rel="{handler: \'image\'}" target="_blank" href="'.$this->uploadFolder_url.$path.'" onclick="SqueezeBox.fromElement(this,{parse: \'rel\'});return false;" '.$optionslink.'>'.$html.'</a>';

However, if you modify the code directly you will have to reapply the modification after each update. You could use a template override instead so that you could safely update HikaShop in the future while keeping your modification: www.hikashop.com/support/documentation/6...tation.html#override

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
13 years 4 months ago #21466

Hi nicolas

thanks for your info

you are really helpful

have a nice day ^_^

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
13 years 4 months ago #21467

hi nicolas

i using the direct code modification and it is working

but i would like to take ur advise to use template override

a bit lost at here

which file should i edit in the display->view?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 4 months ago #21475

The template overrides explained in the developer's documentation can't be done via the interface. You need to create the file templates/YOUR_TEMPLATE/html/hikashop_image.php and write a function hikashop_image_link_render in it with the modified code so that the system can use it instead of the code in the helper file.

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
13 years 4 months ago #21628

hi nicolas
would like to do the same trick on the product listing page, where should i do the modification?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
13 years 4 months ago #21657

The modification to do is in the same function of the same file.
You could try to change :
if($addpopup){

by :
if(true){

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

Time to create page: 0.068 seconds
Powered by Kunena Forum