Skip to main content

Make "product options" clickable to the product

14 years 6 months ago #48130 by in2bizz
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

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

14 years 6 months ago #48204 by nicolas
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:
Code:
$html='<span class="hikashop_option_name" >'.$optionInfo->product_name.$options.'</span></td><td>'.$html;

to:
Code:
$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.

14 years 6 months ago #48238 by in2bizz
You guys are so great!!

Thanks it works fine!!

Marco

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

8 years 9 months ago #286547 by thschuler
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.

8 years 9 months ago #286553 by nicolas
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.051 seconds
Powered by Kunena Forum