- Posts: 75
- Thank you received: 1
Shipping Tax in Google Checkout
13 years 4 months ago - 13 years 4 months ago #102170
by spotstv
Shipping Tax in Google Checkout was created by spotstv
Hi,
Have created a store with UK Tax (VAT) at 20% and this is the default tax category, I have set up a shipping method (see screen shot) both the shipping method and the product use the Default Tax Category and in the check out the VAT is calculated correctly BUT when you go to the Google Checkout page the Shipping total has increased by the VAT amount and the total updated accordingly.
e.g.
Cart shows - this is correct
Product1 £10.00
Shipping £3.50
VAT £2.70
Total £16.20
But Google checkout shows - this is incorrect (shipping has VAT added 70p)
Product1 £10.00
Shipping £4.20
VAT £2.70
Total £16.90
I can't see what going wrong here but this happens with other shipping method too.
Can you advise?
Regards
Tim
Have created a store with UK Tax (VAT) at 20% and this is the default tax category, I have set up a shipping method (see screen shot) both the shipping method and the product use the Default Tax Category and in the check out the VAT is calculated correctly BUT when you go to the Google Checkout page the Shipping total has increased by the VAT amount and the total updated accordingly.
e.g.
Cart shows - this is correct
Product1 £10.00
Shipping £3.50
VAT £2.70
Total £16.20
But Google checkout shows - this is incorrect (shipping has VAT added 70p)
Product1 £10.00
Shipping £4.20
VAT £2.70
Total £16.90
I can't see what going wrong here but this happens with other shipping method too.
Can you advise?
Regards
Tim
Last edit: 13 years 4 months ago by spotstv.
Please Log in or Create an account to join the conversation.
13 years 4 months ago #102507
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shipping Tax in Google Checkout
Hi,
Can you activate the debug mode in Google checkout in order to see the XML content sent to Google ?
Thanks,
Can you activate the debug mode in Google checkout in order to see the XML content sent to Google ?
Thanks,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
13 years 4 months ago #102605
by spotstv
Replied by spotstv on topic Shipping Tax in Google Checkout
Hi
Screen shot of Google XML - looks like the Shipping total is being set with VAT.
Tim
Screen shot of Google XML - looks like the Shipping total is being set with VAT.
Tim
Please Log in or Create an account to join the conversation.
13 years 4 months ago #102662
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Shipping Tax in Google Checkout
Hi,
Thanks for the screenshot.
Please edit the plugin "plugins/hikashoppayment/googlecheckout/googlecheckout.php" and replace the code
By:
At this moment, the shipping price which will be send to google will be the price without taxes.
Regards,
Thanks for the screenshot.
Please edit the plugin "plugins/hikashoppayment/googlecheckout/googlecheckout.php" and replace the code
Code:
if($order->order_shipping_price > 0 ) $data .= '<item><item-name>Order #'.$order->order_id.' - '.JText::_('HIKASHOP_SHIPPING').' </item-name><item-description></item-description><unit-price currency="'.$this->currency->currency_code.'">'.$order->order_shipping_price.'</unit-price><quantity>1</quantity></item>';
Code:
$shipping_price = 0.0;
if(!empty($order->order_shipping_price)) {
$shipping_price = $order->order_shipping_price;
if(!empty($order->order_shipping_tax))
$shipping_price -= $order->order_shipping_tax;
}
if($shipping_price > 0 )
$data .= '<item><item-name>Order #'.$order->order_id.' - '.JText::_('HIKASHOP_SHIPPING').' </item-name><item-description></item-description><unit-price currency="'.$currency->currency_code.'">'.$shipping_price.'</unit-price><quantity>1</quantity></item>';
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
13 years 4 months ago #102703
by spotstv
Replied by spotstv on topic Shipping Tax in Google Checkout
Fantastic! Thank you for a speedy fix.
Regards
Tim
Regards
Tim
Please Log in or Create an account to join the conversation.
Time to create page: 0.181 seconds