Simply, i start from this old VQMOD (see attachment) to add "Tracking code" field before "Comment".
I added the table into DB order_history after comment to set my tracking number, then i've modified order.php in model and controller admin's folder. To test it, i manually enter a number into the DB to make sure the value is found and it works work well.
Where it became weird, i added to <script> at the end of the order_info.twig the line
Code: Select all
+ '&trackcode=' + encodeURIComponent($('input[name=\'trackcode\']').val())
But nothing is send to the DB, input's name is correct everything match but nothing. So Can someone help me to do this "simple" trick, i would like to put my OCMOD free for OC3 on extensions pages
Thanks in advance !