Package DE_EPAGES::Product::API::Basket
API for addding products to the basket.
@EXPORT_OK |
Functions
AddProducts
Adds a list of products to a the basket of the user. If the list contains products from different shops, then multiple baskets are created - one for each shop.
Syntax |
$aBaskets = AddProducts($User, $hInfo, $ahProducts); |
Example |
my @Products; push @Products, { Product => $Product, Quantity => 3 }; my $aBaskets = AddProducts( $User, {}, \@Products ); my $Basket = $aBaskets->[0]; |
Input |
|
Return |
|