Hi @tomdemeyer,
Thanks for pointing out the error. We will fix the subtotal calculation issue in the next update.
Hi @webtoffee ,
Love the plugin. Can I ask when the next update will be. I had quite a few customers point out this issue to me.
Thanks in advance
David
Hi @davidcon,
We are planning to release an update soon. Until then you please use this code snippet. Copy the code to your active theme’s functions.php
add_filter('wf_pklist_alter_subtotal', 'wf_pklist_subtotal', 10, 3);
function wf_pklist_subtotal($sub_total, $template_type, $order)
{
if($template_type=='invoice')
{
$total_tax=$order->get_total_tax();
$shipping_tax=$order->get_shipping_tax();
if(!empty($total_tax))
{
if(!empty($shipping_tax))
{
$total_tax -= $shipping_tax;
}
$sub_total += $total_tax;
}
}
return $sub_total;
}
Thank you so much for your reply. Appreciate it
When I added the code to snippets it gave me the below error
Don’t Panic
The code snippet you are trying to save produced a fatal error on line 1: syntax error, unexpected ‘&’ The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.
Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.
Do you have any further advice?
Thank you again
David
Hi @davidcon, @tomdemeyer.
We have released a new update fixing the issue. Please check and let us know if anything.
Love the plugin?! please leave us a review here. Thanks!