Closed (fixed)
Project:
e-Commerce
Version:
4.7.x-1.x-dev
Component:
shipcalc
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2006 at 11:34 UTC
Updated:
1 Feb 2007 at 12:45 UTC
By default ups.inc set this variable to 'LBS', but in Spain, UPS doesn't allow to use this measurement unit, so you must change it.
In order to use the UPS shipcalc in Spain I'm setting this variable:
<?php variable_set($shipcalc_unit, 'KGS'); ?>
You can add this script in a node with php format to execute the code once. Later you can erase the command fron the node.
I think it's a good idea to allow to set this variable in the ups configuration form "shipcalc_settings_form"
Comments
Comment #1
simeCould always be overridden in settings.php (see the default for examples.)
New admin page in EC5
Comment #2
solanas commentedI don't know how to override it with the settings.php. At the end of the file is explained but I think it's not working to me:
If later I write a node with this code:
The node doesn't print 'KGStest', it continues printing 'KGS'.
Comment #3
(not verified) commented