Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Make more fields required in manual purchase form

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Make more fields required in manual purchase form

Tagged: manual gateway, required fields, WP eStore

  • This topic has 10 replies, 7 voices, and was last updated 13 years, 2 months ago by admin.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • August 3, 2010 at 7:13 am #1612
    mudit.agarwal
    Member

    Hi,

    i want to add some new fields to the manual gateway form. Plus i also want some fields like phone no etc to be required. How do i do that?

    August 3, 2010 at 1:08 pm #23024
    amin007
    Participant

    You will have to modify the following two files for that:

    – view/eStore_shipping_details_view.php

    – eStore_manual_gateway.php

    January 7, 2011 at 5:16 am #23025
    endr8472
    Member

    Hi, I would like to make the manual gateway phone field mandatory. I have looked at both of the files mentioned in the above post, and while I would love to do it myself, I am not terribly proficient in PHP and therefore not entirely confident in my ability to execute such a change. This lack of PHP knowledge is one of the reasons (besides the incredible functionality, reviews, and support it, of course) that led me use your excellent plugin, and this field being required would complete all of my needs.

    Thank you in advance, both for your anticipated reply and the excellent use I have already gotten out of your plugin.

    January 8, 2011 at 3:11 am #23026
    amin007
    Participant

    Open the “” file and search for the following bit of code:

    if (empty($_POST['email']))
    {
    $error_msg .= "<br />".ESTORE_EMAIL;
    }

    Once you find the above code add the following lines of code immediately below it:

    if (empty($_POST['phone']))
    {
    $error_msg .= "<br />".ESTORE_PHONE;
    }

    That should make the phone field mandatory.

    September 8, 2011 at 7:15 pm #23027
    zenji
    Member

    Also worked great for me admin007. I used it to add an additional field called “Purchase Order Number”.

    Thanks for the great plugin.

    Cheers

    February 28, 2012 at 10:36 am #23028
    spunkebusiness
    Member

    Hello,

    I’m also trying to customise this form (create new fields and remove some). In my wordpress editor, I have found the view/eStore_shipping_details_view.php.

    BUT I cannot find a PHP file called – eStore_manual_gateway.php ???

    Also, is it possible to change the word ‘MANUAL’ in the cart (currently, showing ‘Paypal’ or ‘Manual’)? I would like to change the word ‘Manual’ to ‘Cheque or Direct Deposit’ to make it clearer for the customer.

    Thanks for your help!

    February 28, 2012 at 12:15 pm #23029
    Peter
    Member

    Hi,

    Which version of eStore are you using?

    The “eStore_manual_gateway.php” definitely exists and is in the following directory: /content/plugins/wp-cart-for-digital-products/

    Changing the word “Manual” can be done by tweaking the following file:

    /wp-cart-for-digital-products/languages/eng.php

    Look for the line:

    define(“ESTORE_MANUAL”, “Manual”);

    February 28, 2012 at 8:17 pm #23030
    spunkebusiness
    Member

    Hi Peter,

    I’m on version 2.8.9.9

    I looked in both the plugin editor in WordPress and in my file manager on my host (Hostgator) and I can’t find any file named eStore_manual_gateway.php

    I looked several times, and in the directory /content/plugins/wp-cart-for-digital-products/

    Can you please confirm there definitely is a eStore_manual_gateway.php file in my version?

    Also, how do I update estore to the latest version?

    Thanks Peter, I hope I’m not going blind!

    February 28, 2012 at 9:50 pm #23031
    spunkebusiness
    Member

    Found it! I requested the upgrade for the plugin and installed it. This manual gateway file was obviously not in my version. Now it is!

    Thanks for your help (glad you asked the question about which version I was using).

    I’ll see if I can now work out customizing the contact form!

    Thanks

    February 28, 2012 at 10:02 pm #23032
    spunkebusiness
    Member

    Actually I have one more question please:

    Can you please tell me which part of the code (and which file) is for the actual field labels? I can’t seem to find what part controls the label that customers will see on the form.

    Thanks

    February 29, 2012 at 2:59 am #23033
    admin
    Keymaster

    If you are embedding the manual checkout form on a WordPress page (this option was added recently) then look in the “eStore_manual_gateway_collect_details_form” function of the “eStore_manual_gateway_functions.php” file.

    If you are using the stand alone manual checkout page (not embedded inside a WordPress page) then look in the “show_shipping_details_form_new” function of the “view/eStore_shipping_details_view.php” file.

  • Author
    Posts
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ