Zen Cart Logo
Forums / General Questions / index.php?main_page=index& c Path= vs main_page=index&Path=

index.php?main_page=index& c Path= vs main_page=index&Path=

Views: 898

Results 1 to 8 of 8
24 Mar 2015, 1:36 PM
#1
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

index.php?main_page=index& c Path= vs main_page=index&Path=

Why do some of my store listing have &cPath while others have &Path

I do not want the "c" in there, as without the "c" prices are displayed in a search

I noticed this when I was working on adding a custom google search like the link below,,,

https://cse.google.com/cse/publicurl?cx=006960486567523280951:zwes-bqxop0

that link will search my store, if you type in "door" for example some listings have the store name
in them so don't, but have the complete title and include the price,,,

24 Mar 2015, 4:00 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: index.php?main_page=index& c Path= vs main_page=index&Path=

cPath is the category
Changing it to just Path makes the parameter useless

24 Mar 2015, 4:39 PM
#3
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: index.php?main_page=index& c Path= vs main_page=index&Path=

Well, I assumed that since every search result that had cPath in it truncated the description's title and inserted my store name. Looks funny when the left rear door ashtray is described as left rear door:Benzbonz,,,

So I figured the commonality of the problem amongst multiple listings was the cPath vs Path

If you click on the google search, you'll see what I mean,,,

24 Mar 2015, 4:43 PM
#4
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: index.php?main_page=index& c Path= vs main_page=index&Path=

I just figured out how the "c" got there,,,
Every item in a subcategory has the "cPath"
I take it Zencart is returnig cPath if the item is in a subcategory, and just Path if there are no sub categories
Not a programming expert by any means, but somewhere in the code, IMO there is some difference between cPath and Path as far as returning values,,,

24 Mar 2015, 5:01 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: index.php?main_page=index& c Path= vs main_page=index&Path=

I don't think so. Look at stevesh.com/demo2. The URL's being returned from your search that don't have the cpath seem to be direct links to the product info pages, but I don't know why the 'c' isn't showing up in the path.

24 Mar 2015, 5:15 PM
#6
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: index.php?main_page=index& c Path= vs main_page=index&Path=

you musta missed my second post,,, the demo2 doesn't have any subcategories

24 Mar 2015, 5:37 PM
#7
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: index.php?main_page=index& c Path= vs main_page=index&Path=

Exactly. The one category doesn't have subcategories, but the cpath still shows up in the path, as does the subcategory and the category I just set up.

24 Mar 2015, 8:55 PM
#8
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: index.php?main_page=index& c Path= vs main_page=index&Path=

Well I thought I saw some consistency, guess not,,, well maybe now,,, google is returning categories in some cases, i.e. I have a left front door subcategory in the 450SE category. That explains it