Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Seach Engine Friendly URL Support


BlueYon

Recommended Posts

  • Replies 968
  • Created
  • Last Reply

Top Posters In This Topic

Hi BlueYon

Thanks for coming back

Well I have a problem

My site www.myserver.com uses your SEF urls with .html as extension

I am getting www.myserver.com.html\

can you help me to solve this

 

Yes, I can help you. Give me time, I'm juggling doing this, my job, my family and 8 hours of battlefield 2.

 

Also I have updated the script again to iron out a bugs.

Link to comment
Share on other sites

hi guys, i re-did the edits, and it appears to work. but once the items are added to the cart i'm still getting:

 

We have detected that your browser does not support cookies, or has set cookies to be disabled.

:'(

 

when i take off "force cookies" from the admin cp, it adds the item to the cart. once i click around and look at something else, the item is gone from the cart :blink:

 

not sure what i did wrong.

Link to comment
Share on other sites

hi guys, i re-did the edits, and it appears to work. but once the items are added to the cart i'm still getting:

 

We have detected that your browser does not support cookies, or has set cookies to be disabled.

  :'(

 

when i take off "force cookies" from the admin cp, it adds the item to the cart. once i click around and look at something else, the item is gone from the cart  :blink:

 

not sure what i did wrong.

 

Nothing is wrong.

 

This contrib is made to be used together with "force cookies" , if cookies is not enabled in your browser (Ie, firefox, opera osv.) you will get shown a friendly "enable cookie" page stating that you have to enable cookies in your browser.

 

So, you need to do just that.....

 

 

 

A small side note to the author, a rewrite of the code to also enable sessions would be a big pluss.....

 

Then those who force cookies could use it the same way as now, but then it would also work for those who do not/can not force cookies.

Link to comment
Share on other sites

i DO have cookies enabled (both through the admin cp and my browser settings). i tried testing the site in both firefox and IE, same error occured.

 

if anyone wants to try, the url in question is [Link Removed as per User Request]

Edited by andyy15
Link to comment
Share on other sites

i DO have cookies enabled (both through the admin cp and my browser settings). i tried testing the site in both firefox and IE, same error occured.

 

if anyone wants to try, the url in question is [Link Removed as per User Request]

 

 

I went to your site and tried it, and yes something is definetly not right...

 

Do check the settings for cookies both in:

 

includes/configure.php

 

and

 

admin/includes/configure.php

Edited by andyy15
Link to comment
Share on other sites

thanks for the fast response :)

 

here's the settings from includes/configure.php:

define('HTTP_COOKIE_DOMAIN', '[Link Removed as per User Request]');

define('HTTPS_COOKIE_DOMAIN', '[Link Removed as per User Request]');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

 

settings from admin/includes/configure.php:

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', '[Link Removed as per User Request]'); // eg, http://localhost - should not be empty for productive servers
 define('HTTP_CATALOG_SERVER', '[Link Removed as per User Request]');
 define('HTTPS_CATALOG_SERVER', '[Link Removed as per User Request]');
 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', '/home/earwaxw/public_html/earwax/'); // where the pages are located on the server
 define('DIR_WS_ADMIN', '/admin/'); // absolute path required
 define('DIR_FS_ADMIN', '/home/earwaxw/public_html/add-catalog/'); // absolute pate required
 define('DIR_WS_CATALOG', '/'); // absolute path required
 define('DIR_FS_CATALOG', '/home/public_html/earwax/'); // absolute path required
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
 define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '****');
 define('DB_SERVER_PASSWORD', '****');
 define('DB_DATABASE', '****');
 define('USE_PCONNECT', 'false'); // use persisstent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

-- i couldn't find any cookie settings form the admin config, so i posted the whole file

Edited by andyy15
Link to comment
Share on other sites

thanks for the fast response :)

 

here's the settings from includes/configure.php:

define('HTTP_COOKIE_DOMAIN', '[Link Removed as per User Request]');

define('HTTPS_COOKIE_DOMAIN', '[Link Removed as per User Request]');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

 

settings from admin/includes/configure.php:

<?php
/*
�osCommerce, Open Source E-Commerce Solutions
�http://www.oscommerce.com

�Copyright (c) 2003 osCommerce

�Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
�define('HTTP_SERVER', '[Link Removed as per User Request]'); // eg, http://localhost - should not be empty for productive servers
�define('HTTP_CATALOG_SERVER', '[Link Removed as per User Request]');
�define('HTTPS_CATALOG_SERVER', '[Link Removed as per User Request]');
�define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
�define('DIR_FS_DOCUMENT_ROOT', '/home/earwaxw/public_html/earwax/'); // where the pages are located on the server
�define('DIR_WS_ADMIN', '/admin/'); // absolute path required
�define('DIR_FS_ADMIN', '/home/earwaxw/public_html/add-catalog/'); // absolute pate required
�define('DIR_WS_CATALOG', '/'); // absolute path required
�define('DIR_FS_CATALOG', '/home/public_html/earwax/'); // absolute path required
�define('DIR_WS_IMAGES', 'images/');
�define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
�define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
�define('DIR_WS_INCLUDES', 'includes/');
�define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
�define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
�define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
�define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
�define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
�define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
�define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
�define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
�define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
�define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection
�define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
�define('DB_SERVER_USERNAME', '****');
�define('DB_SERVER_PASSWORD', '****');
�define('DB_DATABASE', '****');
�define('USE_PCONNECT', 'false'); // use persisstent connections?
�define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

-- i couldn't find any cookie settings form the admin config, so i posted the whole file

 

 

try to change to this one...

 

define('HTTP_COOKIE_DOMAIN', '.[Link Removed as per User Request]);

define('HTTPS_COOKIE_DOMAIN', '[Link Removed as per User Request]');

Edited by andyy15
Link to comment
Share on other sites

after i applied your edit as well, i got the same error.

 

You will have to change in catalog/includes/configure.php not in catalog/admin/includes/configure.php

 

try this setting

 

define('HTTP_COOKIE_DOMAIN', '');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

Edited by baluvee
Link to comment
Share on other sites

after i applied your edit as well, i got the same error.

 

 

If it still does not work, uninstall the contrib, check that everything is working on the clean store, then reinstall the contrib again following the instructions carefully.

Link to comment
Share on other sites

here's my file:

includes/configure.php

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', '[Link Removed as per User Request]'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', '[Link Removed as per User Request]'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '[Link Removed as per User Request]');
 define('HTTPS_COOKIE_DOMAIN', '[Link Removed as per User Request]');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/home/earwaxw/public_html/earwax/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers
 define('DB_SERVER_USERNAME', '****');
 define('DB_SERVER_PASSWORD', '****');
 define('DB_DATABASE', '****');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Edited by andyy15
Link to comment
Share on other sites

i've uninstalled this mod and checked everything about 4 different times now, no matter what i keep getting the same errors.

 

if someone has time and wants to take a closer look i can issue temp access to the actual files and you can test yourself?

Link to comment
Share on other sites

i've uninstalled this mod and checked everything about 4 different times now, no matter what i keep getting the same errors.

 

if someone has time and wants to take a closer look i can issue temp access to the actual files and you can test yourself?

 

msg, me the ftp address user name and password. I will install fix it if you like.

Link to comment
Share on other sites

Another release:

 

http://www.oscommerce.com/community/contributions,2796

 

Added exit error mesages to make sure people have set everything up correctly after installing.

Updated the code so it no uses less code on the out side of the rewrite.php script.

Fixed a bug that stopped the sorting of columns under the product listing.

Fixed a bug that caused errors to show when changing the language, currency or manufacturer.

Fixed the buy now button bug which did not take the customers to the shopping cart after clicking buy now.

Fixed a bug that took you to the product page after when clicking continue shopping after clicking on the buy now button.

Added a requested feature in the forums to change the extention '/' to what ever trailing extention you want.

Link to comment
Share on other sites

Another release:

 

http://www.oscommerce.com/community/contributions,2796

 

Added exit error mesages to make sure people have set everything up correctly after installing.

Updated the code so it no uses less code on the out side of the rewrite.php script.

Fixed a bug that stopped the sorting of columns under the product listing.

Fixed a bug that caused errors to show when changing the language, currency or manufacturer.

Fixed the buy now button bug which did not take the customers to the shopping cart after clicking buy now.

Fixed a bug that took you to the product page after when clicking continue shopping after clicking on the buy now button.

Added a requested feature in the forums to change the extention '/' to what ever trailing extention you want.

 

 

Thanks a Lot BlueYon.

Thanks for your time on this

Now one more thing it is writing a new cache file called "also_purchased-english.cachexx"

it is okai? if possible can you help me to write the contents to url_cache file?

Thanks

Link to comment
Share on other sites

thanks!! :D

 

am i doing something wrong, or does it only allow a max of 3 items? at the moment i have:

 

2 x Foetopsy - Dyspartum Shirt

1 x Liturgy - Dawn of Ash Vinyl LP

 

but i can't add the CD to the cart

Link to comment
Share on other sites

thanks!! :D

 

am i doing something wrong, or does it only allow a max of 3 items? at the moment i have:

 

2 x? Foetopsy - Dyspartum Shirt

1 x? Liturgy - Dawn of Ash Vinyl LP

 

but i can't add the CD to the cart

 

Do you have your site set up correctly in the admin. Maybe somthing to do with allow configuration -> stock.

 

The errors in your site is not my contribtuions fault. You have a some type of buy now mod added that uses a forms in the product listing. There is no reason to use this type of contribution.

Edited by BlueYon
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...