SilverCart Forum

We moderate this Forum and we're here to help. Have you already run a forum search to check if your problem has already been solved?

You can help us helping you by providing detailed error messages, screenshots and logfile entries.

SebastianRamon

Page: 1
Topic Selected shipping address from inside SilvercartShoppingCart class 3241 Views

Selected shipping address from inside SilvercartShoppingCart class

17 April 2014 at 9:35pm

Hi,

I need to get the selected shipping address from inside SilvercartShoppingCart class. I'm able to get the default shipping address from logged in user, but apparently the selected shipping address is stored inside Checkout class, and I just can't find a way to get it from ShoppingCart.

Thanks!

Re: Selected shipping address from inside SilvercartShoppingCart class

23 April 2014 at 8:45pm

I think we figured it out...

if ($this->owner->getShippingMethod())
$shippingAddress = $this->owner->getShippingMethod()->getShippingAddress();
else
$shippingAddress = $member->SilvercartShippingAddress();

Re: Selected shipping address from inside SilvercartShoppingCart class

25 April 2014 at 9:09am

Hi Contigo,

awesome you could figure that out by yourself :)

Cheers
Ramon