Re: Simple SEO URL [support thread]
Hi Yellow,
OK. I think I got it working. Made the following change to your mod.
File: init_ssu.php
Location: /includes/init_includes
Line 330 (approx) look for:
Code:
$params .= (isset($_SESSION['languages_code']) && strpos($params, 'language/') === false && $_SESSION['languages_code'] != DEFAULT_LANGUAGE) ? '/language/' . $_SESSION['languages_code'] : '';
Insert after above:
Code:
// Check if Adwords auto-tagging variable has been passed and keep it if it has
if (strpos($params, '/gclid/') !== false) {
$params = str_replace('/gclid/', '?gclid=', $params);
}
Seems to be working so far... I'll check the results over the next few days and confirm...
Thanks!
Chris
Re: Simple SEO URL [support thread]
Nice fix. Let me know if that works, I will incorporate that in the new version
Regards
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
yellow1912
Nice fix. Let me know if that works, I will incorporate that in the new version
Regards
Well... don't need to wait a few days to confirm. It's definitely working now. Yay!
Thanks again for your support and for a great mod!
I look forward to your new version and the Link Alias feature...
Take care,
Chris
Re: Simple SEO URL [support thread]
Quote:
Originally Posted by
yellow1912
Okie, dont add .html, add html only
No dot added when I tried this and still not bringing up the product pages, just the main page.
1 Attachment(s)
Re: Simple SEO URL [support thread]
@MikeyG & ptnan: There is an update posted a couple posts above, not in the upload section yet. That should fix both problem.
http://www.zen-cart.com/forum/showpo...&postcount=614
Now, there is one problem reported earlier, where accessing a link to a (wrong) category link can cause a problem.
Example:
http://demo.rubikintegration.com/zen...st-attrib-c-25
http://demo.rubikintegration.com/zen...attrib-c-25xxx
If you feel adventurous, you can use this new version of includes/init_includest/init_ssu.php
Please note that this version does not include the fix for glid yet, since Im considering the affect that fix may have on links with zenid, and I'm trying various options for that.
Re: Simple SEO URL [support thread]
Yellow,
I have set up the online test site and it is on a top level domain, to mimic exactly what is going on in the important site.
http://www.tecrealtor.com/
SSU is turned on.
You can go to any product and click on a color attribute, the popup works but no image shows up.
Compare this with the real site in the sig., there is no SSU installed there.
Also, when turning SSU off in Admin the images are back, if you need me to do this, just give me a holler in this forum and I will turn SSU off in the test site.
Again, lest you forget, here is the URL to the mod that pops up the js window:
http://www.zen-cart.com/index.php?ma...roducts_id=616
Many thanks.
Re: Simple SEO URL [support thread]
First thing you may need to check:
Here is part of the popup js:
images//large/attributes/R126H_LRG.jpg
Notice how you have 2 // right there?
Re: Simple SEO URL [support thread]
@ckosloff:
Also, in includes\templates\template_default\jscript_dynamic_window_popup.js
Find this line:
writeln('<html><head><title>Loading...</title><style>body{margin-bottom:32px;margin-left:8px;margin-right:8px;margin-top:8px;font-family:tahoma, arial, helvetica, Geneva, sans-serif;}</style>');writeln('<sc'+'ript>');
Replace by:
writeln('<html><head><base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" /><title>Loading...</title><style>body{margin-bottom:32px;margin-left:8px;margin-right:8px;margin-top:8px;font-family:tahoma, arial, helvetica, Geneva, sans-serif;}</style>');writeln('<sc'+'ript>');