• Resolved mm1978

    (@mm1978)


    Hello! Is there any way to insert a validation for the form fields, preventing the customer from making the purchase without completing the fields correctly?

    Waiting for your reply!

    Best regards!

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

    (@pimwick)

    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 add the appropriate “required” HTML attribute to the fields.

    Thread Starter mm1978

    (@mm1978)

    Thank you for your reply.

    I noticed that the “required” attribute is already in the code. Unfortunately my theme is not following the validation.

    Thank you, anyway!

    Best regards.

    Plugin Author pimwick

    (@pimwick)

    Sounds good, best of luck with your store!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fields Validation’ is closed to new replies.