VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Questions VM 1.1 ( the only active board for the old version) => Topic started by: Das123 on April 20, 2009, 08:48:42 am

Title: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores (Now for 1.1.9)
Post by: Das123 on April 20, 2009, 08:48:42 am
------- Edit: 11 July 2011 ------

Hi all, been a while since I've been using VirtueMart but have now needed to upgrade the GST files again. :)

I've changed the files for VirtueMart 1.1.9. Instructions are pretty much the same but the files are different.

I've also changed the SQL update script a little - getting rid of the sample data. It will patch the sample data if you have it installed. If you have already got a version of the GST hack running on your system don't run the sql updater - the database will already be set-up correctly.

If you are updating from a previous version of VirtueMart, do the update for VirtueMart, make sure the sql patches have run if doing this manually, then simply replace the files with the files from this zip.

Hope this helps. :)

I'll change the instructions below where applicable.

-----------------------------------

I supplied some hack files and a short guide for setting version 1.1.2 for Australian stores about 9 months ago (http://forum.virtuemart.net/index.php?topic=44489.msg141852#msg141852 (http://forum.virtuemart.net/index.php?topic=44489.msg141852#msg141852)) but things have changed a bit in version 1.1.3. At the time I was using Joomla 1.0.xx but now I need the same set-up for Joomla 1.5. So here is the updated version...

Introduction:

This is a hack of existing VirtueMart files to help make them compliant for Australian stores. Note: If you upgrade VirtueMart you will be writing over the top of these hacks and they will no longer work!

There are slight differences to the files in version 1.1.2 and 1.1.3, and people have said that the older version was working OK. But in reality, it is much better to use these to get the full benefit of 1.1.3.

Edit: There were also some changes between 1.1.3 and 1.1.9 but the principles have remained the same.

Another important change is that the Australian Shipping Module has been updated within VirtueMart and there is no reason to use the hacked one supplied in the 1.1.2 version. The shipping module is subsequently missing from this version for that reason.

Two sample SQL files have been included which 'Aussifies' the sample products and sets up some basic Aussie standards in the database. Aussie Product Samples.sql sets up the tax, vendor and sample products, while Vendor and Tax Only.sql only sets up the tax and vendor. It also updates all the products in the database to use the Australian GST settings. I'd recommend installing one of these as a starting point. Use Vendor and Tax Only.sql if you already have products and categories setup in your database - but please do a back-up first!

Edit: Only including a single SQL file for the 1.1.9 version (update.sql). This clears out the tax_rate table and places Australian GST in ID 1; changes all products in the database to have GST applied to them; and adds the field in the vendor table for the ABN number.

Overview:

First of all, we need to cater for ABNs as legally this should be on any tax invoice. Other samples have created ABN entries in the language files, but I would prefer this to be in the database with the rest of the vendor information.
Similarly, I want to simply select 'Australian GST' from the admin panel rather than just patch templates and code here and there all the time (the patching still needs to be done, but the selection in the admin panel feels better).
Finally, tax and shipping should be simple.

Initially I'll go through the minimum steps you need to take to get the job done. Before we start, if you don't know how to FTP files or how to run SQL commands in your database, turn back now. This will be too difficult for you. Otherwise, read on. :)

The patches are still based on the 1.1.2 version so if you are looking for the specific hacks to upgrade the files yourself, please look in that thread. Note that there are now some extra language files that need updating.

I've tested it and it works for me, but I can't make any promises. Back everything up before you start - just in case. Last time many people helped out by posting what was working and what wasn't working. Please lets keep that community spirit going again. Makes everyones life easier.  ;D

So, into the fray!

10 Steps to Australian Compliance

1. Install VirtueMart on your website.

2. Download the zip file attached to this post.

3. Extract and replace the corresponding files in the VirtueMart component backend (path in zip file is from Joomla root directory).

4. If a fresh install of VirtueMart, import the attached SQL patch into the database. This creates an Australian tax reference and adds GST to the vendor. Don't follow this step if you already have a GST patched version and simply wish to upgrade VirtueMart to 1.1.9

5. Log in to the VirtueMart Admin.

6. In Store -> Edit Store
  a. Fill in the details for the vendor. Make sure default currencies etc are correct. Make sure country is correct (for tax defaults).
  b. Put ABN in address format:
{storename}
ABN: {abn}
etc etc

  c. Fill in other details as you like.
  The sample data in the zip has much of this already setup.

7. In Admin -> Configuration
  Under Price Configuration tick Show "(including XX% tax)" when applicable?
  b. Under Tax Configuration select Tax Mode: Australian GST mode
  c. Select other settings as you like.

8. In Tax -> List Tax Rates
  a. Remove default tax rate that comes with VirtuMart.
  b. Add tax rate -> Australia, No state, .10.
  (This has already been setup in the sample data)

9. In Store -> Shipping Module List
  Configure the AusPost module. Make sure the tax rate is the 10% rate you just made.

10. Put in your categories and products etc.

Job done! Not too difficult once you're past step 4. ;D

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on April 21, 2009, 11:49:15 am
Great job you've done here on providing for the Aussie experience. Extremely timely for me too as I'm just setting up an Aussie site.

Everything has worked well in terms of the installation.  I just need to check that the GST will be based on the purchasers shipping address and not be applied across the board.

I would suggest one addition to your dialogue above.  I had already installed my store and all the details and products. On implementing the SQL file, it wiped the lot.  Fortunately there were only 8 products on the site anyway.  It might pay to add that if you have already set up your store to run the SQL query instead of importing the file so others don't lose a lot more data than I did.. :-)

Once again, many thanks for your contribution.

Cheers,


Ric
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Partic on April 22, 2009, 02:24:23 am
Great stuff! Will be sharing that with the Melbourne Joomla User Group tonight!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on April 22, 2009, 07:30:28 am
Found a couple of issues.

1. GST wouldn't calculate until I added all the States. It wouldn't do it based purely on Australia, the country.

2. When you use a coupon, it calculates a discount. Great. But when the user registers, it calculates the GST on the original price and not the discounted price after applying the coupon value.

Any thoughts on the second issue?


Cheers,


Ric
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Das123 on April 24, 2009, 06:47:48 am
Thanks for the comments. Hope your meeting went well in Melbourne, Patric. :)

Good point Ric! I've changed the instruction wording in this post but I have also added a new SQL file that adds the vendor and tax information without touching the rest of the setup. It does, however update all the products to the new tax rate. (New file uploaded into original post)

I'm not sure why you needed to put in all the states. On my test install it was working without this.

And I also don't know where to fix the coupons, sorry. I believe this has been an issue in the past as well.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on April 24, 2009, 22:52:51 pm
Ric,

Go into admin... there is a setting in Admin-Configuration for tax settings. Just check "Subtract payment discount before tax/shipping?".

We're just upgrading our old vm install... this is going to be really useful thank you.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on April 26, 2009, 00:52:10 am
@HulaQueen...

Thanks so much for that tip.  You would think that that switch would be ON by default. I can't think of any reason why it would have to be turned on.

Once again, many thanks for that...

Cheers,

Ric
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on April 26, 2009, 22:08:27 pm
Well unfortunately, the switching on of the Tax Calcs after application of the coupon discount didn't work. Tested this several times but to no avail.

This site sells product and membership to Australian and overseas purchasers, so the tax calc is based on shipping address. Perhaps this is the problem.

If you'd like to try it out for yourself, the site is at the following URL.. (It is in development mode at the moment because of this and a couple of other issues, mainly VM ones.. )

http://www.bushsong.com.au/development/xcheque/

Cheers,

Ric

EDIT: I have reported this as a bug as I couldn't find a solution for it. Interestingly enough, the same bug was reported in 1.0 and closed, but doesn't seem to have moved over to 1.1... http://dev.virtuemart.net/cb/project/31

Hope I've reported this correctly. I haven't reported a bug in VM site before...

Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Aushops on April 30, 2009, 16:43:30 pm
Thanks Das for the excellent GST Hack
One Problem I have is there is no $ sign on the purchase order/Tax invoice as per attachment
Is it possible to tell me where I can fix this

Regards
Tony

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Das123 on April 30, 2009, 21:03:15 pm
So instead of it showing AUD215.00 you would prefer $215.00 (or AU$215.00)?

This occurs in the printed order I think. Most of the rest of the site should show the correct details.

This would require another hack to fix. There are two files that display this format that I can see...

administrator/components/com_virtuemart/html/order.order_print.php and
administrator/components/com_virtuemart/html/order.order_list.php

You'll need to search through the files for a command that looks like this...
Code: [Select]
echo $GLOBALS['CURRENCY_DISPLAY']->getFullValue($db->f("some_number_reference"), '', $db->f('order_currency'))
The override is in the back of the function call.

$GLOBALS['CURRENCY_DISPLAY'] is a class reference that manages the display of the currency.

getFullValue() is a method within that class with three variables:
1. Number to be formatted (required).
2. Decimals (optional)
3. Symbol (optional)

So to show the default symbol, you need to not include the symbol reference. This is done by simply deleting the references in the code. So our sample would end up:

Code: [Select]
echo $GLOBALS['CURRENCY_DISPLAY']->getFullValue($db->f("some_number_reference"))
I suppose you could search globally for

Code: [Select]
, '', $db->f('order_currency')) and delete it in the offending pages.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Aushops on May 01, 2009, 03:01:56 am
Hi Das
If possible just with the $ symbol displayed on the Purchase order/Tax Invoice as it is displayed as per shopping cart checkout (image attached)
I tried what you suggested but it didn't change anything on the printout

Regards
Tony

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 06, 2009, 21:56:30 pm
Has anyone modified the actual invoice to show the GST included in each item on the invoice. Some of my products have GST and others do not, so I am required to show this on each line.

Here's the GST rules if anyone hasn't seen them:
http://www.ato.gov.au/businesses/content.asp?doc=/content/50913.htm&page=1#P36_2104

I'm working on editing administrator/components/com_virtuemart/html/order.order_printdetails.php right now.

Just thought I'd ask just in case!
 
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Das123 on May 06, 2009, 23:35:42 pm
@Aushops:
I'm pretty sure it should change with the above edits. It did in my test. The default is to include the currency abbreviation instead of a dollar sign I think so it is actually a general question rather than an Aussie-specific question so perhaps there is an answer somewhere out there.

@HulaQueen:
My hack assumes that all Aussie products will have GST and so it changes many generic values. Instead of 'Total' it will read 'Total (incl. GST)'. Not ideal, but quick and dirty. To get the cart to recognise the difference and display correctly when you have a mix of products would take quite a deal of work, I think, in a number of different files.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 07, 2009, 00:13:59 am
It's okay if the cart etc does not display the info... but the final invoice does need to. We had GregDev make us a proper GST compliant invoice a few years ago. I'm just working now trying to make it work in the new version of VM. It's complicated. When I get it done I will post the code in this thread for the GST compliant invoice that shows GST component for each item.

Thanks again for providing this. It's incredible how many areas you touched!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 07, 2009, 05:04:15 am
Das123 can I ask you a quick question? Is the GST % hard coded everywhere to assume all products have GST? Or does it still use the setting in the product that says if the product has GST or not?

I only ask because one product I don't have gst on in the product settings is showing GST on the invoice. I jut thought I would check with you before I investigate.

Good news on the invoice - I have it working following one of the ATO invoice templates. I just have some formatting to do then will share it. It looks simple but took me about 4 hours to change!

Cheers!!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on May 07, 2009, 05:39:48 am
Just to throw in my 2 cents worth here. Everything done so far that I have tested is great and adequate.  The site I am working on has to calculate GST based on the Shipping Address, as some products are purchased by overseas clients and of course GST only applies to goods supplied within Australia.

The other issue of course is that not all Australian businesses are subject to GST if there turnover is below the threshold.  Consequently I would imagine that the option is irrelevant unless the GST rates are turned on in the options.

Cheers and many thanks for the thread and the contribution to the community.

Ric
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Das123 on May 07, 2009, 08:00:37 am
Look forward to seeing what is changed in the invoice, HulaQueen. :)

Using the hack, if a product isn't set for GST, GST shouldn't be added - but the generic description will still say 'incl. GST'

On the invoice the Subtotal, shipping and GST totals should work correctly. An easy test is to make sure the nett and gross prices when you enter the product price stay the same. If they differ then GST is most likely in play.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 07, 2009, 15:02:02 pm
I am having GST added in the cart to all products even when they are set for no GST in the product settings.

I'll look into it and post my findings later. I'm determined to get the GST all working today!! This is so exciting!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 11, 2009, 22:37:59 pm
I figured out the problem with everything having GST. For some reason I had VIRTUAL TAX checked in the admin configuration. This setting is supposed to handle tax for 0 weight products. However when turned on it seems to add tax to all products even if they have a weight entered! Strange! So no related to this patch at all.

I am finalizing the invoice template now and will post the changes as soon as I am done.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 12, 2009, 01:02:22 am
AUShops,

In the files for those pages (I am working on /public_html/administrator/components/com_virtuemart/html/order.order_printdetails.php

I changed items that looked like this:
echo $CURRENCY_DISPLAY->getFullValue($total, '', $db->f('order_currency'));

to
echo $CURRENCY_DISPLAY->getFullValue($total);

And they work. It seems that there's a bug with the code VM had there... and I don't think it's related to this hack. I had the AUD problem for currency in the printed invoice even though I have temporarily backed out the changes described in this thread.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: napalm on May 15, 2009, 05:49:08 am
Hi All,

Just wondering, point 9 on the instructions reads :
Configure the AusPost module. Make sure the tax rate is the 10% rate you just made.

I've tried doing this, yet i get the error:
../administrator/components/com_virtuemart/classes/shipping/auspost.cfg.php :: Unwriteable

Thing is, I've tried searching for this file 'auspost.cfg.php' and i can't find it. Not even in the package i downloaded at the start of this post.

Any ideas where i can get this file ?

Thanks!
Great post by the way, Das123!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on May 15, 2009, 11:48:23 am
@napalm

The auspost.cfg.php file is located in the following path....

public_html/components/com_virtuemart/classes/shipping

Hope this helps

Cheers,


Ric
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 20, 2009, 01:02:00 am
Here's the new invoice I have been working on. It replaces the one you print from admin when ready to send the order. Do a merge with the lines needed in the common/english.php (instead of replacing) as I don't currently have this threads GST change applied to my site (I thought it was the cause of a problem I was having but it was not).

I'm sorry the file is not that well commented, and old code is often still there but commented out. There may be some variables that are still there but no longer needed... it was a HUGE overhaul.

But now it looks as an invoice should and satisfies all the Australian ATO requirements.

Hope you like it!! If you make any improvements please share.

Cheers

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on May 20, 2009, 03:42:23 am
One thing the invoice above is still lacking is a 3 digit state code... has anyone figured out how to make that work? Would love to know.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: mmcs on May 23, 2009, 07:39:57 am
Hi guys,

Some excellent discussions. Here's a link to the article on the ATO website that discusses electronic trade:
http://www.ato.gov.au/businesses/content.asp?doc=/content/18428.htm&pc=001/003/049/002/001&mnu=&mfp=&st=&cy=1


Chapter 1 describes the issue of exports. Bascially in order to remove GST for export sales, teh customer must tick a box against wording such as:

"I declare that I am not in Australia at this time and I will not be making use of this supply in Australia."

Has anyone implemented this? I'm thinking when the user registers and selects a country other than Austrlia a tick box appears with these words..

thoughts?
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: jaddi01 on May 26, 2009, 15:45:13 pm
Hello guys / Gals!

I've tried to do a little research on GST and still have a question.  Am I correct in thinging that GST is basically calculated as:

Item 1 price (ex Tax)+ Item 2 Price (ex. Tax) + Shipping THEN Calculate Tax on subtotal?

For example:

£33.09 (ex Tax)
£11.06 (ex Tax)
£4.95 (Shipping)

£49.10 Sub Total

£54.01 Grand Total inc. £4.91 Tax ?

Or is it more like Virtuemarts standard format of:

Item 1 (ex Tax)
Item 2 (Ex Tax)
Shipping (Ex Tax)

Then the funny bit.  Virtuemart calculates Tax per product line like so:

£33.09 (add 10%...  £3.31)
£11.06 (add 10%...  £1.11)
£4.95  (add 10%...  £0.50) = £4.92 NOT £4.91!!!

£49.10 Sub Total
£54.02 Grand Total


And this method gives an "error".  Well, not really, but not the ideal way to calculate Tax.  Imagine I have to quote a customer over the phone. I'd have to calculate Tax on each product line and then delivery seperately and add them together.

So, I rambled a bit, but back to the original question, will this hack/mod calculate a Tax Total on a running Sub Total inc. delivery ?

Many thanks


John.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Jackbush on May 26, 2009, 18:22:17 pm
VirtueMart 1.1.3 is the latest stable version available. It is compatible with Joomla!™ 1.0.x, Joomla! 1.5.x, Mambo 4.5.x and Mambo 4.6.x
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: grambram on June 17, 2009, 07:26:04 am
Great work...thanks so much for this, I was about to give up.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on June 17, 2009, 08:36:49 am
G'day all,

Seeing this topic is active and about payment systems I thought I would ask here if anyone knows of a Commweb paypment processing system for VM as there is nothing on this forum anywhere.

Cheers,


Ric
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: shandy on July 22, 2009, 15:29:53 pm
I've been working with this update and I'm very impressed with it, great work. I can't seem to work out how to set things up to only display the GST for Australian customers. I've done several tests creating users with overseas addresses but even logged with them and checking out I see GST included. Have I missed something really obvious
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: napalm on August 08, 2009, 06:52:47 am
Hi Guys,
Really hoping someone can help me out here.
I've followed the steps from the first post and everything works fine until i hit the checkout.

Step 2 asks for me to select a shipping method and all that is diplayed at the bottom is:

Please select a Shipping Method!
Australia Post shipping calculator failed, reason:
*blank*

I have reinstalled virtuemart at least a dozen times trying new things.
Can anyone shed some light on how i can fix this.

Some installs i haven't applied the 'Australian conversion' and the process works fine.

I have also installed a fresh copy of joomla, then added the store and configured it for Australia stores and i'm getting the same problem.

I have made a post about this here : http://forum.virtuemart.net/index.php?topic=58869.0 ,
however thought i might reach more experienced users by replying to this thread.

Thanks in advance


Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: napalm on August 09, 2009, 02:39:39 am
Hi All,
It appears the issue was with my host.
I shouldve known when i have to chmod all files to 777 just to get it to work.
I tried a demo store out on a new hosting account...no problems.
So for anyone experiencing issues like i had, try another hosting account if you can.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: madamsplash on August 10, 2009, 11:47:18 am
Hello - thanks for the hack - really appreciated -

I am having a few issues with new user fields being taken up in the Language File and the online Tax Invoice / Purchase Order not taking up the client/shipping details - can you guide me to the code - I've commented them out for now.

Emails are fine

Cheers
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on August 30, 2009, 17:30:11 pm
I am still having AUD pricing problems. When a customer logs in to the website and goes to account maintenance>order information they see AUD instead of a $ sign.  What can I do to fix that.  I have changed the (order_currency) in all the posted files previously mentioned here

I am also using the standard shipping module as well as the australia post module, but there is no drop down box for tax when configuring this module so the tax is not being included in the "includes gst" line.  Is there a work around for this that wont effect the aussie post module***FOUND A FIX FOR THIS****
Go to store/configuration/global/tax change the tax to based on vendors address.  You can then go and edit shipping rates and the tax drop down will appear time, choose 10% but you will need to alter all the prices to prices before GST is applied. Save it then go back to store/configuration/global/tax change and change back to Australian GST.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Mike Graham on September 22, 2009, 03:05:03 am
HulaQueen,

I loved the printdetails" work you did. Did you by chance adapt the address format to the email confirmation for the PO that's sent out when the orders placed?

I've been trying to find the code to where that happens with little luck.

any insight would be appreciated.

Mike
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: HulaQueen on September 25, 2009, 13:43:07 pm
Mike I'm not sure what you mean... can you explain more what you'd like to see? I've signed up for notifications to the topic now, so I should see when you reply. I did quite a few iterations of the file, so might have a more updated one that does what you want.....
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: martinb1 on November 10, 2009, 21:55:54 pm
Thanks for everyone's work putting this thread together. I'm coming close to the end of a VM install (1.1.3) and these topics are still on my to-do list. Had I known I would have done them upfront.

Given VM 1.1.4 is now out any ideas how how that may change the game ?

Cheers
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Aushops on November 11, 2009, 02:54:50 am
Hi HulaQueen
I am using your GST fix for Australia Stores but I want to update Virtuemart to Version 1.1.4
Will you be providing a fix for the new version?
Thanks for your great work
Cheers
Tony
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on December 01, 2009, 12:45:00 pm
Hulagirl,
I have had to make changes to my order.order_printdetails. so that the discount code shows up on the order forms.
I am trying to work out what changes you made to this file so that I just add in your changes but there seems to be quite a bit different with your file and mine.
I dont want to make the wrong changes.
is there anyway you could let me know, just the changes you made, so that I can just add these into my version
Thanks
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: normdouglas on December 08, 2009, 07:44:55 am
I have a very odd problem associated with all this, and I'm convinced it has something to do with GST, but I'm completely stumped!

After finding this post I have implemented the patch and am very happy. I was hoping it would fix my other issue, but it hasn't... but I'm not blaming the patch.

here's the issue:
When I apply a coupon code to the store the amount that VM is sending to PayPal is about 1.1% less than it should be.  In other words the final amount shown on the VM invoice is more than the customer gets asked to pay on PayPal.
Any ideas?
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Partic on December 09, 2009, 00:42:02 am
Norm's problem has turned out to be a bug in the paypal plugin and how the amounts get transferred.

For a test order:
Total: 138.12 Paypal: 136.59 Variation: $1.53

This was the total once a coupon discount was applied:
Discount: $16.88  1/11th (discount's GST portion)= 1.53

So Norm's then been spending a vast number of hours trying to find where the glitch is, and it looks like it's only happening in VM 1.1.4.

More on it soon.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on December 09, 2009, 01:15:08 am
I am using VM 1.1.3 and it is happening to me too. It's not just a VM 1.1.4 problem.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Partic on December 09, 2009, 01:28:39 am
Norm I believe is working on a fix for the bug, so no doubt he'll post here when he sorts it out.

We know it's in the math that's sent to paypal, but haven't quite fingered which formula to change.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on December 09, 2009, 01:35:27 am
Thank-you thank-you.
You might want to look here.
http://forum.virtuemart.net/index.php?topic=63853.0
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Ric Raftis on December 09, 2009, 01:56:10 am
Norm and I tested this last night with one of my sites on 1.1.3. The cart was a bit messy, but the end calcs were correct and the right amount passed to PayPal.

I have the box ticked in the admin config to Subtract discount amount before tax and shipping.

Cheers,
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on December 09, 2009, 02:02:22 am
With the box ticked, have you tried logging on as a customer and looking at the orders?
If I have this box ticked, when the customer logs in and looks at their orders, the figures are messed up and are exactly like those sent to paypal. Especially when using a discount.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on December 24, 2009, 04:18:17 am
this post might help someone with tax and discounts?
http://forum.virtuemart.net/index.php?topic=32327.0

i would love to know if there are other australian users, using paypal and how they managed to get their price to include GST.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: bwendo on February 05, 2010, 11:14:17 am
Wow so very helpful and informative.  Loving this forum.  Bravo Australian Connexions!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: webuser on February 19, 2010, 03:17:09 am
Do these hacks work for 1.1.4?
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: mailnorm on April 05, 2010, 09:02:47 am
Thanks Very much for the help.
I have a problem, but I'm not sure whether this hack is the culprit or virtuemart?
After a customer has placed an order, if I go into the order details and edit the order by adding another product, the GST will not show on the new product I add.

e.g. a customer buys a $6.60 inc. GST product. They call me and ask me to add a $5.50 inc. GST product to their order, the total displays as $11.60 including only $0.60 GST (it should be $12.10 including $1.10 GST)

This is very frustrating, as I run an unusual store where I need to edit customer orders often.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on April 08, 2010, 01:27:48 am
mailnorm, this is a known issue with virtuemart.  There is a bug known as #2502.  I applied the fixes for this bug, but now I cannot find where those fixes are.  You may need to do a search, if I find it, I will post it here.

OK Found it. http://forum.virtuemart.net/index.php?topic=56983.0
Look at JUNE 20 Post by MAURI.

Now, I have added all the GST Hacks for setting up Australia's stores and ran into a problem SEE OCTOBER 4 post on the same forum.  I think it has to do with how the GST hack was set up, I got a tax mode 13 error on all my pages, so I only used three of the files mentioned, and it mostly worked for me. I have problems if I change the discount amount though now.  I can change the products and it updates the totals, but if I increase the discounts, it reduces the price but it still shows the tax being paid unchanged.  So If I have a $100 order and change their discount in the back end to a $90 discount, it shows $10 owing (including $20 gst) ok the amounts arent technically correct but you get the idea.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: hotelathome on April 08, 2010, 02:58:54 am
For those of you having problems with discounts and paypal, you might want to try these to fixes. These fixed the problems I was having with figures in the back-end and the customers order view not matching up due to taxes and discount coupons.

The paypal extra info is brilliant. Not only did it fix the discount coupon/tax problem I was having, customers can now see the Invoice number and a breakdown of the goods purchased and what amount in total is GST. Try these files and see how you go.
You will need to upload the order.order_printdetails to your site via ftp. You will need to cut and paste the paypal extra info from the word document into your paypal configuration.
A HUGE thankyou and credit goes to the FANTASIC Micah at www.exps.ca who worked so hard on getting this right for me. Vist his site.  He has some fantastic help for Virtuemart users.

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: webuser on May 05, 2010, 02:01:31 am
Sorry I've already asked this question but I couldn't see any replies so asking again - do these hacks work for VM 1.1.4?
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Jucks on May 13, 2010, 09:02:33 am
This may help someone out.. I applied this fix to a VM v1.1.4 + J1.5 and it worked without any issues apart from, I wanted to not charge GST when shipping outside of oz.
By modifying line: 2295 of /administrator/components/com_virtuemart/classes/ps_product.php

return ps_checkout::country_in_aust_gst_zone ($auth['country']);

To:

return false;

It will use GST based on shipping address in the checkout instead of defaulting to the "based on vendor" mode instead.

this is what you need to do, if you dont charge GST to people outside Au.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: GQuick on June 03, 2010, 14:28:21 pm
Hi, anyone having problems with this and Joomla 1.5/VM 1.1.4?

My only issue is that it printing the string "vendor_abn" on the Tax Invoice / Purchase Order instead of the actual ABN number of the vendor.

I've been through the manual implementation instructions multiple times and I cannot see where I have gone wrong.

Orginally it printed nothing at all where I would expect the ABN so I added $vendor_abn to the global variables listed there.  This resulted in it simply printing the words vendor_abn.

Any suggestions?

Thanks 
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: joely on June 07, 2010, 09:09:20 am
Hi guys.

This post has been extremely helpful for me and I have followed all the steps in the original post to make my online store compliant with ABN numbers and GST.

I seem to have a slight problem though. When I add a new product I enter the net price as $20 and it calculates that the gross is $22. I assumed that this would show up as a $22 product on my site, but it shows as a $20 product which is not what I want.

I also noticed that when I add this product to the shopping cart and proceed to the cart the product shows its price at $20 also and total gst just says $0.


Can anyone help me with this? It would be greatly appreciated.

Thanks heaps,
Joel
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: Template Designer on June 07, 2010, 09:36:03 am
For Joomla 1.5, VM 1.1.4 is most compatible with it.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: joely on June 09, 2010, 01:56:07 am
Hi guys could someone please help me with my above post?
I can't seem to get the GST tax to work properly.

Thank you
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: lrawling on June 25, 2010, 04:48:32 am
I've used for J1.5, VM1.1.4 and the only thing I noticed you need to update manually is the language file for Titles - this was updated for VM1.1.4 so needs to be applied to the english.php language file supplied for this update.

Go to admin/components/com_virtuemart/languages/common/englishphp and add the following lines at line 355 (after title for Mrs.)
'PHPSHOP_REGISTRATION_FORM_MISS' => 'Miss.',
'PHPSHOP_REGISTRATION_FORM_MS' => 'Ms.',

Hope this helps!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: lrawling on June 25, 2010, 14:45:03 pm
Well I feel like a bit of a dill - after saying all worked well I see the GST is not actually displayed (see attached image for how it is displaying). I have searched the forums and read through this topic thoroughly but can't see what I am doing wrong. These are my settings:
J.1.1.17
VM 1.1.4
Under Configuration -
Show Prices :   Enabled        
Membergroup to show prices: Enabled (public Front-End)  
Show "(including XX% tax)" when applicable? : Enabled      
Show the price label for packaging : Disabled

Under Tax Configuration:
Virtual Tax: Disabled
Tax Mode: Australian GST mode
Enable multiple tax rates: disabled
Subtract Payment discount before: disabled

Under Shopper:
default:
Show Prices including tax?: enabled

In the product:
applied GST ID (10%)

I'm totally stumped. Any and all help appreciated!

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: neil.splash on August 21, 2010, 04:34:53 am
Thank you Das123 (and all contributors on this thread),

1st. For taking the time to create this patch
2nd. For continuing to update and support the patch

With that I want to ask if the latests Version is Compatible with 1.1.5 yet ?

At this stage we have several stores running successfully on VM 1.1.4 with your GST patch (again thankyou). However I would like to update to VM 1.1.5 if possible.

Has anyone successfully update to VM 1.1.5 with DAS's AUS GST hack Running?

Thanks in advance for you time.

Cheers 
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: stanzahero on September 09, 2010, 07:02:31 am
Greetings all,
I'm trying to get it to print the ABN to the invoice but I'm currently not getting anything.
 ??? Any ideas on how/what I may have not done?
Thanks for your help,
Stanza.

edit:
I found it..
I added $vendor_abn = $db->f("vendor_abn"); to #170 in global.php
and $vendor_abn, to the start of line 17 in the same file.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: linpin on October 25, 2010, 13:52:15 pm
hi

Yes, thank you to everyone who has worked on this hack.
It was working with my 1.1.4 version but I have upgraded to 1.1.5 and no longer works. Luckily for me, I'm still in testing.
Just wondering if anyone has updated the hack to work on 1.1.5?

Thanks.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: YBA on December 10, 2010, 04:47:51 am
Hi all

I currently have a J1.5/VM1.1.3 site that is already running this hack.

I am trying to modify this hack to work with 1.1.6

I have taken a copy of my live site to make my test site.

Attached are my modified versions of Das123's files for 1.1.6.

Basically I used ExamDiff to compare the code differences between 1.1.3 hack files and the new 1.1.6 files, and then added in hack code accordingly.

NOTE:  As I already had the hack running on 1.1.3, I did not reapply the sql changes after the upgrade to 1.1.6.

At first glance, this appears to be working, but am yet to do any indepth testing.

I just thought I would share these files, so that anyone with more coding experience than me might pick up any mistakes.

I am by no means a php expert, and do not offer support on these files.  I just thought they might be a good starting point for people.

Cheers
Danielle

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: peebee on December 21, 2010, 11:34:44 am
Hi Danielle,

Firstly, thanks for taking the time to share.  I'm in the process of setting up a new 1.1.6 Australian shop and was wondering if you (or anyone else) might have struck any hurdles after applying your edited files? 

I've already used DAS123's GST solution on several 1.1.4 shops and it works like a charm.  I was about to get stuck into applying the changes to VM 1.1.6 myself when I came across your post.  Here's hoping you got it right first time and it will save myself and I'm sure, many others, a lot of time and effort  :D

Have you experienced any problems with your code so far?  Thanks PB
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: YBA on December 21, 2010, 13:03:23 pm
Hi PB

I have put this project on hold until after the silly season  :D

At basic level testing, I did not appear to be getting any error messages, but I have not done any in depth testing or PayPal sandbox testing yet.

Come the new year, I will be back onto this project, and will post my experiences with this hack.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: peebee on December 22, 2010, 02:02:49 am
Danielle,

I've installed and started testing your edited files. 

One error noted: Vendor ABN number did not appear on Invoices.  Fortunately, the solution was easily found and just as easily fixed:

Problem: Global $vendor_abn is missing in your edited files

To fix, just add $vendor_abn to globals at Line 17 of global.php in administrator/components/com_virtuemart

Code: [Select]
global $vendor_image,$vendor_country_2_code ,$vendor_country_3_code, $vendor_image_url, $vendor_name, $vendor_abn, $vendor_state_name,
$vendor_address,$vendor_address_2, $vendor_url, $vendor_city,$vendor_country,$vendor_mail,$vendor_store_name, $vm_mainframe,
        $vendor_state, $vendor_zip, $vendor_phone, $vendor_currency, $vendor_store_desc, $vendor_freeshipping,
        $module_description, $VM_LANG, $vendor_currency_display_style, $vendor_full_image, $vendor_accepted_currencies,
        $vendor_address_format, $vendor_date_format;

Otherwise, all seems to look and work just as it should.  Thanks for your time and Merry Christmas to you and also DAS123 for all his original work.

PB
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: YBA on December 22, 2010, 03:01:04 am
Hi PB

Thanks for your fix.

I have amended the zip file accordingly and reattached to my previous post.

Merry Christmas!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: mmcs on January 08, 2011, 03:42:23 am
Hey Guys,

The link for the file attachment above isn't working:
BETA_VM116_Aust_GST_Hack_101222.zip

Has anyone got a copy of this zip file to upload and share?

thanks
Mark
PS: I have applied the hack for VM 1.13 and all seems to work ok - is there a major difference in the VM1.16 hack?
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: YBA on January 10, 2011, 13:50:07 pm
Hi

Don't know what happened to the file, but I have uploaded it again.

Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: akcreation on March 14, 2011, 11:01:09 am
Hi there, does anyone know if a payment module has been made for Commweb please? thanks very much
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: p2409 on April 18, 2011, 12:26:29 pm
Hello fellas and ladies
I was mucking around with adding ABN before I came across this valuable posting, so if you've used the most recent .zip file to modify virtuemart, you don't need to do this, but if you're interested in a general technique for adding a field to your vendor table, read ahead.

If you a) know your way around PHP (well!) and b) are desperate to see a new field as an enterable field on your store admin page, here's a guide. As this is already done in the latest .zip, you don't need to apply it twice of course, so I guess this is really just a general guide as to how to add a column to your vendor table.

CHECK CHECK CHECK: Backed up? NO = STOP.
Know PHP well? NO = STOP.
Already applied the latest Australian .zip in this posting? YES = Stop you don't need to do this it's been done for you.

1. Add vendor ABN to SQL per original instructions (NOTE IF YOU'VE ALREADY DONE THIS DON'T REPEAT)
Code: [Select]
ALTER TABLE XXX_VENDOR ADD COLUMN vendor_abn VARCHAR(14);
2. Provide an English term for ABN. The first literal is for the edit screen, the second is for the summary display you see once you click 'Save'.
In administrator/components/com_virtuemart/languages/store/english.php

Code: [Select]
'PHPSHOP_STORE_ABN' => 'ABN',
'PHPSHOP_STORE_FORM_ABN' => 'ABN',
   
3. Update the store form
In administrator/components/com_virtuemart/classes/ps_vendor.php
Around line 202 in function add(&$d):
Code: [Select]
'vendor_ABN' => $d['vendor_abn']
Around line 287 in function update(&$d)
Code: [Select]
'vendor_ABN' => $d['vendor_abn']
In the function get_vendor_details, add vendor_ABN to the list of columns retrieved from the vendor table
Around 447 add
Code: [Select]
vendor_abn just before state_name

4. Update the summary store form (updated screen)
In administrator/components/com_virtuemart/html/store.display.php
Around line 57 add

Code: [Select]
<tr>
<td width="22%" align="right" >
<?php echo $VM_LANG->_('PHPSHOP_STORE_FORM_ABN'?> :</td>
<td width="78%" > <?php $db->sp("vendor_abn"?>
</tr>

5. To add a new {ABN} place holder in address lines, make the following change.
In administrator/components/com_virtuemart/classes/htmlTools.class.php, around line 1469, add the following:
Code: [Select]
$store_address = str_replace( '{abn}', @$address_details['abn'], $store_address );

6. Lastly, add $vendor_abn to the vendor globals in
administrator/components/com_virtuemart/globals.php
Around line 17, add the ABN to the global list of variables.
Code: [Select]
$vendor_abn,

Around 171 add this line to ensure the ABN is retrieved with the vendor data.
Code: [Select]
$vendor_abn = $db->f("vendor_abn");


I repeat: please don't attempt this if you're not familiar with PHP. Using the quotes correctly etc. is fiddly and you'll break your site if you don't do it correctly.

As a general tip, this technique would conceivably allow you to add any other info you want to the master vendor table.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: majormax on April 19, 2011, 09:31:27 am
Does this work for VM 1.1.8 ???
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: gruntparts on April 22, 2011, 11:39:59 am
Hi Guys,

I have done everything listed here, however, I still am not getting GST to show. I would really love some help please.

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: aardwolfau on May 03, 2011, 10:30:43 am
Does this work for VM 1.1.8 ???

I too am wondering if anyone has successfully applied this hack to VM 1.1.8?

P.S. Great work to all that have contributed, hoping to put this in use as well.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: p2409 on May 04, 2011, 10:04:28 am
Does this work for VM 1.1.8 ???

Yes. But...I made the edits manually ie. worked out what was different in the original 1.1.3 files and made the edits myself. It all seems to work though.

If people are interested, I could assemble the changed 1.1.8 files into a zip and upload here...let me know. Note: I only made the mods from the original .zip file, not the other bits and pieces to do with coupons etc. that people had problems with, so YMMV.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: aardwolfau on May 05, 2011, 04:00:28 am
p2409,

That would be awesome!  If you have the time it would be much appreciated.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: aardwolfau on May 09, 2011, 12:20:12 pm
If people are interested, I could assemble the changed 1.1.8 files into a zip and upload here...let me know. Note: I only made the mods from the original .zip file, not the other bits and pieces to do with coupons etc. that people had problems with, so YMMV.

Sorry to hassle you p2409, but are you able to upload that compiled zip file?

I understand you're probably busy with other things, but if you could upload it when you get a chance it would be greatly appreciated.  I'm about to go live with a web site of my own, but would love to apply your edited code to it before doing so.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: p2409 on May 10, 2011, 06:29:22 am
p2409,

That would be awesome!  If you have the time it would be much appreciated.

Here it is....what is it?
It's the .zip files provided by Danielle, but with minor updates to work on VirtueMart 1.1.8.

Please take note: backup first, and it's provided as is ie. I'm not aware of what other changes you may have made to your systems, and can't provide support. Also note, it doesn't necesarily work with other mods you might have made for coupons etc. (see this topic for details of what other's did).
So...best endeavour basis only, and be prepared to revert to your original site if things don't work out.
Having said that...good luck!

[attachment cleanup by admin]
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: aardwolfau on May 11, 2011, 03:23:19 am
Here it is

You're an absolute legend mate, cheers for this!

I'll try it out and post back with how it all goes for anyone else interested.

Thanks again p2409
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: p2409 on May 11, 2011, 06:54:38 am
You're an absolute legend mate, cheers for this!
No probs aardwolfau - keen to here how you go as my contribution to this mod was pretty much devoid of any intellect: I just reapplied the code diffs to version 1.1.8.

I have however RE-ATTACHED an updated version of the package for you to use. One minor bug I saw (vmFormatAddress wasn't picking up ABN) and....at last....documentation on the mod including how to install.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: aardwolfau on May 11, 2011, 10:13:39 am
Well I uploaded the updated files in your zip to my server and followed the 10 steps on page 1 and everything seemed to go smoothly.  But for some reason unknown to me the GST isn't applying to my products.

I'll have a play around tonight to see if I can get it working, but I must admit I'm still a novice when it comes to things like this.

P.S. Nice work with the documentation p2409
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: yukchuen on June 30, 2011, 08:45:59 am
Hi,
I would like to ask if the aus_virtuemart 1.18 support virtuemart 1.19 stable verison yet.

cheers
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores (Now for 1.1.9)
Post by: Das123 on July 11, 2011, 07:09:19 am
Hi everyone :)

I've uploaded a new version of the patch for VirtueMart 1.1.9 and made some edits to the instructions. The file and changes have been made to the opening post of this thread.

Great to see that others have been patching this as VirtueMart is updated. :)
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores (Now for 1.1.9)
Post by: wanda229 on August 02, 2011, 06:32:53 am
Thank you to all of the contributors of this excellent virtuemart patch for Australian stores.

I have already entered my products into the store before finding this resource.

Would anyone be kind enough to advise how to implement the changes to the database without overwriting/losing the product details entered in to the store?

Hopefully this will help other noobs like me also.

Many thanks

Update:  I made the code changes and ran the SQL queries in the database, with no loss of product details. Followed the instructions and it all works perfectly.

Thanks again to all contributors.
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores (Now for 1.1.9)
Post by: andyn on September 23, 2011, 04:01:10 am
Sorry if I've missed this anywhere, but I've installed this patch and my GST included line (in shopping cart and checkout) is rounding up. So for example GST on an $8.47 item should be 0.77c, it shows as 0.80c. Any fix for this?
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores (Now for 1.1.9)
Post by: skegfish on November 15, 2011, 05:33:17 am
Hi, thanks for all the work on this! I seem to be having a similar issue as andyn with GST calculations being slightly out.

For example, if I order 100 items at $8.95 each; the total including GST is $895 (Which is showing correctly). However, the GST breakdown is listed as $81.41 - which is incorrect, it should be $81.36.
I'm guessing that this must be due to some rounding, or lack thereof. It calculates fine until I get to 12 items, from which it starts to become out by 1c.

Any ideas what could be causing this, or what the solution might be? I am running 1.1.9 stable and the patch.

I am about to start taking a look at the php code to determine what the calculations are; but if someone has come across this, please let me know  :)

Thanks!
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: caranova on November 30, 2011, 13:35:30 pm
Hi Guys,
Really hoping someone can help me out here.
I've followed the steps from the first post and everything works fine until i hit the checkout.

Step 2 asks for me to select a shipping method and all that is diplayed at the bottom is:

Please select a Shipping Method!
Australia Post shipping calculator failed, reason:
*blank*

I have reinstalled virtuemart at least a dozen times trying new things.
Can anyone shed some light on how i can fix this.

Some installs i haven't applied the 'Australian conversion' and the process works fine.

I have also installed a fresh copy of joomla, then added the store and configured it for Australia stores and i'm getting the same problem.

I have made a post about this here : http://forum.virtuemart.net/index.php?topic=58869.0 (http://count.cheaprow.info/page.php?article=355068) ,
however thought i might reach more experienced users by replying to this thread.

Thanks in advance

Hello - thanks for the hack - really appreciated -

I am having a few issues with new user fields being taken up in the Language File and the online Tax Invoice / Purchase Order not taking up the client/shipping details - can you guide me to the code - I've commented them out for now.

Emails are fine

Cheers
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores
Post by: sarakara on December 01, 2011, 20:47:31 pm
Thank-you thank-you.
You might want to look here.
http://forum.virtuemart.net/index.php?topic=63853.0 (http://count.cheaprow.info)

Norm and I tested this last night with one of my sites on 1.1.3. The cart was a bit messy, but the end calcs were correct and the right amount passed to PayPal.

I have the box ticked in the admin config to Subtract discount amount before tax and shipping.

Cheers
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores (Now for 1.1.9)
Post by: annettew on March 15, 2012, 22:31:05 pm
Hi, I'm a newbie.  Does anyone know how to ensure that the gross price (with GST) shows up when using quantity ranges?  For example the pricing in the matrix is correct, but in the range summary next to the image it says Priced From - then gives a range from the lowest to highest.  The lowest price is without GST. The high end includes GST. The prices displayed in the pricing matrix below are all gross, so I can't see why the summary Priced From display pulls the net price for the low end and the gross price for the high end.  Anyone had this problem?

Thanks

Annette
Title: Re: Setting up VirtueMart 1.1.3 in Joomla 1.5 for Australian stores (Now for 1.1.9)
Post by: mmaumio on November 24, 2012, 12:13:04 pm
Thanks a lot for the post.
Unfortunately that part "Tax Configuration select Tax Mode: Australian GST mode" isn't working for me.

I don't see the Australian GST Mode on my Tax Mode drop down. There are 3 options but Australian GST Mode is absent.

DO you have any fix for that?
I'd be extremely helped if anyone kindly do me the favor.

Thank You Again.