Check card owner – TODO???
-
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?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Check card owner – TODO???’ is closed to new replies.