Skip to main content

Shipping Tax in Google Checkout

More
13 years 4 months ago - 13 years 4 months ago #102170 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
Last edit: 13 years 4 months ago by spotstv.

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

More
13 years 4 months ago #102507 by Jerome
Hi,

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.

More
13 years 4 months ago #102605 by spotstv
Hi

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.

More
13 years 4 months ago #102662 by Jerome
Hi,

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>';
By:
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>';
At this moment, the shipping price which will be send to google will be the price without taxes.

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

More
13 years 4 months ago #102703 by spotstv
Fantastic! Thank you for a speedy fix.

Regards
Tim

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

Time to create page: 0.206 seconds
Powered by Kunena Forum