Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How to modify contact form of manual checkout/gateway
Tagged: currency, edit fields, manual checkout form
- This topic has 18 replies, 8 voices, and was last updated 11 years, 7 months ago by ahugessen.
-
AuthorPosts
-
November 18, 2010 at 3:43 am #2255SamuelMember
Hi,
Is it possible to modify contactform? I need to re-arrange the field, for instance I will put email address in the first row.
I also would like to change the field title to my own language, such as “Firt Name” –> “Nama Lengkap” and set which fields are mandatory and which ones are not.
Thanks in advance,
Samuel
November 19, 2010 at 12:55 am #26669amin007ParticipantYou can customize the text/messages displayed by the plugin using the language files. This post will explain what to do:
https://support.tipsandtricks-hq.com/forums/topic/plugin-language-translation
To modify the contact form for the manual checkout open and modify the “eStore_shipping_details_view.php” file from the “view” directory of the eStore plugin.
November 19, 2010 at 1:55 am #26670SamuelMemberHi Amin,
Thanks for your response.
I have another problem. In my country, last name is not mandatory and since the target is for local customer, I do not need country information. So I delete the fields but the software still needs last name and country info when checking out items.
How to change the manual checkout script so that it does not need that data anymore.
Cheers,
Samuel
November 19, 2010 at 4:20 am #26671amin007ParticipantOpen the “eStore_manual_gateway_functions.php” file and look for the following function:
function eStore_check_address_details()
Take out the fields that you don’t want to be mandatory from this function.
November 19, 2010 at 6:03 am #26672SamuelMemberHi Amin,
It works.
thank you very much.
November 9, 2011 at 6:32 am #26673Art MunsonSpectatorShouldn’t this now be “eStore_manual_gateway_functions.php” where to take out the manual form fields? This “eStore_shipping_details_view.php” did not work and “eStore_manual_gateway.php” did not have the info.
November 9, 2011 at 10:52 pm #26674adminKeymasterYes the “eStore_check_address_details” function has been moved to the “eStore_manual_gateway_functions.php” file.
April 9, 2012 at 6:05 pm #26675natekMemberWhat I am trying to do is add 3 fields to the manual checkout page. I added:
define(“ESTORE_CREDIT_CARD_TYPE”, “Credit Card Merchant”);
define(“ESTORE_CREDIT_CARD”, “Credit Card Number”);
define(“ESTORE_EXPIRATION_DATE”, “Expiration Date (mm/yy)”);
to the eng.php file.
I then added:
$body .= “n”.ESTORE_CREDIT_CARD_TYPE.”: “.$_POST;
$body .= “n”.ESTORE_CREDIT_CARD.”: “.$_POST;
$body .= “n”.ESTORE_EXPIRATION_DATE.”: “.$_POST;
to the eStore_manual_gateway_functions.php file.
This does not work for me. What am I missing? Also, is it possible to have one of the fields a dropdown so they can select “Visa, MasterCard, Discover” as the credit card merchant?
I am not very well versed in PHP coding. Thanks.
April 10, 2012 at 6:43 am #26676adminKeymasterIt will require more coding for what you are trying to do. If it was a simple few lines code change then I would tell you how to do that right now but it is a little more complex than that. So I would suggest doing the following which still gives you the functionality you want without having to do any coding.
Instruct your customers to leave those card details in the “Additional Comments” field of the manual checkout form. Your customer can leave any information in that field. You can also customize the “Additional Comments” label to say something like “Card Details” if you prefer.
April 10, 2012 at 3:24 pm #26677natekMemberI would prefer not to process transactions that way. I guess the best option is to use a third party form and customize that to my liking. I just really liked how your form included the product details on the right side. Is there a way to do that if I use a 3rd party form? That way people knew what they were purchasing.
I would also consider paying for your form to be customized. Would you be interested? if so, what would the price be?
April 10, 2012 at 11:30 pm #26678adminKeymasterLets try the following before you go down the route of paying us for custom development. This is kind of a workaround/hack so it may not be exactly what you want but its worth a try.
1. Use a contact form plugin such a contact form 7 to create a custom form that you can use to collect all the details you want from your customer.
2. Place this contact form on a WordPress page on your site.
3. Tell eStore to send the user to this page when they do manual checkout (you can specify it in the manual checkout settings).
4. Add a shopping cart shortcode on your sidebar or on the page where you have the contact form (just above the form will do).
This way when they are filling out your custom form they can see the shopping cart which will display all the items they are purchasing.
April 12, 2012 at 6:15 pm #26679natekMemberWell contact form 7 is great but i am having issues with it so I might as well try to get this form working than trying to get that one working…
So here is my solution pending you can assist. Ill change the fields of City, State, and Postcode to be Credit Card merchant, credit card number, and expiration date. Ill just use the Address box as the whole address rather than just the house number.
The two issues will be to get one of these fields as a dropdown rather than just a blank field. How can I do this?
The second will be how to limit the amount of characters that can be input into the fields.
Let me know what I can do. Thanks!
April 13, 2012 at 5:44 am #26680adminKeymasterIf you just want to change the label of those fields then you can do it easily by modifying the language file but if you want to change those fields into drop down then you are again going into that realm of complex coding modifications and it will have to be handled via custom development. If you read the 3rd point from this post it will explain more:
https://support.tipsandtricks-hq.com/forums/topic/forum-rules
August 26, 2012 at 2:48 pm #26681JeepersMDMemberThis looked like the best topic covering this so I need a quick tip, I went in to my eStore Manual Gateway php file and removed the fields I didn’t want, after saving, they still show up and are saying required field on the form. I want rid of Address, City, State, and Country. What did I do wrong?
August 26, 2012 at 10:40 pm #26682PeterMemberCan you send a link to your store so we can try a test checkout and also tell us which bit of code you removed?
Have you tried clearing your cache just in case?
-
AuthorPosts
- You must be logged in to reply to this topic.