News:

Looking for documentation? Take a look on our wiki

Main Menu

PayPal Order Detail Formatting

Started by mwf, December 03, 2009, 20:17:18 PM

Previous topic - Next topic

hotelathome

#15
I am using tax based on shipping address.
I will try again with the ps_checkout. It is such a long file I am not sure where to start looking for the changes.
I dont know how to upload files to forums so I can show you.  The ps_checkout I am using was downloaded from the Australian GST fix from here.
http://forum.virtuemart.net/index.php?topic=54517.15
I have made changes to coding before, but because the problem appears to be tax based, and this code was altered for the Australian tax system, I have no idea where to start making changes.
When I used you version, I got an error on my website about there being unknown TAX_MODE "13".
I think it might have to do with this line in my ps_checkout
switch (TAX_MODE) {
case '0':
return false;

case '1':
return true;

case '13':
if (! array_key_exists ('country', $auth)) {
$vmLogger->debug ('shopper\'s country is not known; defaulting to vendor-based tax');
return true;
}

$vmLogger->debug ('shopper is in ' . $auth['country']);
return ps_checkout::country_in_aust_gst_zone ($auth['country']);

case '17749':
if (! array_key_exists ('country', $auth)) {
$vmLogger->debug ('shopper\'s country is not known; defaulting to vendor-based tax');
return true;
}

$vmLogger->debug ('shopper is in ' . $auth['country']);
return ps_checkout::country_in_eu_common_vat_zone ($auth['country']);

default:
$vmLogger->warning ('unknown TAX_MODE "' . TAX_MODE . '"');
return true;
}
}


normdouglas

The download appears to be disabled... would anyone have a copy of it?

hotelathome

mwf, you solved my problems!!!!
mwf can help you too!!
just go here and tell him that Andrea from Australia has sent you
http://www.exps.ca