Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Basic Configuration / Bizzare Caterories / Sidebox Problem

Bizzare Caterories / Sidebox Problem

Locked

Started by dayo on 13 Sep 2008, 9:31 PM · Views: 2,223

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
13 Sep 2008, 9:31 PM
#1
dayo avatar

dayo

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
1

Bizzare Caterories / Sidebox Problem

I just activated my categories sidebox and noticed that it is only showing 37 items instead of 166.

My items are organised in this way

Main category

Sub Cats A, B, C, D

Sub Cats A & B have items in them

Sub Cats C & D have two further sub cats each ... C1, C2, D1 & D2 with items in them.

Now I notice that the categories box is only showing that I have items in A & B and if I try to navigate to C1, C2, D1 or D2, I get a message saying there are no items to list there.

The items are however in the products table and the products to categories table has a full complement of items.

I can add items in C1, C2, D1 or D2 to the cart and chackout if I navigate to them directly using the product id but if I go to the index page and look for these items and click, I get a page not found error.

Also, C1, C2, D1 & D2 turns up empty in the admin.

Can anyone point me to what is likely messed up?

Thanks

14 Sep 2008, 1:20 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Bizzare Caterories / Sidebox Problem

I got lost at the stop sign ... :lamo:

Have you an URL that we could perhaps peek at to see what is up here? :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!

14 Sep 2008, 3:28 AM
#3
dayo avatar

dayo

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
1

Re: Bizzare Caterories / Sidebox Problem

Hi

:oops:

Thanks for the response.

Sent you the url.

All waht the long winded explanation meant to say was that in the categories sidebox in the catalogue and the attributes controller in admin, items in subcats nested more than two layers from the main categories do not appear even though they are in the catalogue.

The sidebox shows 37 items but if you click on all items, you will find there are 166.

14 Sep 2008, 3:57 AM
#4
ajeh avatar

ajeh

Oba-san

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

Re: Bizzare Caterories / Sidebox Problem

Do you import your products?

Do you have Products and Categories mixed inside the same Category?

Do you use Linked Products?

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!

14 Sep 2008, 4:20 AM
#5
dayo avatar

dayo

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
1

Re: Bizzare Caterories / Sidebox Problem

Do you import your products?
I use the gallery 2 bridge I have been working on here:
Do you have Products and Categories mixed inside the same Category?
No. Just one category and one or two layers of subcats with the images in those
Do you use Linked Products?
Not sure what those are but some images appear in more than one album in G2. I.E. linked in G2.

My items aren't really for sale and I only just reinstalled ZC to work further on the G2 bridge and the moneybookers module for others that might need these (you might have read my rants against you senior folk here lol).

I haven't had the sidebox up for several versions of the bridge although I know it worked fine before. I guess I'll have to iteratively install versons of the bridge to see where it broke.

When I manually look in the products to categories table, I can see all the items are properly mapped to categories.

If I knew what file controls the display, I could avoid the pain.

14 Sep 2008, 4:53 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Bizzare Caterories / Sidebox Problem

Things just don't make sense on the data ...

Check the number of records in:
products
products_description
products_to_categories

If you do not use Linked Products, then these should match ...

Also check that these two tables have the same number of records:
categories
categories_descripton

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!

14 Sep 2008, 7:15 PM
#7
dayo avatar

dayo

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
1

Re: Bizzare Caterories / Sidebox Problem

products table = 166 records
products_description = 166 records
products_to_categories = 166 records

If you do not use Linked Products, then these should match ...

Also check that these two tables have the same number of records:
categories = 16 records
categories_descripton = 16 records

So everything looks as it should.

However, when I look at the contents of products_to_categories, I notice that the category ids entered are different for most products from the actual ids in the categories table.

This has to do with the G2 Bridge (I forgot the link before: http://gallery.menalto.com/node/69302)

Thanks for helping me track the issue down.

14 Sep 2008, 8:53 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Bizzare Caterories / Sidebox Problem

That is what I am seeing that the categories_id do not match so I am not sure what your code is doing on this as I do not use it ...

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!

14 Sep 2008, 9:02 PM
#9
dayo avatar

dayo

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
1

Re: Bizzare Caterories / Sidebox Problem

Ajeh:

That is what I am seeing that the categories_id do not match so I am not sure what your code is doing on this as I do not use it ...

Thanks. Now that I know where the issue has come from, I can tackle it.

Cheers!

26 Sep 2008, 10:29 PM
#10
dayo avatar

dayo

Zen Follower

Join Date:
Dec 2006
Posts:
187
Plugin Contributions:
1

Re: Bizzare Caterories / Sidebox Problem

Solved.

This was a G2 to ZC Bridge specific issue and an update of the bridge will be posted on the G2 site presently.

28 Sep 2008, 2:23 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Bizzare Caterories / Sidebox Problem

Thanks for the update and glad that you found the source of the problem ... :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!

23 Oct 2008, 9:36 PM
#12
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: Bizzare Caterories / Sidebox Problem

I have just added extra pages to my "more information" box ie. page_5 , page_6 , page_7 , page_8.

page_5 and page_6 work perfectly.

page_7 and page_8 give the following messages when clicked on.

Warning: main(includes/templates/template_default/templates/tpl_page_8_default.php) [function.main]: failed to open stream: No such file or directory in /home/tidytoys/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 120

Warning: main(includes/templates/template_default/templates/tpl_page_8_default.php) [function.main]: failed to open stream: No such file or directory in /home/tidytoys/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 120

Fatal error: main() [function.require]: Failed opening required 'includes/templates/template_default/templates/tpl_page_8_default.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tidytoys/public_html/shop/includes/templates/template_default/common/tpl_main_page.php on line 120

I thought that Id been cloning all the pages as I went along, so Im a bit perplexed as to why two work and two dont.

website is http://www.tidytoys.co.uk

24 Oct 2008, 4:51 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Bizzare Caterories / Sidebox Problem

Do a search in the Tools ... Developers Tool Kit ... for:
page_3

Look at what files come up and where ...

Then do a search on:
page_7

what is different between the two? Did you miss a language file or anything like that?

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!

24 Oct 2008, 6:43 PM
#14
toyseller avatar

toyseller

Zen Follower

Join Date:
Jun 2008
Location:
UK
Posts:
209
Plugin Contributions:
0

Re: Bizzare Caterories / Sidebox Problem

Hi Linda,

Id been using the developers toolkit approach from the start and everything seemed to match up ok.

After your memo I thought I would check again and spotted the problem .... the 7 & 8 filenames were named
tpl_page_8.default.php instead of tpl_page_8_default.php

One of the filenames mentioned in the warning messages had coding mentioning a bannerSix and there wasnt a mention of a bannerSeven or bannerEight .... so I thought this might be what the problem was ... Im rather glad it turned out to be this simple.

I also did all these changes for my friends website too and all hers worked, but she has a different zen cart version !

Thank you Linda :smile: