Author Topic: Simple AustraliaPost Shipping Module  (Read 66851 times)

marinos

  • Beginner
  • *
  • Posts: 8
Re: Simple AustraliaPost Shipping Module
« Reply #45 on: September 21, 2010, 16:41:41 pm »
Hi Brono

thanks for the update. the currency selector is working fine now, all postage prices are converting in the shopping cart.

there is another issue though with the paypal payment module, once I click confirm order and get forwarded to paypal for payment, the totals change. I have added some screenshots to show what I mean.

In this order:
- image "1 aud.png" shop is original in AUD
- image "2 usd.png" user users the currency selector and selects usd currency. shipping currency converts perfectly. user selects Australia air post before continuing
- image "3 paypal.png" postage price is incorrect and so is currency, it should be usd
- image "4 email to admin" email states usd instead of aud since paypal thinks its aud

this issue has an explanation found at the link below but I haven't tested it yet. do you think this would this work?
http://forum.virtuemart.net/index.php?topic=44648.0



[attachment cleanup by admin]

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #46 on: September 23, 2010, 19:08:03 pm »
Hi Marino,
Could you try by using the standard module? Just to check if this is a common bug of VirtueMart.

marinos

  • Beginner
  • *
  • Posts: 8
Re: Simple AustraliaPost Shipping Module
« Reply #47 on: September 27, 2010, 04:49:53 am »
Hello Brono

I tested it using the original Australian post mod.

- The postage value does not change when I change currency
- then when I click confirm and go to paypal it looks like the postage price changes again in the wrong direction.

here are a few screen shots in this orger
- postage price in AUD
- user selects USD from currency module
- Cart totals before continue to paypal
- Paypal Summary


[attachment cleanup by admin]

firefly

  • Beginner
  • *
  • Posts: 25
Re: Simple AustraliaPost Shipping Module
« Reply #48 on: October 13, 2010, 04:58:47 am »
Hi Bruno

I have a new problem. one of my client's customers can't make a purchase because of this error:
Quote
Australia Post Shipping Calculator failed. reason: invalid country selected

The customer is in Turkey. i tested it with the normal Aus Post calculator and it worked but it has errors with other countries so would rather use your module.

not sure what to do about this one? have you heard of this problem before?
thanks

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #49 on: October 13, 2010, 07:09:37 am »
Hi Firefly,
I never had this error before, but I will check and get back to you.
Could you post a bug report here? http://forge.joomla.org/gf/project/simplevmaddons/tracker/?action=TrackerItemBrowse&tracker_id=9293
It helps keep tracking on bugs.
Thank you.

ep

  • Beginner
  • *
  • Posts: 2
Re: Simple AustraliaPost Shipping Module
« Reply #50 on: November 10, 2010, 03:47:07 am »
I am new to Joomla and Virtuemart.
I have installed the 1.5.7 version with no problem. However it doesn't return any value in the shipping cost. If I just pass the url(use debug) I can get the value returned.
Is there anything I need to configure ?



Find out what's wrong. you have to install curl for php.

anthony

  • Beginner
  • *
  • Posts: 6
Re: Simple AustraliaPost Shipping Module
« Reply #51 on: November 11, 2010, 03:30:35 am »
I have joomla 1.5.22 + VM 1.1.5 + Simple AusPost 1.5.7.
I cant get it to return a price for shipping. I have curl enabled on my server.

1 PARCEL for 0.01 KG
Australia Post Standard: $0.00

Any thoughts?

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #52 on: November 11, 2010, 11:04:37 am »
Hi Anthony,

Update the method with this new version (1.5.9): http://bit.ly/96ppzN
After that, if you still have this error, activate the debug mode.
Have a good day!

Regards,

Bruno


anthony

  • Beginner
  • *
  • Posts: 6
Re: Simple AustraliaPost Shipping Module
« Reply #53 on: November 11, 2010, 21:35:38 pm »
Thanks Bruno,

Ive updated to 1.5.9. Im still not getting any prices returning. Ive checked that Standard shipping works so its not a VM issue. I've turned on debug but I'm not sure what i'm looking for.

$_POST:     
$_GET:    view=>frontpage
$_COOKIE:    
$_SESSION:    __default=> {Array}
VMCHECK=>OK
auth=> {Array}
cart=> {Array}
recent=> {Array}
ps_vendor_id=>1
minimum_pov=>0.00
vendor_currency=>AUD
usefetchscript=>0
userstate=> {Array}
last_page=>checkout.index
vmUseGreyBox=>0
vmCartDirection=>0
savedcart=> {Array}
product_sess=> {Array}
simpleauspost%7CAustralia+Post%7CStandard%7C0.00=>1
simpleauspost%7CAustralia+Post%7CExpress%7C0.00=>1
standard_shipping%7CDHL%7CWorld_2+%3E+20kg%7C126.20%7C20=>1
     
$vars:    option => com_virtuemart
Itemid => 72
user_id => 62
page => checkout.index
func => checkoutProcess
zone_qty => 1
ship_to_info_id => 56da17e895e69a2dfda5cc492441dc8f
shipping_rate_id =>
payment_method_id => 0
checkout_last_step => 1
formSubmit => Next >>
virtuemart => qt0ver0oas0ahskuq5culjl9n3
ys-vmconfiguration-active => s:ext-comp-1006
ys-debugpanel-active => s:ext-comp-1004
mynxx-fontstyle => f-default
7105e6b5c2c9897c946c3bccafb7c4de => a372cc76306cf13d6625c97dd62e9b50
37cbbe913dd01e76207ed4e4dde8d955 => 22c147190e804394cfb6d0c40ae6c643
switchmenu => 1
view => frontpage
user_info_id =>
order_subtotal_withtax => 1266.44
payment_discount => 0
total => 1266.44

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #54 on: November 12, 2010, 00:30:09 am »
Hi,
You need to activate the debug mode on the shippping method.
Go to the configuration panel of the shipping method and activate the Debug mode. Then post the output here.

anthony

  • Beginner
  • *
  • Posts: 6
Re: Simple AustraliaPost Shipping Module
« Reply #55 on: November 12, 2010, 04:32:43 am »
Champion!
There was a space in the postcode field causing an invalid pick up error.

Thanks Bruno.

johnnynova

  • Beginner
  • *
  • Posts: 5
Re: Simple AustraliaPost Shipping Module
« Reply #56 on: November 14, 2010, 01:49:56 am »
Hi all, best mod yet for aus postage.
I've been trying to get the mod to include cost for using pre-paid satchels. I understand php a fair bit, but far from being a programmer. I realize that the DRC doesn't return these figures and been trying to use the 'static' prices for the 5oogm and 3k satchels. Been using the ozpost.php files I have on a zen-cart site as a bit of a guide, but to no avail. Anyone else trying to do this? Been successful? Have any suggestions? So far, All I've been able to do it get it to show the option, but it's not showing the price. I'll still have to write the 'if' statement, but if someone could guide me in the right direction to get it to show the price I would appreciated it.
David

johnnynova

  • Beginner
  • *
  • Posts: 5
Re: Simple AustraliaPost Shipping Module
« Reply #57 on: November 14, 2010, 02:32:39 am »
Hi again, thought I should add more info..
So far I have added this around line 50ish
Code: [Select]
var $_services = array(
'EXPRESS' => 'Express',
'STANDARD' => 'Standard',
'AIR' => 'By Air',
'SEA' => 'By Sea',
'PPS5' => 'Pre-Paid Satchel 500gm',
'PPS2' => 'Pre-Piad Satchel 2k'
);

And around line 137ish modified this
Code: [Select]
  var $_rates = array(
   'PPS5' => '6.00',
   'PPS3' => '10.30'
);

And, so far at around 375(this will need an if statement) I've got this, using the top 'chunk' as a template. (cuz I don't know what I'm doing)
Code: [Select]
              // Express rate for Australian Shipping
              $this->parcels[$key]['Service_Type'] = 'EXPRESS';
              $rates = explode("\n", $this->_get_content($this->_prepare_url($this->parcels[$key])));
              $this->parcels[$key]['Rates'][] = $this->_prepare_rate($rates, $this->parcels[$key]['Service_Type']);
             
              // Pre-Paid Satchel Australian Shipping
              $this->parcels[$key]['Service_Type'] = 'PPS5';
              $rates = explode("\n", $this->_get_content($this->_prepare_url($this->parcels[$key])));             
              $this->parcels[$key]['Rates'][] = $this->_prepare_rate($rates, $this->parcels[$key]['Service_Type']);

I've tried using this for the second line in my 'chunk'
Code: [Select]
$rates = 'PPS5';but it makes no difference. I also tried quite a few different things in there, tried changing the var $rates array, even tried to create a new array 'cost' and implement that. Most of those efforts just broke it.

Hope that info helps.
Thanks,
David

thebeardman

  • Jr. Member
  • **
  • Posts: 54
  • Touch a thread and all the Web comes alive!
    • My Joomla forge Page
Re: Simple AustraliaPost Shipping Module
« Reply #58 on: November 16, 2010, 13:04:31 pm »
Hi johnnynova,

Sorry for not answering earlier. This won't work as it send the service to the DRC website. But because this rate isn't handled by AustraliaPost, it won't work.
What I can suggest is by modifying this :
Code: [Select]
/ Pre-Paid Satchel Australian Shipping
              $this->parcels[$key]['Service_Type'] = 'PPS5';
              $rates = explode("\n", $this->_get_content($this->_prepare_url($this->parcels[$key])));             
              $this->parcels[$key]['Rates'][] = $this->_prepare_rate($rates, $this->parcels[$key]['Service_Type']);
Try without the _get_content() function because it is this function which call the webservices.
And you can force $this->parcels[$key]['Rates'][] by adding your own prices.
I didn't try this so I don't know how it will work.
Let me know about your research.

Regards.


johnnynova

  • Beginner
  • *
  • Posts: 5
Re: Simple AustraliaPost Shipping Module
« Reply #59 on: November 17, 2010, 09:43:06 am »
Thanks beardman, I'll give that a try and let you know how it goes. No worries about responding 'late'. It's not late at all, your helping out and that's admirable.  I don't expect 'quick service' for free help. I do appreciate your time.
David