Shop_CheckoutAddressInfo
The Shop_CheckoutAddressInfo class represents a customer shipping or billing address which the customer provides during the checkout process. Normally you don't need to create instances of that class. LemonStand provides the access to the class instances during the checkout process. Please refer to the shop:checkout action description for details.
Class fields
- first_name – customer first name
- last_name – customer last name
- email – customer email address
- company – customer company name
- phone – customer phone number
- country – customer country identifier
- state – customer state identifier
- street_address – customer street address
- city – customer city
- zip – customer zip code
Next: Shop_CheckoutData
Previous: Shop_Category
Return to Reference


Comments
Peter Crouch
Saturday, March 26, 2011For some reason the developers seem to have neglected an easy way to grab the country name and state names when outputting the billing/shipping address information. Hopefully they'll come to their senses soon enough, until then, the below code picks up the slack.
<?= h(Shop_CountryState::create()->find_by_id($billing_info->state)->name); ?>
<?= h(Shop_Country::create()->find_by_id($billing_info->country)->name) ?>
Add your comment
Loading form...