Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove currency prefix on Invoice


Guest

Recommended Posts

Posted

When I make an invoice in admin, all prices on products show without currency prefix.

BUT (there is always the big but!) at the bottom of the invoice where the totals are showing, the prefix stands.

 

Like this;

2 Rosa Sløyfe 4702 25.00% 1,60 2,00 3,20 4,00

1 Små søte hvite blomster 4701 25.00% 4,00 5,00 4,00 5,00

Sub-Total: kr.119,00

Postens Servicepakke (Varen(e) sendes som registrert pakke): kr.60,00

Postoppkrav: kr.63,00

Total: kr.242,00

Herav mva: kr.48,40

 

Where is that prefix located so I can remove it? The page is in Norwegian, therefor the kr. prefix

 

Thanks for your help :-)

Posted

i guess the best option to do this is in the invoice, you use the str_replace function to get rid of the currency symbol, ie, replace it with '', which is an empty string or a space, rather than fiddling files at the shop front, which IMO, is overkilled.

 

Ken

commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile).

over 20 years of computer programming experience.

Posted

The big question is, where does it get the prefix from? Have been through every file I can think about.

I think it is somewhere in the order total files, but can't figure out where. Have worked with OsC for many years before, but this is the first time I've come to a stall

Posted

Figured it out myself. Took a look in the database, and saw that the order_totals are stored as text in the database, and the changes I made with the left/right symbol did not have effekt on the orders already plased.

 

New orders come out right on the invoice

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...