added some helper methods for addressing, and got the cart closer to working
This commit is contained in:
parent
8c862439f9
commit
112834a9b7
4 changed files with 112 additions and 8 deletions
|
|
@ -112,6 +112,19 @@ sub getId {
|
|||
}
|
||||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getShippingAddress ()
|
||||
|
||||
Returns the WebGUI::Shop::Address object that is attached to this item for shipping.
|
||||
|
||||
=cut
|
||||
|
||||
sub getShippingAddress {
|
||||
my $self = shift;
|
||||
return $self->cart->getAddressBook->getAddress($self->get("shippingAddressId"));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 getSku ( )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue