Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SUCCESS CHECKOUT ERROR


skeeweeaka

Recommended Posts

Hi,

 

I went into success_checkout.php and changed some of the text. However, for some odd reason I am getting an error message: Can someone plesae tell me what I've changed that was incorrect?

 

 

 

Fatal error: Call to undefined function: tep_href_link() in /hsphere/local/home/skeeweea/absolutelybeautifulhairillusions.com/catalog/checkout_success.php on line 20

 

 

<?php

/*

$Id: checkout_success.php,v 1.12 2003/04/15 17:47:42 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2002 osCommerce

 

Released under the GNU General Public License

*/

 

define('NAVBAR_TITLE_1', 'Checkout');

define('NAVBAR_TITLE_2', 'Success');

 

define('HEADING_TITLE', 'Your Order Has Been Processed!');

 

define('TEXT_SUCCESS', 'Your order has been successfully processed! Your products will arrive at their destination within 2-5 working days. However, custom orders take 5-6 weeks!');

define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.');

define('TEXT_CONTACT_STORE_OWNER', 'Please direct any questions you have to <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">customer service</a>.');

define('TEXT_THANKS_FOR_SHOPPING', 'Thanks for shopping with Absolutely Beautiful Hair Illusions online!');

 

define('TABLE_HEADING_COMMENTS', 'Enter a comment for the order processed');

 

define('TABLE_HEADING_DOWNLOAD_DATE', 'Expiry date: ');

define('TABLE_HEADING_DOWNLOAD_COUNT', ' downloads remaining');

define('HEADING_DOWNLOAD', 'Download your products here:');

define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\'');

?>

 

Thanks! :'(

Link to comment
Share on other sites

I just noticed that the error was directing me to the other success folder under catalog...

 

Here is what is listed. I am receiving this error when completing an order using the Paypal contribution.... I have done this several times and never received the error...

 

<?php

/*

$Id: checkout_success.php,v 1.49 2003/06/09 23:03:53 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// if the customer is not logged on, redirect them to the shopping cart page

if (!tep_session_is_registered('customer_id')) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

 

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {

$notify_string = 'action=notify&';

$notify = $HTTP_POST_VARS['notify'];

if (!is_array($notify)) $notify = array($notify);

for ($i=0, $n=sizeof($notify); $i<$n; $i++) {

$notify_string .= 'notify[]=' . $notify[$i] . '&';

}

if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));

Link to comment
Share on other sites

I just noticed that the error was directing me to the other success folder under catalog...

 

Here is what is listed. I am receiving this error when completing an order using the Paypal contribution.... I have done this several times and never received the error...

 

<?php

/*

$Id: checkout_success.php,v 1.49 2003/06/09 23:03:53 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require('includes/application_top.php');

 

// if the customer is not logged on, redirect them to the shopping cart page

if (!tep_session_is_registered('customer_id')) {

tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

}

 

if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'update')) {

$notify_string = 'action=notify&';

$notify = $HTTP_POST_VARS['notify'];

if (!is_array($notify)) $notify = array($notify);

for ($i=0, $n=sizeof($notify); $i<$n; $i++) {

$notify_string .= 'notify[]=' . $notify[$i] . '&';

}

if (strlen($notify_string) > 0) $notify_string = substr($notify_string, 0, -1);

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));

 

 

try change this:

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));[/b]

 

to this:

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, $notify_string));

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Hi,

 

I went into success_checkout.php and changed some of the text. However, for some odd reason I am getting an error message: Can someone plesae tell me what I've changed that was incorrect?

Fatal error: Call to undefined function: tep_href_link() in /hsphere/local/home/skeeweea/absolutelybeautifulhairillusions.com/catalog/checkout_success.php on line 20

<?php

/*

$Id: checkout_success.php,v 1.12 2003/04/15 17:47:42 dgw_ Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright ? 2002 osCommerce

 

Released under the GNU General Public License

 

on line 20 change it to this:

 

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.');

*/

 

define('NAVBAR_TITLE_1', 'Checkout');

define('NAVBAR_TITLE_2', 'Success');

 

define('HEADING_TITLE', 'Your Order Has Been Processed!');

 

define('TEXT_SUCCESS', 'Your order has been successfully processed! Your products will arrive at their destination within 2-5 working days. However, custom orders take 5-6 weeks!');

define('TEXT_NOTIFY_PRODUCTS', 'Please notify me of updates to the products I have selected below:');

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.');

define('TEXT_CONTACT_STORE_OWNER', 'Please direct any questions you have to <a href="' . tep_href_link(FILENAME_CONTACT_US) . '">customer service</a>.');

define('TEXT_THANKS_FOR_SHOPPING', 'Thanks for shopping with Absolutely Beautiful Hair Illusions online!');

 

define('TABLE_HEADING_COMMENTS', 'Enter a comment for the order processed');

 

define('TABLE_HEADING_DOWNLOAD_DATE', 'Expiry date: ');

define('TABLE_HEADING_DOWNLOAD_COUNT', ' downloads remaining');

define('HEADING_DOWNLOAD', 'Download your products here:');

define('FOOTER_DOWNLOAD', 'You can also download your products at a later time at \'%s\'');

?>

 

Thanks! :'(

 

on line 20 change it to this:

 

define('TEXT_SEE_ORDERS', 'You can view your order history by going to the <a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">\'My Account\'</a> page and by clicking on <a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">\'History\'</a>.');

Wade Morris

Amarillo, Texas

 

Before you do any changes on your site you need to do BACKUP! BACKUP!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...