php - add hidden input field to woocommerce checkout to pass data to payment gateway -


i have store running woocommerce , client needs pass variable payment gateway (worldpay) included in payment confirmation email sent form gateway client.

worldpay need add form:

<input type="hidden" value="myvalue" name="m_myname" /> 

after lot of research figured out how create array of skus each product in cart. have created function grab each product sku , add array. outputs array replace "myvalue" in above.

my question need put < input >? have added woocommerce > checkout > review-order.php, doesn't seem work. shows in front-end doesn't passed worldpay.

or need add existing action? found this seems talking similar issue – but then, need inject output of action, in template?

thanks advice.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -