Forums / Templates, Stylesheets, Page Layout / Need to add a random selection in a category to the home page

Need to add a random selection in a category to the home page

Locked

Started by josee225 on 19 Feb 2010, 12:35 PM · Views: 1,086

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
19 Feb 2010, 12:35 PM
#1
josee225 avatar

josee225

New Zenner

Join Date:
Feb 2009
Posts:
78
Plugin Contributions:
0

Need to add a random selection in a category to the home page

Hi, I would like to have a specific category listed on my home page, just as "Specials" or "Featured" products. I am already using those on my home page, I would like the category to show at the bottom of the center column. Here is my website: https://www.cartamagicastore.com.

I have played in my template files, as you probably can see, but I know almost nothing about php. So if you have a solution for me, I would need details, if possible :)

Thank you !

19 Feb 2010, 12:58 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need to add a random selection in a category to the home page

I would like to have a specific category listed on my home page,
First part really easy - open the cat and note te address in the browser it will be like

/index.php?main_page=index&cPath=1_4

Then in admin > config > layout settings > Main Page - Opens with Category > enter the cat as 1_4 or what ever your cat path is

Moving to below will require a file edit and so we steer you correctly we need a link to your site and the page you are trying to adjust

Start with what I have posted first...You may like it as is

Zen-Venom Get Bitten

20 Feb 2010, 2:28 AM
#3
josee225 avatar

josee225

New Zenner

Join Date:
Feb 2009
Posts:
78
Plugin Contributions:
0

Re: Need to add a random selection in a category to the home page

Thank you very much for your help ! I did that, but nothing showed up on my home page...

Here is the link:
http://www.cartamagicastore.com/

And I want to add the "Combo" category, found in the top menu. I added the number 312 in my config, as you instructed me.

20 Feb 2010, 7:26 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need to add a random selection in a category to the home page

Try switching to the classic template and see what displays

Zen-Venom Get Bitten

20 Feb 2010, 1:44 PM
#5
josee225 avatar

josee225

New Zenner

Join Date:
Feb 2009
Posts:
78
Plugin Contributions:
0

Re: Need to add a random selection in a category to the home page

It did not show up anywhere...

20 Feb 2010, 4:39 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Need to add a random selection in a category to the home page

Check other layout settings

Categories - Always Show on Main Page set to "1"
Main Page - Opens with Category this you have as 312

Zen-Venom Get Bitten

20 Feb 2010, 8:46 PM
#7
josee225 avatar

josee225

New Zenner

Join Date:
Feb 2009
Posts:
78
Plugin Contributions:
0

Re: Need to add a random selection in a category to the home page

I did that, and now I have only that category showing on the main page. So I truned it off again.

What I would like to get is the same display as the featured products for my category. Could I instert code in my index template, as suggested in this post :http://www.zen-cart.com/forum/showthread.php?t=126791

I don't mind using Defined Pages, I can do that easy. I just don't know how to use php to call the file...