Skip to main content

How can i remove the link to the bigger picture?

More
14 years 1 week ago #65647 by melisari
Im so sorry of my lack of knowledge, i will try to explain myself the best i can.

I have a crazy client that doesnt like that images in the product page can be linked, he only likes the hover and the way they display, but he doesnt like that clients can make click on them. I feel that this is something very simple and i feel very embarrased but im having a real hard time finding the php code that could disable this function.

Could anybody help me? Im desperate! thank you so much in advance!



Sue.

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

More
14 years 1 week ago #65808 by nicolas
You will have to edit the file administrator/components/com_hikashop/helpers/image.php and remove the onclick attributes in the HTML links there.

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

More
14 years 1 week ago #65851 by melisari
Oh! thank you so much! Just in time!

:laugh:

Just one more question, i discover a plugin that made possible to put facebook comments on the products, it works lovely, could be possible to add it into the php? i tried with this code:

<?php
$pluginsClass = hikashop_get('class.plugins');
$plugin = $pluginsClass->getByName('content', 'fcomments');
if (@ $plugin->published || @ $plugin->enabled) {
echo '{fcomments}';
}
?>
<?php
$this->setLayout('show_block_product_files');
echo $this->loadTemplate();
?>

But when i put that on the php code everything went wild!

The plugin normally work just adding {fcomment} on the description.

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

More
14 years 1 week ago - 14 years 1 week ago #65855 by nicolas
You can just add the code:
<?php echo JHTML::_('content.prepare','{fcomment}'); ?>

at the end of the "show_default" view file via the menu Display->Views and that should work.
Last edit: 14 years 1 week ago by nicolas.

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

More
14 years 1 week ago #65859 by melisari
Just made the onclick and worked perfectly! Thank you so much! Excelent support!!!!

Im going to add the fcomment, im so excited!

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

More
14 years 1 week ago #65862 by melisari
I made it! Wonderfull!! Thank you so much Nicolas! :lol:

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

Time to create page: 0.216 seconds
Powered by Kunena Forum