RE: Worldpay support III
ambience <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <9d6cc92f4c5ba80074f7290da75f800f@osCommerce-Forums> |
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=226908#226908
----------------------------------------------------------------
[quote="stubbsy"]Sorry to trouble once more ambience[/quote]
You're thinking about it the right way.. the key to understanding what is happening is to look in the order.php file in classes. That's going to show you how it gets and puts information into that order variable / class.. which is how you can say order->customer etc..
Where you're wrong with the code is that the customer_id field isn't part of the order class - you will see it's missing from the order.php file.
The customer_id field is stored in a global variable on it's own so it's a simple case of calling it directly:
[code]tep_draw_hidden_field('cartId', STORE_NAME.' : '.$customer_id.' - '.$order->customer['firstname'].' '.$order->customer['lastname'])[/code]
Sure you can work out how that will turn out...
StoreName : CustNum - First Last
I'm a beginner myself so I stand to be corrected on my thinking, but that solves the problem
:)