Interchange6

 view release on metacpan or  search on metacpan

lib/Interchange6/Cart.pm  view on Meta::CPAN

If you have products that cannot be combined in the cart (see
L<Interchange6::Cart::Product/combine> and 
L<Interchange6::Cart::Product/should_combine_by_sku>) then it is possible to
have multiple cart products with the same sku. In this case the arguments
to L</update> must be a list of hash references using either
L<Interchange6::Cart::Product/id> or C<index> where C<index> is
the zero-based index of the product within L</products>.

=cut

sub update {
    my ( $self, @args ) = @_;
    my @products;

  ARGS: while ( @args > 0 ) {

        my ( $product, $sku, $qty );

        if ( ref( $args[0] ) eq '' ) {

            # original API expecting list of sku/qty pairs

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.206 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )