Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Discussions > Perl & Google Checkout API > can't make multiple shipping options work
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
thecomiclounge  
View profile  
 More options Feb 18 2009, 12:54 pm
From: thecomiclounge <ord...@thecomiclounge.com>
Date: Wed, 18 Feb 2009 09:54:14 -0800 (PST)
Local: Wed, Feb 18 2009 12:54 pm
Subject: can't make multiple shipping options work
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]


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »