Hi,
Thank you that really helps.
This explains why the taxes are still calculated properly on the checkout but the taxes are not sent to TaxCloud.
In the code of the plugin, the system bases itself on the order_product_id of the product in the order (in the table hikashop_order_product to set the index). The advantage of doing that is that when a refund is done, or a product is removed from the order, HikaShop can update TaxCloud about the change for the products in the order concerned based on that order_product_id.
In the checkout, this is not necessary and thus the plugin simply uses a number incremented (1, 2, 3, 4... etc) for each new request.
And so it worked fine until the order_product_id auto increment reached 32767 (meaning that more than 32767 products were purchased on the website, which is something we didn't test and didn't thought it would be a problem).
So I've worked on a patch for that.
To apply it, it requires 3 things:
- install the install package provided in this post
- add the column order_product_params with the type "TEXT" in the table hikashop_order_product via your phpmyadmin
- add the code:
if(!empty($product->order_product_params))
$order->products[$k]->order_product_params = json_decode($product->order_product_params);
before the line:
if($product->order_product_code == 'order additional') {
in the file administrator/components/com_hikashop/classes/order.php
This will be added in HikaShop 3.6.0 as we can't add new columns to the database structure with new builds and we need to wait for a new release to add that.
Make sure you let us know how it goes. If you have any issue, let us know so that we can fix it.