NAME
WWW::Picnic::Result::Cart - Picnic shopping cart / order
VERSION
version 0.100
SYNOPSIS
my $cart = $picnic->get_cart;
say "Total: ", $cart->total_price / 100, " EUR";
say "Items: ", $cart->total_count;
for my $item (@{ $cart->items }) {
say $item->{name}, " x ", $item->{count};
}
DESCRIPTION
Represents a Picnic shopping cart (which is also an order). Contains items, pricing, and delivery slot information.
id
Cart identifier, typically shopping_cart.
type
Cart type, typically ORDER.
status
Current status of the cart/order.
items
Arrayref of order lines/items in the cart. Each item contains product details, quantity, and pricing.
total_count
Total number of items in the cart.
total_price
Total price in cents. Divide by 100 to get the price in EUR.
checkout_total_price
Total price at checkout in cents, may include delivery fees.
delivery_slots
Arrayref of available delivery slots for this cart.
selected_slot
Currently selected delivery slot, if any.
deposit_breakdown
Arrayref of deposit charges (bottles, crates, etc.).
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-picnic/issues.
IRC
You can reach Getty on irc.perl.org for questions and support.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.