can i set the product price with no Decimal point?

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
1 month 3 weeks ago #362081

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 3.10.12
-- PHP version -- : 7.4.13
-- Browser(s) name and version -- : google chrome

hi:
can i set the product price with no Decimal point?
i need all the price is integer,because my site is just for display, sometimes visitors are confused with the Decimal point.
thank you very much.

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

  • Posts: 82308
  • Thank you received: 13257
  • MODERATOR
1 month 3 weeks ago #362082

Hi,

Yes. Go in the menu System>Currencies and configure the display settings of your currency accordingly.

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

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
1 month 3 weeks ago #362096

ok i see.
can i set the CNY to 元?
now the price is 400CNY ,i want it to be 400元.
or add the symbol ¥ before the 400, like ¥400
thank you very much.

Last edit: 1 month 3 weeks ago by lechong1.

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

  • Posts: 82308
  • Thank you received: 13257
  • MODERATOR
1 month 3 weeks ago #362097

Hi,

Yes, the settings of your currency can also allow for that.
Change the "format" from "%i" to "%n" to get the symbol instead of the currency code.
Change the "Symbol precedes positive value" and "Symbol precedes negative value" in order to change the position of the symbol.

Note that the settings are explained in the "help" button you can click on at the top of this edit form. When you want to know more about the settings in a particular page of the HikaShop backend, this help button usually has the answer.

The following user(s) said Thank You: lechong1

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

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
1 month 3 weeks ago #362100

ok thank you very much.

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

  • Posts: 103
  • Thank you received: 1
  • Hikashop Essential
1 month 3 weeks ago #362101

i already set it to ¥ 690 单价,that‘s ok.
can i change the format to be 单价:¥ 690 ?
thank you very much.

Attachments:

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

  • Posts: 82308
  • Thank you received: 13257
  • MODERATOR
1 month 3 weeks ago #362102

Hi,

Yes, but not with the options available.
You need to add CSS like this:

.hikashop_product_page .hikashop_product_price_full {
    display: flex;
}
.hikashop_product_page .hikashop_product_price_full .hikashop_product_price {
    order: 2;
}
www.hikashop.com/support/documentation/1...ize-the-display.html
This will change the order of both elements.

Then, if you want to add the : to the "单价" text, you want to use a translation override:
www.hikashop.com/download/languages.html#modify

The following user(s) said Thank You: lechong1

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

Time to create page: 0.066 seconds
Powered by Kunena Forum