The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Template::Plugin::Handel::Order - Template Toolkit plugin for orders

SYNOPSIS

[% USE Handel.Order %]
[% IF (order = Handel.Order.search({id => 'A2CCD312-73B5-4EE4-B77E-3D027349A055'}).first) %]
[% order.number %]
[% FOREACH item IN order.items.all %]
[% item.sku %]
[% END %]
[% END %]

DESCRIPTION

Template::Plugin::Handel::Order is a TT2 (Template Toolkit 2) plugin for Handel::Order. It's API is exactly the same as Handel::Order.

Handel::Constants are imported into this module automatically. This removes the need to use Template::Plugin::Handel::Constants separately when working with orders.

[% USE ho = Handel.Order %]
[% order = ho.create(...) %]
[% order.type(ho.ORDER_TYPE_TEMP) %]

SEE ALSO

Template::Plugin::Handel::Constants, Handel::Constants, Handel::Order, Template::Plugin

AUTHOR

Christopher H. Laco
CPAN ID: CLACO
claco@chrislaco.com