Zen Cart Logo
Forums / General Questions / Change Links

Change Links

Views: 1,272

Results 1 to 16 of 16
29 Sep 2011, 3:00 PM
#1
sharc316 avatar

sharc316

Zen Follower

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

Change Links

Hi all,

please help with this situation:

when I click on a product from a category it takes me here:
http://www.bequjuice.com/store/index.php?main_page=product_info&cPath=2&products_id=8

when I click on the same product name from a quick reorder or shopping cart side box it takes me here:
http://www.bequjuice.com/store/index.php?main_page=product_info&products_id=2

The difference:
product_info&cPath=2&products_id=8
product_info&products_id=2

so far this is fine, but when in product info page when I click on the category image the first one(cpath) takes me to the product listing page, which is what I want.

The product info page derived from under quick reorder or shopping cart sideboxes takes me to "congratulation you have in stalled zencart..." page which is not what i want.

can anyone help please???

29 Sep 2011, 5:45 PM
#2
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Change Links

I clicked around but was unable to reproduce the issue. :huh:

29 Sep 2011, 5:54 PM
#3
sharc316 avatar

sharc316

Zen Follower

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

Re: Change Links

did you log in? and added products to cart then while you're shopping click on the product under shipping cart sidebox. When in product info page click on the purepress logo(category image). You'll see that it will take you to "you have successfully install zencart" instead of the product listing page.

Please help.

29 Sep 2011, 6:01 PM
#4
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Change Links

I see what you mean. I would go in to admin and maybe try going to tools --> store manager and resetting the master category id's. I would backup your database though before doing that.

29 Sep 2011, 6:12 PM
#5
sharc316 avatar

sharc316

Zen Follower

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

Re: Change Links

ksookma:

I see what you mean. I would go in to admin and maybe try going to tools --> store manager and resetting the master category id's. I would backup your database though before doing that.

i did the reset and didnt do anything. Any other potential fixes for this? For some reason when clicked on product from under the shopping cart sidebox it goes here:
http://www.bequjuice.com/store/index.php?main_page=product_info&products_id=10

but from main menu or categories it goes here:
http://www.bequjuice.com/store/index.php?main_page=product_info&cPath=2&products_id=10

the later one uses cpath=2. any ideas?

29 Sep 2011, 6:54 PM
#6
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Change Links

Yes, your right. It does have something to do with the cpath not being added to the links in those particular sideboxes. I'm not quite sure why thats happening. It might just be a switch in admin that needs to be changed.

One solution would be to install SEO URL's Ultimate and then change the seo url config setting to uinclude cpath's. It would be a good idea to install that mod anyhow for seo reasons.

29 Sep 2011, 8:12 PM
#7
stevesh avatar

stevesh

Black Belt

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

Re: Change Links

For what it's worth, my stock test site does the same thing. Failing an explanation, I'd consider that a bug, although it's unlikely customers would click on the category image when they have the Categories sidebox available.

29 Sep 2011, 8:22 PM
#8
sharc316 avatar

sharc316

Zen Follower

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

Re: Change Links

hmm that's weird. It would seem that there would be a simple fix for this or something, thought I missed it in the admin somewhere. Just looks like the home link was not changed in the right sideboxes. It does the same from the reorder sidebox when you click on the product from there as well.

Anyways, thank you for all the help. If you happen to come across a solution for this please let me know.

Have a good day.

30 Sep 2011, 2:46 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change Links

I notice:

product_info&cPath=2&products_id=8
product_info&products_id=2

which, if you are clicking the same product each time, is definitely misbehaving. In certain cases you can have a product which is linked to multiple categories, and go to the product page without going through a category (from "all products" for example); then there would be no cPath to use in a link. It should still use the right products_id, though. Your example looks as if the products_id field is being fed the cPath value. If that was a typo that you entered, then the problem is not related to these comments.

Right now you have a different problem, apparently related to installing the Short Description mod. This makes it impossible to look at the problem you reported here.

30 Sep 2011, 3:15 PM
#10
sharc316 avatar

sharc316

Zen Follower

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

Re: Change Links

i just uninstalled the short description mod and removed all of it's files. The install didnt work for me, wish there was an easier way to display short description.

So it's back to "normal"; The links are not working from under the shopping cart links.
also even when I didnt link the products in multiple categories it still would do this. Please see if you can figure out what the issue might be now.

30 Sep 2011, 3:45 PM
#11
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change Links

The behavior I am seeing now is: add a product from "All Products" category (cPath=2), click on the product link from the shopping cart sidebox (main_page=product_info&products_id=4) and go to the product info page under category 1 (main_page=product_info&cPath=1&products_id=4), which is apparently the product's master category.

The shopping cart may not store the category that a product was added from, which could be desirable info, but I would not necessarily call it a bug. I would ask for it in Feature Requests if you think that info is important to keep (bearing in mind that every added bit of info is added complexity and work for the system to do).

30 Sep 2011, 4:00 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change Links

Correction: when you go to the product info page under category 1 the URL is (main_page=product_info&products_id=4). It went where it should, but didn't fix the URL.

I see the problem now, the URL not having the cPath causes that image link to malfunction and go to the homepage. It is the correct function for the given link (main_page=index&cPath=), but the link is missing critical info. When you click prev/next, you do go to the master category's prev or next products, which then have proper URLs and work perfectly.

30 Sep 2011, 4:03 PM
#13
sharc316 avatar

sharc316

Zen Follower

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

Re: Change Links

i dont necessarily want to keep the info. I just want the link to go back to product listing page and not to "you have successfully installed zencart" page. Is this possible to do somewhere?

30 Sep 2011, 6:31 PM
#14
sharc316 avatar

sharc316

Zen Follower

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

Re: Change Links

any suggestions on how to fix this?

30 Sep 2011, 10:25 PM
#15
ksookma avatar

ksookma

Zen Follower

Join Date:
Aug 2009
Posts:
212
Plugin Contributions:
1

Re: Change Links

Like I had mentioned I would try installing SEO URL's Ultimate.

30 Sep 2011, 11:30 PM
#16
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Change Links

I doubt that that URL rewriter will resolve the issue, since I believe it uses the category id or path as part of the URL. Conor's CEON URI Mapping mod might do it, as it uses explicit mappings for each page without the category or product ids. But it really depends on the code that makes the link from the category image, since if it does not know what category to go to, no mapping will help.