Christopher H. Laco > Handel-1.00007 > Handel::Checkout::Plugin::MarkOrderSaved

Download:
Handel-1.00007.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Source   Latest Release: Handel-1.00011

NAME ^

Handel::Checkout::Plugin::MarkOrderSaved - Checkout plugin to mark the order ORDER_TYPE_SAVED

SYNOPSIS ^

    use Handel::Checkout;
    
    my $checkout = Handel::Checkout->new({
        order       => $order,
        phases      => 'CHECKOUT_PHASE_FINALIZE',
        loadplugins => 'Handel::Checkout::Plugin::MarkOrderSaved'
    });
    
    $checkout->process;

DESCRIPTION ^

This checkout plugin simply changes $order->type to ORDER_TYPE_SAVED during the CHECKOUT_PHASE_FINALIZE phase.

METHODS ^

register

Registers this plugin for the CHECKOUT_PHASE_FINALIZE phase.

handler

Calls "save" in Handel::Order to mark the current order as saved.

SEE ALSO ^

Handel::Checkout::Plugin, Handel::Checkout

AUTHOR ^

    Christopher H. Laco
    CPAN ID: CLACO
    claco@chrislaco.com
    http://today.icantfocus.com/blog/