How can i remove the link to the bigger picture?

  • Posts: 103
  • Thank you received: 2
12 years 2 months ago #65647

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.

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 2 months ago #65808

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.

  • Posts: 103
  • Thank you received: 2
12 years 2 months ago #65851

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 2 months ago #65855

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: 12 years 2 months ago by nicolas.

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

  • Posts: 103
  • Thank you received: 2
12 years 2 months ago #65859

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.

  • Posts: 103
  • Thank you received: 2
12 years 2 months ago #65862

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