I wanted to find out the right way to go about adding new fields in the backend for products in Virtuemart 2. I found a helpful article on the web http://indiestechtips.wordpress.com/2011/12/24/how-to-add-new-field-in-virtuemart-2-0/ (http://indiestechtips.wordpress.com/2011/12/24/how-to-add-new-field-in-virtuemart-2-0/), I have added my custom fields but the problem is that it only works when updating a product, when you add a product none of your newly added fields will save to the database.
Is there a step they have missed in the linked article
Thanks
Hi there
I eventually found the problem, after adding your new fields to product_edit_information.php you must add the new fields here:
administrator\components\com_virtuemart\tables\products.php
Add new variable with your field name eg.
var $your_field;
I added the var like you stated but still does not save info to the database
I happen to make it work, Added a new field on the backend and was able to save it to my database. My problem is how can i retrieve that new field from the database to be display into my cart.
Anyone encounter the same problem?