Jump to content

1 item per row in the index


Guest

Recommended Posts

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:

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...