Re: Fast and Easy Checkout
Never mind and apologies for the bug-report:blush:. The person who performed the installation failed to RTFM, so the changes required to /includes/classes/order.php to make a distinction between a guest order (pointing to the orders_status page) and a regular order (pointing to the account_history_info page) were not performed. That's one of the downsides of having "hidden" updates (i.e. readme-only) since a lot of people don't bother to read the readme, assuming that copying/merging the files in the plugin's distribution is sufficient.
I'm off to (1) upgrade to v1.15.3 and (2) perform the missing core-file updates.
Re: Fast and Easy Checkout
So, I performed the upgrade from 1.14.3 to 1.15.3 ... including the core-file updates this time. My comments:
- The upgrade did not preserve my original settings. Luckily, I installed first on a local copy so that I could see what the settings were on the live site.
- Clicking through on the order_status page link in a customer email didn't go to the order's history. A couple of updates were needed to /includes/modules/pages/order_status/header_php.php:
Code:
<?php
/**
*
* @package page
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: J_Schilz for Integrated COWOA - 14 April 2007
*/
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_ACCOUNT_HISTORY_INFO');
if (!isset($_REQUEST['order_id']) || (isset($_REQUEST['order_id']) && !is_numeric($_REQUEST['order_id'])))
$errorInvalidID=TRUE;
$query_email_address = trim($_REQUEST['query_email_address']);
if(!isset($query_email_address) || zen_validate_email($query_email_address) == false)
$errorInvalidEmail=TRUE;
if(!$errorInvalidID && !$errorInvalidEmail)
{
$customer_info_query = "SELECT customers_email_address, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country,
billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country
FROM " . TABLE_ORDERS . "
WHERE orders_id = :ordersID";
$customer_info_query = $db->bindVars($customer_info_query, ':ordersID', $_REQUEST['order_id'], 'integer'); //-20140929-lat9-Changed from $_POST to $_REQUEST
$customer_info = $db->Execute($customer_info_query);
if (isset($query_email_address) && $customer_info->fields['customers_email_address'] != $query_email_address && $customer_info->fields['customers_email_address'] != $query_email_address . '.')
$errorNoMatch=TRUE;
else
{
$statuses_query = "SELECT os.orders_status_name, osh.date_added, osh.comments
FROM " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh
WHERE osh.orders_id = :ordersID
AND osh.orders_status_id = os.orders_status_id
AND os.language_id = :languagesID
AND osh.customer_notified >= 0
ORDER BY osh.date_added";
$statuses_query = $db->bindVars($statuses_query, ':ordersID', $_POST['order_id'], 'integer');
$statuses_query = $db->bindVars($statuses_query, ':languagesID', $_SESSION['languages_id'], 'integer');
$statuses = $db->Execute($statuses_query);
while (!$statuses->EOF) {
$statusArray[] = array('date_added'=>$statuses->fields['date_added'],
'orders_status_name'=>$statuses->fields['orders_status_name'],
'comments'=>$statuses->fields['comments']);
$statuses->MoveNext();
}
require(DIR_WS_CLASSES . 'order.php');
$order = new order($_REQUEST['order_id']); //-20140929-lat9-Changed from $_POST to $_REQUEST
}
}
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_ACCOUNT, '', 'SSL'));
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_ACCOUNT_HISTORY_INFO');
?>
Re: Fast and Easy Checkout
Okay, I spent the last 3 days searching and normally I can find an answer. But for the life of me I am stumped on this one!
I installed the latest and greatest Zen Cart along with latest and greatest FEC checkout. Everything looks great “But” for some reason the checkout pages 1-3 and 2-3 look good, but when you go to Confirmation page 3-3 the FEC box wrappers are gone.
Don’t get me wrong, it has all the normal text that it needs to function and confirm he order, but the FEC box wrapper is missing. (It’s killing me!)
Any help would be greatly appreciated. I will post the website, but do not use any personal information on the checkout. I am waiting for the EV SSL to process and install.
customboatcables.co m
Re: Fast and Easy Checkout
Quote:
Originally Posted by
gregsmarine
Okay, I spent the last 3 days searching and normally I can find an answer. But for the life of me I am stumped on this one!
I installed the latest and greatest Zen Cart along with latest and greatest FEC checkout. Everything looks great “But” for some reason the checkout pages 1-3 and 2-3 look good, but when you go to Confirmation page 3-3 the FEC box wrappers are gone.
Don’t get me wrong, it has all the normal text that it needs to function and confirm he order, but the FEC box wrapper is missing. (It’s killing me!)
Any help would be greatly appreciated. I will post the website, but do not use any personal information on the checkout. I am waiting for the EV SSL to process and install.
customboatcables.co m
JavaScript is broken on your site. None of the JS for the plugin is loading. It looks like CSS JS Loader may be missing or incorrectly installed. I see in your source code that you have it hard coded to load jQuery site-wide. This will also cause duplicate loading of jQuery and instead you should use the methodology described in the CSS JS Loader sample files (or reference the files that come with FEC).
Please contact us through the Numinix.com website if you need us to perform the installation or build the auto loaders for your existing plugins.
Re: Fast and Easy Checkout
Quote:
Originally Posted by
lat9
So, I performed the upgrade from 1.14.3 to 1.15.3 ... including the core-file updates this time. My comments:
- The upgrade did not preserve my original settings. Luckily, I installed first on a local copy so that I could see what the settings were on the live site.
- Clicking through on the order_status page link in a customer email didn't go to the order's history. A couple of updates were needed to /includes/modules/pages/order_status/header_php.php:
Code:
<?php
/**
*
* @package page
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: J_Schilz for Integrated COWOA - 14 April 2007
*/
// This should be first line of the script:
$zco_notifier->notify('NOTIFY_HEADER_START_ACCOUNT_HISTORY_INFO');
if (!isset($_REQUEST['order_id']) || (isset($_REQUEST['order_id']) && !is_numeric($_REQUEST['order_id'])))
$errorInvalidID=TRUE;
$query_email_address = trim($_REQUEST['query_email_address']);
if(!isset($query_email_address) || zen_validate_email($query_email_address) == false)
$errorInvalidEmail=TRUE;
if(!$errorInvalidID && !$errorInvalidEmail)
{
$customer_info_query = "SELECT customers_email_address, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country,
billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country
FROM " . TABLE_ORDERS . "
WHERE orders_id = :ordersID";
$customer_info_query = $db->bindVars($customer_info_query, ':ordersID', $_REQUEST['order_id'], 'integer'); //-20140929-lat9-Changed from $_POST to $_REQUEST
$customer_info = $db->Execute($customer_info_query);
if (isset($query_email_address) && $customer_info->fields['customers_email_address'] != $query_email_address && $customer_info->fields['customers_email_address'] != $query_email_address . '.')
$errorNoMatch=TRUE;
else
{
$statuses_query = "SELECT os.orders_status_name, osh.date_added, osh.comments
FROM " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh
WHERE osh.orders_id = :ordersID
AND osh.orders_status_id = os.orders_status_id
AND os.language_id = :languagesID
AND osh.customer_notified >= 0
ORDER BY osh.date_added";
$statuses_query = $db->bindVars($statuses_query, ':ordersID', $_POST['order_id'], 'integer');
$statuses_query = $db->bindVars($statuses_query, ':languagesID', $_SESSION['languages_id'], 'integer');
$statuses = $db->Execute($statuses_query);
while (!$statuses->EOF) {
$statusArray[] = array('date_added'=>$statuses->fields['date_added'],
'orders_status_name'=>$statuses->fields['orders_status_name'],
'comments'=>$statuses->fields['comments']);
$statuses->MoveNext();
}
require(DIR_WS_CLASSES . 'order.php');
$order = new order($_REQUEST['order_id']); //-20140929-lat9-Changed from $_POST to $_REQUEST
}
}
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE_1, zen_href_link(FILENAME_ACCOUNT, '', 'SSL'));
// This should be last line of the script:
$zco_notifier->notify('NOTIFY_HEADER_END_ACCOUNT_HISTORY_INFO');
?>
Thanks lat9 for debugging and resolving this issue. In your quoted text I see one other case that also needed to be updated on line 44. We will include this in the next release.
Re: Fast and Easy Checkout
Quote:
Originally Posted by
numinix
Thanks lat9 for debugging and resolving this issue. In your quoted text I see one other case that also needed to be updated on line 44. We will include this in the next release.
No problem; thanks for letting me know that I missed one!
Re: Fast and Easy Checkout
I am having an issue with the FEC checkout as guest function. I am able to fill out all of the shipping/billing info but when I click confirm it flashes what looks like the order success page and immediately redirects me to the whoops your session has timed out page and asks me to log in. I am able to place orders without issue when logged in to an account but not with the guest order. The transaction does not post to my gateway account. I have searched for the forums/Google for others with a similar issue but cannot find anything relevant. Any help would be appreciated. Thank you.
Re: Fast and Easy Checkout
Quote:
Originally Posted by
tomtom55
I am having an issue with the FEC checkout as guest function. I am able to fill out all of the shipping/billing info but when I click confirm it flashes what looks like the order success page and immediately redirects me to the whoops your session has timed out page and asks me to log in. I am able to place orders without issue when logged in to an account but not with the guest order. The transaction does not post to my gateway account. I have searched for the forums/Google for others with a similar issue but cannot find anything relevant. Any help would be appreciated. Thank you.
Correction, I can see now that it is the processing page that briefly displays prior to the whoops page. I have tried on both Chrome and Firefox with the same results.
Re: Fast and Easy Checkout
I installed FAEC per instructions. Everything seemed to be working perfectly.
Then I noticed that the FEC menu item was not showing up in the "Admin" "Configuration" menu.
So I read the previous posts here about the FAEC menu item not showing up in the "Admin" "Configuration" menu and followed the advice about running the sql removal file. I ran the file and it completed 5 statements successfully. I clicked on "Admin Home" and the auto loaders then ran and showed several different actions had run successfully. I checked the "Configuration" menu again and sure enough there was the FEAC menu item. Unfortunately, I then accessed the menu and changed a couple of features but when I clicked on "Save" nothing would happen and the items would not be changed to the new setting if I moved away from that page and then back to it. I then deleted the entire installation per the instructions, minus all the changes in the files they require you to complete, and attempted to load the entire module again. But, again, the menu item would not show up nor do I get any of the successful action bars at the top of the screen. I ran the sql removal again, giving me the removal success statements at the top of the screen, but the menu item will no longer return.
Any input beyond what has been posted so far about this issue?
Re: Fast and Easy Checkout
Something must have went wrong with the auto-installer.
in the admin choose the last item in the configuration.
In the address bar will be gID=xx
increase/decrease the xx and you should see it.
Then for easy access next time in your DB, TABLE_ADMIN_PAGES. look for the entry for Fast & Easy Checkout and change the parameter to gID=YY
That usually does the trick.