Totally Zenned
- Join Date:
- Dec 2012
- Posts:
- 607
- Plugin Contributions:
- 0
Totally Zenned
Sensei
Totally Zenned
Totally Zenned
Sensei
Kevin205:
Even thought the in SQL table sizes are 32 and 96 for field 1 and 2, when in admin viewing the product detail, the input box displays 20 characters for both fields.
Sensei
strelitzia:
Try line 138 of admin/includes/stylesheet.css
textarea {
width: 80%;
}
If you inspect the element of the products name entry box you see:
<input type="text" name="...
Totally Zenned
strelitzia:
Try line 138 of admin/includes/stylesheet.css
textarea {
width: 80%;
}
If you inspect the element of the products name entry box you see:
<input type="text" name="products_name[1]" value="You've Got Mail Linked" size="51" maxlength="64">
80% of 64(maxlength) gives you 51(size)
Totally Zenned
DrByte:
Um, a selector named "textarea" doesn't refer to "INPUT" fields like: <input type="text"...>
Totally Zenned
DrByte:
If it is generating HTML for those input fields that forces it to 20 chars length, then that means your Zen Cart is unable to read the field sizes from MySQL, thus the field sizes are being set to default.
This means your MySQL isn't supplying the metadata about the tables' fields correctly.
Totally Zenned
DrByte:
If it is generating HTML for those input fields that forces it to 20 chars length, then that means your Zen Cart is unable to read the field sizes from MySQL, thus the field sizes are being set to default.
This means your MySQL isn't supplying the metadata about the tables' fields correctly.
Sensei
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_model', htmlspecialchars(stripslashes($pInfo->products_model), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_PRODUCTS, 'products_model')); ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('f1', htmlspecialchars(stripslashes($pInfo->f1), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_PRODUCTS, 'f1')); ?></td>
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('f2', htmlspecialchars(stripslashes($pInfo->f2), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_PRODUCTS, 'f2')); ?></td>Totally Zenned
Totally Zenned
<td class="main"><?php echo zen_draw_separator('pixel_trans.gif', '24', '13') . ' ' . zen_draw_input_field('f1', $pInfo->f1, ''); ?></td>Sensei
Totally Zenned
Totally Zenned
Sensei
[COLOR=#007700]? stripslashes($products_ship_info[$languages[$i]['id']]) : [/COLOR][COLOR=#0000BB]zen_get_products_ship_info($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE))[/COLOR]Why are you using [COLOR=#0000BB]zen_get_products_ship_info([/COLOR] as a function?
Totally Zenned
Totally Zenned
Totally Zenned
Destination thread ID and reason are required when shown.
Tell staff why this post should be reviewed.
Required for login, security, and core site functionality.
Help us understand how the site is used so we can improve it.
Used for promotion and personalized campaign measurement.