Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Checkout page not found?


iceDonkey

Recommended Posts

G'day all,

 

If a guest to my oscommerce site clicks on the checkout link on the top left corner of the shop with no products in the shopping cart it takes them to the login screen and everything is ok.

 

However, when you login and click on the checkout link with no products in the shopping cart it goes to "page not found". If a product is in the cart it proceeds to the correct page.

 

If I hover over the link the page which is supposed to go to when the checkout link is clicked is the checkout_shipping.php page. Obviously as there is no products in the cart, when the link is clicked, the shopping_cart.php should load instead, which it doesn't.

 

I am using shared ssl and when the shopping_cart.php page doesn't load it doesn't have the shared ssl username in the url? Not sure if this is the issue or how to fix it as the sharedd ssl works for everything else.

 

Does anyone know why the appropriate page doesn't load when a product is not added to the cart?

 

Or, why doesn't the ssl username appear in the URL? (ie. secure1.sharedssl.com/~username/shopping_cart.php

 

Any assistance would be greatly appreciated.

 

Cheers,

 

Ice

SEO
Link to comment
Share on other sites

You need to enter the correct path to the secure pages and enable SSL in your configure.php (in the includes folder).

 

Should sort it.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Link to comment
Share on other sites

You need to enter the correct path to the secure pages and enable SSL in your configure.php (in the includes folder).

 

Should sort it.

 

Hello Rob & All,

 

My configure files look in order. SSL was already enabled and the correct path must be ok as I can login and do everything else using it but if I checkout with no porducts selected it goes to the page not found error. If a product is selected and I click on the checkout it goes to checkout shipping with the correct SSL path.

 

I changed the path to test to see if it was the problem. The path initially only showed the shared ssl url without the username (example: 'https://secure.sharedssl.com'). The username for the shared ssl was referenced a few lines down. I deleted that reference and added the username to the end of the shared ssl path. That didn't change anything. I can still login and do everything I need to do however, if I click on the checkout link with no products in my shopping cart it still comes up with the page not found error.

 

I don't think it is related to the congigure file. I think it is related to the reference to the shopping_cart.php from checkout_shipping.php when there are no products in the cart. Can anyone shed some light on this?

 

Here is my current config file anyway:

 

define('HTTP_SERVER', 'http://www.xxxx.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://secure.sharedssl.com/~username'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.xxxx.com');

define('HTTPS_COOKIE_DOMAIN', 'xxxx.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/public_html/');

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/username/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

 

THanks,

 

Ice

SEO
Link to comment
Share on other sites

Without a URL, we can't really check anything.

 

Can you provide one?

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Link to comment
Share on other sites

I've sorted the problem if anyone else is interested.

 

In checkout_shipping.php it was redirecting without SSL.

 

I changed the code:

 

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

 

to:

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'));

 

I had a similar problem in the checkout_success.php file.

 

Cheers,

 

Ice.

SEO
Link to comment
Share on other sites

Awesome., great to see it sorted.

 

Rob

Rob Bell - Inspired Graphix

Customising osCommerce in Australia, and the world!

View my profile for web and email links.

 

I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture.

However viewing my profile may provide links to my website or something like that which you may find useful.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...