Product price style & show.php

  • Posts: 27
  • Thank you received: 0
12 years 5 months ago #53614

Hi,
how can I manage to get the price before the decimal separator displayed in a larger font and the decimals in a a smaller font. Also I would like to display to show the €-sign in a smaller font than the "large" price.

Can you please also let me know what the difference is between the show.php and the show_default.php. I made a couple of changes in the show_default.php but can see no difference when I change from "inherit" to "show default" layout style in the product backend. How can I prevent to loose the changes in case of an update.

Many thanks for your reply and this great product!
regards
christoph

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
12 years 5 months ago #53699

Hi,

If you want to have the sign smaller, you can always edit the currency symbol via the menu System->Currencies and add a span and some styling like that:
<span style="font-size:10px">€</span>
However, for the price pieces themselves, there is no option to change their size. You will have to hack in the numberFormat function of the file administrator/components/com_hikashop/classes/currency.php (beware that it's complex code there).

On the Display tab of the configuration, if you select "inherit" it takes the default layout. So that's basically the same.

The following user(s) said Thank You: Christoph59

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

  • Posts: 86
  • Thank you received: 9
  • Hikashop Business
11 years 10 months ago #83223

What do I need to change in the numberformat to display a price in 34px (size) instead of the default value


Kind regards,
Cornel

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

  • Posts: 86
  • Thank you received: 9
  • Hikashop Business
11 years 10 months ago #83224

already found my solution.............

in the fronten_custom.css I added a line font-size: 34px; to the option hikashop_product_price_full and changed the center setting into right


Kind regards,
Cornel

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

  • Posts: 86
  • Thank you received: 9
  • Hikashop Business
11 years 10 months ago #83225

Please make this an option in the next hikashop release ...............

add another CSS style so that hikashop_product_price_full which now is set for display of ALL than is extended to be different at the product details page. Make is sometithing like hikashop_product_price_details_full !!

Thanks


Kind regards,
Cornel

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #83389

Hi,

There is no need.
You can easily make a difference between the product listing and the product page in your CSS rules.
One use "hikashop_products / hikashop_product" classes and the other "hikashop_product_page".

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.052 seconds
Powered by Kunena Forum