VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: littlesnack on September 21, 2012, 16:23:19 PM

Title: Add a field to the order
Post by: littlesnack on September 21, 2012, 16:23:19 PM
I need to add a html select to the cart page (before the comments) and let the user choose a value.
Then i would like to store the value in a database table (not related to virtuemart).
What i need to know is: which script/s save the value of customer_comment?

Thanks in advance
Title: Re: Add a field to the order
Post by: Jumbo! on September 23, 2012, 09:19:35 AM
You need to create a custom plugin to achieve this. Then call it inside the <form> tag in components\com_virtuemart\views\cart\tmpl\default.php
Title: Re: Add a field to the order
Post by: littlesnack on September 24, 2012, 12:27:16 PM
Quote from: Jumbo! on September 23, 2012, 09:19:35 AM
You need to create a custom plugin to achieve this. Then call it inside the <form> tag in components\com_virtuemart\views\cart\tmpl\default.php
Is there a guide for this? If not, where do i put the code to save the data in a database table?

Thanks again