RE: Add more product fields(mysql)!
tcpinhead <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.devel |
|---|---|
| Message-ID | <c444ab2b0fa4ac650a033b144b6c5b21@osCommerce-Forums> |
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=162525#162525
----------------------------------------------------------------
Had trouble getting this to work with my snapshot (Ian's Loaded 5) to make it work I changed part 5 [quote]5.catalog/product_info.php
Adding the new field(s) in catalog product view page
------> In
?php
$product_info_query = tep_db_query("select
We add
the new field(s)
...p.products_size...
------> Before
<p><?php echo stripslashes($product_info['products_description']); ?></p>
And After
</table>
We Add
<?php
[b]//sandalwood
if (tep_not_null($product_info['products_size'])) {
echo TEXT_PRODUCTS_SIZE.' '.$product_info['products_size'];
}
//end of sandalwood
?>[/b]
[/quote]
to [code] //sandalwood
if (tep_not_null($product_info_values['products_specs'])) {
echo TEXT_PRODUCTS_SPECS.' '.$product_info_values['products_specs'];
}
//end of sandalwood
[/code]
Notice the $product_info_values is different. Now it works like a charm.
Thanks