Product Option - Display the option description

  • Posts: 79
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business Hikashop Essential
4 years 11 months ago #317199

-- HikaShop version -- : 4.2.3
-- Joomla version -- : 3.9.16

Hi there, I wonder if anyone can help with this small issue.

I have a product page where we display an Option to choose which electrical fitting you would like. This all works great, except that we don't like the little 'info' icon next to the Option name but instead would like to just show that description as text.

I have been looking at components/com_hikashop/views/product/tmpl/option.php to create an override but I'm afraid I can't work it out.

It seems tantalisingly close! Can anyone help me with this?

Many thanks
Leila

Attachments:

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

  • Posts: 83409
  • Thank you received: 13502
  • MODERATOR
4 years 11 months ago #317202

Hi,

In that view file, you can change the line:

$options = '<span class="hikashop_option_info" title="' . $description . '" alt="Information"></span>';
to:
$options = $description;
I would recommend to edit the product / option.php view file via the menu Display>Views so that the change is saved as an override as to not loose it when you update your HikaShop.

The following user(s) said Thank You: Leilahodgkins

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

  • Posts: 79
  • Thank you received: 9
  • Hikaserial Standard Hikashop Business Hikashop Essential
4 years 11 months ago #317263

Great! Thank you - just what I needed.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum