Product Name Characteristic Display

  • Posts: 21
  • Thank you received: 0
9 years 11 months ago #217564

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Firefox 41.0.1

When I add the characteristics Size and Add Engraving, the output is as follows:

Classic Dome Zirconium Tungsten 4mm: 4.5 Yes - $50

Even though the characteristics are displayed properly, their names are not displayed making the whole information a bit confusing. My preferred style is with the characteristics names as well:

Classic Dome Zirconium Tungsten 4mm: Size 4.5, Add Engraving Yes - $50

Am I missing any settings in Hikashop to show the names or are they not added to the product name by design?

Please advise.

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

  • Posts: 84328
  • Thank you received: 13718
  • MODERATOR
9 years 11 months ago #217610

Hi,

If you enter a variant name in your variants, you should be able to see that on the cart.
Otherwise, what you're talking about will require the modification of the file "cart" of the view "checkout" via the menu Display>views.

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

  • Posts: 21
  • Thank you received: 0
9 years 11 months ago #217612

Thanks for the reply, Nicolas,

When I select the variants for the product, it shows their names but not their "labels" (not sure what to call them). Please see on the given page and select the variants.

So this is so by design? Please give me a bit more details on how to make the necessary modifications.

Thanks again.

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

  • Posts: 21
  • Thank you received: 0
9 years 11 months ago #217614

Just to clarify, I'm referring to the Product Name on the Product Page heading.

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

  • Posts: 84328
  • Thank you received: 13718
  • MODERATOR
9 years 11 months ago #217653

Hi,

It's by design. If you want to change that, you would have to change the code:

$variant->characteristics_text .= $separator . $val->characteristic_value;
to:
$db = JFactory::getDBO();
$db->setQuery('SELECT characteristic_value FROM #__hikashop_characteristic WHERE characteristic_id='.$db->Quote($val->characteristic_parent_id));
$name = $db->loadResult();
$variant->characteristics_text .= $separator . $name.' '.$val->characteristic_value;
in the file administrator/components/com_hikashop/classes/product.php

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

  • Posts: 21
  • Thank you received: 0
9 years 11 months ago #217677

That worked like a charm!

Thank you, Nicolas.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum