Guest Posted January 5, 2011 Share Posted January 5, 2011 Hi Steve, First off let me thank you for your support of onepage checkout and thanks itwebexperts for the great mod. i was always curious why this (Before reporting bugs make sure you can reproduce the issue at www.itwebexperts.com/onepagecheckout) is always on the mods page. That is a standard oscommerce install with nothing else installed on it. I would bet that 99.9 percent of people who install onepage checkout don't have a stock oscommerce site. I have tried installing 1.4 on several sites. With payment mods,paypal,2checkout,googlecheckout,money orders,shipping mods Usps and fedex and CCGV coupons all installed on these sites.I will not post the errors I receive for there is many. However I moved all of them back to 1.2 and took care of all the errors. I haven't looked at the difference in each checkout.php, but 1.4 checkout.php doesn't work. Most people with errors could probably just try the checkout.php from 1.2 if they are getting error that customers can't login or the old dreaded popup please select a shipping or payment option when hitting checkout button. Quote Link to comment Share on other sites More sharing options...
Bradbury Posted January 5, 2011 Share Posted January 5, 2011 One Page Checkout + Sts -> the "login" and "change address" buttons "not working" no popup Please Help!! Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 6, 2011 Share Posted January 6, 2011 Hi Steve, Let me give an update and I'll post the changes so far if anyone is interested. What I did to get the the basic pages up and formatted is to change checkout.php Not only did I have to remove, header.php,footer.php, left_column, but First half of right_column.php as defined. There is still an issue with Java and processing. The extra box that I was having trouble with is make loader page pop up by onecheckout. Turned it off in config, but it is blank and no data when on, which was more confusing. Left oscommerce columns in config true and turned custom right column off. It should also be noted if you use the install.txt in the install.xml page for database entry, be-aware there is an error. The instructions call for 913 to be used twice as an identifier which causes a failure of the last insert table directive. Meaning you have to manually change the table id/seq number. There is no .sql table adjustment in 1.4 as defined. After all that... Everything propagates in the screen just fine. shipping pricing, etc. When you click continue, Java's wheel of forever time pops up and stays, until you break it. It attempts to place some data in to the DB but after this nothing gets processed. This is where I am really weak, Java is a long cry from assembler and C for me.. If you interrupt the process, you get blank fields. but an inserted was attempted. My is a new install. I've checked the code changes to all the files and they all seem to correct. < = Modified checkout.php in catalog added. > = removed 15d14 < require('includes/template_top.php'); 640a640 > <?php require(DIR_WS_INCLUDES . 'header.php'); ?> 642a643,656 > <!-- body //--> > <table border="0" width="100%" cellspacing="3" cellpadding="3"> > <tr> > <?php > if (ONEPAGE_SHOW_OSC_COLUMNS == 'true'){ > ?> > <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> > <!-- left_navigation //--> > <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> > <!-- left_navigation_eof //--> > </table></td> > <?php > } > ?> 949c963,971 < if (ONEPAGE_SHOW_CUSTOM_COLUMN == 'true'){ --- > if (ONEPAGE_SHOW_OSC_COLUMNS == 'true'){ > ?> > <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> > <!-- right_navigation //--> > <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> > <!-- right_navigation_eof //--> > </table></td> > <?php > }elseif (ONEPAGE_SHOW_CUSTOM_COLUMN == 'true'){ 990a1013 > <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> 996,997d1018 < <?php require(DIR_WS_INCLUDES . 'template_bottom.php'); ?> Can anyone walk me through the java process so I know what I'm looking at? I don't want to learn java per say. Stumbling through it is just fine. :) Or correct the issue for 2.3.1. remove the javascript code from onepage checkout.php <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ajaxq.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.pstrength.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ui.js"></script> <script type="text/javascript" language="javascript" src="includes/checkout/checkout.js"></script> and add this in the head tag in includes/template_top.php <?php if (preg_match("/checkout.php/", $PHP_SELF)) { ?> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ajaxq.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.pstrength.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ui.js"></script> <script type="text/javascript" language="javascript" src="includes/checkout/checkout.js"></script> <?php } ?> Steve Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 6, 2011 Share Posted January 6, 2011 One Page Checkout + Sts -> the "login" and "change address" buttons "not working" no popup Please Help!! Hi did you upload and follow the sts install instructions? Steve Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 6, 2011 Share Posted January 6, 2011 Hi Steve, First off let me thank you for your support of onepage checkout and thanks itwebexperts for the great mod. i was always curious why this (Before reporting bugs make sure you can reproduce the issue at www.itwebexperts.com/onepagecheckout) is always on the mods page. That is a standard oscommerce install with nothing else installed on it. I would bet that 99.9 percent of people who install onepage checkout don't have a stock oscommerce site. I have tried installing 1.4 on several sites. With payment mods,paypal,2checkout,googlecheckout,money orders,shipping mods Usps and fedex and CCGV coupons all installed on these sites.I will not post the errors I receive for there is many. However I moved all of them back to 1.2 and took care of all the errors. I haven't looked at the difference in each checkout.php, but 1.4 checkout.php doesn't work. Most people with errors could probably just try the checkout.php from 1.2 if they are getting error that customers can't login or the old dreaded popup please select a shipping or payment option when hitting checkout button. hi yes your right i have tried to replicate some errors behavior i got on my site on theirs but i couldn't as say state wasn't switched on their site but emailed them anyway Steve Quote Link to comment Share on other sites More sharing options...
Bradbury Posted January 6, 2011 Share Posted January 6, 2011 Yes i upload but "sts install instcuction" I can not find in Onepage Checkout_1_2_3_4_5_6_7_8_9.zip. Where to find it? everything works perfectly except for the pop-up windows Quote Link to comment Share on other sites More sharing options...
Bradbury Posted January 6, 2011 Share Posted January 6, 2011 (edited) Yes i upload but "sts install instcuction" I can not find in Onepage Checkout_1_2_3_4_5_6_7_8_9.zip. Where to find it? everything works perfectly except for the pop-up windows Firefox error consol $(document).ready(function (){ $('#pageContentContainer').show(); $('#ajaxMessages').dialog({ shadow: true, modal: true, width: 400, height: 100, open: function (event, ui){ problem: $("#ajaxMessages").dialog is not a function $(this).parent().children().children('.ui-dialog-title').hide(); $(this).parent().children().children('.ui-dialog-titlebar').hide(); $(this).parent().children().children('.ui-dialog-titlebar-close').hide(); Edited January 6, 2011 by Bradbury Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 6, 2011 Share Posted January 6, 2011 Firefox error consol $(document).ready(function (){ $('#pageContentContainer').show(); $('#ajaxMessages').dialog({ shadow: true, modal: true, width: 400, height: 100, open: function (event, ui){ problem: $("#ajaxMessages").dialog is not a function $(this).parent().children().children('.ui-dialog-title').hide(); $(this).parent().children().children('.ui-dialog-titlebar').hide(); $(this).parent().children().children('.ui-dialog-titlebar-close').hide(); Hi in the one page checkout folder you will see a file called checkout.sts.php rename checkout.php to say checkout_old.php now rename checkout.sts.php to checkout.php and upload that file to your server Steve Quote Link to comment Share on other sites More sharing options...
fernyburn Posted January 7, 2011 Share Posted January 7, 2011 Strange problem ..... When a product is entered into the cart and checkout is clicked a blank page is loaded I mean checkout.php shows in the URL, but doesn't actually show any informatio, when checkout is re clicked - the information to add billing and shipping appears any one got any ideas why this is happening thanks ron Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 8, 2011 Share Posted January 8, 2011 Strange problem ..... When a product is entered into the cart and checkout is clicked a blank page is loaded I mean checkout.php shows in the URL, but doesn't actually show any informatio, when checkout is re clicked - the information to add billing and shipping appears any one got any ideas why this is happening thanks ron you have a php error on that page, includes/application.top find the error reporting and add after it ini_set('display_errors', 1); ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); error_reporting(E_ALL); now any errors will be displayed in browser Steve Quote Link to comment Share on other sites More sharing options...
Guest Posted January 8, 2011 Share Posted January 8, 2011 (edited) Hello! I'm not sure if this is a One Page Checkout problem or not but I hope someone might be able to point me in the right direction. I've got One Page Checkout installed along with the Discount Coupon Codes contribution. When I go to edit and update the status of the orders in admin for some reason orders that have a discount coupon applied don't have any of the detail below the "Discount Coupon applied" line. eg.... Order without discount applied - everything fine Order with discount applied - no detail below "Discount Coupon applied" line Obviously I can't update order status etc. which is a problem! Really hope someone can help me out. Any help or advice greatly appreciated as always. Cheers, Mark. Edited January 8, 2011 by punkrockcds.com Quote Link to comment Share on other sites More sharing options...
Bradbury Posted January 8, 2011 Share Posted January 8, 2011 (edited) My problem is this -> Authorization Failed I have been able to open the login box http://www.oscommerce.com/forums/topic/333292-one-page-checkout-support/page__view__findpost__p__1490183 My checkout.php.html -> <?php /* Copyright (c) Freeoscommerce.com 2009 This file is part of a freeoscommerce.com template. Please visit http://www.freeoscommerce.com for licensing and other information. */ ?><!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html $htmlparams> <head> <?php global $language, $languages_id, $breadcrumb; include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?> <?php include (DIR_WS_INCLUDES . 'page-header-inc.htc'); ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="ext/jQuery/themes/smoothness/ui.all.css"> <!--$headcontent--> <link rel="stylesheet" type="text/css" href="$templatedir/freeoscommerce_081_stylesheet.css"> </head> <body> <div id="wrapper1"> <div id="wrapper2"> <!-- Header --> <div id="header_wrapper"> <div id="header"> <div id="top_menu"> <span><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . BOX_HEADING_SPECIALS . '</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT) . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . BOX_HEADING_SHOPPING_CART . '</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING) . '">' . HEADER_TITLE_CHECKOUT . '</a>'; ?></span> <?php if (tep_session_is_registered('customer_id')) { ?> <span><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></span> <?php } ?> </div> </div> <div id="header_background1"></div> <div id="header_background2"></div> </div> <!-- Content and Sidebars--> <div id="wrapper3"> <div id="content_wrapper"> <div id="content"> <div id="navigation"> You are here: $breadcrumbs <br> <hr class="accessibility"> </div> <div> $content </div> </div> </div> <div id="left_sidebar_wrapper"> <div id="left_sidebar"> $categorybox $manufacturerbox $whatsnewbox $cartbox $informationbox </div> </div> <div id="right_sidebar_wrapper"> <div id="right_sidebar"> $catmenu $searchbox $maninfobox $orderhistorybox $bestsellersbox $reviewsbox $tellafriendbox $languagebox $currenciesbox </div> </div> </div> <!-- Footer --> <div id="footer"> <div id="footer_content"> <!-- $analitycs--> This is the footer.<br><br> <a style="color: #000000" href="http://freeoscommerce.com/" target="_blank">Free osCommerce Templates</a> </div> <div id="footer_background1"></div> <div id="footer_background2"></div> </div> <!-- Layout Graphics --> </div> <div id="left_shadow"></div> <div id="right_shadow"></div> </div> <div id="top_background"></div> <div id="main_background"></div> <!-- Website Name/Logo --> <div id="website_name"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a>'; ?></div> </body> </html> <!-- dialogs_bof //--> <div id="loginBox" title="Log Into My Account" style="display:none;"><table cellpadding="2" cellspacing="0" border="0"> <tr> <td class="main">E-Mail Address:</td> <td><input type="text" name="email_address" id="email_address"></td> </tr> <tr> <td class="main">Password:</td> <td><input type="password" name="login_password" maxlength="40" id="login_password"></td> </tr> <tr> <td colspan="2" align="right"><img src="includes/languages/english/images/buttons/button_login.gif" border="0" alt="IMAGE_LOGIN" title=" IMAGE_LOGIN " width="100" height="22" id="loginWindowSubmit"></td> </tr> </table></div> <div id="addressBook" title="Address Book" style="display:none"></div> <div id="newAddress" title="New Address" style="display:none"></div> <!-- dialogs_eof//--> Edited January 8, 2011 by Bradbury Quote Link to comment Share on other sites More sharing options...
fernyburn Posted January 9, 2011 Share Posted January 9, 2011 (edited) Hi Steve ini_set('display_errors', 1);ini_set('log_errors', 1); ini_set('error_log', dirname(__FILE__) . '/error_log.txt'); error_reporting(E_ALL); done that - i have a large list of errors, and i have searched and searched - but cannot find a solution Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/*****/public_html/shop/includes/application_top.php:78) in /home/*****/public_html/shop/includes/functions/sessions.php on line 102 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/*****/public_html/shop/includes/application_top.php:78) in /home/*****/public_html/shop/includes/functions/sessions.php on line 102 Warning: Cannot modify header information - headers already sent by (output started at /home/*****/public_html/shop/includes/application_top.php:78) in /home/*****/public_html/shop/includes/functions/general.php on line 33 the sessions are stored in mysql (bot admin and config checked), there are no whitespaces, line 78 of application_top reads <?php /* $Id: application_top.php 1833 2008-01-30 22:03:30Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2008 osCommerce Released under the GNU General Public License */ // start the timer for the page parse time log define('PAGE_PARSE_START_TIME', microtime()); // set the level of error reporting error_reporting(E_ALL & ~E_NOTICE); // check support for register_globals if (function_exists('ini_get') && (ini_get('register_globals') == false) && (PHP_VERSION < 4.3) ) { exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. Please use PHP 4.3+ if register_globals cannot be enabled on the server.'); } // Set the local configuration parameters - mainly for developers if (file_exists('includes/local/configure.php')) include('includes/local/configure.php'); // include server parameters require('includes/configure.php'); if (strlen(DB_SERVER) < 1) { if (is_dir('install')) { header('Location: install/index.php'); } } // define the project version define('PROJECT_VERSION', 'osCommerce Online Merchant v2.2 RC2a'); // some code to solve compatibility issues require(DIR_WS_FUNCTIONS . 'compatibility.php'); // set the type of request (secure or not) $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL'; // set php_self in the local scope if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; if ($request_type == 'NONSSL') { define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG); } else { define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG); } // include the list of project filenames require(DIR_WS_INCLUDES . 'filenames.php'); // include the list of project database tables require(DIR_WS_INCLUDES . 'database_tables.php'); // customization for the design layout define('BOX_WIDTH', 185); // how wide the boxes should be in pixels (default: 125) // include the database functions require(DIR_WS_FUNCTIONS . 'database.php'); // make a connection to the database... now tep_db_connect() or die('Unable to connect to database server!'); // set the application parameters $configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION); while ($configuration = tep_db_fetch_array($configuration_query)) { define($configuration['cfgKey'], $configuration['cfgValue']); } // if gzip_compression is enabled, start to buffer the output if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) { if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) { if (PHP_VERSION >= '4.0.4') { ob_start('ob_gzhandler'); } else { include(DIR_WS_FUNCTIONS . 'gzip_compression.php'); ob_start(); ob_implicit_flush(); } } else { ini_set('zlib.output_compression_level', GZIP_LEVEL); } } // set the HTTP GET parameters manually if search_engine_friendly_urls is enabled if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { if (strlen(getenv('PATH_INFO')) > 1) { $GET_array = array(); $PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF); $vars = explode('/', substr(getenv('PATH_INFO'), 1)); for ($i=0, $n=sizeof($vars); $i<$n; $i++) { if (strpos($vars[$i], '[]')) { $GET_array[substr($vars[$i], 0, -2)][] = $vars[$i+1]; } else { $HTTP_GET_VARS[$vars[$i]] = $vars[$i+1]; } $i++; } if (sizeof($GET_array) > 0) { while (list($key, $value) = each($GET_array)) { $HTTP_GET_VARS[$key] = $value; } } } } // define general functions used application-wide require(DIR_WS_FUNCTIONS . 'general.php'); require(DIR_WS_FUNCTIONS . 'html_output.php'); // set the cookie domain $cookie_domain = (($request_type == 'NONSSL') ? HTTP_COOKIE_DOMAIN : HTTPS_COOKIE_DOMAIN); $cookie_path = (($request_type == 'NONSSL') ? HTTP_COOKIE_PATH : HTTPS_COOKIE_PATH); // include cache functions if enabled if (USE_CACHE == 'true') include(DIR_WS_FUNCTIONS . 'cache.php'); // include shopping cart class require(DIR_WS_CLASSES . 'shopping_cart.php'); // include navigation history class require(DIR_WS_CLASSES . 'navigation_history.php'); // check if sessions are supported, otherwise use the php3 compatible session class if (!function_exists('session_start')) { define('PHP_SESSION_NAME', 'osCsid'); define('PHP_SESSION_PATH', $cookie_path); define('PHP_SESSION_DOMAIN', $cookie_domain); define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY); include(DIR_WS_CLASSES . 'sessions.php'); } // define how the session functions will be used require(DIR_WS_FUNCTIONS . 'sessions.php'); // set the session name and save path tep_session_name('osCsid'); tep_session_save_path(SESSION_WRITE_DIRECTORY); // set the session cookie parameters if (function_exists('session_set_cookie_params')) { session_set_cookie_params(0, $cookie_path, $cookie_domain); } elseif (function_exists('ini_set')) { ini_set('session.cookie_lifetime', '0'); ini_set('session.cookie_path', $cookie_path); ini_set('session.cookie_domain', $cookie_domain); } // set the session ID if it exists if (isset($HTTP_POST_VARS[tep_session_name()])) { tep_session_id($HTTP_POST_VARS[tep_session_name()]); } elseif ( ($request_type == 'SSL') && isset($HTTP_GET_VARS[tep_session_name()]) ) { tep_session_id($HTTP_GET_VARS[tep_session_name()]); } // start the session $session_started = false; if (SESSION_FORCE_COOKIE_USE == 'True') { tep_setcookie('cookie_test', 'please_accept_for_session', time()+60*60*24*30, $cookie_path, $cookie_domain); if (isset($HTTP_COOKIE_VARS['cookie_test'])) { tep_session_start(); $session_started = true; } } elseif (SESSION_BLOCK_SPIDERS == 'True') { $user_agent = strtolower(getenv('HTTP_USER_AGENT')); $spider_flag = false; if (tep_not_null($user_agent)) { $spiders = file(DIR_WS_INCLUDES . 'spiders.txt'); for ($i=0, $n=sizeof($spiders); $i<$n; $i++) { if (tep_not_null($spiders[$i])) { if (is_integer(strpos($user_agent, trim($spiders[$i])))) { $spider_flag = true; break; } } } } if ($spider_flag == false) { tep_session_start(); $session_started = true; } } else { tep_session_start(); $session_started = true; } if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) { extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS); } // set SID once, even if empty $SID = (defined('SID') ? SID : ''); // verify the ssl_session_id if the feature is enabled if ( ($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == true) && ($session_started == true) ) { $ssl_session_id = getenv('SSL_SESSION_ID'); if (!tep_session_is_registered('SSL_SESSION_ID')) { $SESSION_SSL_ID = $ssl_session_id; tep_session_register('SESSION_SSL_ID'); } if ($SESSION_SSL_ID != $ssl_session_id) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_SSL_CHECK)); } } // verify the browser user agent if the feature is enabled if (SESSION_CHECK_USER_AGENT == 'True') { $http_user_agent = getenv('HTTP_USER_AGENT'); if (!tep_session_is_registered('SESSION_USER_AGENT')) { $SESSION_USER_AGENT = $http_user_agent; tep_session_register('SESSION_USER_AGENT'); } if ($SESSION_USER_AGENT != $http_user_agent) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_LOGIN)); } } // verify the IP address if the feature is enabled if (SESSION_CHECK_IP_ADDRESS == 'True') { $ip_address = tep_get_ip_address(); if (!tep_session_is_registered('SESSION_IP_ADDRESS')) { $SESSION_IP_ADDRESS = $ip_address; tep_session_register('SESSION_IP_ADDRESS'); } if ($SESSION_IP_ADDRESS != $ip_address) { tep_session_destroy(); tep_redirect(tep_href_link(FILENAME_LOGIN)); } } // create the shopping cart & fix the cart if necesary if (tep_session_is_registered('cart') && is_object($cart)) { if (PHP_VERSION < 4) { $broken_cart = $cart; $cart = new shoppingCart; $cart->unserialize($broken_cart); } } else { tep_session_register('cart'); $cart = new shoppingCart; } // include currencies class and create an instance require(DIR_WS_CLASSES . 'currencies.php'); $currencies = new currencies(); // include the mail classes require(DIR_WS_CLASSES . 'mime.php'); require(DIR_WS_CLASSES . 'email.php'); // set the language if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) { if (!tep_session_is_registered('language')) { tep_session_register('language'); tep_session_register('languages_id'); } include(DIR_WS_CLASSES . 'language.php'); $lng = new language(); if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) { $lng->set_language($HTTP_GET_VARS['language']); } else { $lng->get_browser_language(); } $language = $lng->language['directory']; $languages_id = $lng->language['id']; } // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); // Ultimate SEO URLs v2.1 if ((!defined(SEO_ENABLED)) || (SEO_ENABLED == 'true')) { include_once(DIR_WS_CLASSES . 'seo.class.php'); if ( !is_object($seo_urls) ){ $seo_urls = new SEO_URL($languages_id); } } // currency if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) { if (!tep_session_is_registered('currency')) tep_session_register('currency'); if (isset($HTTP_GET_VARS['currency']) && $currencies->is_set($HTTP_GET_VARS['currency'])) { $currency = $HTTP_GET_VARS['currency']; } else { $currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; } } // navigation history if (tep_session_is_registered('navigation') && is_object($navigation)) { if (PHP_VERSION < 4) { $broken_navigation = $navigation; $navigation = new navigationHistory; $navigation->unserialize($broken_navigation); } } else { tep_session_register('navigation'); $navigation = new navigationHistory; } $navigation->add_current_page(); //START SHP tep_set_hidden_products(); //END SHP // Shopping cart actions if (isset($HTTP_GET_VARS['action'])) { // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($HTTP_GET_VARS['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id'); } else { $parameters = array('action', 'pid'); } } switch ($HTTP_GET_VARS['action']) { // customer wants to update the product quantity in their shopping cart case 'update_product' : for ($i=0, $n=sizeof($HTTP_POST_VARS['products_id']); $i<$n; $i++) { if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) { $cart->remove($HTTP_POST_VARS['products_id'][$i]); } else { if (PHP_VERSION < 4) { // if PHP3, make correction for lack of multidimensional array. reset($HTTP_POST_VARS); while (list($key, $value) = each($HTTP_POST_VARS)) { if (is_array($value)) { while (list($key2, $value2) = each($value)) { if (ereg ("(.*)\]\[(.*)", $key2, $var)) { $id2[$var[1]][$var[2]] = $value2; } } } } $attributes = ($id2[$HTTP_POST_VARS['products_id'][$i]]) ? $id2[$HTTP_POST_VARS['products_id'][$i]] : ''; } else { $attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : ''; } $cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // customer adds a product from the products page case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) { $cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+$HTTP_POST_VARS['quantity'], $HTTP_POST_VARS['id']); } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; // performed by the 'buy now' button in product listings and review page case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) { if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id'])); } else { $cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; case 'notify' : if (tep_session_is_registered('customer_id')) { if (isset($HTTP_GET_VARS['products_id'])) { $notify = $HTTP_GET_VARS['products_id']; } elseif (isset($HTTP_GET_VARS['notify'])) { $notify = $HTTP_GET_VARS['notify']; } elseif (isset($HTTP_POST_VARS['notify'])) { $notify = $HTTP_POST_VARS['notify']; } else { tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } if (!is_array($notify)) $notify = array($notify); for ($i=0, $n=sizeof($notify); $i<$n; $i++) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $notify[$i] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] < 1) { tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())"); } } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'notify_remove' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['products_id'])) { $check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { tep_db_query("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'"); } tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')))); } else { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } break; case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) { if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) { tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid'])); } else { $cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1); } } tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters))); break; } } //rmh referral start // set the referral id if (!tep_session_is_registered('referral_id') || isset($HTTP_GET_VARS['ref'])) { if (!tep_session_is_registered('referral_id') && !tep_session_is_registered('customer_id')) { tep_session_register('referral_id'); } if (isset($HTTP_GET_VARS['ref']) && tep_not_null($HTTP_GET_VARS['ref'])) { $referral_id = $HTTP_GET_VARS['ref']; } else { $referral_id = ''; } } //rmh referral end // include the who's online functions require(DIR_WS_FUNCTIONS . 'whos_online.php'); tep_update_whos_online(); // include the password crypto functions require(DIR_WS_FUNCTIONS . 'password_funcs.php'); // include validation functions (right now only email address) require(DIR_WS_FUNCTIONS . 'validations.php'); // split-page-results require(DIR_WS_CLASSES . 'split_page_results.php'); // infobox require(DIR_WS_CLASSES . 'boxes.php'); // auto activate and expire banners require(DIR_WS_FUNCTIONS . 'banner.php'); tep_activate_banners(); tep_expire_banners(); // auto expire special products require(DIR_WS_FUNCTIONS . 'specials.php'); tep_expire_specials(); // calculate category path if (isset($HTTP_GET_VARS['cPath'])) { $cPath = $HTTP_GET_VARS['cPath']; } elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) { $cPath = tep_get_product_path($HTTP_GET_VARS['products_id']); } else { $cPath = ''; } if (tep_not_null($cPath)) { $cPath_array = tep_parse_category_path($cPath); $cPath = implode('_', $cPath_array); $current_category_id = $cPath_array[(sizeof($cPath_array)-1)]; } else { $current_category_id = 0; } // include the breadcrumb class and start the breadcrumb trail require(DIR_WS_CLASSES . 'breadcrumb.php'); $breadcrumb = new breadcrumb; // include the breadcrumb_tags class and start the breadcrumb_tags trail - GemRock require(DIR_WS_CLASSES . 'breadcrumb_tags.php'); $breadcrumb_tags = new breadcrumb_tags; // added code ends - GR $breadcrumb->add(HEADER_TITLE_TOP, HTTP_SERVER); $breadcrumb->add(HEADER_TITLE_CATALOG, tep_href_link(FILENAME_DEFAULT)); // add category names or the manufacturer name to the breadcrumb trail // modified by GemRock for auto fill header tags if (isset($cPath_array)) { for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) { $categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($categories_query) > 0) { $categories = tep_db_fetch_array($categories_query); $breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1))))); $breadcrumb_tags->add($categories['categories_name']); } else { break; } } } elseif (isset($HTTP_GET_VARS['manufacturers_id'])) { $manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'"); if (tep_db_num_rows($manufacturers_query)) { $manufacturers = tep_db_fetch_array($manufacturers_query); $breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id'])); $breadcrumb_tags->add($manufacturers['manufacturers_name']); } } // end of modified code - GR // add the products model to the breadcrumb trail if (isset($HTTP_GET_VARS['products_id'])) { $model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); if (tep_db_num_rows($model_query)) { $model = tep_db_fetch_array($model_query); $breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id'])); } } // added code to prepare for the title tag, description tag & keywords tag - By Gemrock // IF IT'S FIRST TIME TO RUN, THEN ADD 3 NEW FIELDS - CAN BE DELETED ONCE RUN SUCCESSFULLY if (!mysql_query("SELECT title_tag FROM " . TABLE_PRODUCTS_DESCRIPTION)){ tep_db_query("ALTER TABLE " . TABLE_PRODUCTS_DESCRIPTION . " ADD COLUMN title_tag VARCHAR(255) NULL, ADD COLUMN desc_tag TEXT NULL, ADD COLUMN keywords_tag VARCHAR(255) NULL"); } // END OF CODE ADDING FIELDS if (isset($HTTP_GET_VARS['products_id'])) { $header_tags_query = tep_db_query("select products_name, products_description, title_tag, desc_tag, keywords_tag from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); if (tep_db_num_rows($header_tags_query)) { $header_tags = tep_db_fetch_array($header_tags_query); $header_tags[products_name]= trim($header_tags[products_name]); $header_tags[title_tag]= trim(strip_tags($header_tags[title_tag])); $header_tags[desc_tag]= trim(strip_tags($header_tags[desc_tag])); $header_tags[keywords_tag]= trim(strip_tags($header_tags[keywords_tag])); $header_tags[products_description] = substr(preg_replace('/\s\s+/', ' ',(strip_tags($header_tags[products_description]))),0,1000); // if a tag is less than 2 charactors, then use default if (strlen($header_tags[title_tag])< 2) { //set product name as page title $header_tags[title_tag]= $header_tags[products_name]; } //add category name to page title if (strlen($categories['categories_name'])>1) $header_tags[title_tag] = $categories['categories_name'] . ' ' . $header_tags[title_tag]; if (strlen($manufacturers['manufacturers_name'])>1) $header_tags[title_tag] .= ' ' . $manufacturers['manufacturers_name'] . ' ' . $header_tags[title_tag]; if (strlen($header_tags[desc_tag])< 2) $header_tags[desc_tag] = $header_tags[products_description]; if (strlen($header_tags[keywords_tag])< 2) $header_tags[keywords_tag] = $header_tags[products_name]; } } // end of added code - By Gemrock // initialize the message stack for output messages require(DIR_WS_CLASSES . 'messrl = strtoupper($_SERVER['PHP_SELF']); $findString = "CHECKOUT"; $pos = strpos($oscTestForCheckout_url, $findString); if ($pos == 0) { // If not, then delete this held order. It has been abandoned by the user. tep_db_query("delete from " . TABLE_HOLDING_ORDERS . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS_DOWNLOAD . " where orders_id = '" . $held_order . "'"); tep_db_query(%rl = strtoupper($_SERVER['PHP_SELF']); $findString = "CHECKOUT"; $pos = strpos($oscTestForCheckout_url, $findString); if ($pos == 0) { // If not, then delete this held order. It has been abandoned by the user. tep_db_query("delete from " . TABLE_HOLDING_ORDERS . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_PRODUCTS_DOWNLOAD . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_STATUS_HISTORY . " where orders_id = '" . $held_order . "'"); tep_db_query("delete from " . TABLE_HOLDING_ORDERS_TOTAL . " where orders_id = '" . $held_order . "'"); tep_session_unregister('held_order'); } } ?> can you help ! Edited January 9, 2011 by fernyburn Quote Link to comment Share on other sites More sharing options...
fernyburn Posted January 9, 2011 Share Posted January 9, 2011 I have checked for whitespaces on the files, I have checked that the temp in mysql and admin show the same and changed both to /tmp both config files are actually set to sessions 'mysql' and there are sessions in the sql table help Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 10, 2011 Share Posted January 10, 2011 Hello! I'm not sure if this is a One Page Checkout problem or not but I hope someone might be able to point me in the right direction. I've got One Page Checkout installed along with the Discount Coupon Codes contribution. When I go to edit and update the status of the orders in admin for some reason orders that have a discount coupon applied don't have any of the detail below the "Discount Coupon applied" line. eg.... Order without discount applied - everything fine Order with discount applied - no detail below "Discount Coupon applied" line Obviously I can't update order status etc. which is a problem! Really hope someone can help me out. Any help or advice greatly appreciated as always. Cheers, Mark. Hi Mark if you added any code for discount coupons in checkout_proccess.php you will have to add them to paypal ipn payment mod to Steve Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 10, 2011 Share Posted January 10, 2011 My problem is this -> Authorization Failed I have been able to open the login box http://www.oscommerce.com/forums/topic/333292-one-page-checkout-support/page__view__findpost__p__1490183 My checkout.php.html -> <?php /* Copyright (c) Freeoscommerce.com 2009 This file is part of a freeoscommerce.com template. Please visit http://www.freeoscommerce.com for licensing and other information. */ ?><!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html $htmlparams> <head> <?php global $language, $languages_id, $breadcrumb; include_once DIR_WS_MODULES . 'kiss_meta_tags/kiss_meta_tags.php'; ?> <?php include (DIR_WS_INCLUDES . 'page-header-inc.htc'); ?> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="ext/jQuery/themes/smoothness/ui.all.css"> <!--$headcontent--> <link rel="stylesheet" type="text/css" href="$templatedir/freeoscommerce_081_stylesheet.css"> </head> <body> <div id="wrapper1"> <div id="wrapper2"> <!-- Header --> <div id="header_wrapper"> <div id="header"> <div id="top_menu"> <span><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">Home</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_SPECIALS) . '">' . BOX_HEADING_SPECIALS . '</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT) . '">' . HEADER_TITLE_MY_ACCOUNT . '</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . BOX_HEADING_SHOPPING_CART . '</a>'; ?></span> <span><?php echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING) . '">' . HEADER_TITLE_CHECKOUT . '</a>'; ?></span> <?php if (tep_session_is_registered('customer_id')) { ?> <span><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></span> <?php } ?> </div> </div> <div id="header_background1"></div> <div id="header_background2"></div> </div> <!-- Content and Sidebars--> <div id="wrapper3"> <div id="content_wrapper"> <div id="content"> <div id="navigation"> You are here: $breadcrumbs <br> <hr class="accessibility"> </div> <div> $content </div> </div> </div> <div id="left_sidebar_wrapper"> <div id="left_sidebar"> $categorybox $manufacturerbox $whatsnewbox $cartbox $informationbox </div> </div> <div id="right_sidebar_wrapper"> <div id="right_sidebar"> $catmenu $searchbox $maninfobox $orderhistorybox $bestsellersbox $reviewsbox $tellafriendbox $languagebox $currenciesbox </div> </div> </div> <!-- Footer --> <div id="footer"> <div id="footer_content"> <!-- $analitycs--> This is the footer.<br><br> <a style="color: #000000" href="http://freeoscommerce.com/" target="_blank">Free osCommerce Templates</a> </div> <div id="footer_background1"></div> <div id="footer_background2"></div> </div> <!-- Layout Graphics --> </div> <div id="left_shadow"></div> <div id="right_shadow"></div> </div> <div id="top_background"></div> <div id="main_background"></div> <!-- Website Name/Logo --> <div id="website_name"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a>'; ?></div> </body> </html> <!-- dialogs_bof //--> <div id="loginBox" title="Log Into My Account" style="display:none;"><table cellpadding="2" cellspacing="0" border="0"> <tr> <td class="main">E-Mail Address:</td> <td><input type="text" name="email_address" id="email_address"></td> </tr> <tr> <td class="main">Password:</td> <td><input type="password" name="login_password" maxlength="40" id="login_password"></td> </tr> <tr> <td colspan="2" align="right"><img src="includes/languages/english/images/buttons/button_login.gif" border="0" alt="IMAGE_LOGIN" title=" IMAGE_LOGIN " width="100" height="22" id="loginWindowSubmit"></td> </tr> </table></div> <div id="addressBook" title="Address Book" style="display:none"></div> <div id="newAddress" title="New Address" style="display:none"></div> <!-- dialogs_eof//--> hi try this fix that was posted before in this forum If you get the pop up when hitting the continue button on checkout that says password doesn't match it is easy to check. Hit the refresh page button and then you can checkout. This will work. For some reason JS is not working. In checkout.php, find: if (updateTotals == true){ onePage.updateOrderTotals(); } This is around line 432. Add right after: javascript:location.reload(true); Steve Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 10, 2011 Share Posted January 10, 2011 I have checked for whitespaces on the files, I have checked that the temp in mysql and admin show the same and changed both to /tmp both config files are actually set to sessions 'mysql' and there are sessions in the sql table help Hi just curious on this, can you change what php version your hosting site is using ie php5 or php4 change it to php4 and see what happens Steve Quote Link to comment Share on other sites More sharing options...
Guest Posted January 10, 2011 Share Posted January 10, 2011 Hi Mark if you added any code for discount coupons in checkout_proccess.php you will have to add them to paypal ipn payment mod to Steve Hello Steve, Thanks for your help on this. I've added the code to my catalog/includes/modules/payment/paypal_ipn.php but it hasn't made any difference. Is that the right file? Any other suggestions? In the meantime is there another way to update order status? Thanks again, Mark. Quote Link to comment Share on other sites More sharing options...
aeroflight Posted January 11, 2011 Share Posted January 11, 2011 remove the javascript code from onepage checkout.php <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ajaxq.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.pstrength.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ui.js"></script> <script type="text/javascript" language="javascript" src="includes/checkout/checkout.js"></script> and add this in the head tag in includes/template_top.php <?php if (preg_match("/checkout.php/", $PHP_SELF)) { ?> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ajaxq.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.pstrength.js"></script> <script type="text/javascript" language="javascript" src="ext/jQuery/jQuery.ui.js"></script> <script type="text/javascript" language="javascript" src="includes/checkout/checkout.js"></script> <?php } ?> Steve Steve: Thank you for the recommendation. No joy though. Still hanging on java after enter. Checked the database, onecheck creates the entry (ID) but fails to populate any fields. I am curious though checkout.sts.php is recommend below, is there an bug in firefox that I missed? I'll try and break this down later in the week. 2.3.1 is proving to be a slight challenge. Thank you. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2011 Share Posted January 11, 2011 Hi Mark if you added any code for discount coupons in checkout_proccess.php you will have to add them to paypal ipn payment mod to Steve Steve, just wondering if the sort order in Order Totals Modules will cause this problem when it has CCGV. If discount coupons are installed, the sort order is important. Quote Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2011 Share Posted January 11, 2011 Hi just curious on this, can you change what php version your hosting site is using ie php5 or php4 change it to php4 and see what happens Steve fernyburn, is this a Template Monster template? Quote Link to comment Share on other sites More sharing options...
Guest Posted January 11, 2011 Share Posted January 11, 2011 I have checked for whitespaces on the files, I have checked that the temp in mysql and admin show the same and changed both to /tmp both config files are actually set to sessions 'mysql' and there are sessions in the sql table help Is your Template a Template Monster Template? Quote Link to comment Share on other sites More sharing options...
jsalis Posted January 11, 2011 Share Posted January 11, 2011 While doing further testing I have found the following Using KGT with One Page Checkout if the coupon is processed prior to selecting a different table rate shipping method the discount will also apply to the shipping as well as the subtotal. For a fix checkout this post I wrote regarding the includes/classes/discount_coupons.php and how I fixed the issue two post later. I also discovered that the Low Order Fee module apparently does not work in One Page Checkout. Does anybody have Low Order Fee working in One Page Checkout and if so how did you do it?.?.? Lastly I still haven't gotten back to the validation of the New Address and Edit Address functions yet. I hope to do that this afternoon. Quote I run a completely customized osC2.2 RC1 shop with mostly custom modifications that replicate the features of many contributions available except in a way that the data is more easily synced with Quickbooks on a continuous basis. Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2011 Share Posted January 12, 2011 Steve, just wondering if the sort order in Order Totals Modules will cause this problem when it has CCGV. If discount coupons are installed, the sort order is important. Hello Bo, What should the sort order be with discount coupons installed? At the moment I've got... Discount Coupon 4 Low Order Fee Shipping 2 Sub-Total 1 Tax 3 Total 5 Cheers, Mark. Quote Link to comment Share on other sites More sharing options...
steve_s Posted January 12, 2011 Share Posted January 12, 2011 Steve, just wondering if the sort order in Order Totals Modules will cause this problem when it has CCGV. If discount coupons are installed, the sort order is important. no sort order can be the same or it wont work Steve Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.