开发者

Code to retrieve selected country for shipping address from Magento user details

开发者 https://www.devze.com 2023-04-05 22:15 出处:网络
How would I retrieve this information from a users d开发者_StackOverflow中文版etails when they save their account?

How would I retrieve this information from a users d开发者_StackOverflow中文版etails when they save their account? I found a tutorial online and followed that to build an observer for the customer before save event (I'm not sure this is the correct event to observe, but maybe!).

http://www.fontis.com.au/blog/magento/automatically-set-magento-customer-group

But how do I get the value the user has selected as the country of their shipping address?

The idea here is to assign a customer into a customer group based on their shipping address (country).

Any help appreciated!


It seems this question is redundant in my scenario as Magento's tax classes achieve what I was trying to work out here. Tax based on shipping address :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号