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

Ceon URI Mapping v4.x

Views: 452,128

Results 921 to 940 of 2,454
11 Nov 2012, 7:58 PM
#921
conor avatar

conor

Passed

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

Ceon URI Mapping v4.x

Hi,

eazi:

I couldn't find it. But I think that uri redirects were only passing first argument. This was search order in my case. I rewrote .htaccess and it worked so I must have had a typo that I couldn'tsee..

Okay, thanks. Have a good evening.

All the best...

Conor
ceon

11 Nov 2012, 11:44 PM
#922
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

conor:

Hi,

Okay, thanks. Have a good evening.

All the best...

Conor
ceon

Hey Conor.. Just installed your mod on a site that I am finishing up.. Everything installed beautifully and it all works except on my custom product type. I thought I made all the right changes to the right places (used the book product type to get the code added to my custom product type files), but I've got some odd stuff happening.. So apparently I missed something...

Here's what is happening.. When I edit products that use my custom product type, the URIs are correctly generated and I can manually enter the URL for these products.. The problem is that on the front end all the listings still show the dynamic link. Normally after you click the link the first time the auto generated URI will show.

Here's the product listing page I speak of:
http://clientlaserdiscvault(dot)overthehillweb(dot)com/index.php?main_page=index&cPath=260

Here's the product in question:
http://clientlaserdiscvault(dot)overthehillweb(dot)com/index.php?main_page=laserdisk_info&cPath=260&products_id=9280
and here is the generated URI for this product:
http://clientlaserdiscvault(dot)overthehillweb(dot)com/framed-ld-jackets/blood-and-black-lace

Could use your help sir..:smile:

12 Nov 2012, 2:24 PM
#923
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,

Hope you're doing well!

DivaVocals:

Could use your help sir..:smile:

It shall gladly be given to someone such as yourself! ;)

I have seen this before.. it is simply that the module on the catalog side doesn't "know" about the custom product type. You have to add the custom product type into the file includes/extra_datafiles/ceon_uri_mapping_product_pages.php :

$ceon_uri_mapping_product_pages = array(
    FILENAME_DOCUMENT_GENERAL_INFO,
    FILENAME_DOCUMENT_PRODUCT_INFO,
    FILENAME_PRODUCT_INFO,
    FILENAME_PRODUCT_BOOK_INFO,
    FILENAME_PRODUCT_FREE_SHIPPING_INFO,
    FILENAME_PRODUCT_MUSIC_INFO,
    'yourcustomproducttype_info'
    );

Ceon URI Mapping will then recognise the product type and process the URIs for it.

Have a nice day!

All the best...

Conor
ceon

12 Nov 2012, 2:51 PM
#924
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

conor:

Hi,

Hope you're doing well!

It shall gladly be given to someone such as yourself! ;)

I have seen this before.. it is simply that the module on the catalog side doesn't "know" about the custom product type. You have to add the custom product type into the file includes/extra_datafiles/ceon_uri_mapping_product_pages.php :

$ceon_uri_mapping_product_pages = array(
FILENAME_DOCUMENT_GENERAL_INFO,
FILENAME_DOCUMENT_PRODUCT_INFO,
FILENAME_PRODUCT_INFO,
FILENAME_PRODUCT_BOOK_INFO,
FILENAME_PRODUCT_FREE_SHIPPING_INFO,
FILENAME_PRODUCT_MUSIC_INFO,
'yourcustomproducttype_info'
);

> 
> Ceon URI Mapping will then recognise the product type and process the URIs for it.
> 
> Have a nice day!
> 
> All the best...
> 
> Conor
> [ceon](http://ceon.net/software/business/zen-cart)
Perhaps I am being daft here Conor.. But I've been through the entire v4.08 package and I do not see this file.. Am I missing something??
12 Nov 2012, 3:01 PM
#925
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,

DivaVocals:

Perhaps I am being daft here Conor.. But I've been through the entire v4.08 package and I do not see this file.. Am I missing something??

This functionality was added in 4.2.0 to make it easy for people to use custom product types.. funny, I was very surprised that you'd have posted about this problem, didn't occur to me that you'd not be on the latest version (4.4.1 :) ).

Upgrading will take just a few minutes, then all you need to do is add to that file and support for your custom product type is instantaneous. :)

Saying all that, I've just realised that, outside of the Revision History, I haven't documented this functionality anywhere except in that file itself. Guess I should a wee section to the configuration docs - more work to do then!

Have a good day! New update of Ceon Manual Card to get sorted here..

All the best...

Conor
ceon

12 Nov 2012, 3:03 PM
#926
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

deleted

12 Nov 2012, 3:04 PM
#927
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,

I've just realised that the downloads area is very out of date.

I forgot the last version failed to be uploaded as the downloads area has a problem with filesizes at the minute. Until this is sorted please get the latest version directly from the Ceon site.

All the best...

Conor
ceon

12 Nov 2012, 3:06 PM
#928
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

deleted

12 Nov 2012, 3:12 PM
#929
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

conor:

Hi,

I've just realised that the downloads area is very out of date.

I forgot the last version failed to be uploaded as the downloads area has a problem with filesizes at the minute. Until this is sorted please get the latest version directly from the Ceon site.

All the best...

Conor
ceonWas JUST getting ready to tell you this.. :laugh:

12 Nov 2012, 10:39 PM
#930
kanine avatar

kanine

New Zenner

Join Date:
Mar 2008
Location:
Victoria AU
Posts:
48
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

It looks like something is indeed redirecting back but it's not Ceon URI Mapping..

It looks like my looping problem was only happening on my desktop development environment (XAMPP). Once I took the updates and put them up on our hosted test environment the looping issue went away. Maybe something Apache on Windows related then?

Anyway all good, Conor's work is top notch as usual. I'll certainly be making a donation once we go live.

13 Nov 2012, 6:01 AM
#931
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

conor:

Hi,

This functionality was added in 4.2.0 to make it easy for people to use custom product types.. funny, I was very surprised that you'd have posted about this problem, didn't occur to me that you'd not be on the latest version (4.4.1 :) ).

Upgrading will take just a few minutes, then all you need to do is add to that file and support for your custom product type is instantaneous. :)

Saying all that, I've just realised that, outside of the Revision History, I haven't documented this functionality anywhere except in that file itself. Guess I should a wee section to the configuration docs - more work to do then!

Have a good day! New update of Ceon Manual Card to get sorted here..

All the best...

Conor
ceon

conor:

Hi,

I've just realised that the downloads area is very out of date.

I forgot the last version failed to be uploaded as the downloads area has a problem with filesizes at the minute. Until this is sorted please get the latest version directly from the Ceon site.

All the best...

Conor
ceon
Upgrading did the trick.. there were a few additional files from my custom product type that I modified following how other product types had your code applied. I hope that I did the right thing by modifying these files as well.. So far everything seems to be working flawlessly! Thanks for the help as always Conor!!

14 Nov 2012, 1:36 PM
#932
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,

DivaVocals:

Upgrading did the trick.. there were a few additional files from my custom product type that I modified following how other product types had your code applied. I hope that I did the right thing by modifying these files as well.. So far everything seems to be working flawlessly! Thanks for the help as always Conor!!

With the functionality added in 4.2.0 the only thing you needed to do was to add the custom product type's string to the array in the includes/extra_datafiles/ceon_uri_mapping_product_pages.php file, no other changes are needed. I don't know what changes you made but can guess and you can ignore them.. their presence won't mess anything up, nor will wiping those changes (e.g. when upgrading).

Hope that helps!

All the best..

Conor
ceon

14 Nov 2012, 4:01 PM
#933
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

conor:

Hi,

With the functionality added in 4.2.0 the only thing you needed to do was to add the custom product type's string to the array in the includes/extra_datafiles/ceon_uri_mapping_product_pages.php file, no other changes are needed. I don't know what changes you made but can guess and you can ignore them.. their presence won't mess anything up, nor will wiping those changes (e.g. when upgrading).

Hope that helps!

All the best..

Conor
ceon
It does and I will undo the two changes I made that are not needed..

On another note.. I need to send you an an e-mail under separate cover with regards to questions I have regarding the mapping manager and "other" pages..

18 Nov 2012, 12:45 PM
#934
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hi Conor,

I have just upgraded to 4.4.1, and now under the admin modules and settings, there are duplicate menu. Previously, a developer helped to upgrade my cart engine from 1.39h to 1.5, but not the add-on mod, so I just did the upgrade to zc1.5.1; and upgraded CEON mapping too.

Would you know what I might have done wrong? Both the links work the same though, and no error in debug or the installation check.

Appreciate your help. Thank you.

Attachment 11474Attachment 11475

18 Nov 2012, 12:51 PM
#935
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,

saplanet:

I have just upgraded to 4.4.1

What version did you upgrade from?

All the best...

Conor
ceon

18 Nov 2012, 1:35 PM
#936
saplanet avatar

saplanet

New Zenner

Join Date:
Jun 2008
Location:
Singapore, Australia, America
Posts:
97
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

conor:

Hi,

What version did you upgrade from?

All the best...

Conor
ceon

From 4.0.7

19 Nov 2012, 4:34 PM
#937
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,

saplanet:

From 4.0.7

The admin page key didn't change between those versions so I've no explanation for the duplication other than user error when installing. Just use PHPMyAdmin to remove the duplicate key by hand.

All the best...

Conor
ceon

30 Nov 2012, 9:47 PM
#938
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Ceon URI Mapping v4.x

I regret to advise you that Conor passed away last night. Please see http://www.zen-cart.com/showthread.php?202939

7 Dec 2012, 5:21 PM
#939
bobthemolder avatar

bobthemolder

Zen Follower

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

Re: Ceon URI Mapping v4.x

This is terrible to hear about Conor :( I just found the CEON URI module this morning and it's a pretty good tool - after SSU had problems with V1.5 this has picked up the slack.

I didn't want to go through products 1-by-1 to add them to the database, so I put together this script in the past hour to do it automatically.

Open index.php, save it as update-ceon-uri.php and replace the content of <body>...</body> with the following: (make sure to keep the require header.php)

<div style='width:1000px;margin:0 auto;'>

	<p>Categories must be updated manually through the regular store interface before running this script.</p><hr/>

	<?php // display categories to select from
		$categories = mysql_query("SELECT * FROM zen_categories LEFT JOIN zen_categories_description ON zen_categories.categories_id = zen_categories_description.categories_id WHERE zen_categories.categories_status='1'");
		echo "<p>Click on a category to update it's products: <br/>";
		while ($showthiscat = mysql_fetch_assoc($categories)){
			echo "<a href='update-ceon-uri.php?updatecategory=".$showthiscat['categories_id']."'>".$showthiscat['categories_name']."</a>, \n";
		}
		echo "</p><hr/>";
	?>

	<?php 
		$replacechars = array("(",")","'","\""); // specify all characters to be eliminated
		// update all products in category
		$updateuris = mysql_query("SELECT * FROM zen_products WHERE master_categories_id='".$_GET['updatecategory']."'"); 
		while ($thisuri = mysql_fetch_assoc($updateuris)) {
			$productsid = $thisuri['products_id'];
			$productsname = implode(mysql_fetch_assoc(mysql_query("SELECT products_name FROM zen_products_description WHERE products_id='".$productsid."'"))); 
			$catname = implode(mysql_fetch_assoc(mysql_query("SELECT uri FROM zen_ceon_uri_mappings WHERE main_page='index' AND associated_db_id='".$thisuri['master_categories_id']."'")));
			$newuri = $catname."/".strtolower(str_replace(" ","-",$productsname));
			$newuri = str_replace($replacechars,"",$newuri); // remove characters from array above
			$today = date ('Y-m-d G:i:s'); // today
			
		$exists = implode(mysql_fetch_assoc(mysql_query("SELECT * FROM zen_ceon_uri_mappings WHERE main_page='product_info' AND associated_db_id='$productsid'")));	 // used to check if product already exists to do update vs insert
		
		if ($exists) { // if already in zen_ceon_uri_mappings, update
			mysql_query("UPDATE zen_ceon_uri_mappings SET uri='$newuri' WHERE main_page='product_info' AND associated_db_id='$productsid'");
			$result = "Updated... ".mysql_error();
		} else { // else, insert
			mysql_query("INSERT IGNORE INTO zen_ceon_uri_mappings 
						(`uri`, `language_id`, `current_uri`, `main_page`, `query_string_parameters`, `associated_db_id`, `alternate_uri`, `redirection_type_code`, `date_added`) VALUES 
						('$newuri','1','1','product_info',NULL,'$productsid',NULL,NULL,'$today')");
			$result = "Inserted... ".mysql_error();
		}
			echo "<p>$newuri - $result</p>\n"; // display whether updated or inserted and any problems encountered
		}
		
?>

</div><!-- end center div -->

NOTE: It always sets language_id to 1 (english in my case).
NOTE: You'll have to specify all the characters you want removed directly in the $replacechars[] array.
NOTE: You'll have to manually type in http://yoursite.com/admin/update-ceon-uri.php to run the script.

7 Dec 2012, 7:43 PM
#940
lmdief avatar

lmdief

New Zenner

Join Date:
Oct 2011
Posts:
1
Plugin Contributions:
0

Re: Ceon URI Mapping v4.x

Hello,

I had sent email to the email address on CEON website but have not received any reply. I ask Hostgator to installed Ceon Uri Mapping and they received the following errors and wanted me to contact the programmer of this module. Here is the email from Host Gator:

Is there anyone who can help me? Thx

Hi Lila, I apologize for the delay in getting back to you on this. I installed the CEON module, but there were issues with the isntallatioin to the point where I had to spend a considerable amount of time debugging the Zen-Cart installation. In the end, I had to disable the module to get your site's front-end to load properly again as spending more time debugging the issue would extend the downtime. Here's the error that I'm seeing: [05-Dec-2012 13:21:23] PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/lmdief/public_html/includes/classes/class.CeonURIMappingHREFLinkBuilder.php on line 230 [05-Dec-2012 13:21:23] PHP Warning: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument in /home/lmdief/public_html/includes/classes/class.CeonURIMappingHREFLinkBuilder.php on line 231 I didn't bill you for the install as it was not successful. At this juncture, I would recommend contacting the module provider regarding the above error. I have left the ceon files in place so that they can see how we set it up. Although I do also have the pre-installation backup that I made if you would prefer that I restore the files from there. ---------------------------------------------- Thank you for allowing me to help you. Sincerely, Ricardo C. Linux Systems Administrator II HostGator.com, LLC http://support.hostgator.com