![]() |
Removing Purchase Order Info Reqd Fields on Checkout Payment
I have a section called "Purchase Order Information" on my Checkout Payment Page - It's coming up with 4 required fields ~~
PO number * Company name * The buyer's name * Position I've searched the forums, checkboxes and the manual and can't be sure how to get rid of it. I think I need to delete or comment them out of a template but I'm not sure which. Can anyone point me the way to go? (be polite.... :D ) 4.0.13 |
Hi Maree...the template you are looking for is customer/main/payment_po.tpl. You'll notice the Javascript at the top which you can alter or remove to get rid of the required fields. You can then remove the stars from each individual field below that. Good luck!
|
Thank You - It's gone!
If ever you need a quilt just let me know! :D 4.0.13 |
You need to be careful here, I think.
I believe that if you only edit the template file, it won't work properly, and in fact you only solve half the problem. While it looks like it works, when you place an order, is it going back to the page, but appearing to place the order? You need to edit: payment/payment_offline.php and look for line 53: it looks something like this, and explains why it shouldn't work if you ignore this file: Code:
if(empty($Company_name) || empty($Name_of_purchaser) || empty($Position)) { that is the correct code for removing the PO no only. Remove the others as you need. Also, be careful you are not getting a javascript error when you submit the order. If you remove only PO no you need to renumber the array, so it starts at 0. Hope this helps you or anyone else trying to do this. (It's too hot for quilts by the way!!!) |
Yes....although the purchase order fields were removed from the checkout page by removing the javascript and stars the Checkout procedure was then "stuck" on this page. It wouldn't move forward. I have since restored the original file.
I have scoured all references to making PO field optional at Checkout. Have I missed something? I can live with the original purchase order fields appearing at Checkout but they must be OPTIONAL not required fields. I can add statements to the page explaining the fields as purely optional. Maree in Melbourne (where quilts are definitely req'd in June :D ) |
Sorry Maree, didn't test out that fix before I posted it. Thanks for following up Paul.
|
This post implies to me that this Purchase Order (PO) information is part of a check out option that also allows for additional payment methods (since the user doesn't want the PO fields to be required). Is that true or possible?
On my site all customers will pay via C.C. (using the yourpay payment gateway) but some customers will also have PO numbers that their organization require to be tied to the order. So I would love for the check out screen to ask for PO information but only in addition to the CC information. When I turn on the purchase order payment method, at check-out you can choose to pay via yourpay or purchase order but not both. Is there any built in functionality for this? Is there anyway to add custom fields to the checkout screen? Or is this a hack scenario? Thank you, Jed |
To respond to my own last post. If anyone also needs to add a PO Number option to the Credit Card Check out screen (or any other special field). You can follow these two posts to do so. It worked great.
http://forum.x-cart.com/viewtopic.php?t=9400&start=15#76522 http://forum.x-cart.com/viewtopic.php?t=9400&postdays=0&postorder=asc&star t=15#96566 |
Re: Removing Purchase Order Info Reqd Fields on Checkout Payment
Quote:
I also have this problem. I need the following fields to be optional, not removed PO number Company name The buyer's name Position Anyone figure this out yet? |
Re: Removing Purchase Order Info Reqd Fields on Checkout Payment
Quote:
Yes, i got this working upon the advice from balinor & pauldodman as mentioned within this post (using version 4.1.3 here) |
Re: Removing Purchase Order Info Reqd Fields on Checkout Payment
Update on this thread. If you have One Page Checkout enabled you will also need to modify the .tpl file:
modules/One_Page_Checkout/payment/po_info.tpl in the same manner as above. It is working fine on 4.5.5 platinum. Cheers! |
All times are GMT -8. The time now is 04:12 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.