Originally Posted by
Nick1973
I've added four simple text fields
text1
text2
text3
text4
They are all added into the table 'products' in the database and show up as empty fields in the Zen Cart admin on the product information page.
Each field should have a default value, however as they are new fields the default value does not show up on the front end or in the admin panel.
Okay. How does using the Preview/Update page in the admin set a value into those fields? How is that value calculated/determined in your site?
And why can't you run a simple SQL query to set those fields the same way?
ie:
Code:
update products set text1='default1', text2='default2', text3='default3', text4='default4' where text1='';
or for more detailed control:
Code:
update products set text1='value1' where text1='';
update products set text2='value2' where text2='';
update products set text3='value3' where text3='';
update products set text4='value4' where text4='';
Or is there a calculation performed? If so, what?
Bookmarks