
Originally Posted by
stevesh
Not exactly sure what you mean by the 'category page', but if it's the product listing, check Admin - Configuration - Product Listing - Display Product Model.
Thank you for the response. Yes, I believe it is what you would call the product listing.
That was actually the very first thing I did, went to the Admin - Config - Product Listing - Display Product Model and changed that to 1 instead of 0. That however did not display the Model Number.
To preface, I am not a developer, Im more of a designer, although I can understand and manipulate code. I am working on a custom theme that someone else made, not the default Zen Cart. I came across a tutorial online that got me to the point of being able to display the Product ID by using the following code: $listing->fields['products_id'] but how can I translate that to show our actual product model number?
On our Product Detail Page, the Product Model Number displays
Code:
<!-- Begin Product Model Number -->
<div style="background-color:#96ccc5; border:1px solid #000;">
<!-- In Stock -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? TEXT_PRODUCT_MODEL . $products_model : '') . "\n"; ?>
<!-- Out of Stock -->
<?php
} else {
?>
<?php echo '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>'; ?>
<?php echo '<li><table width="100%" border="1" cellspacing="0" cellpadding="0"><tr><td valign="middle" width="1%"><img src="images/arrow-images.jpg" alt="" width="44" height="50" /></td><td valign="middle" width="99%">Out Of Stock</td></tr></table></li>'; ?>
<?php
}
?>
</div>
<!-- Begin Product Model Number -->
So Ive been stuck trying to figure out how to get that Model Number to display on the Product Listing.
Any help would be appreciated.
Thanks,
Brian