Author Topic: Retrive information in product.product.form  (Read 779 times)

kentcheung2000

  • Beginner
  • *
  • Posts: 23
Retrive information in product.product.form
« on: March 30, 2011, 09:00:07 am »
Hi,

I just add a new field in product.product.form and the information is added to other table in the database.  When I cancel the form and re-enter the form, the data I just entered in this field is not there but it is in the mysql database.

Can someone tell me how I can have the data back to the update item form when I click an item.  Which file I should work on and which part.  Please help. Thanks.

K.C.

kentcheung2000

  • Beginner
  • *
  • Posts: 23
Re: Retrive information in product.product.form
« Reply #1 on: March 31, 2011, 09:26:57 am »
I found out the following code in product.product.list.php which direct to the product.product.form with all the information except the new field in another table.

Can someone let me know where I can find the file wich is responsible to populate the fields the following link so I can add a new field from another table in mysql?

Many thanks.

K.C.

$link = $_SERVER['PHP_SELF'] . "?page=$modulename.product_form&limitstart=$limitstart&keyword=".urlencode($keyword) .
                  "&product_id=" . $db->f("product_id")."&product_parent_id=".$product_parent_id;