-
Posts
98 -
Joined
-
Last visited
Posts posted by JeanLuc
-
-
-
Hey all, hoping for some help. I'm a noob at all this, so bear with me.
I've installed the DEFAULT_SHIPPING_METHOD v1.0 contribution, but now I'm getting an error when I try to access the admin section...
Parse error: syntax error, unexpected T_VARIABLE in /home/austrekk/public_html/shop/admin/includes/functions/general.php on line 401
Below is my general.php file... the strange thing is the mod did not affect anything up as high as line 401???
Nothing with the contribution but the line 401 in your file is
eval("$address = "$fmt";");
It must be:
eval("\$address = \"$fmt\";");
-
This module doesn't have any effects on VAT calculation. It's just make the VAT number of the store and those of the customers available for the invoice, packingslip etc.
So I think your vat calculation pb doesn't come from this module.
However, if you want that the prices including or not the VAT according the VAT number, you can find the updates there: http://www.oscommerce.com/forums/index.php?showtopic=76315
You will have to make changes in 2 files: catalog/includes/classes/order.php for the products prices and catalog/includes/modules/order_total/ot_shipping.php for shipping costs.
Regards
-
For not having VAT on shipping cost if the conditions about VAT intracom are OK:
in catalog/includes/modules/order_total/ot_shipping.php, find these two lines (about 52):
$shipping_tax = tep_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $shipping_tax_description = tep_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
and replace them by:
// BOF for TVA_intracom_v3.4 if ($order->billing['company'] != '' && $order->billing['tva_intracom'] != '' && $order->billing['country']['id'] != STORE_COUNTRY && $order->delivery['country']['id'] != STORE_COUNTRY) { $shipping_tax = 0; $shipping_tax_description = NO_TAX; } else { // EOF for TVA_intracom_v3.4 $shipping_tax = tep_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $shipping_tax_description = tep_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); // BOF for TVA_intracom_v3.4 } // EOF for TVA_intracom_v3.4
Just be carefull and check if it's OK but I think it is: it's just put the VAT on shipping as '0'.
setting default shippingg method
in General Add-Ons Support
Posted
Have look to Default Selected Shipping Method
Regards