Does it actually store the data fine, but just doesn't re-display it on the Edit screen again?
Printable View
The syntax for zen_draw_textarea_field() is different than for zen_draw_input_field()
zen_draw_input_field($fieldname, $defaultValue)
vs
zen_draw_textarea_field($fieldname, 'soft', '100%', '5', $defaultValue)
where 'soft' should be left as 'soft'
'100%' is the width setting
'5' is the number of rows the field should display
So, you can't just change "input" to "textarea" unless you also change the parameters list.
Hi Doctor
I made the following change:
and adjusted the products_tinfo to the products table as 'text' and 'null' which for input was 'varchar (32)'Code:<?php echo zen_draw_textarea_field('products_tinfo[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', $pInfo->products_tinfo, zen_set_field_length(TABLE_PRODUCTS, 'products_tinfo')); ?>
Apologies for the confusion. I did post all this info on a new thread which quite rightly, got removed (I was unsure if anyone would respond to a thread that was several years old). :blush:
It works!!! That was the issue.
Thankyou so much. :smile:
I know this is over 2 years old but here is my situation.
I'm running the latest Zen Cart and using the Responsive Sheffield Blue template.
I have successfully imported 10,000 products into my database of my new site and have it laid out well thanks to this community. I have used EP4 to import the data and have set my options in EP4 to include a user defined product field and I have imported the data I want to that field, that it working fine.
What I would like is to include this data (if possible) in the details tab like this ...
Attachment 17254
Obviously not in red LOL. After the : I would like it to get the data from the new field in the products table, the extra field is ink_ml and as said before already has the data relevant to the product.
I have followed this thread that was done back in 2015 by crazy_chris but ended up with an error on the product page so I`m not sure if anything has changed since that was written. Has anyone done a step by step guide to achieve this ??
Many thanks in advance to any help ;)
When the product was clicked all I got was a white screen with the word error at the top.
I went and checked I had put the code on correctly and made sure there was no spaces after the code, everything seemed to be in order, my first reaction was that maybe one of the files had been taken over by the theme.
Thought this had been provided previously in another thread related to a different issue, but follow the below instructions when presented with a blank screen or partial blank screen. Even if the issue is a little different than that, you can expect to find assistance in following it: http://www.zen-cart.com/content.php?124-blank-page