Hi
I have created two modules, the first is a shipping module, to which I have finished and am testing so far. The shipping module is based upon the weight based shipping solutions and geo-shipping solution. Each destination has its own shipping rate per kg and also a standard charge amount.
My second module is an add to the first module. Its a Delivery type options module were the customer gets to select two options "Standard" or "Express" from a drop down combo box, to which I created a pane for called "Select Delivery Type Method" and is placed above the "Calculate Shipping Cost Pane"
The idea here is depending on how customer whats their order delivered to them.
If Standard (which is the default is selected) then the shipping quote is calculated by the rate/kg of the destination multiplied by the order weight in kg, and exludes the basic charge fee.
Eg. Shipping Charge = (Weight of Product * Rate/kg)
If Express Selected, then the shipping quote is calculated by the rate/kg of the destination multiplied by the order weight in kg, and plus the basic charge fee.
Eg. Charge = (Weight of Product * Rate/kg) + Express Charge)
My problem is having to reference whether (in the "Delivery Type Method Pane" above the "calculate shipping cost pane") STANDARD or EXPRESS is selected and create a Case or If Then Else Statement to calculate the shipping cost.
Apart from this, I am new to drupal and ubercart and have spent nearly two solid weeks learning it. In addition, I dont know PHP and MYSQL and am also learning. But have been able to write a few things, most of my time is debugging and searching for help, I have not been able to find anything to resolve my current problem above.
Please any help and all help would be greatly appreciated to resolve this issue.
Kind Regards
OJ




Joined: 10/13/2008