• I am having issues with the gift card code being generated twice. The order is only created once on WooCommerce.

    I am using the WooCommerce Stripe Gateway by WooCommerce.

    Plugin Version: Version 8.6.1

Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    thanks for contacting us!

    To avoid this, please try adding the following code in the functions.php file of your active theme and check if it solves the problem:

    if ( ! function_exists( 'yith_ywgc_generate_gift_card_completed_order' ) ) {
    function yith_ywgc_generate_gift_card_completed_order( $allowed_statuses ) {
    $allowed_statuses = array( 'completed' );
    return $allowed_statuses;
    }
    add_filter( 'yith_ywgc_generate_gift_card_on_order_status', 'yith_ywgc_generate_gift_card_completed_order', 99 );
    }

    Let us know.

    Best regards.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.