roban Posted February 6, 2005 Posted February 6, 2005 I am less than enthused about the layout of CC. I think there is a waste of valuable space and it seems as though some other e-commerce developers like OsCommerce have seen this and have tried to make it work a little better. My main peev is the categories box that sits in the middle of all that lovely real estate. It is just a duplicate of the category box to the left of it. How I would love to reclaim that territory for images and text. I'm sure there's a way to do it...I just haven't looked hard enough yet. The people who populate this board and help neophytes like me are wonderful in their willingness to help. Don't get me wrong I am not knocking the software or the concept, I am just trying to make it work a little better for me. I sell a product and try to do it as professionally as I can. My worst fear is that my site will look like a thousand others. The default customization offerings like background color, etc are not interesting. I don't care what color it is...its what is in front of the background that interests me. Plopping an IFrame there doesn't ineterst me but having the whole space be an html frame would be. I could put images there linked to wherever, I could highlight new products with links to checkout. Maybe all this can be done and I just don't know how to do it. I am a bit shy about asking for help again and again. Hopefully some of the changes I have made like moving the search box to the category box on the left will help someone else. CC would work very well as open source so it can constantly evolve. The people here are doing a great job. Quote
Guest Posted February 6, 2005 Posted February 6, 2005 roban, Your request concerning the removal of the categories is simple enough. Open up your index.php file and remove lines 76 to 145: echo"<table border=\"0\" width=\"95%\" cellspacing=\"2\" cellpadding=\"5\" align=\"center\"> <tr> <td colspan=\"$cat_span\" align=center class=\"title1\"><strong>$la_store_select_cat</strong></td> </tr> <tr align=\"center\">"; $sql_select = mysql_query("SELECT * FROM ".$prefix."store_category where cat_father_id = 0 order by $cat_order"); $cat_count = 0; while ($row = mysql_fetch_array($sql_select)) { $cat_count = $cat_count+1; $cat_image = $row["cat_image"]; $cat_id_list = $row["cat_id"]; $category = $row["category"]; if($cat_format=="i") { // image echo"<td align=\"center\" width=\"$col_width%\"><a href=\"index.php?cat_id=$cat_id_list&catname='$category'\"><img src='images/$cat_image' alt='$category' border='0'></a>"; if($cat_count!==$cat_rows) { echo"</td>"; } if($cat_count==$cat_rows) { echo"</td> </tr> <tr>"; $cat_count = 0; } } if($cat_format=="t") { // text echo"<td align=\"center\" width=\"$col_width%\"><a href=\"index.php?cat_id=$cat_id_list&catname='$category'\">$category</a>"; if($cat_count!==$cat_rows) { echo"</td>"; } if($cat_count==$cat_rows) { echo"</td></tr><tr align=\"center\">"; $cat_count = 0; } } if($cat_format=="b") { // text echo"<td align=\"center\" width=\"$col_width_b%\" valign=\"bottom\"><a href=\"index.php?cat_id=$cat_id_list&catname='$category'\"><img src='images/$cat_image' alt='$category' border='0'></a><br><a href=\"index.php?cat_id=$cat_id_list&catname='$category'\">$category</a>"; if($cat_count!==$cat_rows) { echo"</td>"; } if($cat_count==$cat_rows) { echo"</td></tr><tr align=\"center\">"; $cat_count = 0; } } } echo"</tr></table>"; With that out of your way, you can fill in your Welcome message with as much information as you want. Or you can add some html code directly in your index.php file, in place of the above code. If you want to use plain html (instead of having to include echo statements all over the place), replace the above code with the following: // ADD YOUR HTML CODE BELOW!! ?> Add whatever html code you want in this space <? //END OF HTML ENTRY Quote
roban Posted February 6, 2005 Author Posted February 6, 2005 It's a beautiful thing. http://www.vitaminlink.info/cart Now i can get rid of my portal. Look at all that beautiful real estate. Thanks Booker. Quote
Guest Posted February 10, 2005 Posted February 10, 2005 Perfect it works but please tell me how i remove this now There doesn't appear to be any products in this category! many thanks in advance Quote
roban Posted February 10, 2005 Author Posted February 10, 2005 I guess you can always replace your index.php with your backup copy or download the latest release and extract index.php from that and upload it to your server. I needed the space for html since categories are listed already. Quote
Guest Posted February 11, 2005 Posted February 11, 2005 Perfect it works but please tell me how i remove this now There doesn't appear to be any products in this category! many thanks in advance Do you just want that text message to dissapear? If so, open your index.php file and search for: $la_store_no_products Remove that string, and you won't get that message anymore. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.