Read Shipping Class in checkout_process.php
Babefire <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.general |
|---|---|
| Message-ID | <604967a945879d936ee8c65593dab87c@osCommerce-Forums> |
This message was sent from: General Support
http://forums.oscommerce.com/viewtopic.php?p=227845#227845
----------------------------------------------------------------
I just wrote a code which produce an XML File in the checkout_process.php file. I need to convert the shipping code into a number, so i checked out the class file and made the following code, but it doesn't work proper.
if ($shipping_modules->code = 'chp') {
$transportMode = 0;
}
if ($shipping_modules->$method = 'table') {
$transportMode = 2;
}
I got everytime the number 2 (or the last number) in my XML-File. What's wrong with that, how I get the codes of the shipping module? Can someone please give me a short clue...
Thanks,