Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Individual Product Shipping - display shipping price with comma instead of point?


Recommended Posts

Posted

Hi,

 

after quite a fight I succeeded in installing Individual Product Shipping Prices. I even made IPSP display the price with two decimal places by altering the 'products_ship_price'-field in the database to type 'decimal(10,2)'. Now, it displays the correct shipping price, but it does so with a point as decimal separator, instead of a comma which is the standard in my language and country.

 

Any ideas where to look for?

 

Many thanks,

 

Oliver

Posted

thx to every reader - I managed it.

Solution is number_format; my full line in product_info.php now reads:

 

echo 'Shipping price: ' . number_format($extra_shipping['products_ship_price'], 2, ',','.') . ' Euro.</p>';

 

and echoes, e.g.

Shipping price: 99,00 Euro.

 

:)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...