Another questions
I have created an additional field in the zen_products called products_ship_info with the following attributes:
Type: text
Collattion: utf8_general_ci
Null: Yes
Default: NULL
I can not get it to display properly in admin>Product Description. I am using the following in admin/includes/modules/product/collect_info.php :
When I load this the page breaks after displaying Product Ship Info: and error log shows the following:PHP Code:<?php
for ($i=0, $n=sizeof($languages); $i<$n; $i++) {
?>
<tr>
<td class="main" valign="top"><?php echo 'Product Ship Info: ' ?></td>
<td colspan="2"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" width="25" valign="top"><?php echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?> </td>
<td class="main" width="100%"><?php echo zen_draw_textarea_field('products_ship_info[' . $languages[$i]['id'] . ']', 'soft', '100%', '30', htmlspecialchars((isset($products_ship_info[$languages[$i]['id']])) ? stripslashes($products_ship_info[$languages[$i]['id']]) : zen_get_products_ship_info($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE)); ?></td>
</tr>
</table></td>
</tr>
<?php
}
?>
Line 331 is the beginning of the PHP code.PHP Code:[03-Jul-2013 19:06:16 UTC] PHP Fatal error: Call to undefined function zen_get_products_ship_info() in path\Store\admin\includes\modules\product\collect_info.php on line 331
.


Reply With Quote
