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

Ceon URI Mapping (SEO)

Locked

Views: 472,304

Results 2,161 to 2,180 of 2,913
This thread is locked. New replies are disabled.
23 Nov 2010, 7:39 PM
#2161
conor avatar

conor

Passed

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

Ceon URI Mapping (SEO)

Hi,

Mustang394:

Giving it a specific page to return has fixed the problem somewhat but the pop up with the order ID does not display.

I'm afraid I'm not really sure what you are talking about as I've never seen the module in operation before. It sounds like you may need to add a condition to the rewrite rule to stop it blocking some sort of popup page from being displayed, or something like that.

I hope you can get any remaining problems fixed.

All the best..

Conor
ceon

29 Nov 2010, 11:08 AM
#2162
fangy avatar

fangy

New Zenner

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

Re: Ceon URI Mapping (SEO)

Hi, i have problem with automatic switching of currencies.
It appears, that when i will switch to new language, $_GET['language'] never arrives to /includes/init_includes/init_currencies.php.

Any ideas?
BTW: great work with this SEO module.

ZC 1.3.9c

29 Nov 2010, 1:06 PM
#2163
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

fangy:

It appears, that when i will switch to new language, $_GET['language'] never arrives to /includes/init_includes/init_currencies.php.

Ceon URI Mapping does indeed replace Zen Cart's language switch handling. However,it is set in the init_system to run **before **the currencies' init script, so should not affect it (unless there's a bug in my code).

Have you changed or overridden includes/auto_loaders/config.core.php ?

The currencies initialisation code should run at breakpoint 120:

$autoLoadConfig[120][] = array('autoType'=>'init_script',
                                 'loadFile'=> 'init_currencies.php');
```Ceon URI Mapping's init script should run at breakpoint 99.

If yours don't, that's most likely the source of your problems.

If they do then I'll need a lot more information from you.. the exact sequence of the actions you are performing, the exact URIs that you are seeing, and what you are expecting to see but aren't.

All the best..

Conor
[ceon](http://dev.ceon.net)
29 Nov 2010, 1:17 PM
#2164
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

It turns out it is kindof a bug.

When the language is changed in Ceon URI Mapping, it actually unsets the language parameter so that it isn't added to all the URIs (Zen Cart would otherwise always append it like: yoursite.com/your-category?language=XX).

The only script that uses $_GET['language'] outside of the languages script (which is already superseded by Ceon URI Mapping) is of course init_currencies.php.. so that's the problem!

As far as I can see, the only sideeffect of the current code is that when you switch language, the currency doesn't reset to the default language currency for the store.. is that the behaviour you were expecting that isn't occurring?

If so, I think the following may fix things, please try it:

In includes/init_includes/init_currencies.php change

if ($new_currency == false || isset($_GET['language'])) $new_currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? zen_currency_exists(LANGUAGE_CURRENCY) : $new_currency;
```to

```php
if ($new_currency == false || $language_changed)  $new_currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ?  zen_currency_exists(LANGUAGE_CURRENCY) : $new_currency;
```Let me know how you get on.

Again, if there are any problems, I'll need a full diagnosis by you about what exact steps you are taking, what URIs you are using and what you are expecting to see happen.

All the best..

Conor
[ceon](http://dev.ceon.net)
29 Nov 2010, 3:28 PM
#2165
fangy avatar

fangy

New Zenner

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

Re: Ceon URI Mapping (SEO)

Hi, i have no changes in autoloaders, BP 120 and 99 are ok.

My problem is "Switch To Default Language Currency" option in Zen-Cart is turned on...
When i will try to switch language (everywhere - in listing or product detail) Zen will not switch currency to right one for the chosen language.
Im not really Zen expert, but i think the problem is it this $_GET[language] in this init currency file. This is empty.

Your script doesnt work too?! It looks like this $language_changed is still empty. When im changing my language or not :)

29 Nov 2010, 4:49 PM
#2166
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

That was the wrong line to try changing I think. I think you might want to try changing the following:

(isset($_GET['language']) && USE_DEFAULT_LANGUAGE_CURRENCY == 'true' && LANGUAGE_CURRENCY != $_SESSION['currency']  )

to

(isset($language_changed) && $language_changed && USE_DEFAULT_LANGUAGE_CURRENCY == 'true' && LANGUAGE_CURRENCY != $_SESSION['currency']  )

For the functionality work you must have defined the correct language code for LANGUAGE_CURRENCY for each language you are using. (This is done in the main languages file for the language).

Let me know how you get on.

All the best..

Conor
ceon

29 Nov 2010, 9:31 PM
#2167
shirleyujest avatar

shirleyujest

New Zenner

Join Date:
Sep 2008
Location:
Central Coast of California
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I cannot create a new customer account when testing. I also cannot add an item to my cart. I am wondering if it has something to do with my .htaccess file. Do I need to add something about not rewriting the customer.php?

This is what my .htaccess file looks like:

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

RewriteEngine On

RewriteCond %{HTTP_HOST} ^rondajane.com$ [NC]
RewriteCond %{REQUEST_URI} !^/myadmin [NC]
RewriteCond %{REQUEST_URI} !^/editors [NC]

RewriteRule ^(.*)$ http://www.rondajane.com/$1 [R=301,L]

Don't rewrite any URIs ending with a file extension (ending with .[xxxxx])

RewriteCond %{REQUEST_URI} !.[a-z]{2,5}$ [NC]

Don't rewrite admin directory

RewriteCond %{REQUEST_URI} !^/myadmin [NC]

Don't rewrite editors directory

RewriteCond %{REQUEST_URI} !^/editors [NC]

Don't rewrite cPanel directories

RewriteCond %{REQUEST_URI} !/cpanel [NC]
RewriteCond %{REQUEST_URI} !/frontend [NC]

Handle all other URIs using Zen Cart (index.php)

RewriteRule .* index.php?%{QUERY_STRING} [L]

Any suggestions?
Thank you.
Ronda
https://www.rondajane.com

30 Nov 2010, 4:38 AM
#2168
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

A few questions...

Wondering if CEON seo module is compatible with 1.3.9h?

I upgraded from 1.3.8a ZC to 1.3.9h and had to turn off ceon as site wouldn't load when enabled.

So I may have not integrated the CEON correctly into 1.3.9h? but want to make sure.

Also...

I see there is a CEON 3.6.3 to download from ZC modules.

But CEON website has: Version 3.8.0 ?

Which is the most current or best one to use in 1.3.9h?

Lastly, if I did botch the MOD during ZC upgrade... if I reinstall CEON (carefully) will that be ok? or do I need to ensure ALL previous install is removed?

Thanks for input.

30 Nov 2010, 6:08 AM
#2169
shirleyujest avatar

shirleyujest

New Zenner

Join Date:
Sep 2008
Location:
Central Coast of California
Posts:
22
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

I tried turning off Ceon uri's but that didn't help.

Ronda

30 Nov 2010, 6:41 AM
#2170
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

conor:

That was the wrong line to try changing I think. I think you might want to try changing the following:

I'd an inkling - and then was able to test and confirm - that the reason the currency doesn't change when you switch language is that Ceon URI Mapping redirects to the page for the new language.. as it doesn't set the updated currency data for the session the currency remains as it was.

I'll have to upgrade the software to move the automatic changing of the currency into the Ceon URI Mapping language handling code. Effectively making the Zen Cart init_currencies script useful only for non-URI mapped URIs (which is fine).

It'll be version 4.0.0 that this upgraded functionality is part of.. so probably a few weeks off being released. It's not a massive problem so I hope you don't mind waiting.

All the best..

Conor
ceon

30 Nov 2010, 6:48 AM
#2171
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Muzz:

Wondering if CEON seo module is compatible with 1.3.9h?

Yes, just use the files for 1.3.9d. The differences are only tiny HTML differences. You can then upgrade to 4.0.0 when it's released with specific files for 1.3.9h.

Muzz:

Which is the most current or best one to use in 1.3.9h?

**Always **use the one with the highest version number.

Muzz:

Lastly, if I did botch the MOD during ZC upgrade... if I reinstall CEON (carefully) will that be ok? or do I need to ensure ALL previous install is removed?

Just reinstall from the beginning. No need to remove anything.

Good luck getting it right this time round! :)

All the best..

Conor
ceon

30 Nov 2010, 6:54 AM
#2172
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Thanks for the advice. Will try a reinstall :)

30 Nov 2010, 7:59 AM
#2173
fangy avatar

fangy

New Zenner

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

Re: Ceon URI Mapping (SEO)

Hi, i made some debugging in my init_currencies...
here is a code i have added:

echo "USE_DEFAULT_LANGUAGE_CURRENCY: ".USE_DEFAULT_LANGUAGE_CURRENCY;
echo " LANGUAGE_CURRENCY: ".LANGUAGE_CURRENCY;
echo " language_changed: ". $language_changed;
if(empty($language_changed)){echo "blank";}
  else {
  if($language_changed){echo "true";}
  if(!$language_changed){echo "false";}
  }
echo " get_language: ";
if (isset($_GET['language'])) {echo " language: ".$_GET['language'];}
  else
  {echo "blank";}
echo " new_currency: ".$new_currency;
echo " sess_currency: ".$_SESSION['currency'];
echo " get_currency: ".$_GET['currency'];

answers are like:
USE_DEFAULT_LANGUAGE_CURRENCY: true LANGUAGE_CURRENCY: PLN language_changed: blank get_language: blank new_currency: CZK sess_currency: CZK get_currency:
USE_DEFAULT_LANGUAGE_CURRENCY: true LANGUAGE_CURRENCY: EUR language_changed: blank get_language: blank new_currency: CZK sess_currency: CZK get_currency:
USE_DEFAULT_LANGUAGE_CURRENCY: true LANGUAGE_CURRENCY: CZK language_changed: blank get_language: blank new_currency: CZK sess_currency: CZK get_currency:

It looks like "$new_currency = ..." statements above are bad. Language is changinw well, new currency code is OK. Page is shown in right language, but only this script doesn know, that he must tu change currency.

$new_currency = (isset($_GET['currency'])) ? zen_currency_exists($_GET['currency']) : zen_currency_exists($_SESSION['currency']);

session currency is set i to CZK, whitch is default currency for e-shop. this is ok
get_currency is not set

30 Nov 2010, 8:05 AM
#2174
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

fangy:

Hi, i made some debugging in my init_currencies...

Please see my above post relating to this.

Just ignore this for the meantime until I have time to get 4.0.0 out.

All the best..

Conor
ceon

30 Nov 2010, 10:10 AM
#2175
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

CEON not working for me in 1.3.9h

OKies so as mentioned above I upgraded from 1.3.8a to 1.3.9h

I thought I may have broke something in one of the files required for the MOD to work.

I d/l from the CEON website 3.8.0 and compared the files.

I also compared to the RAW 1.3.9h files etc... all is good.

I can see the module installed in the admin area. I can use the tool and exclude files etc and save with NO errors.

However, as soon as I enable CEON the home page loads a 404 error.

A couple thing to mention.

The site is currently installed in a sub directory. (testing purposes)

when the new 1.3.9h site fails.

mywebsite.com.au/mystore

404 error loads inside cart.

If I click on ANY link in my menu it loads the LIVE (1.3.8a) site addressing ??

mywebsite.com.au

is my LIVE site addressing and this works no issues. (This also has CEON installed and working)

If I have CEON OFF in the NEW 1.3.9h cart the cart works no issues.

Any ideas on where I go from here?

30 Nov 2010, 11:04 AM
#2176
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

Muzz:

The site is currently installed in a sub directory. (testing purposes)

You can't upgrade a site and move it to a subdirectory.

You must create a **subdomain **for testing, NOT a subdirectory.

The links for a site which is not in a subdirectory can NEVER work in a site which IS in a subdirectory. Same as the same address in real life can't mean two different places. You can only have ONE real address or URI.

Move the test site from the subdirectory or simply forget about using Ceon URI Mapping until you have: disable Ceon URI Mapping and get rid of the .htaccess file in the subdirectory.

When you move the test site into the main directory you can use the .htaccess file you'd originally set up for the main/live site.

These are your only realistic options (using a subdomain or switching URI mapping off).

Hope that saves you some time.

All the best..

Conor
ceon

1 Dec 2010, 7:20 PM
#2177
vooboo13 avatar

vooboo13

New Zenner

Join Date:
Dec 2009
Posts:
55
Plugin Contributions:
0

Re: Ceon URI Mapping (SEO)

Hey Conor,

Hope all is well! I'm running Zen-Cart 1.3.9h and tried using the updated modified_core_files inside the "1.3.9f" folder because that was the highest letter available in the 3.8 package. That ended up not working. I noticed a few posts back that you recommend using 1.3.9d to update it.

Would using 1.3.9f have caused the issues? My site basically wouldn't load when I updated using those files (the 1.3.9f ones).

Anyway, I'll wait for 4.0 to come. For some reason I'm not getting the email updates about the releases too. Not sure what's going on.

Thanks for all the awesome zen cart addons! :)

1 Dec 2010, 7:49 PM
#2178
conor avatar

conor

Passed

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

Re: Ceon URI Mapping (SEO)

Hi,

How are you? :)

vooboo13:

Would using 1.3.9f have caused the issues? My site basically wouldn't load when I updated using those files (the 1.3.9f ones).

The differences between 1.3.9d and f are so small that you can use the files for 1.3.9d without changing them for 1.3.9f.

I will be supplying exact modified files for 1.3.9f with the next release but that's not the source of your problem.

You may not have merged the files properly with any current modifications you have to the files?

Certainly, there's no reason that 3.8.0 should not work perfectly on a 1.3.9f site.. it is on many!

Try merging the files again. If you are still having trouble, get in contact with me privately with a little description of the problems you are having and I should be able to help.

vooboo13:

Anyway, I'll wait for 4.0 to come. For some reason I'm not getting the email updates about the releases too. Not sure what's going on.

Oh, sorry, I haven't had time to finish writing the e-mail software (haven't worked on it since 2009!) so I've never sent out any e-mail update notices! :|

Hopefully I can get the e-mail software finished before Christmas. :) If I can ever get finished updating Zen Cart modules that is! :(

vooboo13:

Thanks for all the awesome zen cart addons! :)

Thanks for the nice comments, I'm glad you like the software!

All the best...

Conor
ceon

1 Dec 2010, 10:31 PM
#2179
mjpwall avatar

mjpwall

New Zenner

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

Re: Ceon URI Mapping (SEO)

Hi, I've been redirecting static product URLs for deleted products using the supplied instruction and it works without fault, however I tried to do the same thing for a manufacturer and can't get it to work, any ideas?

thanks for any help and for some great software

1 Dec 2010, 10:43 PM
#2180
mjpwall avatar

mjpwall

New Zenner

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

Re: Ceon URI Mapping (SEO)

ignore last post, tried it again and it works just fine, don't know what I did wrong, but hey as usual the software works perfectly, thanks again