Zen Cart Logo
Forums / All Other Contributions/Addons / Simple SEO URL (OLD version) [support thread]

Simple SEO URL (OLD version) [support thread]

Views: 1,113,759

Results 4,001 to 4,020 of 5,058
3 Nov 2009, 7:40 PM
#4001
hparrish avatar

hparrish

New Zenner

Join Date:
Nov 2009
Posts:
1
Plugin Contributions:
0

Simple SEO URL (OLD version) [support thread]

Hello everyone. I must admit that I am new to Zen Cart and I am trying to figure out why this simple SEO URL will not work for the template that I bought. I have read all of the FAQs and I have read the instructions. However; nowhere in my files to I have anything remotely close to the .htaccess file or any admin extras for that matter. PLEASE CAN SOMEONE HELP ME!!! This is very confusing to me. I have been in SEO/SEM for 8 years and this one really stumps me. I actually had templatemonster.com tell me not to worry about the long string url. I want a clean URL. Please assist.

Thank you.:no:

4 Nov 2009, 2:23 AM
#4002
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

There is a newer (have been tested on a few sites but not official yet) version posted in the previous 1 or 2 pages, if you want to you can try it out. It will still take time to clear cache if your server is slow, but it wont time out since it uses javascript to reload.

Hi Raine what version would that be. I have the Beta 3.7.5 installed and it does the same thing as starruby is talking about. Of course it does better than the older versions. It will clear about half of the cache an then timeout. Thank you in advance

4 Nov 2009, 4:16 PM
#4003
starruby avatar

starruby

Zen Follower

Join Date:
Nov 2007
Posts:
96
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

yellow1912:

There is a newer (have been tested on a few sites but not official yet) version posted in the previous 1 or 2 pages, if you want to you can try it out. It will still take time to clear cache if your server is slow, but it wont time out since it uses javascript to reload.

Thanks Raine, I have downloaded the newer version from the previous page. Could you tell me which version this is?

Do I use this link for upgrade instructions?
http://wiki.rubikintegration.com/zencart/modules/ssu/upgrade

Or should I just replace the old files with the new ones?

One more question: where can I check my current SSU version?

As always, thanks for your quick and efficient help.

Regards,
Harshil

5 Nov 2009, 11:01 AM
#4004
dan123 avatar

dan123

New Zenner

Join Date:
Apr 2008
Posts:
82
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

hurrayyy, I finally made it!!! if somebody has the same problem as I did (the url of your language(mine was russian) does not show up, it only shows -c-1 for category #1, or something like that), you need to check your mysql database collation. Initially Zen cart installed in latin1-sweden, I believe, but what you need is utf-8, or whatever it is for your language. That's what causing all the troubles, characters are being messed up in the database that's why ssu does not see proper characters and can not translate them in to url. All you need to do is convert your database, but that's unfortunately not all, for some people. You also need to reinstall zen cart in utf-8 encoding, I found this tutorial on how to do it - http://www.srw2d.com/content/utf-8-zen-cart.
Good luck!!!

6 Nov 2009, 6:43 PM
#4005
vossom avatar

vossom

New Zenner

Join Date:
Nov 2009
Posts:
1
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Hi Everyone,

Have used these forums a lot to help me learn Zen Cart and I have done 3 customized carts so far with great success. Since I have gotten so much help from the info here I wanted to share a tweak for SSU I figured out to help with the issue of having multiple URLs for the same product when that product is in multiple categories.

I would wait for Raine to verify if he thinks there are any implications of doing this, but so far it is working as I need it for me. Perhaps this can be added in the future as an option, ill detail my idea more below.

So basically almost all my products belong to two categories, so if you are browsing the 1st category with product A, you have one link, and if you are in the 2nd category with product A, you have another link, since links are formatted with the category name in them.

What I did was modify the product parser to pull back only the master category id when formulating the product URL. So no matter what category page I am on, the links to the product are using the path containing the master category id.

Location the following file:
/includes/classes/ssu/plugins/parsers/product.php and go to about line 121 to find this code:

static function getProductPath($products_id, $cPath) {    
		global $db;
		$categories_id = self::getID($cPath, '_');
		
		$category_query = "select p2c.categories_id, p.master_categories_id
		                   from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
		                   where p.products_id = '" . $products_id . "'
		                   and p.products_id = p2c.products_id 
		                   and (p.master_categories_id = '$categories_id' or p2c.categories_id='$categories_id') limit 1";
		
		$category = $db->Execute($category_query);
		
		// fall back if needed to
		if ($category->RecordCount() == 0){
		 	$category_query = "select p.master_categories_id
		 						from " . TABLE_PRODUCTS . " p 
		 						where p.products_id = '" . $products_id . "' limit 1";
		 	$category = $db->Execute($category_query);
		 	if ($category->RecordCount() > 0)
		 		$categories_id = $category->fields['master_categories_id'];
		}
		
		$cPath = "";

now, comment out the first query section so that the code is forced to use the fallback code which pulls back the master category id only. the resulting code should look like the following:

static function getProductPath($products_id, $cPath) {    
		global $db;
		$categories_id = self::getID($cPath, '_');
		/*
		$category_query = "select p2c.categories_id, p.master_categories_id
		                   from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
		                   where p.products_id = '" . $products_id . "'
		                   and p.products_id = p2c.products_id 
		                   and (p.master_categories_id = '$categories_id' or p2c.categories_id='$categories_id') limit 1";
		
		$category = $db->Execute($category_query);
		*/
		// fall back if needed to
		//if ($category->RecordCount() == 0){
		 	$category_query = "select p.master_categories_id
		 						from " . TABLE_PRODUCTS . " p 
		 						where p.products_id = '" . $products_id . "' limit 1";
		 	$category = $db->Execute($category_query);
		 	if ($category->RecordCount() > 0)
		 		$categories_id = $category->fields['master_categories_id'];
		//}
		
		$cPath = "";

This is the only code change necessary. Upload the file (make sure you saved the original just in case) and then go into the SEO URL Manager in Admin under Extras and clear out the cache for the products. You may need to clear out all cache but im not sure of the overall impact, maybe Raine can comment.

So going forward, I propose to Raine to add a flag in the admin for "Use Master Category Always". When this is set to true, it will force the master category to be used in the link at all times and bypass that first part of the code like I have done here. This would be the more formal approach for your own release and would be a lot easier for you to do than me, I am sure!

Again I thank you for this mod as well as the community for all the info I have gained here!

Jason

7 Nov 2009, 1:01 AM
#4006
nycgamestore avatar

nycgamestore

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Hi yellow, thanks for all the great support you give and the great ssu addon you have created!! I have 1 problem, i installed an addon for word press to appear in zencart. when SSU is turned off the wordpress addon works but when its turned on, the wordpress addon links just go to home page. I think all i have to do is write in the ssu an exclude list and on the query exclude list. i tried this but it still does not work. I think I put the wrong keywords in exclude and query list. these are the links that i need for ssu to ignore:

http://www.domain.com/?m=200910
http://www.domain.com/?cat=1
http://www.domain.com/?page_id=2

what should i put in the exclude list and in the exclude query list? or how can i fix this problem because when I add a new blog, i think the ?cat=1 will change to ?cat=2. And m=200910 will change to 200911.

7 Nov 2009, 1:13 AM
#4007
nycgamestore avatar

nycgamestore

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

nycgamestore:

Hi yellow, thanks for all the great support you give and the great ssu addon you have created!! I have 1 problem, i installed an addon for word press to appear in zencart. when SSU is turned off the wordpress addon works but when its turned on, the wordpress addon links just go to home page. I think all i have to do is write in the ssu an exclude list and on the query exclude list. i tried this but it still does not work. I think I put the wrong keywords in exclude and query list. these are the links that i need for ssu to ignore:

http://www.domain.com/?m=200910
http://www.domain.com/?cat=1
http://www.domain.com/?page_id=2

what should i put in the exclude list and in the exclude query list? or how can i fix this problem because when I add a new blog, i think the ?cat=1 will change to ?cat=2. And m=200910 will change to 200911.

I forgot to add that currently i have the following in both the exclude list and query exclude list:

m,cat,page_id,wordpress

it still does not work. I also need for ssu to ignore http://www.domain.com/index.php?main_page=wordpress

7 Nov 2009, 11:33 PM
#4008
escookies avatar

escookies

New Zenner

Join Date:
Nov 2008
Posts:
8
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I've installed SSU 3.7.1. I'm having problems with maintaining the attribute values in shopping cart links. It sounds similar to the "remove from cart" problem discussed previously -- the "id:" parameter is encrypted.

My store shows the cart contents in a sidebox. When SSU is off, clicking an item/link in the cart displays the product info page with attributes pre-set to match the values chosen when the item was added to the cart. Turn SSU on, and that no no longer works -- the product info displays but the attribute info is lost.

I saw this in an earlier post from Yellow concerning attributes and SSU:

"Reason: products with attributes in them have this type of id: 12:assadwqde213321dsada
SSU encrypts the : and then Zencart could not understand it.
Better Solution: decrypt the :
This solution will be added to the new version within a few days
"

Has that new version been released? If not, does anyone have suggestions about a fix?

Thanks.

-Tommy

9 Nov 2009, 1:21 AM
#4009
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

hello I have a question, I have updated another 200 products, it is all right, but for some products I have category renamed in
-c-0
why?
thanks in advance
:smile:

P.S. i reset all cache before

for only 1 product in that category for example, for other products it is renamed ok

9 Nov 2009, 9:21 AM
#4010
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

solved, I stopped ssu, deleted all cache, restart ssu and it goes
:smile:

9 Nov 2009, 9:44 AM
#4011
giuly avatar

giuly

Zen Follower

Join Date:
May 2007
Location:
Italy
Posts:
438
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

no I have to resay
for same product there is for example
hxxp:mysite.com/category1/product1.html CORRECT
and
hxxp:mysite.com/-c-0/product1.html WRONG
what I have to do? :frusty:

9 Nov 2009, 1:42 PM
#4012
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

What could be the cause of a new category displaying the "page not found" page? I have reset the categories cache, there are products in there, I've tried on a different browser with no success.

9 Nov 2009, 5:55 PM
#4013
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

home page become index/index_php

why?

1.38a + SSU 3.7.1

9 Nov 2009, 7:33 PM
#4014
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

I have an odd problem that came out of nowhere. Only one of my products is redirecting to the home page, it's this product here:
linky

I've tried resetting the alias cache and product cache with no luck. Not really sure what to do at this point, but this is a popular product!

Any ideas?

9 Nov 2009, 7:55 PM
#4015
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

swamyg1:

I have an odd problem that came out of nowhere. Only one of my products is redirecting to the home page, it's this product here:
linky

I've tried resetting the alias cache and product cache with no luck. Not really sure what to do at this point, but this is a popular product!

Any ideas?

I just fixed my problem by resetting the entire cache, because the category reset didn't work.

:flex:

It's worth a try.

10 Nov 2009, 1:25 AM
#4016
weber avatar

weber

Zen Follower

Join Date:
Nov 2005
Posts:
157
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

one more problem, Zencart 1.38a + SSU 3.7.1

with WOZ wordpress on zen cart installed(the way in forum not numix's solution), even index.php?main_page=wordpress was filtered but with SSU on, it will redirect to home page. with SSU off, it's ok. htaccess is default one, no changes

10 Nov 2009, 9:33 PM
#4017
webhorizons avatar

webhorizons

New Zenner

Join Date:
Nov 2009
Posts:
4
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Hello,

I'm using zen cart 1.38a

This has probably been answered before but i can't find any information on it. Basically i'm using a shared ssl certificate to deal with the checkout process.

However when the SEO urls are being used, the checkout pages are coming up with a 404 page missing error.

To be clear it works fine with:

https://roderigo.secure.kgix.net/~dancet/index.php?main_page=checkout_shipping

but not with:
https://roderigo.secure.kgix.net/~dancet/checkout_shipping.php

Thanks for your help

10 Nov 2009, 10:05 PM
#4018
swamyg1 avatar

swamyg1

Zen Follower

Join Date:
Dec 2008
Location:
San Fran
Posts:
382
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

bobthemolder:

I just fixed my problem by resetting the entire cache, because the category reset didn't work.

:flex:

It's worth a try.

When I try to reset any of the cache's it takes a while then times out before the cache is reset. I just get a blank page.

Any idea why this would happen?

11 Nov 2009, 9:13 PM
#4019
tequilashot avatar

tequilashot

New Zenner

Join Date:
Nov 2009
Posts:
5
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

Hi,

First off thanks for such a great module. My issue is that my xml file shows all urls with "/language/en" at the end of it.
http://www.coolcrappystuff.com/sitemapcategories.xml

I have "Set SSU Multi Language Status" set to "false".

Please advise as to how to get rid of that.

11 Nov 2009, 10:29 PM
#4020
tequilashot avatar

tequilashot

New Zenner

Join Date:
Nov 2009
Posts:
5
Plugin Contributions:
0

Re: Simple SEO URL (OLD version) [support thread]

:oops:
There was a setting in sitemap XML to change that fixed it. Thanks again.