aozlanski Posted July 26, 2004 Posted July 26, 2004 Hi, How do I change the display of the Model? I whould like to moove it to the bottom of the product_info page, and change the font size and color. I tried mooving some of the code around, but seems like i'm breaking the code, and I get an error. If anyone could help, I whould be verry greatfull. Thanks, Andrew
Guest Posted July 26, 2004 Posted July 26, 2004 Hopefully I haven't changed this bit yet so you will have the same. In my script, model is tied to name so you have to seperate them. in catalog/product_info.php, find: if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>'; } else { $products_name = $product_info['products_name']; } change to: if (tep_not_null($product_info['products_model'])) { $products_model = '<font size="10" color="#FFB903">' . $product_info['products_model'] . '</font>'; } else { $products_model = ' '; } I used as the alternate when model is null so your table layout doesn't change if model is null. Change the font color/size above to whatever you want it to be. Then you can place it anywhere you want using: <?php echo $products_model; ?>
oldworldcharms Posted July 14, 2005 Posted July 14, 2005 I would like to move this to the end of the item description like this. (Ref #: 1001) Would anyone know how this can be done. Another thing I would like to do if possible is for a model number to generate automatically, is this possible? thanks elizabeth
oldworldcharms Posted July 24, 2005 Posted July 24, 2005 I was able to move the model number but now I am missing the Products name on the product_info.php page. Can someone put this code back in? thanks
Recommended Posts
Archived
This topic is now archived and is closed to further replies.