Guest Posted December 7, 2004 Share Posted December 7, 2004 Hi, I hope you can help me guys, Im just a designer and I have zero knowledge on php or any type of programing, well my "problem" is that I want to display just 2 categories on the start page of my cubecart. By default cube cart displays 2 items per row ( I think ) but now I want to display just one item ( category ) per row. I want this just in the start page of my site ( index ) What I need to change to the code or what I need to do?, thanx for your time guys, and Im sorry for my english, I know it sucks... :lol: Quote Link to comment Share on other sites More sharing options...
Guest stijnj Posted December 7, 2004 Share Posted December 7, 2004 in your admin select settings/style in row No. category rows: typ 1 in the info box Stijn Quote Link to comment Share on other sites More sharing options...
Guest Posted December 7, 2004 Share Posted December 7, 2004 in your admin select settings/style in row No. category rows: typ 1 in the info box Stijn Thanx, but I want that just in the start page :) Quote Link to comment Share on other sites More sharing options...
Guest Posted December 8, 2004 Share Posted December 8, 2004 To get that only on your front page, you'll first need to change the above setting back to 2 (or whatever number you prefer). Then you'll need to edit your index.php file manually. Open up your index.php file and find around line 51 and 52: // start border sb("100%","$date",$colour_1,$bg_colour); BELOW these lines, add the following code: if (empty($cat_id)) { $cat_rows=1; } That should make things work the way you want them to. If it doesn't work (as I haven't tested this), please post here again. Quote Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2004 Share Posted December 16, 2004 Glad I came across this one, I was looking for this exact modification. Bump for the new guys like me. Quote Link to comment Share on other sites More sharing options...
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.