added some helper methods for addressing, and got the cart closer to working

This commit is contained in:
JT Smith 2008-03-05 16:32:08 +00:00
parent 8c862439f9
commit 112834a9b7
4 changed files with 112 additions and 8 deletions

View file

@ -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 ( )