Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How do I modify Purchase Order

 
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 07-13-2016, 06:50 AM
 
Pharmco Pharmco is offline
    
Join Date: Jul 2016
Posts: 1
 

Default How do I modify Purchase Order

The current purchase order payment option requires 4 fields to be filled in - how do I make only the PO Number required?
__________________
Business 5.2.15
Hide Prices Module
Special Offers: Buy X Get Y Module
Reply With Quote
  #2  
Old 07-13-2016, 10:19 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: How do I modify Purchase Order

You can do it from a custom module.

These are the files that control the form:
- \XLite\Model\Payment\Processor\PurchaseOrder class
- skins/default/en/checkout/purchase_order.tpl template

Most likely replacing the template file with a custom one that displays only a single PO field will be enough. You can do it either by making your module to be a custom theme, or by decorating the getInputTemplate() method in PurchaseOrder class and making it refer to your custom template file.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > General questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:52 AM.

   

 
X-Cart forums © 2001-2020