2 dummy sales (650 x 3, 650). 18% tax, 10% discount and 10% commision. Another coupon offsets the sale amount.
I should see 2 referrals (though it takes time for correct value to show up), Sales: 2600, Discounts: 2600-18% = 468. (what I see is 2600-18% = 2132), Commissin Value is Okay.
So, I see a calculation error under Discounts, and a missing value under Sales.
Please suggest or rectify
function ax_wc_fix_gzd_thankyoupage_taxes($tax_array, $cart, $include_shipping_taxes){
if ( is_order_received_page() ) {
global $wp;
$tax_array = array();
// Get the order. Following lines are present in order_received() in includes/shortcodes/class-wc-shortcode-checkout.php file
$order_id = apply_filters( 'woocommerce_thankyou_order_id', absint( $wp->query_vars['order-received'] ) );
$order_key = apply_filters( 'woocommerce_thankyou_order_key', empty( $_GET['key'] ) ? '' : wc_clean( $_GET['key'] ) );
if ( $order_id > 0 ) {
$order = wc_get_order( $order_id );
if ( ! $order || ! hash_equals( $order->get_order_key(), $order_key ) ) {
$order = false;
}
}
if ( $order instanceof WC_Order ) {
$taxes = $order->get_tax_totals();
foreach ( $taxes as $code => $tax ) {
$rate = wc_gzd_get_tax_rate( $tax->rate_id );
if ( ! $rate ) {
continue;
}
if ( ! empty( $rate ) && isset( $rate->tax_rate ) ) {
$tax->rate = $rate->tax_rate;
}
if ( ! isset( $tax_array[ $tax->rate ] ) ) {
$tax_array[ $tax->rate ] = array(
'tax' => $tax,
'amount' => $tax->amount,
'contains' => array( $tax ),
);
} else {
array_push( $tax_array[ $tax->rate ]['contains'], $tax );
$tax_array[ $tax->rate ]['amount'] += $tax->amount;
}
}
}
return $tax_array;
}
}
add_filter('woocommerce_gzd_cart_taxes','ax_wc_fix_gzd_thankyoupage_taxes',10, 3);
]]>When user is not login on site and then he choose items then calculations having mismatch.
when I added 3 products from different categories, it’s subtotal have 1 rupees difference like, subtotal become 540 but its 539.
Price have including taxes.
Also I have tried tick and untick compound from admin. But still not working. please help me ASAP.
]]>The final hour is supposed to be the finish time, not one more or last hour just like the reservation label says. “Start at” and “Finish at”
]]>Set up part of form to test calculations and this didn’t work so followed @ozoneboy advice here: https://www.ads-software.com/support/topic/order-form-with-item-quantity?replies=3
But in preview, subtotal field does not calculate – no value appears.
My equation in subtotal is: (field_34 * field_20) + (field_35 * field_23) + (field_36 * field_24) + (field_37 * field_25) + (field_38 * field_26)
The fields involved in the calculation are Checkboxes for products with checked calc value 3.30 and unchecked 0; and Number fields with Default value None, for product quantity.
Some of the values in brackets will be 0 if people don’t select a product or quantity – i.e. 0 (Checkbox unchecked default value) x None (Number default value). Maybe this is an issue?
Failing that, any idea why calculation isn’t working? Anything else obvious I’m doing wrong like errors in the equation? Is it possible there is a problem with the theme requiring developer input?
Many thanks in advance, Alex.
https://www.ads-software.com/plugins/ninja-forms/
]]>Hi, I have a problem in the sidebar widget
The discount calculation is wrong
48.41$ with 11% discount it shows -> 38.34$. Is wrong
in the Cart page is right 48.41$ with 11% discount -> 43.08$
the total is right in both places
I need to know how to fix this as soon as possible.
Thanks,
Lorenzo
https://www.ads-software.com/plugins/woocommerce-bulk-discount/
]]>https://www.sharkyg.com/woo/150002.pdf
“Zwischensumme” / Subtotal is calculaterd from the standard prices, instead of the reduced ones.. any idea how to change it? it should be 3×236,36 and not 3×277,27? the tax on the other hand seems to be correct …
BIGthanks
greg
https://www.ads-software.com/plugins/woocommerce-pdf-invoices/
]]>