VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: OriyanJ on January 31, 2016, 15:43:55 PM

Title: How to insert values into hidden shopper field?
Post by: OriyanJ on January 31, 2016, 15:43:55 PM
What I'm trying to do -
I've created a new shopper field which is hidden billing form. I'd like to know how when form is being submitted, I'd insert values from other inputs into that hidden field.

Example -
I have a hidden field, when I click "Register and checkout", all the data that was inserted into the shopper fields will then be stored in that hidden field as well with the rest of the process. So I could then extract it however I like in bulk. What I'm trying to achieve is far more complicated, but for now this task might help me solve much of my complications.

I should be an easy task to do, I'm just too newbish :)


VirtueMart 3.0.12
Title: Re: How to insert values into hidden shopper field?
Post by: GJC Web Design on January 31, 2016, 15:56:13 PM
Its not a VM question... this is a form handling question and if you google you will find many examples

would normally be done by JS, onsubmit of the form or onclick of the button do things (fill your field) . then submit

but surely if u need this data there is better ways (DB query, VM Models etc) to do it