Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / weird issue with master category in product page

weird issue with master category in product page

Views: 1,559

Results 1 to 13 of 13
19 Nov 2011, 4:05 AM
#1
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

weird issue with master category in product page

Well I have some items I copied and linked, etc. etc. etc yadda yadda.

See attached. I noticed that some of my product, the master category is not changeable.

Here's the kicker . on some of them, you can't search for, some of them you can. Meaning you can type in the part number the front or back end and some will show, and some will not. On the ones that do not show I have to take those products and copy them to another category and then go into the copied link product and change the master category to that. Then delete the f'd up on and then move the product back to the correct category.

whew .

is there a way to fix this since I cannot go through all these to find out which ones are searchable and which arent'?

19 Nov 2011, 5:11 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: weird issue with master category in product page

That means a Master Category was not set ...

Click the C for copy and click the Master Categories Link Manager ... check the Category Dropdown do you see a valid Category in there? If so, set the Master Category to that by just selecting it in the dropdown ...

19 Nov 2011, 5:48 AM
#3
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: weird issue with master category in product page

Here is the weird part. Its doing it for new products now. When I go back to edit the new product, same deal.

19 Nov 2011, 6:03 AM
#4
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: weird issue with master category in product page

Ok Im working too hard. On items that are not linked, there should be no drop down for the master cat in the product page, just only linked items?

19 Nov 2011, 1:58 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: weird issue with master category in product page

The Products should always say the Master Categories ID but the Linked Products will show a dropdown with the actual Master Categories ID selected ...

They should never read ID #0 ... that would indicate that the Master Categories ID is set to 0 or nothing ...

21 Nov 2011, 12:23 AM
#6
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: weird issue with master category in product page

It's called working late and brain farting.

Anyways, is there a script I can run or do a search in MySql to see which products have invalid master IDs?

21 Nov 2011, 12:57 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: weird issue with master category in product page

Do you import products?

Do you use Linked Products?

21 Nov 2011, 1:11 AM
#8
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: weird issue with master category in product page

We have linked products like you wouldn't believe. We do no import products. They are entered the old fashioned way.

21 Nov 2011, 2:18 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: weird issue with master category in product page

You can try backing up your database and then going to the Tools ... Store Manager ... and use the:
Update Master Categories

Then the run the:
Update ALL Products Price Sorter

But if you have a lot of Products, you may want to look at post #29 of this thread:
http://www.zen-cart.com/forum/showthread.php?t=188207

What that is designed to do is grab the first record of the products_to_categories table in the order that the Products were added to use that as the Master Categories ID which may be more efficient on a site using Linked Products ...

How many Products do you have and how many Categories with Products do you have?

21 Nov 2011, 2:28 AM
#10
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: weird issue with master category in product page

15K products and about 40 categories.

21 Nov 2011, 5:09 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: weird issue with master category in product page

You may need that add on I wrote that I am testing as you are possibly going to time out trying to processes all of the Products at one time ... depending on your server ...

21 Nov 2011, 5:41 AM
#12
willie_bee avatar

willie_bee

Zen Follower

Join Date:
Mar 2011
Posts:
386
Plugin Contributions:
0

Re: weird issue with master category in product page

Ajeh:

You may need that add on I wrote that I am testing as you are possibly going to time out trying to processes all of the Products at one time ... depending on your server ...

I have a dev backup site that I work test stuff on.

Just wanted to ask, this addon basically only checks which items do not have a master id? Because that is all I need becuase I do not think I have that many to be honest.

But I will also be more than happy to test your addon fully on the dev site just like i did skips osc>zc database importer.

21 Nov 2011, 2:42 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: weird issue with master category in product page

No, it resets all of the Master Categories ID to what would be the first record it finds in the products_to_categories with the indexes turned off so that it is in the order that the Products were added to the table and not in a sorted order by products_id or categories_id ...