Hello there,
hope you are doing well! 🙂
The plugin has also the option to include the gift card codes in the default WC fields, and they will behave like coupons. Could you check if adding the gift card on that way, the taxation is correct for you, please?
If so, you can hide the default plugin fields and use only the WC coupons fields, by adding the next CSS in your active theme:
.ywgc_have_code{
display: none;
}
Let us know any news, please.
Have a nice day!
Hi,
everything is fine here, thank.
I am not sure if I understood your solution correctly.
The code I generated with YITH gift cards, I should enter in the standard WC field (in the front end)? If that is what you ment, it does not work. The thing is, when I generate a WC coupon and want taxation correct, I have to check a box, which is by default unchecked. Thus I assume when including the YITH “coupon” in wc it treats the gift card as if the checkbox is unchecked.
I have found a germant threat with more or less the same problem. The user wanted to add the check of the checkbox of another plugin (like yours) and the germanized guy asked to try out the following snippet which worked. Maybe you have an idea how to translate this snippet to YITH gift cards? I think only the save_post_shop_coupon might be different:
?php
add_action( 'save_post_shop_coupon', 'my_child_after_coupon_save', 10, 3 );
function my_child_after_coupon_save( $post_id, $post, $update ) {
update_post_meta( $post_id, 'is_voucher', 'yes' );
}
Best muleque
-
This reply was modified 5 years, 4 months ago by
muleque.
-
This reply was modified 5 years, 4 months ago by
muleque.