Hi,
we are using Free Downloads WooCommerce Pro, very happy with it, everything works fine.
We encountered however something we can't explain: for each free download our system saves not only the 'somdn_dlcount' meta key, but also WooCommerce's 'total_sales' meta key. We use remove_action/add_action 'somdn_count_download' and then:
$x = get_post_meta( $product_id, 'somdn_dlcount', true );
$x++;
update_post_meta( $product_id, 'somdn_dlcount', $x );
$y = get_post_meta( $product_id, 'total_sales', true );
$y++;
update_post_meta( $product_id, 'total_sales', $y );
Imho these two numbers should be equal, but they aren't. Any ideas why?
Thanks alot, best regards
Daniel
@ITnovainstitut
1:32 pm