• I am using YITH WC Gift Cards with my WC installation and I am missing an option introduced by the germanized plugin to the standard WC coupon codes. It is called “Wertgutschein” and adds a checkbox to the coupon setup page for correct taxation. (in detail: The taxes of the full price before applying the gift card apply)
    It works perfectly fine with standard coupons in WC but there is no similar option in YITH gift cards. Is there any option I did not see yet? Otherwise I cant use this perfectly fine working plugin.
    Any help welcome.

    Best muleque

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    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!

    Thread Starter muleque

    (@muleque)

    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 3 years, 9 months ago by muleque.
    • This reply was modified 3 years, 9 months ago by muleque.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Germanized Compatibility’ is closed to new replies.