interchange / Dancer-Plugin-Interchange6

Dancer Plugin for Interchange6 shop machine
4 stars 1 forks source link

"apply_cost" does not work correctly against shop_cart() #29

Closed murwiz closed 9 years ago

murwiz commented 10 years ago

Note: ... shop_cart()->apply_cost( name => 'shipping', amount => 1.23 ); debug(shop_cart()->cost('shipping')); ... Bad argument to cost: shipping

If you dump out shop_cart()->costs, you see an empty array.

However, this works:

my $cart = shop_cart(); $cart->apply_cost( ... );

racke commented 10 years ago

This is a general problem, we don't cache the cart object anymore like we did in Dancer::Plugin::Nitesi.

SysPete commented 9 years ago

Closed by commit 16afd053