• Resolved pzeballos

    (@pzeballos)


    Hi there,

    The fields To-From-Message are only displayed if a checkbox is checked. In the case the user doesn’t check it, I’ll need to continue with the process and not give an error because they didn’t fill the fields To and From that are mandatory now. How can I make those fields optional?
    Thanks

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

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

    (@pimwick)

    The “To” field is the recipient’s email address and is mandatory because that is where the card will be sent. If this is left blank, then the gift card cannot be added to the cart.

    If you have the PW Gift Cards Pro version you can pre-select an amount so that the customer doesn’t have to select one first.

    Thread Starter pzeballos

    (@pzeballos)

    Right, that’s what I thinking of doing
    The idea is to not send the gift card if a previous checkbox field was selected, and only send the confirmation mail of the purchase. The reason for this is because the client wants to manage the gift cards manually.
    Thanks

    Plugin Author pimwick

    (@pimwick)

    You’re going to need to custom program this yourself, the gift card plugin doesn’t have this capability built in.

    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 make any changes regarding these fields and the checkbox.

    Thread Starter pzeballos

    (@pzeballos)

    Thanks, I’ll work on that template.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Make To-From fields optionals’ is closed to new replies.