• Resolved artbottega

    (@artbottega)


    Dear PW , thank you for plugin.

    I have already read about this topic on closed thread.

    Can I completely remove “To”, “From”, “Message” fields? When removed, can I make FIELD: “To” (recipient email) section by default set as a purchaser email address? Is there a way to tag a sender/gift card buyer email to this this “To” section?

    This way the buyers of my gift card will automatically receive a code on their emails.

    Thank you in advance!

    • This topic was modified 5 years, 4 months ago by artbottega.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author pimwick

    (@pimwick)

    The “To” field is required since that is where the gift card will be emailed. With that being said, we use the built in WooCommerce template system so that you can fully customize these fields.

    To override the HTML for these fields, copy this file:
    /wp-content/plugins/pw-woocommerce-gift-cards/templates/woocommerce/single-product/add-to-cart/pw-gift-card-before-add-to-cart-quantity.php

    To here (create any missing subfolders):
    /wp-content/themes/<your_theme>/woocommerce/single-product/add-to-cart/pw-gift-card-before-add-to-cart-quantity.php

    Once the file is in your theme folder, open it up in a text editor and you can hide the To field in HTML (for example, by setting the style=”display: none;”)

    Be sure that you fill in an email address for the “value” of the field before hiding it. You could use the store admin email, for example.

    Finally, go to Pimwick Plugins -> PW Gift Cards -> Settings -> Check “Send to the Buyer” and save settings.

    Plugin Author pimwick

    (@pimwick)

    I’m marking this thread as resolved but let us know if you have further questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove “To” and “From” fields from gift card’ is closed to new replies.