add_filter( 'wdp_save_cart_item_keys', function ( $keys ) { $keys[] = 'giftcard_option'; return $keys; }); add_filter( "wdp_get_product_price", function ( $price, $product, $price_mode, $item_meta ) { if ( isset( $item_meta['giftcard_option']['amount']['price'] ) ) { $price = $item_meta['giftcard_option']['amount']['price']; } return $price; }, 10, 4 );
WooCommerce Gift Card, by Magenest Print
Created by: Alex Prokaev
Modified on: Fri, 6 Sep, 2019 at 4:03 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.