MacPC Posted February 14, 2007 Share Posted February 14, 2007 Hi, I am a newbie to OSCommerce. I have successfully changed quit a few things to make it the way I like, such as removed the left and right columns, changed the text in some boxes... Not without a lot of hair pullings and research tho. :blink: :'( Two things I need help the most now is: 1. I want to make the background color in the New Products in Feb box and all similar boxes such as the new account, sign in ... to a different color. in the catalog/index.php file, there are two occurances of this around line 130 and 325, I changed it from <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> to <td background-color="33ccff"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> but it doesn't do anything. I must be looking into the wrong place. Can someone tell me how I can do this? 2. I want this section to display my own products, How do I remove all the default products there and replace them with my own? I went into the control panel of my server removed all the sample products, I ended up screwed up the server and had to reinstall OSC all over. Thanks in advance. MacPC. Link to comment Share on other sites More sharing options...
jasonabc Posted February 14, 2007 Share Posted February 14, 2007 I changed it from<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> to <td background-color="33ccff"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> but it doesn't do anything You are using CSS syntax in HTML code. Change this: <td background-color="33ccff"> to this: <td bgcolor="#33ccff"> 2. I want this section to display my own products, How do I remove all the default products there and replace them with my own? I went into the control panel of my server removed all the sample products, I ended up screwed up the server and had to reinstall OSC all over. The control panel of your server? Do you mean the Admin section of your OSC store? The two are quite different :-) Products can easily be removed from the store using the OSC Admin Tool. To have complete control over what items are displayed on your homepage you need to replace What's New with Featured Products: http://www.oscommerce.com/community/contributions,651 Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
jasonabc Posted February 14, 2007 Share Posted February 14, 2007 I changed it from<td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> to <td background-color="33ccff"><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> but it doesn't do anything You are using CSS syntax in HTML code. Change this: <td background-color="33ccff"> to either this: <td bgcolor="#33ccff"> or this: <td style="background-color:#33ccff"> 2. I want this section to display my own products, How do I remove all the default products there and replace them with my own? I went into the control panel of my server removed all the sample products, I ended up screwed up the server and had to reinstall OSC all over. The control panel of your server? Do you mean the Admin section of your OSC store? The two are quite different :-) Products can easily be removed from the store using the OSC Admin Tool. To have complete control over what items are displayed on your homepage you need to replace What's New with Featured Products: http://www.oscommerce.com/community/contributions,651 Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
MacPC Posted February 14, 2007 Author Share Posted February 14, 2007 You are using CSS syntax in HTML code. Change this: <td background-color="33ccff"> to either this: <td bgcolor="#33ccff"> or this: <td style="background-color:#33ccff"> The control panel of your server? Do you mean the Admin section of your OSC store? The two are quite different :-) Products can easily be removed from the store using the OSC Admin Tool. To have complete control over what items are displayed on your homepage you need to replace What's New with Featured Products: http://www.oscommerce.com/community/contributions,651 Link to comment Share on other sites More sharing options...
MacPC Posted February 14, 2007 Author Share Posted February 14, 2007 You are using CSS syntax in HTML code. Change this: <td background-color="33ccff"> to either this: <td bgcolor="#33ccff"> or this: <td style="background-color:#33ccff"> The control panel of your server? Do you mean the Admin section of your OSC store? The two are quite different :-) Products can easily be removed from the store using the OSC Admin Tool. To have complete control over what items are displayed on your homepage you need to replace What's New with Featured Products: http://www.oscommerce.com/community/contributions,651 DOH! No wonder the syntex looks a bit funny! :blush: Thanks for pointing that out Jason. I changed those two ,td.s to the right syntex, it still doesn't make a difference. What a man need to do to simply get the color he wants? :'( [quotr]http://www.oscommerce.com/community/contributions,651 I am not sure how to use this thing, is this some codes I need to download? if so how o I do that? I didn't see any link to download it. I have the same question for the STS, I read through the aticle but didn't know how to get the STS. MacPC Link to comment Share on other sites More sharing options...
jasonabc Posted February 14, 2007 Share Posted February 14, 2007 I changed those two ,td.s to the right syntex, it still doesn't make a difference. What a man need to do to simply get the color he wants? :'( You either need to remove the .infoBoxContents class from your stylesheet for your <td> background color to show through - or set this class to the background color you want. The links to download the contributions are the little brown and green icons over on the far right of the screen. You have to read through the various posts and find the most up to date one and make sure you download the full package - not a patch. For Featured Products you want the 11 Oct 2006 one. Unzip the file and follow the instructions contained within to install it. Make a backup of all your files and database before you start. Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.