Edit Orders v3.0 for ZC 1.3.9 [Support Thread]
This version of Edit Orders is based on Edit Orders v2.04 that used to only be available on Scott Turner's site.
With Scott's blessing (for those who have asked :smile:) it has FINALLY been made it available in the Zen Cart downloads section:
http://www.zen-cart.com/index.php?ma...oducts_id=1818
This version of Edit Order has been re-numbered to clearly distinguish it from similar mods currently available.
Re: Edit Orders v3.0 for Zen Cart 1.3.9 Support Thread
Edit Orders v3.0 Rev1 includes the following updates:
- Clean up and reorganize the readme file
- Includes the properly modified orders.php file (no more manual edits required!!)
- Add an admin flag that toggles the display of input fields required for use with Ty Package Tracker (must have Ty Package Tracker module installed to take advantage of this feature)
- Add an admin flag that toggles the display of buttons required for use with Super Orders (must have Super Orders module installed to take advantage of this feature)
- Removed all of the hard coded text and fixed file names and replaced them with proper language definitions
- Replaced “Add Product” text link with an “Add Products button
- Add icons to the customer section
- Corrected table format and layout of the customer section.
- Modified customer section layout so that field labels appear next to each field for each customer address type.
- Removed unused left column call and corrected <head> section to remove unused/erroneous code.
- Order status and send email features now work like Zen Cart 1.3.9 (includes the no e-mail and hidden “admin” comments options)
- Improved more intuitive page navigation and integration with the order (and Super Orders -- if installed) pages
- The back button now returns to the order list page
- Added order details button to return to the detail page of the order you are editing
- The back button on the add product section returns to the order editing page
- Added order details button on the add product section to return to the detail page of the order you are editing
- Add an admin flag that toggles the display of navigation buttons required for use with Super Orders
Edit Orders v3.0 Future Enhancements
(these changes will be coming VERY soon!)
- Support for "optional" attributes
- Ability to delete attributes from products
- Incomplete Order Currency Support
- Improved Integration with Reward Points module
- Better support for order total mods
- Add Shipping Rate Table on the order Edit page (will pull in rates for shipping modules which are active in the store)
- Add Resend Order Confirmation E-Mails
- Edit Orders will correctly notify admin when an update was attempted and no changes were actually entered.
Super Orders v1.3.9 users only!!
Super Orders v1.3.9 users only!!
IF you are using Super Orders v1.3.9 (This is the version dated Jul 05 2010 by That Software Guy) you will need to make a minor update to your Super Orders files to use it (Super Orders) with Edit Orders v3.0 Rev 1.
I will submitting a minor update to Edit Orders v3.0 Rev 1 to include the required Super Orders patch. If you need this patch before this update is activated in the downloads section you may PM me and I will provide you with instructions on how to get the Super Orders v1.3.9 patch.
Note:
This Super Orders patch will NOT be required when Super Orders 3.0 is released.
Re: Edit Orders v3.0 for Zen Cart 1.3.9 Support Thread
Great work Diva, however, a few of points:
1. If you change all <br> into <br />, the merging of files will become simpler and quicker.
2. For me, most of the numerical inputs on the edit page were left-aligned. I spent hours trying to right-align them but could not find a fix. Could you please advise on how to right-align.
3. Changing the tax amount did not change any other values, including the subtotals or totals. Have I missed something or is this the way it works.
4. Can you please send me the patch for superorders. Although I changed my edit_orders_functions so that it works with superorders, I would like to see your solution.
Thanks
Re: Edit Orders v3.0 for Zen Cart 1.3.9 Support Thread
Thanks.. glad you like it..:smile:
Quote:
Originally Posted by
dw08gm
1. If you change all <br> into <br />, the merging of files will become simpler and quicker.
Call me anal, but I changed them because when validating the HTML for the page, <br> validates for the doctype, but <br /> does not..
Quote:
Originally Posted by
dw08gm
2. For me, most of the numerical inputs on the edit page were left-aligned. I spent hours trying to right-align them but could not find a fix. Could you please advise on how to right-align.
I did not attempt to align the inputs, and would need to double check what CSS change is required for this... (not sure off the top of my head.. Will need to look into this later tonight or tomorrow..
Quote:
Originally Posted by
dw08gm
3. Changing the tax amount did not change any other values, including the subtotals or totals. Have I missed something or is this the way it works.
Are you referring to the "Tax" field on the product line???
Re: Edit Orders v3.0 for Zen Cart 1.3.9 Support Thread
Quote:
Originally Posted by
DivaVocals
Are you referring to the "Tax" field on the product line???
Yes and also the shipping tax.
Did you happen see my point 4 - re superorders patch - which I added as a post edit.
Cheers
Re: Edit Orders v3.0 for Zen Cart 1.3.9 Support Thread
Quote:
Originally Posted by
DivaVocals
Re:Super Order patch, it's available in the Zen Cart downloads now..
Thanks
Found it in Edit_Orders v3.0 rev1a
http://www.zen-cart.com/index.php?ma...oducts_id=1818
Cheers
Re: Edit Orders v3.0 for Zen Cart 1.3.9 Support Thread
Hi guys, I just install latest Edit Orders, but I have problem once I trying edit order. I can see only empty screen.
My log say this:
Code:
[08-Dec-2010 22:34:30] PHP Warning: require(includes/languages/1.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/xxxx/includes/init_includes/init_languages.php on line 35
[08-Dec-2010 22:34:30] PHP Warning: require(includes/languages/1.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/xxxx/includes/init_includes/init_languages.php on line 35
[08-Dec-2010 22:34:30] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/includes/init_includes/init_languages.php on line 35
I have been looking into the file init_languages.php
Code:
<?php
/**
* @package admin
* @copyright Copyright 2003-2010 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: init_languages.php 15995 2010-04-19 17:41:54Z drbyte $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
// set the language
if (!isset($_SESSION['language']) || isset($_GET['language'])) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language();
if (isset($_GET['language']) && zen_not_null($_GET['language'])) {
$lng->set_language($_GET['language']);
} else {
$lng->get_browser_language();
$lng->set_language(DEFAULT_LANGUAGE);
}
$_SESSION['language'] = (zen_not_null($lng->language['directory']) ? $lng->language['directory'] : 'english');
$_SESSION['languages_id'] = (zen_not_null($lng->language['id']) ? $lng->language['id'] : 1);
$_SESSION['languages_code'] = (zen_not_null($lng->language['code']) ? $lng->language['code'] : 'en');
}
// temporary patch for lang override chicken/egg quirk
$template_query = $db->Execute("select template_dir from " . TABLE_TEMPLATE_SELECT . " where template_language in (" . (int)$_SESSION['languages_id'] . ', 0' . ") order by template_language DESC");
$template_dir = $template_query->fields['template_dir'];
// include the language translations
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');
$current_page = basename($PHP_SELF);
if (file_exists(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page)) {
include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page);
}
if ($za_dir = @dir(DIR_WS_LANGUAGES . $_SESSION['language'] . '/extra_definitions')) {
while ($zv_file = $za_dir->read()) {
if (strstr($zv_file, '.php')) {
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/extra_definitions/' . $zv_file);
}
}
$za_dir->close();
}
See the red code.
Can you help me please ?
Thank you.
BTW I merged all files properly and copy all folders as it should be.
Re: Edit Orders v3.0 for Zen Cart 1.3.9 Support Thread
Is your store's default language something other than english??? I'm guessing here, but the parts highlighted in blue would seem to lean towards you having a language file named 1.php which Edit Orders cannot find since there are no language files in Edit Orders for this language.. (which by the way is kinda non-standard for how language files are usually named)
Quote:
Originally Posted by
cyberian37
Hi guys, I just install latest Edit Orders, but I have problem once I trying edit order. I can see only empty screen.
My log say this:
Code:
[08-Dec-2010 22:34:30] PHP Warning: require(includes/languages/1.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/xxxx/includes/init_includes/init_languages.php on line 35
[08-Dec-2010 22:34:30] PHP Warning: require(includes/languages/1.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/xxxx/includes/init_includes/init_languages.php on line 35
[08-Dec-2010 22:34:30] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/languages/1.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxxx/includes/init_includes/init_languages.php on line 35
I have been looking into the file init_languages.php
Code:
<?php
/**
* @package admin
* @copyright Copyright 2003-2010 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: init_languages.php 15995 2010-04-19 17:41:54Z drbyte $
*/
if (!defined('IS_ADMIN_FLAG')) {
die('Illegal Access');
}
// set the language
if (!isset($_SESSION['language']) || isset($_GET['language'])) {
include(DIR_WS_CLASSES . 'language.php');
$lng = new language();
if (isset($_GET['language']) && zen_not_null($_GET['language'])) {
$lng->set_language($_GET['language']);
} else {
$lng->get_browser_language();
$lng->set_language(DEFAULT_LANGUAGE);
}
$_SESSION['language'] = (zen_not_null($lng->language['directory']) ? $lng->language['directory'] : 'english');
$_SESSION['languages_id'] = (zen_not_null($lng->language['id']) ? $lng->language['id'] : 1);
$_SESSION['languages_code'] = (zen_not_null($lng->language['code']) ? $lng->language['code'] : 'en');
}
// temporary patch for lang override chicken/egg quirk
$template_query = $db->Execute("select template_dir from " . TABLE_TEMPLATE_SELECT . " where template_language in (" . (int)$_SESSION['languages_id'] . ', 0' . ") order by template_language DESC");
$template_dir = $template_query->fields['template_dir'];
// include the language translations
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '.php');
$current_page = basename($PHP_SELF);
if (file_exists(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page)) {
include(DIR_WS_LANGUAGES . $_SESSION['language'] . '/' . $current_page);
}
if ($za_dir = @dir(DIR_WS_LANGUAGES . $_SESSION['language'] . '/extra_definitions')) {
while ($zv_file = $za_dir->read()) {
if (strstr($zv_file, '.php')) {
require(DIR_WS_LANGUAGES . $_SESSION['language'] . '/extra_definitions/' . $zv_file);
}
}
$za_dir->close();
}
See the red code.
Can you help me please ?
Thank you.
BTW I merged all files properly and copy all folders as it should be.