Variant Tax displayed incorrectly in article (Solved)

  • Posts: 100
  • Thank you received: 2
4 years 10 months 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: 81476
  • Thank you received: 13060
  • MODERATOR
4 years 10 months 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: 100
  • Thank you received: 2
4 years 10 months ago #307519

Hi Nicolas

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

Last edit: 4 years 9 months ago by SnoozeULooze.co.za.

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

  • Posts: 81476
  • Thank you received: 13060
  • MODERATOR
4 years 10 months 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.049 seconds
Powered by Kunena Forum