I have no idea what I am doing wrong. I have three shipping options
created when I create a shopping cart. When you go the cart all three
options show up. But if you try and choose anything but the first
option, it always reverts back the first option, says the price has
changed, and wont let you proceed..... I need help I can't figure it
out!
here is my code:
if($total_price < 20){
$flat_rate_shipping =
Google::Checkout::General::FlatRateShipping->new(
shipping_name => "USPS Flat Rate",
price => 5.00);
}else{
$flat_rate_shipping =
Google::Checkout::General::FlatRateShipping->new(
shipping_name => "USPS Flat Rate",
price => 0.00);
}
my $pickup_shipping =
Google::Checkout::General::FlatRateShipping->new(shipping_name =>
"Pickup - Downtown Plaza Sacramento, CA", price => 0.00);
my $hold_shipping = Google::Checkout::General::FlatRateShipping-
>new(shipping_name => "Hold Order till my total is over 20 dollars,
free shipping", price => 0.00);
my $checkout_flow =
Google::Checkout::General::MerchantCheckoutFlow->new(
shipping_method => [$flat_rate_shipping,
$pickup_shipping, $hold_shipping]