- Posts: 21
- Thank you received: 0
Product Name Characteristic Display
10 years 11 months ago #217564
by officezen
Product Name Characteristic Display was created by officezen
-- 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.
-- 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.
10 years 11 months ago #217610
by nicolas
Replied by nicolas on topic Product Name Characteristic Display
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.
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.
10 years 11 months ago #217612
by officezen
Replied by officezen on topic Product Name Characteristic Display
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.
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.
10 years 11 months ago #217614
by officezen
Replied by officezen on topic Product Name Characteristic Display
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.
10 years 11 months ago #217653
by nicolas
Replied by nicolas on topic Product Name Characteristic Display
Hi,
It's by design. If you want to change that, you would have to change the code:
to:
in the file administrator/components/com_hikashop/classes/product.php
It's by design. If you want to change that, you would have to change the code:
Code:
$variant->characteristics_text .= $separator . $val->characteristic_value;
Code:
$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;
Please Log in or Create an account to join the conversation.
10 years 11 months ago #217677
by officezen
Replied by officezen on topic Product Name Characteristic Display
That worked like a charm!
Thank you, Nicolas.
Thank you, Nicolas.
Please Log in or Create an account to join the conversation.
Time to create page: 0.257 seconds