Support » Plugin: Simple Cart & Buy Now » [Plugin: Simple Cart & Buy Now] getShippingOptions function – USA centric?

  • Resolved trixienolix


    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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author bluey80


    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
    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.

    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?


    Plugin Author bluey80


    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).

    Plugin Author bluey80


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Simple Cart & Buy Now] getShippingOptions function – USA centric?’ is closed to new replies.