News:

Support the VirtueMart project and become a member

Main Menu

Custom input box not updating the database

Started by CloudDesigner, April 26, 2012, 00:59:56 AM

Previous topic - Next topic

CloudDesigner

Hello, I'm using Virtuemart 2.0.4 with Joomla 2.5.3. I want to add an input box in "Product information" page right after the Override input box. I've added a new field at the end in jos_virtuemart_products table and its name is product_digit. Now I want to get this data in "Product information" page. I've edited the "product_edit_information.php" file in "./administrator/components/com_virtuemart/views/product/tmpl/" folder and added this code for an input box


<input type="text" size="10" name="productDigit" value="<?php echo $this->product->product_digit?>"/>


My problem is I can fetch the data in admin panel from the MySQL database, but I cannot change or update the value after Save or Save & Close. Please help.

Thanks.

Joe Bourque

Did you figure out this problem? I added the var to products.php and it still does not update table. I am seeing the information is being displayed but I can't change the value.