Australia Post module and GST

  • Posts: 14
  • Thank you received: 0
13 years 2 months ago #25247

Hi all

I have a question about the Australia Post shipping module.

The price returned from Australia Post via the lookup process includes GST (10%).

In the shipping module, with the Tax Category set to none, I get the correct shipping cost in the checkout process, but the tax total is incorrect as it doesn't show the tax which was already included on the shipping.

If I set the Tax Category to GST in the module, it adds 10% to the shipping price. I get the 10% higher shipping cost in the checkout process and the tax calculation is correct.

I believe that Hikashop is working correctly, except we need to decrease the shipping price by an 11th of the price in the shipping module.

Has anyone worked around this issue or do we need to change code to resolve this/

Thanks
Peter

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25249

Hi,

Indeed, that's the case. We didn't know that the shipping price was given including taxes by australia post.
The solution is the add the code:

        			$currencyClass = hikashop_get('class.currency');
        			if(@$rates[$type]->shipping_tax_id) $data['charge'] = $currencyClass->getUntaxedPrice($data['charge'],hikashop_getZone(),$rates[$type]->shipping_tax_id);

before the code:
$rates[$type]->shipping_price += $data['charge'];
in the file plugins/hikashopshipping/aupost.php so that once the tax is set in the shipping plugin options, it works properly.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
13 years 2 months ago #25267

Hi Nicolas

Thanks for the prompt reply - that has resolved the issue, great support. Will you incorporate that change into a future release?

When I was testing this, I noticed that if the user logs in before checking out, the shipping and product costs are not totalled, but the amount is correct when it connects to paypal for payment. If the user logs on, adds a product to the cart, then checks out, the totals are correct.





Cheers
Peter

Attachments:
Last edit: 13 years 2 months ago by pedrof.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25269

That's an issue which was corrected in previous versions of HikaShop. You're probably not using the latest version.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
13 years 2 months ago #25272

Hi Nicholas

I am using 1.5.3

I just reverted to the old aupost.php and it works correctly, the issue occurs with the updated code.

If you need access to the site to test, please email me.

Cheers
Peter

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25275

And yes, we'll add that modification on our end in the next release.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25276

That modification doesn't change anything to the way the total is calculated so it's not related.

By the way, the total not being correct is just a matter of data cache. if you refresh the page, you should see the correct total. If you use the latest version, you should not have that problem. Could you give a link to your shop so that we can see the problem ?

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
13 years 2 months ago #25283

Hi

The website is www.gulfbrewery.com.au
Just pick the first beer in the list. There is a test user frogger with a password of frogger.

Cheers
Peter

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
13 years 2 months ago #25306

Hi,

We tried to reproduce the problem on our end but we couldn't. No matter what we tried, we didn't get the same behavior. Could you provide a back end access and an FTP account to your website so that we can debug the problem directly on your website ? If so, you can do that by PM or via the contact us page of our website.

Please Log in or Create an account to join the conversation.

  • Posts: 14
  • Thank you received: 0
13 years 2 months ago #25511

Hi folks

The issue is within the Australia Post module only and only affects us that use it in Australia, it will not affect other countries.

Nicolas is checking out my site to see if it is my issue or with the code.

Cheers
Peter

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum