Zen Cart Logo
Forums / All Other Contributions/Addons / Ceon URI Mapping v4.x

Ceon URI Mapping v4.x

Views: 451,990

Results 641 to 660 of 2,454
9 Jun 2012, 8:01 PM
#641
ousel avatar

ousel

New Zenner

Join Date:
Aug 2006
Posts:
84
Plugin Contributions:
0

Ceon URI Mapping v4.x

Hello Conor,

I had CEON installed on v1.3.8.a. I found it easy to install and it seemed to work perfectly.

Then I noticed that the Gift Certificates had disappeared from their section of the shop. They appeared again when I disabled CEON.

I have just upgraded to the latest version of Zencart and CEON but I am having the same problem.

In Caregories/Products-Gift Certificates I have tried using the URI mapping

/Gift_Certificates/5GBP

/Gift_Certificates/5

and also

/Gift_Certificates/Five_Pounds

in case it was a problem with the numbers, but none of these work.

Is there a different mapping for gift certificates I haven't noticed?

Any help would be appreciated.

9 Jun 2012, 8:21 PM
#642
countrycharm avatar

countrycharm

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Danielle:

I can't seem to get this mod working for my define pages. Here is what I have set for my contact page:

uri: /Contact-Us
language_id: 1
current_uri: 1
main_page: contact_us
query_string_parameters: NULL
associated_db_id: 0
alternate_uri: NULL
redirection_type_code: 301

The contact us page is still just showing the regular dynamic url. Did I do something wrong when I added the new database record?

Thanks!

Deleted............................

10 Jun 2012, 9:07 AM
#643
ousel avatar

ousel

New Zenner

Join Date:
Aug 2006
Posts:
84
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Ousel:

I noticed that the Gift Certificates had disappeared from their section of the shop. They appeared again when I disabled CEON.

Never mind, I've found my error.

I had a product category AND an EZ page called Gift Certificates. When I changed the name of the product category it worked.

13 Jun 2012, 8:19 PM
#644
horsetags avatar

horsetags

New Zenner

Join Date:
Jun 2009
Posts:
44
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

Hi Paul,

Please read the FAQs for the answer to this question (basically, check the canonical tag is present in the header and ignore the "issue").

All the best..

Conor
ceon

Hi Conor,

Thank you for your answer. I think i was a bit paranoid when moving servers!

Sorry for the late reply but only just found it although i asked for immediate email update.

Paul

18 Jun 2012, 3:10 PM
#645
ailtait avatar

ailtait

New Zenner

Join Date:
May 2012
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi,

I've got this mod installed and running. Works great. I've also created a custom Product Type because the products we're going to be selling have some fairly specific information that we need to list. The mod isn't working for the new Product Type.

I see that the documentation states that it works for all the standard Zencart product types and the new Book product type. Is there any documentation that points out what files need changing (and what needs changing on those files) to get the mod working for custom product types?

Happy to have a bash at it myself, but would rather not jump in without even a hint of which files I should / shouldn't be looking at. Is there documentation available on this at all?

Thanks.

18 Jun 2012, 3:47 PM
#646
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 v4.x

ailtait:

Hi,

I've got this mod installed and running. Works great. I've also created a custom Product Type because the products we're going to be selling have some fairly specific information that we need to list. The mod isn't working for the new Product Type.

I see that the documentation states that it works for all the standard Zencart product types and the new Book product type. Is there any documentation that points out what files need changing (and what needs changing on those files) to get the mod working for custom product types?

Happy to have a bash at it myself, but would rather not jump in without even a hint of which files I should / shouldn't be looking at. Is there documentation available on this at all?

Thanks.If it were me, I'd start with comparing all the files that comprise your custom product type and comparing them with their default equivalents that are in the Ceon URI package.. Be nice if you shared details of your outcome with the community.. Some of us may find the information useful..

18 Jun 2012, 4:19 PM
#647
davowave avatar

davowave

New Zenner

Join Date:
Mar 2009
Posts:
90
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi,

I've got this mod installed and running. Works great. I've also created a custom Product Type because the products we're going to be selling have some fairly specific information that we need to list. The mod isn't working for the new Product Type.

I see that the documentation states that it works for all the standard Zencart product types and the new Book product type. Is there any documentation that points out what files need changing (and what needs changing on those files) to get the mod working for custom product types?

Happy to have a bash at it myself, but would rather not jump in without even a hint of which files I should / shouldn't be looking at. Is there documentation available on this at all?

Thanks.

You will need to create appropriate files in a folder named like:
admin/modules/custom_product

if you look at the code for this mod you'll see what you need to do. Also it's all very well commented :)

18 Jun 2012, 5:21 PM
#648
ailtait avatar

ailtait

New Zenner

Join Date:
May 2012
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi,

I've actually done both of the above already, going through the new product type files and updating similarly to the default product type files - and double checking against the music product type files.

Part of it is working ... I should have mentioned that. If I go in via the admin, add some product info, select the URI auto-generation checkbox and save, it all seems to work i.e. no errors, and when I go back in and look at the product, it has indeed saved a friendly URL.

When I go directly to that URL in my browser, typing in the friendly URL, the product also loads, so that part works as well.

It's the bit in the middle that doesn't seem to be working. It doesn't auto update the link on the website. If I click on that product on the front end, it loads the old URL, not the new one. The more I'm thinking about it, the more it seems like I've probably missed something in one of the custom prod type files, but i've been through several times now and they look identical to the standard types.

I wondered therefor if there was another step I've perhaps missed. Maybe something to do with declaring a new product type in the URI tool itself?

I notice, for example, that there is a file called "ceon_uri_mapping_filenames.php" which appears to list product types. Should I be adding something in here? and are there other files like this that I should be editing.

My main check has been to search all the CEON files for "FILENAME_PRODUCT_MUSIC_INFO" which is one of the lines in the above file. The theory being that if I then customise it in all files that are found, then it might work. I'm just not sure if that'd be the case, so hoped someone might have some input.

18 Jun 2012, 6:30 PM
#649
ailtait avatar

ailtait

New Zenner

Join Date:
May 2012
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Success ... it's now working. I followed through on my idea of searching for instances of FILENAME_PRODUCT_MUSIC_INFO in the CEON files and, on each instance, added an instance for my own Product Type. So, if your product type was Juice, you'd want to be adding in instances of FILENAME_PRODUCT_JUICE_INFO.

For those interested in creating a new Product Type, I used a mixture of following the instructions on here: http://www.zen-cart.com/wiki/index.php/Product_Types and by looking at the Music Type databases.

From above, take a note of all the extra files you've had to create (both in admin and front end). Once done, install the CEON URI module as normal. Then, under all your new custom product type files, ensure you copy in the required lines of code in the same place as they've been copied in the default product type files.

After that, all I did was search the CEON module for instances of "FILENAME_PRODUCT_MUSIC_INFO", which is where the mod looks for instances of the music product type (and all others), and added in my own. In total I found 9 instances. There were actually another 8, but these were under the "modified_core_files" directory and relate to historic versions of ZenCart. I only update the one relevant to me.

At this point, it all seems to work exactly as expected.

19 Jun 2012, 5:40 PM
#650
jerry5763837 avatar

jerry5763837

Zen Follower

Join Date:
May 2008
Posts:
261
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Dear Conor,
many thanks for your great mod! really.
we are using 4.08 on 1.39h with multi-languages. so the problem is that,
how to set the rewirte rules in .htaccess file for sub-folder installation?

as we want to use www.aaa.com(installed in root folder) for english, and https://www.aaa.com/sub-folder/ for french

appreciated again:cool:

20 Jun 2012, 3:34 PM
#651
picandnix avatar

picandnix

Totally Zenned

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

Re: Ceon URI Mapping v4.x

Hi Conor
If I disable your mod via configuration do I need to remove anything fro m my .htaccess file as when I create a new sitemap.xml it comes back as a blank file.
Thank you in advance.

20 Jun 2012, 9:35 PM
#652
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

ailtait:

For those interested in creating a new Product Type, I used a mixture of following the instructions on here: http://www.zen-cart.com/wiki/index.php/Product_Types and by looking at the Music Type databases.

Argh, I wish I'd seen your original post sooner, could've saved you time and effort, but have only just got it as well as this one now.

Lol I'm glad you've got things working but we've had 4.2.0 ready for release for a few weeks (some private clients have been using it for a few months!) and the first entry in the Revision History is as follows:

[ADDED] List of product pages is now maintained in a its own data file in the includes/extra_datafiles folder, making it easy to add support for additional product page types.

Ah well, that's the OS/GPL way, other things get in the way of releases.

At least when 4.2.0 is officially released you can upgrade knowing that you don't have to go through the above effort again (although thankfully as you've seen, it's not much effort to do what you wanted).

Good job on the changes but hopefully others will see this message and not have to put in the same effort!

Hopefully the new version will get released this week, start of next week at very latest.

All the best...

Conor
ceon

20 Jun 2012, 9:42 PM
#653
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

Jerry5763837:

many thanks for your great mod! really.
we are using 4.08 on 1.39h with multi-languages. so the problem is that,
how to set the rewirte rules in .htaccess file for sub-folder installation?

as we want to use www.aaa.com(installed in root folder) for english, and www.aaa.com/sub-folder/ for french

appreciated again:cool:

Glad you like the software.

I'm not entirely clear on what it is you want to do.. do you have two stores, one for each language, or simply one store with two different languages?

If it is the latter, then you simply adjust the URIs as you enter them for the categories/products. E.g., for products, simply add "/sub-folder/" to the start of the "French" URI Mapping for each product/category etc. (I like to have site.com/fr/xxxxx for example, that's how our aarck/aawe software works and is how all language sites should work in my opinion).

If your question is about the former, then you can simply have a rewrite rule for each store in the root's .htaccess file, but add an exclusion for the /sub-folder/ to the first rewrite rule so that it "falls over" to the second rule. Or you can make sure the first rule only applies for the second, sub-folder (French) store and "falls back" to the first rule for the root/English language store.

Certainly, I can say that what you want to do in supporting multiple languages is indeed doable with the software (a fact which is one of the software's strengths!).

All the best..

Conor
ceon

20 Jun 2012, 9:47 PM
#654
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

picandnix:

If I disable your mod via configuration do I need to remove anything fro m my .htaccess file

No, but you can indeed just remove the rewrite rule from it if the module isn't being used.

picandnix:

as when I create a new sitemap.xml it comes back as a blank file.
Thank you in advance.

A blank page is nothing to do with Ceon URI Mapping, but must be a problem with your installation of the Sitemap module. Check the "cache" folder for your store for myDebug files.. they'll probably exist and list a PHP error to do with a mistaken installation (missing file or something?) of the Sitemap module.

Unfortunately I'll have to refer you to the thread for that module for further help with this. Hopefully though, that's enough information for you to get this fixed!

All the best...

Conor
ceon

20 Jun 2012, 9:51 PM
#655
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi Paul,

horsetags:

Thank you for your answer. I think i was a bit paranoid when moving servers!

That's easy to understand. :)

horsetags:

Sorry for the late reply but only just found it although i asked for immediate email update.

No problem, glad you're happy enough now! :)

All the best..

Conor
ceon

20 Jun 2012, 9:56 PM
#656
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

gaffettape:

This results in http://www.example.com/category/product/review?reviews_id=11 being submitted to google (via sitemapxml) as the review URL, that page then lists http://www.example.com/category/product/review as the correct url (via canonical), which then in turn forwards to http://www.example.com/category/product/reviews - confusing, I know!

That is very confusing!

Please get in contact privately to explain it more/possibly give me access to test this on your site for you. I've not come across this issue before.

Thanks,

Conor
ceon

20 Jun 2012, 10:03 PM
#657
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

jbnyc:

First of all, thanks for the great module and the step by step installation directions.

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! :)

jbnyc:

I have one problem, after I started going through each category and product and clicking the "automatically generate," the pictures of the items in those particular categories disappear!

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.

jbnyc:

And no matter what categories I click on in the home page, it just lead to the home page. Can you help me please? Thanks!

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

21 Jun 2012, 12:59 PM
#658
picandnix avatar

picandnix

Totally Zenned

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

Re: Ceon URI Mapping v4.x

conor:

Hi,

No, but you can indeed just remove the rewrite rule from it if the module isn't being used.

A blank page is nothing to do with Ceon URI Mapping, but must be a problem with your installation of the Sitemap module. Check the "cache" folder for your store for myDebug files.. they'll probably exist and list a PHP error to do with a mistaken installation (missing file or something?) of the Sitemap module.

Unfortunately I'll have to refer you to the thread for that module for further help with this. Hopefully though, that's enough information for you to get this fixed!

All the best...

Conor
ceon

Sorry Conor, I mean that the actual sitemap is empty. But sitemap generates fine when URI its set to on. That's why I wondered if it is related maybe to the htaccess?

21 Jun 2012, 5:19 PM
#659
conor avatar

conor

Passed

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

Re: Ceon URI Mapping v4.x

Hi,

picandnix:

Sorry Conor, I mean that the actual sitemap is empty. But sitemap generates fine when URI its set to on. That's why I wondered if it is related maybe to the htaccess?

I don't use the sitemap module so I don't know why it would be empty. It cannot have anything to do with Ceon URI Mapping or .htaccess files though. I'd suggest contacting the author of that module.

All the best..

Conor
ceon

21 Jun 2012, 6:39 PM
#660
picandnix avatar

picandnix

Totally Zenned

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

Re: Ceon URI Mapping v4.x

conor:

Hi,

I don't use the sitemap module so I don't know why it would be empty. It cannot have anything to do with Ceon URI Mapping or .htaccess files though. I'd suggest contacting the author of that module.

All the best..

Conor
ceon

Will do, thank you Conor.