Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout_shipping.php


regostein

Recommended Posts

I added PayPal and USPS add-ins and now the links to the checkout box don't work.

When I click on "Checkout" the message I get is

Fatal error: Call to a member function set_snapshot() on a non-object in /home/nwcexcom/public_html/shop/checkout_shipping.php on line 18

 

When I click on "Pay with Paypal" I get

 

Fatal error: Call to a member function set_snapshot() on a non-object in /home/nwcexcom/public_html/shop/ext/modules/payment/paypal/express.php on line 23

 

Seems these are related.

 

Here is the Checkout code. I haven't altered anything, but don't know why this changed.

<?php

/*

$Id: checkout_shipping.php 1739 2007-12-20 00:52:16Z hpdl $

 

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');

require('includes/classes/http_client.php');

 

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

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot();

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

}

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...