Author Topic: Add a field to the order  (Read 916 times)

littlesnack

  • Beginner
  • *
  • Posts: 11
Add a field to the order
« 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

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 695
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always latest
Re: Add a field to the order
« Reply #1 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

littlesnack

  • Beginner
  • *
  • Posts: 11
Re: Add a field to the order
« Reply #2 on: September 24, 2012, 12:27:16 pm »
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