steliart Posted August 20, 2007 Share Posted August 20, 2007 Hi everyone, I have search for long but without any luck, so here I am posting a question to anyone who can help. In my catalog index page under the welcome guest message the New Products are displayed with there title, image, price and a Buy Now button. What I also need to add is the products model (code, number), the same model number I would like to add on the "What's New" page list. I would be thankfull to any help. Thanks Love & Light Link to comment Share on other sites More sharing options...
Gauravs Posted August 20, 2007 Share Posted August 20, 2007 What I also need to add is the products model (code, number) Go to Admin ->Configuration -> Product Listing. That place holds the key to your query. Cheers, Best Regards,Gaurav Link to comment Share on other sites More sharing options...
steliart Posted August 20, 2007 Author Share Posted August 20, 2007 Go to Admin ->Configuration -> Product Listing. That place holds the key to your query. Cheers, Thanks for answering but, that will add the model to everything but not to the "What's New" page listing or the New Products which are dispalayed in the index page. :-) Any other ideas Love & Light Link to comment Share on other sites More sharing options...
Gauravs Posted August 20, 2007 Share Posted August 20, 2007 Any other ideas \includes\boxes - would require customization .. Cheers, Best Regards,Gaurav Link to comment Share on other sites More sharing options...
steliart Posted August 20, 2007 Author Share Posted August 20, 2007 \includes\boxes - would require customization .. Cheers, Nope don't think is the right place, can't see ware would that go, maybe in the /includes/modules/new_products.php with combination with something else... but i'll still need the code to add this. Hmm!!! Love & Light Link to comment Share on other sites More sharing options...
steliart Posted August 20, 2007 Author Share Posted August 20, 2007 Hi everyone, I have search for long but without any luck, so here I am posting a question to anyone who can help. In my catalog index page under the welcome guest message the New Products are displayed with there title, image, price and a Buy Now button. What I also need to add is the products model (code, number), the same model number I would like to add on the "What's New" page list. I would be thankfull to any help. Thanks I managed to find this on the forum, is working but it needs someone who knows PHP to make it right! Take a look... http://www.oscommerce.com/forums/index.php?sho...hl=model+number Anyone else willing to help us out? Thanks Love & Light Link to comment Share on other sites More sharing options...
steliart Posted August 21, 2007 Author Share Posted August 21, 2007 OK I did it but since my site has gone trough allot of changes nad contribs yours may be little different, so I will try to put things the best way I can. First of all BACKUP... BACKUP... BACKUP!!! ------------------------- Now open: catalog\products_new.php Arround line 55 you will find $products_new_query_raw = "select p.products_id, pd.products_name, ... Add the following ...: p.product_model, Arround line 89 look for <td valign="top" class="main"><?php echo '<a href="' ... in the same line find . '</u></b></a><br>' . and right after this add . TEXT_MODEL_NUMBER . ' ' . $products_new['model_number'] . ---------------------------- save and close ---------------------------- Now open: catalogue\includes\languages\english\products_new.php Just before ?> add this define('TEXT_MODEL_NUMBER', 'Model Number:'); ----------------------------- save and close Thats it It worked fine for me and now I have Model Number in the Whats New page. Enjoy Steli Love & Light Link to comment Share on other sites More sharing options...
steliart Posted August 23, 2007 Author Share Posted August 23, 2007 small typo mistake for the above. Arround line 55 you will find $products_new_query_raw = "select p.products_id, pd.products_name, ... Add the following ...: p.products_model, Love & Light Link to comment Share on other sites More sharing options...
steliart Posted August 23, 2007 Author Share Posted August 23, 2007 Finally I did it for me Maybe this contribution will help you also http://www.oscommerce.com/community/contributions,5381 Love & Light Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.