- Posts: 23
- Thank you received: 0
Product url into image button
15 years 8 months ago #5226
by Marga
Product url into image button was created by Marga
Hi Nicolas
I hope you're doing well
Would let me know please how do I change the
".hikashop_product_url_main" link into a image button?
Many Thank again my friend
Kind Regards
Charles
I hope you're doing well
Would let me know please how do I change the
".hikashop_product_url_main" link into a image button?
Many Thank again my friend
Kind Regards
Charles
Please Log in or Create an account to join the conversation.
15 years 8 months ago #5229
by nicolas
Replied by nicolas on topic Re: Product url into image button
You can edit the file show of the view product via the menu Display->Views.
There you can replace the code:
by
There you can replace the code:
Code:
if(!empty($this->element->product_url)){
echo JText::sprintf('MANUFACTURER_URL','<a href="'.$this->element->product_url.'" target="_blank">'.$this->element->product_url.'</a>');
}
Code:
if(!empty($this->element->product_url)){
echo JText::sprintf('MANUFACTURER_URL','<a href="'.$this->element->product_url.'" target="_blank"><img src="YOUR_IMAGE_URL" /></a>');
}
Please Log in or Create an account to join the conversation.
Time to create page: 0.149 seconds