Skip to main content

Product Price Span

More
13 years 6 months ago #101728 by Jacoke
Product Price Span was created by Jacoke
Hi guys,

I was wondering how to edit/delete the span of a product price.
Attached is the code I found in Element Inspector.

There is a value "each" behind all prices in category and listing view. I would like to edit/delete this value, as this has no value for our shop. :unsure:

Thx.

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

More
13 years 6 months ago #101752 by Mohamed Thelji
Replied by Mohamed Thelji on topic Product Price Span
Hi,

I think that you'll just have to :
- Go to "Hikashop->System->Configuration->Language->'YOUR LANGUAGE FILE'"
- change the line :
Code:
PER_UNIT=" each"
by :
Code:
PER_UNIT=" YOUR TRANSLATION"

Hope this will help you.
The following user(s) said Thank You: Jacoke

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

More
13 years 6 months ago #101791 by Jacoke
Replied by Jacoke on topic Product Price Span
TY Mohamed,

but isn't this just a workaround? Can't I go into the correct .php and change it there?
This worked great, but don't get me wrong.

Thanks.

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

More
13 years 6 months ago #101797 by nicolas
Replied by nicolas on topic Product Price Span
It's better to do a translation override than change the PHP.
Changing the PHP means that when you update HikaShop, either you don't get the new code for that view if you did an override, or you loose your changes if you modify the core file directly.
With a translation override, you don't loose your change and you get the new code and new translations. Just be sure to add the change as a translation override and not directly in the language file:
www.hikashop.com/en/download/languages.html#modify
The following user(s) said Thank You: Jacoke

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

Time to create page: 0.125 seconds
Powered by Kunena Forum