Different CSS class for Product Name and Variant

  • Posts: 251
  • Thank you received: 2
13 years 5 months ago #18022

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.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18028

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: 13 years 5 months ago by nicolas.

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

  • Posts: 251
  • Thank you received: 2
13 years 5 months ago #18032

What is the file to modify?

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18034

Sorry for that ! It's administrator/components/com_hikashop/classes/product.php

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

  • Posts: 251
  • Thank you received: 2
13 years 5 months ago #18035

There is no line with that code in that file...

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

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18036

Then it means that you don't have the latest version. Please update.

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

  • Posts: 251
  • Thank you received: 2
13 years 5 months ago #18041

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

Time to create page: 0.066 seconds
Powered by Kunena Forum