X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   General questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=66)
-   -   How do I modify Purchase Order (https://forum.x-cart.com/showthread.php?t=74198)

Pharmco 07-13-2016 06:50 AM

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?

qualiteam 07-13-2016 10:19 PM

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.


All times are GMT -8. The time now is 08:07 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.