Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping (SEO)

Ceon URI Mapping (SEO)

Locked

Views: 472,100

Results 2,741 to 2,760 of 2,913
This thread is locked. New replies are disabled.
15 Jun 2011, 09:09
#2741
nixola avatar

nixola

New Zenner

Join Date:
Jun 2011
Posts:
3
Plugin Contributions:
0

Ceon URI Mapping (SEO)

Hi, I just instaled your module but it dont seem to work, still getting dynamic. My store running 1.3.9g and I instaslled 3.8.0.
So if some one can help me i would be grateful.
My store adress is https://www.redhouseshop.com
Im a noob douth:lamo:

15 Jun 2011, 09:36
#2742
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

nixola:

Hi, I just instaled your module but it dont seem to work, still getting dynamic. My store running 1.3.9g and I instaslled 3.8.0.
So if some one can help me i would be grateful.
My store adress is www.redhouseshop.com
Im a noob douth:lamo:

As a "noob" I guess this answer might be annoying but helpful for you in future as it may help you learn how bets to solve your problems...

Search this thread for the problems you are having and you may find the solution.

If you're still stuck after a day or two, come back and ask again, this time with more info.

Hint: Take care to read about how this module works and also what html_output.php is needed for.

All the best..

Conor
ceon

15 Jun 2011, 09:45
#2743
nixola avatar

nixola

New Zenner

Join Date:
Jun 2011
Posts:
3
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Thnx on quick reply, and the tip.
Hope i will solove it.:smile:

15 Jun 2011, 12:54
#2744
nixola avatar

nixola

New Zenner

Join Date:
Jun 2011
Posts:
3
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Man Iam so proud of my self it is working now.
Thnx for not helping, in a good sense.
Btw your module rocx :flex: :clap:

15 Jun 2011, 12:58
#2745
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

nixola:

Man Iam so proud of my self it is working now.
Thnx for not helping, in a good sense.

Yeah, it probably seems weird but that's exactly what I was hoping would happen.. glad you're sorted and you've got some new skills! :)

nixola:

Btw your module rocx :flex: :clap:
Glad you like it. Good luck with the store!

All the best...

Conor
ceon

15 Jun 2011, 16:22
#2746
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Ceon URI Mapping (SEO)

the code that is under

http://www.zen-cart.com/forum/showth...aster+category

does not help the cPath is still appended have you any idea?

that code is :

/ first, try to get master category id
$category_query = "select p2c.categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
where p.products_id = '" . (int)$products_id . "'
and p.products_status = '1'
and p.products_id = p2c.products_id and p.master_categories_id = p2c.categories_id";
// in case the master category is invalid, fall back on getting first product/category association instead
$category_query .= " union distinct select p2c.categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
where p.products_id = '" . (int)$products_id . "'
and p.products_status = '1'
and p.products_id = p2c.products_id limit 1";

(additions to original code in red)

But (I'm on 1.3.9) in functions_categories.php
I'v got:
$category_query = "select p.products_id, p.master_categories_id
from " . TABLE_PRODUCTS . " p
where p.products_id = '" . (int)$products_id . "' limit 1";

So tell me how that "fix" is supose to help if "oryginaly" master_categories_id is taken from products table??

conor:

Hi,

Please search this thread for cPath and read my last few posts about such issues.

I'll have to make this into a FAQ!

All the best..

Conor
ceon

Hi Conor
I totally understand this must be a frustration, but please make it idiot proof for me... :hug:
Ive searched the thread as you can tell by the above quotes, Ive read rhe old 'how to' post on resolving, but I too have come up against the same issue as alarmy-e.pl, I cannot find the answer to how to mod the code for 1.3.9.
Sorry to be a plank.
Thanks in advance.

15 Jun 2011, 17:20
#2747
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping (SEO)

picandnix:

the code that is under

http://www.zen-cart.com/forum/showth...aster+category

does not help the cPath is still appended have you any idea?

picandnix:

Hi Conor
I totally understand this must be a frustration, but please make it idiot proof for me... :hug:
Ive searched the thread as you can tell by the above quotes, Ive read rhe old 'how to' post on resolving, but I too have come up against the same issue as alarmy-e.pl, I cannot find the answer to how to mod the code for 1.3.9.
Sorry to be a plank.
Thanks in advance.
Based on your post, it's not clear (at least to me) what you are still having an issue with. The post that you reference (and I've properly quoted it so they are easier to read) is a pretty straight forward change and has been confirmed by Conor as the solution. This is not an issue with Ceon URI Mapping, but is in fact an issue with a Zen Cart function.

So please clarify what you are having issues with still:

  1. Did you try making these changes, and they did not work
    ..
    OR
    ..
  2. Are you unsure how to go about making the changes needed??

damiantaylor:

Just thought I'd come back and let you know I've found a fix to the problem I was having where the cPath extension was incorrectly appended to the end of the URIs.

As Conor said, it is nothing to do with the URI mapping module, it's a problem in the zen_get_product_path function.

The code to fix is here:
http://www.zen-cart.com/forum/showthread.php?t=91107&highlight=cPath+master+category

Hope this helps!

conor:

Hi,

Yes, thanks that was interesting.. a silly Zen Cart bug, surprised it's only fixed in 1.4.0 and not in 1.3.9.. at least we know what to say if anyone else has the same problem!

All the best..

Conor
ceon

15 Jun 2011, 19:06
#2748
picandnix avatar

picandnix

Totally Zenned

Join Date:
Dec 2010
Location:
UK
Posts:
1,780
Plugin Contributions:
2

Re: Ceon URI Mapping (SEO)

hi Divavocals
thankyou for your attention. & apologies for the above format (I'm posting from my phone so I dont the full page one would see on a p.c)
Yes its the fact I cant find the correct code to mod. I have found what I believe to be the correct lines, however as alarmy-e.pl states the code in 1.3.9 is slightly different to that of the code in the solution quoted by DamianTaylor from the earlier version of ZC. So yes I'm having trouble going about making the correct changes to the php file.
Regards
Posted via Mobile Device

15 Jun 2011, 20:03
#2749
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping (SEO)

picandnix:

hi Divavocals
thankyou for your attention. & apologies for the above format (I'm posting from my phone so I dont the full page one would see on a p.c)
Yes its the fact I cant find the correct code to mod. I have found what I believe to be the correct lines, however as alarmy-e.pl states the code in 1.3.9 is slightly different to that of the code in the solution quoted by DamianTaylor from the earlier version of ZC. So yes I'm having trouble going about making the correct changes to the php file.
Regards
Posted via Mobile Device
The code DamianTaylor quote IS the corrected code so YES it will not be the same as the current 1.3.9 code found in the** functions_categories.php** file.. You must modify the zen_get_product_path function which is found in the functions_categories.php file. You need you make the query LOOK like the code in the referenced thread. (I've quoted the posted fix) Does that make sense??

capnhairdo:

Apologies for cross-posting this excerpt from another, longer post, but it seemed to merit being posted here:

When ZC doesn't know the category you want—because no category is defined in the URL (cPath)—then init_category_path.php runs zen_get_product_path() to determine and set it. zen_get_product_path() (in functions_categories.php) does a general query of the products_to_categories table to find all product/category associations. However, this query has a limit=1, so it only gets the first record it finds there. For products in only one category, this is fine; but if a product is in multiple categories, then the category it returns is essentially random. Which defeats the purpose of a "master" category. If a category is going to be determined automatically by ZenCart, it should be the master category for the product, not a random one.

This change to functions_categories.php fixes this (additions to original code in red):

// first, try to get master category id
$category_query = "select p2c.categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
where p.products_id = '" . (int)$products_id . "'
and p.products_status = '1'
and p.products_id = p2c.products_id and p.master_categories_id = p2c.categories_id";
// in case the master category is invalid, fall back on getting first product/category association instead
$category_query .= " union distinct
select p2c.categories_id
from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c
where p.products_id = '" . (int)$products_id . "'
and p.products_status = '1'
and p.products_id = p2c.products_id limit 1";

15 Jun 2011, 21:37
#2750
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

picandnix:

Yes its the fact I cant find the correct code to mod.

Sorry but I don't think this is appropriate for this thread. Please move it to another one.

Thanks,

Conor
ceon

15 Jun 2011, 22:20
#2751
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping (SEO)

conor:

Hi,

Sorry but I don't think this is appropriate for this thread. Please move it to another one.

Thanks,

Conor
ceon
Sorry Conor.. I should have included that in my last post..:oops:

DivaVocals:

The code DamianTaylor quote IS the corrected code so YES it will not be the same as the current 1.3.9 code found in the** functions_categories.php** file.. You must modify the zen_get_product_path function which is found in the functions_categories.php file. You need you make the query LOOK like the code in the referenced thread. (I've quoted the posted fix) Does that make sense??Conor is absolutely right.. The "issue" and the "fix" are not related in ANY WAY to this mod.. Any further discussion on this topic should be carried on a new separate thread.. (sorry Conor)

16 Jun 2011, 02:33
#2752
ebloger avatar

ebloger

New Zenner

Join Date:
Dec 2007
Posts:
35
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

my zc 1.39h

now, i have install a module "news_and_article_manager__optional_sideboxes_2-2"

how to rewrite :

news
news_archive
news_article
news_comments

especially news_article

16 Jun 2011, 07:58
#2753
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

ebloger:

mnow, i have install a module "news_and_article_manager__optional_sideboxes_2-2"

how to rewrite

You will have to manually edit the database, adding a record by hand for each page and each article.

You need to read the section of the documentation "Specifying the current URI Mapping for any other Zen Cart page".

This module is not static URI compatible as it is and needs to be rewritten to be so.

For which someone will have to pay someone I'd imagine.

All the best...

Conor
ceon

17 Jun 2011, 08:27
#2754
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

Ceon URI Mapping 4.0.0 is in the final stages of development (at long last).

I'm going back through this thread to look for previous suggestions for changes, but I thought I'd ask...


..does anyone have any changes they'd like to see in v4.0.0?

This is your LAST CHANCE for suggestions for the new version. So get them in today or tomorrow at the very latest.

All the best...

Conor
ceon

17 Jun 2011, 11:01
#2755
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

conor:

Hi,

It features "auto-generation" so it's ideally placed for new stores.. by default a full URI will be auto-generated for a new product/category/EZ-page.

It will also be auto-generated if you are editing a product/category/EZ-page which doesn't yet have a URI mapping.

Instead of generating a URI when the customer looks at a product/category/EZ-Page, the store admin user(s) create the URI when adding/editing products/categories/EZ-pages...

so it is automatic, but in a "different" way. :)

I just took a look at the website for that module and its code and it seems to be a good module also.. however it adds product IDs etc. by default which I find ugly. The new alias feature is great but that didn't exist when I wrote this module and it requires more work for the admin user(s) than the auto-generation features of this new module (for products/categories and EZ-pages but not for other pages, it's easier for them!).

As yellow says, it does no harm to have a choice! (Thanks for the nice comment yellow1912) :)

Hope that makes things clearer still!

All the best...

Conor
Ceon

Hi Conor,

I'd like to rewrite my URLs in more descriptive ways. I've got a lot of pages (thousands) to rewrite.
Can you tell me if this module is suitable for my job and is there any potential problem that I should pay attention to? First of all is there a possibility to get damaged URLs or to lost any of them?
Also is rewritting automatic process?
If I decide to install the module would you mind me asking you if I stamble somewhere?

Thanks.

17 Jun 2011, 11:05
#2756
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

Lazar:

I'd like to rewrite my URLs in more descriptive ways. I've got a lot of pages (thousands) to rewrite.
Can you tell me if this module is suitable for my job and is there any potential problem that I should pay attention to? First of all is there a possibility to get damaged URLs or to lost any of them?
Also is rewritting automatic process?
If I decide to install the module would you mind me asking you if I stamble somewhere?

I'm afraid that the module as it comes is designed for stores that are just starting or small.. it would take a long time to generate URIs for 1000s of products as the autogeneration is NOT an automatic process. It autogenerates URIs only when you click "Update" in the admin.

If you search this thread you can find out more about how things work.

There is no possibility of "damaged URLs" unless you have products which have the same name. Which you should never have.

All the best...

Conor
ceon

17 Jun 2011, 11:11
#2757
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

Reposting this to keep it the most important post over the next 24 hours...

Ceon URI Mapping 4.0.0 is in the final stages of development (at long last).

I'm going back through this thread to look for previous suggestions for changes, but I thought I'd ask...


..does anyone have any changes they'd like to see in v4.0.0?

This is your LAST CHANCE for suggestions for the new version. So get them in today or tomorrow at the very latest.

All the best...

Conor
ceon

17 Jun 2011, 12:12
#2758
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Ceon URI Mapping (SEO)

Lazar:

Hi Conor,

I'd like to rewrite my URLs in more descriptive ways. I've got a lot of pages (thousands) to rewrite.
Can you tell me if this module is suitable for my job and is there any potential problem that I should pay attention to? First of all is there a possibility to get damaged URLs or to lost any of them?
Also is rewritting automatic process?
If I decide to install the module would you mind me asking you if I stamble somewhere?

Thanks.

You will have to do them manual one at a time. To have a auto generation for all products at once Conor cannot answer this question here on this support forum as the rules of this forum prohibit the support or discussion of paid modules on the part of the module creator. The particular module you speak of will be a commercial module, and if you want more information on it, you will need to contact Conor via e-mail. (use the contact form on the Ceon website)

Donations:yes:, Donations:yes:, Donations:yes:, I have always seen if you support the creator on the module they are most of the time willing to help you out when you need that extra boost.:bigups:

17 Jun 2011, 13:15
#2759
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Ceon URI Mapping (SEO)

conor:

Hi,

I'm afraid that the module as it comes is designed for stores that are just starting or small.. it would take a long time to generate URIs for 1000s of products as the autogeneration is NOT an automatic process. It autogenerates URIs only when you click "Update" in the admin.

If you search this thread you can find out more about how things work.

There is no possibility of "damaged URLs" unless you have products which have the same name. Which you should never have.

All the best...

Conor
ceon
Lazar,

Conor is right, and there is an upcoming commercial module that will be offered by Ceon to help automate URI generation for existing stores.. As Countrycharm has indicated, Conor cannot answer questions about that mod here as it is a commercial mod, and forum rules prevent Conor from discussing it here.. We rather like Conor, and don't want to see him get in trouble.. So Countrycharm and I like to let people know why he can't answer questions about the URI Mapping mod..

In the meantime Lazar, you can, if you are comfortable with spreadsheet programs and myPHPAdmin, automate URI generation a bit by exporting your product table to a spreadsheet, making the URI changes in the spreadsheet and re-importing your products and new URIs back to your database.. This is exactly how I implemented this mod for a client with an existing store in the past.. (he had HUNDREDS of products)

and before anyone asks me here or PMs me about sharing the spreadsheet I used for this task -- sorry.. I do not have it anymore..:blush:

17 Jun 2011, 18:14
#2760
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Ceon URI Mapping (SEO)

Hi,

I really need some help from some Zen Cart store owners here.

I need a few people to send me a dump of their server environment variable.

I need to test Ceon URI Mapping v4.0.0 on as many different server types as possible and being able to see some info from other server types will greatly help.

Please could you create a file on your server, such as "servercheck.php"

Make the contents of the files the following:

<?php

var_dump($_SERVER);

?>
```Then go to <http://www.yoursite.com/servercheck.php>

Please then "View Source" of the output page and send this output to me privately [via this link](http://ceon.net/contact-us).

Then delete the file you just created from your server.


I really need people who are using IIS or some other webservers to do this as soon as possible please.. otherwise you may find that v4.0.0 breaks on your server.. in whicih case you'lkl have to wait for a fix in 4.0.1 etc.


Please be assured that **all information will be kept private**.. 

I simply need this information to see how differently configured servers build their $_SERVER["SCRIPT_FILENAME"], $_SERVER["DOCUMENT_ROOT"], $_SERVER["ORIG_PATH_INFO"] etc. variables.


Thanks for any help, you'll be helping yourself too as if I can get this code working, there will be no need to "exclude" files in future!

All the best...

Conor
[ceon](http://dev.ceon.net)