- Posts: 103
- Thank you received: 1
can i set the product price with no Decimal point?
2 years 3 months ago #362081
by lechong1
can i set the product price with no Decimal point? was created by lechong1
-- 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.
-- 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.
2 years 3 months ago #362082
by nicolas
Replied by nicolas on topic can i set the product price with no Decimal point?
Hi,
Yes. Go in the menu System>Currencies and configure the display settings of your currency accordingly.
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.
2 years 3 months ago - 2 years 3 months ago #362096
by lechong1
Replied by lechong1 on topic can i set the product price with no Decimal point?
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.
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: 2 years 3 months ago by lechong1.
Please Log in or Create an account to join the conversation.
2 years 3 months ago #362097
by nicolas
Replied by nicolas on topic can i set the product price with no Decimal point?
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.
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.
2 years 3 months ago #362100
by lechong1
Replied by lechong1 on topic can i set the product price with no Decimal point?
ok thank you very much.
Please Log in or Create an account to join the conversation.
2 years 3 months ago #362101
by lechong1
Replied by lechong1 on topic can i set the product price with no Decimal point?
i already set it to ¥ 690 单价,that‘s ok.
can i change the format to be 单价:¥ 690 ?
thank you very much.
can i change the format to be 单价:¥ 690 ?
thank you very much.
Please Log in or Create an account to join the conversation.
2 years 3 months ago #362102
by nicolas
Replied by nicolas on topic can i set the product price with no Decimal point?
Hi,
Yes, but not with the options available.
You need to add CSS like this:
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
Yes, but not with the options available.
You need to add CSS like this:
Code:
.hikashop_product_page .hikashop_product_price_full {
display: flex;
}
.hikashop_product_page .hikashop_product_price_full .hikashop_product_price {
order: 2;
}
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.057 seconds