crust Posted December 27, 2004 Posted December 27, 2004 I get this message when i try to check out.. Parse error: parse error, unexpected '=' in /home/crust/public_html/checkout_payment.php on line 84 here is my complete file. im still new at this, where do you start counting lines and do you count the spaces inbetween? what do i need to change? <?php /* $Id: checkout_payment.php,v 1.113 2003/06/29 23:03:27 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 login page if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } // if there is nothing in the customers cart, redirect them to the shopping cart page if ($cart->count_contents() < 1) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } // if no shipping method has been selected, redirect the customer to the shipping method selection page if (!tep_session_is_registered('shipping')) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } // avoid hack attempts during the checkout procedure by checking the internal cartID if (isset($cart->cartID) && tep_session_is_registered('cartID')) { if ($cart->cartID != $cartID) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } } // Stock Check if ( (STOCK_CHECK == 'true') && (STOCK_ALLOW_CHECKOUT != 'true') ) { $products = $cart->get_products(); for ($i=0, $n=sizeof($products); $i<$n; $i++) { if (tep_check_stock($products[$i]['id'], $products[$i]['quantity'])) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); break; } } } // if no billing destination address was selected, use the customers own address as default if (!tep_session_is_registered('billto')) { tep_session_register('billto'); $billto = $customer_default_address_id; } else { // verify the selected billing address $check_address_query = tep_db_query("select count(*) as total from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$customer_id . "' and address_book_id = '" . (int)$billto . "'"); $check_address = tep_db_fetch_array($check_address_query); if ($check_address['total'] != '1') { $billto = $customer_default_address_id; if (tep_session_is_registered('payment')) tep_session_unregister('payment'); } } require(DIR_WS_CLASSES . 'order.php'); $order = new order; if (!tep_session_is_registered('comments')) tep_session_register('comments'); $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); // load all enabled payment modules require(DIR_WS_CLASSES . 'payment.php'); $payment_modules = new payment; require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT); $breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2, tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); $content = CONTENT_CHECKOUT_PAYMENT; $javascript = $content . '.js.php'; require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PN=MS; require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Guest Posted December 27, 2004 Posted December 27, 2004 for editing the files locally, search for and download a free php editor as they will also include line #'s, and you can tell what is what. you are missing a ) in the line. version of osCommerce are you using?
crust Posted December 27, 2004 Author Posted December 27, 2004 for editing the files locally, search for and download a free php editor as they will also include line #'s, and you can tell what is what. you are missing a ) in the line. version of osCommerce are you using? <{POST_SNAPBACK}> 2.2 . What line is it and where does it go? thanks.
crust Posted December 27, 2004 Author Posted December 27, 2004 line 84. what are you installing? <{POST_SNAPBACK}> not installing anything, just trying to get it to work, it did this by itself, I count line 84 to be this: require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PN=MS; is this right? do i change it to: require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PN=MS;)
Guest Posted December 27, 2004 Posted December 27, 2004 the standard version of osCommerce does not have a 'templates' at line 84 is why i am asking
crust Posted December 27, 2004 Author Posted December 27, 2004 the standard version of osCommerce does not have a 'templates' at line 84 is why i am asking <{POST_SNAPBACK}> probably someting my programmer installed, I really dont know, he installed a template for me and a couple contrubutions, paypal ipn, and header tags controller, I dont really know to much else im not a programmer, but i get stuck with trying to fix these problems when they come up, im currently downloading a php editor to help me out, but is that what I need to change it to to get it to work?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.