Make "product options" clickable to the product

  • Posts: 32
  • Thank you received: 0
11 years 11 months ago #48130

Hello... I'd like it when you've got a product with some options (see screenshot) that these options are clickable to the product (in this case the options product).

So in my screenshot, I'd like to be able to click on "Vleugelmes" and then go to the product "Vleugelmes".

Is this possible? On this forum I can't find any answers...

Thanks in advance!

Marco

Attachments:

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
11 years 11 months ago #48204

Hi,

No one asked for that so far.

You will have to edit the file "option" of the view "product" via the menu Display->Views and change the line:

$html='<span class="hikashop_option_name" >'.$optionInfo->product_name.$options.'</span></td><td>'.$html;

to:
$app=&JFactory::getApplication();
$itemid_url='';
global $Itemid;
if(!empty($Itemid)){
 $itemid_url = '&Itemid='.$Itemid;
}
$html='<span class="hikashop_option_name" ><a href="'.hikashop_completeLink('product&task=show&cid='.$optionInfo->product_id.'&name='.$app->stringURLSafe($optionInfo->product_name).$itemid_url).'">'.$optionInfo->product_name.'</a>'.$options.'</span></td><td>'.$html;

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

  • Posts: 32
  • Thank you received: 0
11 years 11 months ago #48238

You guys are so great!!

Thanks it works fine!!

Marco

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

  • Posts: 4
  • Thank you received: 0
6 years 2 months ago #286547

Hi Nicolas,
my goal is to find a solution, so that the functionality of the product option info tooltip (the little "i" icon) also works on tablets/touchscreens.
In other words, make the "i" or the whole word a link.

Can this be configured somewhere?

If not - is the above code hack still valid?

Or do you have a better suggestion?

Thanks
Thomas

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

  • Posts: 81481
  • Thank you received: 13062
  • MODERATOR
6 years 2 months ago #286553

Hi,

The tooltip feature of HTML is not supported on mobile devices. If you want to do it, you would have to add custom javascript/CSS:
stackoverflow.com/questions/12539006/too...-for-mobile-browsers

And yes, that code modification is still possible.

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

Time to create page: 0.075 seconds
Powered by Kunena Forum