Product Price Span

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101728

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.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 6 months ago #101752

Hi,

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

PER_UNIT=" each"
by :
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.

  • Posts: 8
  • Thank you received: 0
11 years 6 months ago #101791

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.

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #101797

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.069 seconds
Powered by Kunena Forum