I’ve used that to show what addresses they’ve added, but I can’t find our which exact ones they’ve set for billing and shipping during checkout and display them as a summary of their order before confirming.
I am only guessing and throwing my idea out here but somehow you might have to use some sort of 'skip-template' option and get this from the returned array.
I have very little shop experience so this is a guess more then answer...
link: https://docs.grabaperch.com/addons/shop/examples/managing-addresses/
To show a customer a list of their addresses:
Hey Robert,
I’ve used that to show what addresses they’ve added, but I can’t find our which exact ones they’ve set for billing and shipping during checkout and display them as a summary of their order before confirming.
Cheers
also see: https://docs.grabaperch.com/functions/shop/customers/perch-shop-customer-address/
perch_shop_customer_address
Display an address for the logged in customer with perch_shop_customer_address()
Yeah could use the guy but how do I get the ID of the set billing and shipping addresses?
I am only guessing and throwing my idea out here but somehow you might have to use some sort of 'skip-template' option and get this from the returned array.
I have very little shop experience so this is a guess more then answer...
perch_shop_order_addresses()
shows the addresses that have been chosen for the order.What if the order hasn’t happnened yet? As mentioned I want to show a summary before final order!
Cheers :)
Have you tried it? If addresses have been selected, it will show them - even if the order hasn't happened yet.
Example here:
https://docs.grabaperch.com/addons/shop/examples/order-confirmation/
Will try now, thanks Duncan!