Guest Posted September 4, 2008 Posted September 4, 2008 Can anyone explain to me how i can change the display in the checkout from lbs to kgs, the version that i have is, osCommerce 2.2-MS2, also i only have one zone, is it possible to create more zones ?
♥geoffreywalton Posted September 4, 2008 Posted September 4, 2008 Edit the language files and change lbs to kg where ever it appears on your site. (/includes/languages/.... ) Edit /includes/modules/shipping/zones.php and set the number of zones you require in there. De-install zones using the shipping section of the admin area and then reinstall it. Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
germ Posted September 4, 2008 Posted September 4, 2008 /includes/languages/english/modules/shipping/zones.php define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)'); 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 >
Guest Posted September 4, 2008 Posted September 4, 2008 /includes/languages/english/modules/shipping/zones.php define('MODULE_SHIPPING_ZONES_TEXT_UNITS', 'lb(s)'); This is what i have, I cant find any mention of weight or lbs in any of my files, the term lbs only appears after the address details, $zones_table = split("[:,]" , $zones_cost); $size = sizeof($zones_table); for ($i=0; $i<$size; $i+=2) { if ($shipping_weight <= $zones_table[$i]) { $shipping = $zones_table[$i+1]; $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_ZONES_TEXT_UNITS; break; } }
Guest Posted September 4, 2008 Posted September 4, 2008 Edit the language files and change lbs to kg where ever it appears on your site. (/includes/languages/.... ) Edit /includes/modules/shipping/zones.php and set the number of zones you require in there. De-install zones using the shipping section of the admin area and then reinstall it. Many thanks for the advise regarding the Zones, i now have that sorted, the changing from lbs to kgs is more of a problem though, i have spent all day looking in all of the files for any mention of weight of lbs but cant find it anywere, any more sugguestions ?
germ Posted September 4, 2008 Posted September 4, 2008 So what do you have in /includes/languages/english/modules/shipping/zones.php? :unsure: 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 >
Guest Posted September 5, 2008 Posted September 5, 2008 This is what i have, I cant find any mention of weight or lbs in any of my files, the term lbs only appears after the address details, $zones_table = split("[:,]" , $zones_cost); $size = sizeof($zones_table); for ($i=0; $i<$size; $i+=2) { if ($shipping_weight <= $zones_table[$i]) { $shipping = $zones_table[$i+1]; $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country . ' : ' . $shipping_weight . ' ' . MODULE_SHIPPING_ZONES_TEXT_UNITS; break; } } Ok many thanks, i have now found it,
Recommended Posts
Archived
This topic is now archived and is closed to further replies.