WP eCommerce Australia Post plugin not working (2 posts)

  1. deanes02
    Posted 5 years ago #

    Hey guys,

    Aus post does not work it seems.

    Fresh installs of WP and WPSC - not upgraded.

    All settings are fixed up as per http://www.visser.com.au/wp-ecommerce/documentation/common-problems/

    I have switched off AusPost for now, but when I switch it on and edit the settings, I cannot select just "Standard Parcel Post". If i do and hit update, the page reloads and the option is not checked. I then checked all the options, hit update, all selected and saved, but I get the error below. Now I can't uncheck and save the options. They are all switched on!

    Error: “Sorry, online ordering is unavailable to this destination and/or weight”

    I have checked my error logs and there are no PHP errors.

    Any ideas?

    Note: it is not the plugin, but the integrated shipping module that is now in WPSC

  2. darcius
    Posted 5 years ago #

    Hi deanes02,

    I ran into this problem too, but managed to fix it. This might be too late for you, but hopefully anyone else having the problem now might benefit.

    In the 'plugins' directory in your wordpress install, open this file - wp-e-commerce/shipping/australiapost.php

    Go to line 131 which has this bit of code...
    if (isset($_POST['shippingname']) && $_POST['shippingname'] == $this->internal_name) {

    and change it too...
    if(in_array($this->internal_name, $_POST['custom_shipping_options'])) {

    That should fix the issue and get the shipping calculator saving the options correctly and working in the frontend. Looks like the problem occured when the plugin was updated, but not the shipping module.


Topic Closed

This topic has been closed to new replies.

About this Topic