Zen Follower
- Join Date:
- Jun 2011
- Posts:
- 113
- Plugin Contributions:
- 0
Ceon URI Mapping v4.x
Hello I was wandering if someone could help me please
I installed this mod and the rewrite rules arent working
could someone helo me here please
thamnk yoiu
Views: 452,124
Zen Follower
Hello I was wandering if someone could help me please
I installed this mod and the rewrite rules arent working
could someone helo me here please
thamnk yoiu
New Zenner
Dear Conor,
I have installed Ceon URI Mapping (SEO) 4.4.1 on ZenCart 1.3.9h.
It seems to be working, except the product listing display still uses the ZenCart generated URL.
I have a category "Clocks" (cPath=66). I have two products in that category (products_id=208 and 209).
I generated the URI Mapping for the category (clocks), and two products (/clocks/clock-a and /clocks/clock-b).
The category URI Mapping works fine. In the "Categories" side box, the URI Mapping shows up in the link to "/clocks".
When I click on the Clocks category to display the product list, the product links still shows the ZenCart generated links even though I have generated the URI Mapping for each product already.
If I manually type in the URL "/clocks/clock-a", it will go to display the correct product. The links in the navigation "prev" or "next" buttons on the product information display page are ZenCart generated links, even though URI Mapping "/clocks/clock-b" has already been generated.
Have I missed a step?
Thanks.
kamion
New Zenner
Hey there.
Trying to install Ceon URI Mapping (SEO) module.
Uploaded all the files needed. Now it asks to go to Modules > Ceon URI Mapping (SEO) and make some changes there and on.
The problem is, I don't see anything new under Modules in Admin panel, besides Payment, Shipping and Order Total, which already were there.. (v.1.5.1)
Please advise.
Thank you.
New Zenner
I've found the answer to my problem above. :)
Looks like there's a need to add custom product types to two files:
It's now working as it should.
kamion:
Dear Conor,
I have installed Ceon URI Mapping (SEO) 4.4.1 on ZenCart 1.3.9h.
It seems to be working, except the product listing display still uses the ZenCart generated URL.
Passed
Hi,
solo_400:
Urgent Help please !
I have installed version 4.4.1 and only with Internet Explorer a have a 404 problem movnig navigating from categories to menu informations links :
PLease try to navigate first on : http://ducashop.ro/ducashop/placate-cu-aur-18k/bratari-placate-aur and after on http://ducashop.ro/ducashop/index.php?main_page=conditions using IE .
The custom menu software you have on the site is badly written. It can't cope with static URIs. You need to get the author of your menu software to fix it so that it can work with static URIs.
Currently it is generating URIs like:
http://ducashop.ro/ducashop/placate-cu-aur-18k/index.php?main_page=conditions
Clearly you can see that this should not include the current full path on the server (http://ducashop.ro/ducashop/placate-cu-aur-18k) but only http://ducashop.ro/ducashop/...
That's the only solution for you, but should be easy enough for the author of the menu software... have them update their software to use zen_href_link instead of whatever method they are using now to build the links.
All the best...
Conor
ceon
Passed
Hi,
Snaggle:
Hello I was wandering if someone could help me please
I installed this mod and the rewrite rules arent workingcould someone helo me here please
thamnk yoiu
Sorry but you haven't asked anything specific.
All the best..
Conor
ceon
Passed
Hi,
jmac2020:
The problem is, I don't see anything new under Modules in Admin panel, besides Payment, Shipping and Order Total, which already were there.. (v.1.5.1)
You haven't installed the software properly. Upload the files again.. the most common problem with installation now is people thinking they've uploaded all the files when they haven't.. often due to poor FTP software. I'd suggest trying FireFTP for Firefox, it's free software that has always seemed reliable to me.
All the best...
Conor
ceon
Passed
Hi,
kamion:
I've found the answer to my problem above. :)
Looks like there's a need to add custom product types to two files:
- includes\extra_datafiles\ceon_uri_mapping_product_pages.php
- includes\extra_datafiles\ceon_uri_mapping_filenames.php
It's now working as it should.
If you haven't defined your custom product type with a filename then, yes, you must define it somewhere.. otherwise all you need to do is add the information to the product pages file as you did.
Glad you're sorted. Enjoy the new URIs!
All the best...
Conor
ceon
Zen Follower
I had this installed for a while and all was well on zc v1.5.0 (link in my sig), but a while ago (not sure how long), it suddenly stopped working on internet explorer and wouldn't show 2nd or third level categories or any products (it showed but lost all formatting), so I have now turned it off, I am currently on CEON URI Mapping v4.0.7 but I have a message to say that 4.4.1 is available, would this fix this issue? It's just that I have to merge some admin files as I have this installed alongside numinix product fields so I don't really want to mess around unless I have to and if it will make a difference? or do you think the problem could be completely unrelated? if so, any ideas as to what it may be and how to fix would be appreciated.
Thanks in advance!
New Zenner
I have just installed this MOD V4.4.1 with ZC 1.5.0. Everything seems to work. When i add a new category or a new product, the corrrect pathway shows up, but when I click on the category, it displays no products. When i do a search for the product or use the NEW Products link and then click on product details, i get a 404 error. I have tried changing the MOD Rewrite rule but I still get the same errors. Any suggestions?
RewriteRule .* index.php [QSA,L]
RewriteRule .* /index.php [QSA,L]
RewriteRule .* /index.php [QSA,L,PT]
Thank you in advance for your help.
New Zenner
Connor, after reading through this thread for hours, i wonder cause of the problem I am having since it describes exactly the same issue I am having, I just do not know how to fix it.
Thanks
This is the code in the header file for the Template i am using
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" />
<?php if (isset($canonicalLink) && $canonicalLink != '') { ?>
<link rel="canonical" href="<?php echo $canonicalLink; ?>" />
<?php } ?>
conor:
Hi,
Glad you like it and appreciate the effort put into the installation instructions, they alone took over a week so it's nice they're appreciated! :)
This is caused when the template used breaks the "base href" functionality that working templates have. It basically means the category/product pages are currently broken, in that they can't support static URIs, they are building relative URIs for the images, which then breaks them.
It should be easy enough to fix, just make sure a base href element is present in the template header file.
I'm afraid I don't know specifically what is causing that but it is indeed likely to be an error on your [template's] part. Again, check how the URIs are being built by it, make sure all are using the zen_href_link function.
Hope that's some sort of help!
All the best..
Conor
ceon
New Zenner
I'm stuck in a loop when trying to checkout with version 4.4.1. Everything was working great, the friendly URLs were coming through. Navigating round the site has been good but when I go to Checkout I just get stuck in a loop at the login page. It looks like a redirect is forcing me back to login. I tried with and without the / on the rewrite rule, but have I missed something obvious?
Here are the log entries:
127.0.0.1 - - [05/Nov/2012:13:58:31 +1100] "GET /op-shop/index.php?main_page=login HTTP/1.1" 200 38435 "http://localhost/op-shop/index.php?main_page=login" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"
127.0.0.1 - - [05/Nov/2012:13:58:37 +1100] "POST /op-shop/index.php?main_page=login&action=process HTTP/1.1" 302 - "http://localhost/op-shop/index.php?main_page=login" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"
127.0.0.1 - - [05/Nov/2012:13:58:37 +1100] "GET /op-shop/index.php?main_page=checkout_shipping HTTP/1.1" 302 - "http://localhost/op-shop/index.php?main_page=login" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"
127.0.0.1 - - [05/Nov/2012:13:58:37 +1100] "GET /op-shop/index.php?main_page=login HTTP/1.1" 200 38419 "http://localhost/op-shop/index.php?main_page=login" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4"
New Zenner
So I deleted the files started over and still get the same issues. Rewrites the urls which I love but when I click on them they just loop back to the home page. I dont think it is the template,but I'm no expert. I'm usre this is somthing simple, just bugs the heck out of me that I cannot figure it out.
Passed
Hi,
kanine:
It looks like a redirect is forcing me back to login. I tried with and without the / on the rewrite rule, but have I missed something obvious?
It looks like something is indeed redirecting back but it's not Ceon URI Mapping.. none of those URIs are static URIs.. I think this is a conflict with something else you have put on the site.
All the best..
Conor
ceon
Passed
Hi,
Newbie76:
I had this installed for a while and all was well on zc v1.5.0 (link in my sig), but a while ago (not sure how long), it suddenly stopped working on internet explorer and wouldn't show 2nd or third level categories or any products (it showed but lost all formatting), so I have now turned it off, I am currently on CEON URI Mapping v4.0.7 but I have a message to say that 4.4.1 is available, would this fix this issue? It's just that I have to merge some admin files as I have this installed alongside numinix product fields so I don't really want to mess around unless I have to and if it will make a difference? or do you think the problem could be completely unrelated? if so, any ideas as to what it may be and how to fix would be appreciated.
Thanks in advance!
I would suggest upgrading, it won't actually take you that long.. however, things don't just suddenly stop working. So you must have installed software that messed something up, or added something to your .htaccess file which has broken things.
All the best..
Conor
ceon
New Zenner
Conor,
Sent you an email. I know its getting late in the UK, thank you for your help and your great mods.
Passed
Hi,
PullingOutMyHair:
Sent you an email. I know its getting late in the UK, thank you for your help and your great mods.
Yes, you just got me before I stopped for the day, you should have received my response by now.. if not then a spam filter may be to blame!
Thanks for the nice comments, I'm really glad the software's useful to you! :)
All the best..
Conor
ceon
New Zenner
conor:
Hi,
Yes, you just got me before I stopped for the day, you should have received my response by now.. if not then a spam filter may be to blame!
Thanks for the nice comments, I'm really glad the software's useful to you! :)
All the best..
Conor
ceon
Got is and thanks. I want to make everyone clear, that the script works as advertised and the main issue was my htaccess file. Something, I honestly didnt know enough about.
I purchased the URI Mappings (Static URLs/URIs). https://ceon.net/software/business/zen-cart/uri-mappings-manager and it is worth every penny, once installed thanks to Conor, it took seconds to change every product and category.
Thanks Again!
Totally Zenned
Assuming I know nothing about php:
Having uri-mapped categories called:
united-states/blue (category id is 1234)
united-kingdom/blue (category id is 5678)
.....
If i want to display my product_filter sidebox only on the above sub-category pages I can use this:
if ($cPath == '1234' or $cPath == '5678'){
$show_product_filter = true;
} else {
$show_product_filter = false;
}
But I have a LOT of sub-categories, with the same name to specify so I thought if I show the sidebox only when the URI Mapping is a certain value that it would be less work, by doing this:
$hide_filter = "select uri
from " . TABLE_CEON_URI_MAPPINGS . " cm
where current_uri = '1'
and cm.associated_db_id = '" . (int)$_GET['cPath'] . "'";
$hide = $db->Execute($hide_filter);
if ($hide == 'blue'){
$show_product_filter = true;
} else {
$show_product_filter = false;
}
The trouble is the uri's are actually /united-states/blue ...etc.
so using the == isn't correct. I'm just not sure what to use instead
Passed
Hi,
simon1066:
if ($hide == 'blue'){
$show_product_filter = true;
} else {
$show_product_filter = false;
}The trouble is the uri's are actually /united-states/blue ...etc.
so using the == isn't correct. I'm just not sure what to use instead
This is a PHP programming question, it's nothing to do with this thread really.
To answer your question specifically, you could simply check against the last part of the URI that you have identified as wanting to match.
You'd just extract the last part. Here's how to extract it from a string stored in "$uri"
$last_slash_pos = strrpos($uri, '/');
$last_uri_part = substr($uri, $last_slash_pos + 1, strlen($uri) - ($last_slash_pos + 1));
if ($last_uri_part == 'blue') {
However, your code is wrong, it will match Category URIs, Product URIs or EZ-Page URIs as you haven't limited the range of the page "types" that can use an associated_db_id.. the first one in the database with the ID of whatever the cPath is will match:
$hide_filter = "select uri
from " . TABLE_CEON_URI_MAPPINGS . " cm
where current_uri = '1'
and cm.associated_db_id = '" . (int)$_GET['cPath'] . "'";
You'd be better off building the URI using the Ceon URI Mapping functionality, which can be easily instigated through a call to zen_href_link():
$parameters = 'cPath=' . $cPath;
$uri = zen_href_link(FILENAME_DEFAULT, $parameters);
As this is a very specific/personal programming question, it wouldn't be appropriate to reply here, please instead start a new thread.
All the best...
Conor
ceon
Fields marked required must be completed.
Tell staff why this post should be reviewed.