NAME
Mango::Wishlist::Item - Module representing an individual wishlist item
SYNOPSIS
use Mango::Wishlist::Item;
my $items = $cart->items;
while (my $item = $items->next) {
print $item->sku;
};
DESCRIPTION
Mango::Wishlist::Item represent a part in the wishlist to be ordered.
METHODS
id
Returns the id of the current wishlist item.
print $item->id;
sku
Gets/sets the sku (stock keeping unit/part number) for the wishlist item.
$item->sku('ABC123');
print $item->sku;
quantity
Gets/sets the quantity, or the number of this item being purchased.
$item->quantity(3);
print $item->quantity;
price
Gets/sets the price for the wishlist item. The price is returned as a stringified Mango::Currency object.
$item->price(12.95);
print $item->price;
print $item->price->format;
total
Returns the total price for the wishlist item as a stringified Mango::Currency object. This is really just quantity*total and is provided for convenience.
print $item->total;
print $item->total->format;
description
Gets/sets the description for the current wishlist item.
$item->description('Best Item Ever');
print $item->description;
update
Saves any changes made to the current item.
SEE ALSO
Mango::Wishlist, Mango::Schema::Wishlist::Item, Mango::Currency
AUTHOR
Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com
http://today.icantfocus.com/blog/