• Hello.

    Recently we got multiple report from different sites that gift cards are used not by customers that bought them or for whom these cards were bought. I got in into your plugin’s code to find this:

    includes/class-yith-woocommerce-gift-cards.php (line 899)
    public function check_gift_card( $gift, $remove = false ) {
    ....
    } elseif ( ! $gift->is_owner( get_current_user_id() ) ) {
    $err_code = YITH_YWGC_Gift_Card::E_GIFT_CARD_NOT_YOURS;
    } elseif ( isset( WC()->cart->applied_gift_cards[ $gift->get_code() ] ) ) {
    ...
    }


    includes/class-yith-ywgc-gift-card.php (line 484)
    public function is_owner( $user ) {
    // todo perform a real check for gift card ownership.
    return true;
    }

    Seriously?

    • This topic was modified 1 year, 7 months ago by sacredsamf.
Viewing 1 replies (of 1 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    That functionality is not available at the moment, but it will be available in the next updates.

    In any case, it should be noted that the gift card will only reach the recipient, and the only way for another user to use it is by accessing their account, or if this user shares it.

    If you have any other questions, feel free to contact us.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Check card owner – TODO???’ is closed to new replies.