VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Priyal on November 18, 2016, 15:29:16 PM

Title: Enter PO number when chosen as payment method
Post by: Priyal on November 18, 2016, 15:29:16 PM
I need a payment plugin that will let me add a input box for the customers Purchase Order (when selected Purchase Order as payment plugin).

When PO is selected, a text box must appear for user to enter and saving it will save this in payment table and display at order history as well. Is this possible with VM via any plugin or some back end changes or do I need to hack the core?

Kindly guide me over same as I need to implement it for one of my client.
Title: Re: Enter PO number when chosen as payment method
Post by: GJC Web Design on November 18, 2016, 22:47:58 PM
look at e.g. the Authorize payment plugin .. it has text fields
Title: Re: Enter PO number when chosen as payment method
Post by: Priyal on November 21, 2016, 08:10:50 AM
I'm following this link for Authorize.net plugin e.g
http://www.inmotionhosting.com/support/website/joomla-25/virtuemart-authorize
but it doesn't describe anything about displaying text box.

Basically what I want is, when Purchase order is selected, text box appears, user enters and proceeds to next step, payment is processed and we get this details in order history as well. How this can be achieved in VM
Title: Re: Enter PO number when chosen as payment method
Post by: GJC Web Design on November 21, 2016, 10:30:50 AM
why are u looking there?

Look at the code.. it has text boxes.. how else would u fill in your credit card number etc??

You are not going to find a "step by step how to build a VM payment plugin" guide.. either u know from looking at existing plugin code or u don't

it is all standard php, ajax, etc techniques .. you need to copy/add what is done with e.g. that plugin to collect the text field
Title: Re: Enter PO number when chosen as payment method
Post by: Priyal on November 21, 2016, 11:22:20 AM
I need 2 payment methods. 1) Purchase Order and 2) Credit Card.
For 2) I'm using Authorize.net as payment and for 1) Standard VM Payment . Do I need to again use Authorize here?So what's use of 2 same payment gateways!!

Note: Client now wants to make user to enter a text box field when 1) is selected. How can this be achieved?