WordPress.org

Ready to get started?Download WordPress

Forums

Simple Cart & Buy Now
[resolved] getShippingOptions function - USA centric? (5 posts)

  1. trixienolix
    Member
    Posted 2 years ago #

    Hi just looking into your plugin for a client who has it installed but is based in the UK. She needs different shipping options based on location but your getShippingOptions function says it only accepts "all" "NotUSA" or "USA". For someone in the UK this is not very helpful as she needs something like:
    "UK", "Europe", "USA", "Rest of world"
    is there any way to do this?

    thanks in advance

    http://wordpress.org/extend/plugins/simple-cart-buy-now/

  2. bluey80
    Member
    Plugin Author

    Posted 2 years ago #

    The shipping options are handled differently for Google and Paypal. For Paypal, all the shipping options are handled not in this plugin, but in the Paypal merchant preferences where you can list different shipping options to different regions, etc. I'm not sure if you can select different pricing for UK, vs Europe vs USA, etc, but that will be a Paypal question.

    For Google, we have to pass them the different shipping options for different regions. Take a look at the includes/functions page. In the make_google_button code there's a pretty simple if then for region encoding:

    if ($soption['region'] == "USA" ) {
    $gc .= "\n\t\t<us-country-area country-area=\"ALL\"/>";
    } else {
    $gc .= "\n\t\t<world-area/>";
    }

    That you could change to
    if USA...
    else if UK
    else if Europe
    else...
    As for the contention (ie <us-country-area country-area=\"ALL\"/>"; ,etc) you'll have to look at the Google API to see what they support, but generally I've found it very flexible. If you past back some code for it, I can add it to the plugin and then people will just have to put the shipping options they want in their template/XXXX/customize.php page.

  3. henneckes
    Member
    Posted 1 year ago #

    I'm really enjoying the simplicity of simple cart by Ben. I was hoping I could get help in adding another option to the add to cart function. For example right now it allows you to create an option such as color but how can I add additional options?

    Thanks

  4. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    This has been requested a few times -- I'll look into adding this. Heads up the options will be independent (ie all of option1 settings works with all of option1 settings).

  5. bluey80
    Member
    Plugin Author

    Posted 1 year ago #

    I'm ignoring the multi-options question as it is in a (separate) different post, where it should be. The shipping options described above have been redone in SCABN 2.0 and allows much greater flexibility it choosing regions for shipping options.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic