- Posts: 575
- Thank you received: 11
mouseover image
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
15 years 2 months ago #21391
by ler@singmuiheng.com
mouseover image was created by ler@singmuiheng.com
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
[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.
15 years 2 months ago #21393
by nicolas
Replied by nicolas on topic Re: mouseover image
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
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.
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
- Posts: 575
- Thank you received: 11
15 years 2 months ago #21466
by ler@singmuiheng.com
Replied by ler@singmuiheng.com on topic Re: mouseover image
Hi nicolas
thanks for your info
you are really helpful
have a nice day
thanks for your info
you are really helpful
have a nice day
Please Log in or Create an account to join the conversation.
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
- Posts: 575
- Thank you received: 11
15 years 2 months ago #21467
by ler@singmuiheng.com
Replied by ler@singmuiheng.com on topic Re: mouseover image
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?
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.
15 years 2 months ago #21475
by nicolas
Replied by nicolas on topic Re: mouseover image
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.
- ler@singmuiheng.com
-
Topic Author
- Offline
Less
More
- Posts: 575
- Thank you received: 11
15 years 2 months ago #21628
by ler@singmuiheng.com
Replied by ler@singmuiheng.com on topic Re: mouseover image
hi nicolas
would like to do the same trick on the product listing page, where should i do the modification?
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.
15 years 2 months ago #21657
by nicolas
Replied by nicolas on topic Re: mouseover image
The modification to do is in the same function of the same file.
You could try to change :
if($addpopup){
by :
if(true){
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.186 seconds