Forums / Templates, Stylesheets, Page Layout / New Listing with only 1 CATEGORY

New Listing with only 1 CATEGORY

Locked

Views: 1,079

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
7 Mar 2007, 7:50 PM
#1
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

New Listing with only 1 CATEGORY

I have multi categories and I only want 1 category to be displayed in the main page / new listing.

For example:

I have categories: Cars Wheels Tires Accessories plus more....

Now I only want "CARS" to be cycled through the "NEW LISTING"

I do not want to see the other products cycle through the New Listing area on the main page just the CARS ....

So i need to find a way to have the NEW LISTING on the main page and only show the CARS category and exclude the rest of the categories.

Any help would be great.
Thanx
GR8TEC

7 Mar 2007, 7:59 PM
#2
kobra avatar

kobra

Black Belt

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

Re: New Listing with only 1 CATEGORY

New parses based upon date(ie "new") and does not look at category....

Try turning it off in the admin and then select either featured or specials and then you can add what you want. See if this is mor to your liking

Zen-Venom Get Bitten

8 Mar 2007, 5:09 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New Listing with only 1 CATEGORY

Do you use Linked Categories or just 1 category per product?

If it is just the 1 category and you do not have any in linked categories you could customize the code to limit it to the master_categories_id being the 1 categories_id that you want to pull new products from for the centerbox ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Mar 2007, 7:38 PM
#4
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

Re: New Listing with only 1 CATEGORY

And how would I do that?

Basiclly, I have these categories with it's sub categories

Accessories

  • Wheels

    • 15 inch
    • 16 inch
    • 17 inch
    • 18 inch
  • Tires

    • 15 inch
    • 16 inch
    • 17 inch
    • 18 inch
  • Seats
    - Baby
    - Stock
    - Racing

Vehicles

  • BMW
  • Audi
  • Nissan
  • Infiniti
  • Lexus

Because all types of products are added daily, NEW PRODUCTS pick up everything. (which is a realistic process)....

BUT, I only want the Vechicles categorey and its sub directories to be cycled through on the main page.

If you can help that would be great.

I know if I add the Vehicles to the FEATURED PRODUCTS it will work, but I can not afford to keep adding and subtracting from the Featured module, to many cars and not enough time.

Thank you in advance.
Gr8tec

8 Mar 2007, 7:55 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New Listing with only 1 CATEGORY

This would take quite a bit of coding as it is not just 1 Category but a Category and all of its little friends ... er ... subcategories ...

Now, do those subcategories also have categories?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Mar 2007, 8:16 PM
#6
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

Re: New Listing with only 1 CATEGORY

Yes the Vehicles sub cat:

Vehicles

  • BMW
    -Cars
    -SUV
    -Convertibles

  • Audi
    -Cars
    -SUV
    -Convertibles

  • Nissan
    -Cars
    -SUV
    -Convertibles

So Vehicles is the TOP category. BMW, Audi, Nissian is the sub. and the vehicle type is the sub sub categorey.

I wan to scroll through the VEHICLES ONLY in the main page.

Currently i am using the Featured Products, but that is a pain in the butt..

here is the URL...

https://www.malibumotors.ca

any other tips and tricks would be greatly helpfull.

Again, thank you in advance.

Cheers
Gr8tec

8 Mar 2007, 8:18 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New Listing with only 1 CATEGORY

Take two ... what is your URL? :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

8 Mar 2007, 8:22 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: New Listing with only 1 CATEGORY

You might be able to do this backwards ...

In the module:
/includes/modules/new_products.php

Copy that to your templates and overrides directory:
/includes/modules/your_templates_dir/new_products.php

And change the select so that the parent_id on the categories table is not 32 ... as 32 is your Accessories ...

This may give you the effect that you are looking for ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

12 Mar 2007, 4:25 PM
#9
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

Re: New Listing with only 1 CATEGORY

Thank you..

I found the new_products.php file and placed it in my /includes/modules/your_templates_dir/ as suggested.

Now when I open that file, I found the parent_id line, but I do not know how to edit it to reflect your suggestions. If I just add 32, where do I put it exactly?

Here is a copy of that section in my new_products.php

TABLE_CATEGORIES . " c
where p.products_id = p2c.products_id
and p2c.categories_id = c.categories_id
and c.parent_id = '" . (int)$new_products_category_id . "'
and p.products_status = 1 " . $display_limit;

Cheers and thanx in advance.
Gr8Tec