Variant Tax displayed incorrectly in article (Solved)

  • Posts: 79
  • Thank you received: 0
  • Hikashop Business
3 months 6 days ago #307513

Hi

This is a problem I have been struggling with for a while.
When you insert a product into a article if you use the main product ID it displays the price and Tax correctly, but if you insert a specific variant into an article by entering that variants ID the tax is not displayed correctly when a person clicks add to cart the product is added with the correct tax and is displayed correctly in the cart.

It seems to be a display issue that only affects variants displayed in an article.

Attachments:

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

  • Posts: 66830
  • Thank you received: 9872
  • MODERATOR
3 months 6 days ago #307514

Hi,

Edit the file plugins/system/hikashopproductinsert/hikashopproductinsert.php and add the code:

					if(empty($product->product_tax_id))
						$product->product_tax_id = $productClass->products[$product->product_parent_id]->product_tax_id;
after the code;
					if(empty($product->product_description))
						$product->product_description = $productClass->products[$product->product_parent_id]->product_description;
That should hopefully fix the problem.

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

  • Posts: 79
  • Thank you received: 0
  • Hikashop Business
3 months 6 days ago #307519

Hi Nicolas

Thanks it seems to have worked.
For interest sake will this be overwritten again when I update Hikashop?

Last edit: 3 months 20 hours ago by SnoozeULooze.co.za.

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

  • Posts: 66830
  • Thank you received: 9872
  • MODERATOR
3 months 5 days ago #307525

Hi,

Thank you for your feedback. We'll include that patch for the next release of HikaShop so no worries.

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

Time to create page: 0.063 seconds
Powered by Kunena Forum