Shipping Tax in Google Checkout

  • Posts: 75
  • Thank you received: 1
11 years 7 months ago #102170

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

Attachments:
Last edit: 11 years 7 months ago by spotstv.

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
11 years 7 months ago #102507

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 75
  • Thank you received: 1
11 years 7 months ago #102605

Hi

Screen shot of Google XML - looks like the Shipping total is being set with VAT.

Tim

Attachments:

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

  • Posts: 26165
  • Thank you received: 4029
  • MODERATOR
11 years 7 months ago #102662

Hi,

Thanks for the screenshot.
Please edit the plugin "plugins/hikashoppayment/googlecheckout/googlecheckout.php" and replace the 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:
		$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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 75
  • Thank you received: 1
11 years 7 months ago #102703

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.054 seconds
Powered by Kunena Forum