Do not allow gift cards to be redeemed online

Follow these steps if you do not want gift cards to be redeemed online. For instance, if you only want them to be redeemed in your physical store.

1. Download the free Code Snippets plugin:
2. Create a new Snippet with the following code:

function custom_pwgc_git_card_can_be_redeemed( $can_be_redeemed, $gift_card ) {
    return 'Gift cards cannot be used for this order.';
add_filter( 'pwgc_gift_card_can_be_redeemed', 'custom_pwgc_git_card_can_be_redeemed', 10, 2 );

You can also remove the Gift Card input field from the Cart and Checkout pages by going to:

Pimwick Plugins -> PW Gift Cards -> Settings -> Redeem Location

Skip to content