I hope this will help folks with troubleshooting..
Issue - When adding products you are redirected to the admin home page
Solution - UPDATE Edit Orders to v2.04 (the link to get this version is on page 4 of this support thread) This issue was SPECIFICALLY FIXED in this version.
Issue - I get a blank page after clicking on the "Create Order" button
Solution - There is a missing function file in the Create Order fileset. You need to create a function file for Create Orders as per the instructions on page 5 of this support thread.
Other tips:
- Replace the Add Customers from Admin with the latest version available in the Zen Cart downloads section (currently this is v1.07)
- Download the latest version of Create Orders from Ivan's blog: ivankristianto.com/web-development/ecommerce/simple-create-order-module-zen-cart/69/
- Update admin/orders.php as per the instructions in the Edit Orders readme for adding the proper "Edit" buttons. (the instructions in Ivan's readme has met with mixed results..)
- DELETE the following files from Ivan's install package: * admin/includes/classes/order.php
* admin/includes/classes/shipping_admin.php
* admin/includes/classes/shipping_cart_admin.php
(the purpose of these files is to support the shipping rates and order confirmation e-mails -- this code doesn't work particularly well and IMHO isn't entirely necessary to get the overall general benefit of Create Orders) - Make the following changes to admin/includes/functions/general.php as per the instructions in the Create Orders readme:
Find:
Code:
function zen_get_countries($default = '') {
global $db;
$countries_array = array();
if ($default) {
$countries_array[] = array('id' => '',
'text' => $default);
}
$countries = $db->Execute("select countries_id, countries_name
from " . TABLE_COUNTRIES . "
order by countries_name");
while (!$countries->EOF) {
$countries_array[] = array('id' => $countries->fields['countries_id'],
'text' => $countries->fields['countries_name']);
$countries->MoveNext();
}
return $countries_array;
}
replace with:
Code:
function zen_get_countries($countries_id = '', $with_iso_codes = false) {
global $db;
$countries_array = array();
if (zen_not_null($countries_id)) {
if ($with_iso_codes == true) {
$countries = "select countries_name, countries_iso_code_2, countries_iso_code_3
from " . TABLE_COUNTRIES . "
where countries_id = '" . (int)$countries_id . "'
order by countries_name";
$countries_values = $db->Execute($countries);
$countries_array = array('countries_name' => $countries_values->fields['countries_name'],
'countries_iso_code_2' => $countries_values->fields['countries_iso_code_2'],
'countries_iso_code_3' => $countries_values->fields['countries_iso_code_3']);
} else {
$countries = "select countries_name
from " . TABLE_COUNTRIES . "
where countries_id = '" . (int)$countries_id . "'";
$countries_values = $db->Execute($countries);
$countries_array = array('countries_name' => $countries_values->fields['countries_name']);
}
} else {
$countries = "select countries_id, countries_name
from " . TABLE_COUNTRIES . "
order by countries_name";
$countries_values = $db->Execute($countries);
while (!$countries_values->EOF) {
/*$countries_array[] = array('countries_id' => $countries_values->fields['countries_id'],
'countries_name' => $countries_values->fields['countries_name']);*/
$countries_array[] = array('id' => $countries_values->fields['countries_id'],
'text' => $countries_values->fields['countries_name']);
$countries_values->MoveNext();
}
}
return $countries_array;
}
When I have time I will bundle up my install files and submit to the downloads.. (don't PM and ask me to send them out now.. I don't have ANYTHING ready to send ANYONE..
)