Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need help to display the currency sign only


Peper

Recommended Posts

Posted

I need some help to display the currency sign at checkout_shipping.php to what ever currency is selected by a user.

 

e.g. Free shipping only for an order of $5000.00 or more with a maximum package weight of 30 Kg

 

The $ needs to change to the users currency selected

 

Please any help

Getting the Phoenix off the ground

Posted

Pierre,

 

OSC should already do that if you have your currencies set up correctly.

 

 

 

 

Chris

Posted

Pierre,

 

OSC should already do that if you have your currencies set up correctly.

 

 

 

 

Chris

Thanks for the reply

This is something else I'm working on - currently the currency sign comes from the shipping language file and I need to change this to show the currency selected

Getting the Phoenix off the ground

Posted

This works for me:

 

<?php
echo $currencies->currencies[$currency]['symbol_left'];
?>

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

This works for me:

 

<?php
echo $currencies->currencies[$currency]['symbol_left'];
?>

Thanks for posting

 

I'm not sure how to put in the code where the $ sign is

 

define('MODULE_SHIPPING_FREEAMOUNT_TEXT_TO_HEIGHT', 'Free shipping only for an order of $' . MODULE_SHIPPING_FREEAMOUNT_AMOUNT . ' or more with a maximum package weight of ' . MODULE_SHIPPING_FREEAMOUNT_WEIGHT_MAX . ' ' . MODULE_SHIPPING_FREEAMOUNT_TEXT_UNIT);

Getting the Phoenix off the ground

Posted
define('MODULE_SHIPPING_FREEAMOUNT_TEXT_TO_HEIGHT', 'Free shipping only for an order of ' . $currencies->currencies[$currency]['symbol_left'] . MODULE_SHIPPING_FREEAMOUNT_AMOUNT . ' or more with a maximum package weight of ' . MODULE_SHIPPING_FREEAMOUNT_WEIGHT_MAX . ' ' . MODULE_SHIPPING_FREEAMOUNT_TEXT_UNIT); 

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...