News:

Looking for documentation? Take a look on our wiki

Main Menu

Add a field to the order

Started by littlesnack, September 21, 2012, 16:23:19 PM

Previous topic - Next topic

littlesnack

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

Jumbo!

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

littlesnack

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