Skip to main content

Different CSS class for Product Name and Variant

More
15 years 3 months ago #18022 by Nello
Hi Nicolas,
How can I set different css class for the Product Name and the Name of the Variant in the product pages?

Here an example:
www.nellopoli.com/hidesign/it/in-esposiz...-0/related_product-1

Pick Chair Legno Rovere:
Pick Chair is the name of the product and Legno Rovere is the name of the variant

I need to set different css style for "Legno Rovere".

Thank you so much!

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

More
15 years 3 months ago - 15 years 3 months ago #18028 by nicolas
The only solution is to modify a core file of HikaShop. You need to change the line:
$variant->product_name = $variant->main_product_name.': '.$variant->product_name;
to:
$variant->product_name = $variant->main_product_name.': <span class="hikashop_product_variant_subname">'.$variant->product_name.'</span>';
in the file administrator/components/com_hikashop/classes/product.php
Let us know how that goes. We might include it in the future if it works properly with the rest of the shop.
Last edit: 15 years 3 months ago by nicolas.

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

More
15 years 3 months ago #18032 by Nello
What is the file to modify?

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

More
15 years 3 months ago #18034 by nicolas
Sorry for that ! It's administrator/components/com_hikashop/classes/product.php

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

More
15 years 3 months ago #18035 by Nello
There is no line with that code in that file...

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

More
15 years 3 months ago #18036 by nicolas
Then it means that you don't have the latest version. Please update.

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

More
15 years 3 months ago #18041 by Nello

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

Time to create page: 0.163 seconds
Powered by Kunena Forum