Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
DivaVocals
Start by upgrading to the latest version (4.1.2)
Any ideas with my problem? Please give me a path.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
smurfy1
...
Ok the error was this:
[10-Oct-2013 10:15:32 America/New_York] PHP Fatal error: Call to undefined function GetRewardPoints() in /home/creative/public_html/includes/modules/order_total/ot_reward_points_display.php on line 40
...
The product pricing will but the subtotal stays the same as the original order
If an error occurs in an Order Total module such as "reward points" it will cause problems with order totals in "Edit Orders". The most common issue we see with Order Total modules is many are not coded to work when loaded in the Zen Cart admin interface. This is documented in the readme.
Most likely your "reward points" module includes some additional files (such as extra_functions) which are not available to the admin (and not loaded on the fly by the order total module at runtime if needed). Easiest solution would be to copy the relevant files (probably a file in "/includes/functions" or "/includes/functions/extra_functions") to the corresponding location on the admin side of Zen Cart.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
Maladi3
... I use table discounts to do 90 percent of our store. ... with this new plugin my Table discounts dont show up right inside the invoices.
The "Table Discounts" module is commercial. I do not own a copy of the module and as such am not able to look at the source code to determine the exact cause of the problem.
By default the order total values are passed to and from the Zen Cart database untouched... So if they are entered as negative they stay negative and if they are entered as positive they are left as positive... Which works for about 85% of order total modules.
Some order total modules do need special handling if the modules expect certain global variables or session variables to be populated. It is possible "Table Discounts" is one of these modules will require some special handling. Without knowing the special handling required... It will be hard for us to help you.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
lhungil
Try making the following change (to Edit Orders 4.1.2) and let us know if it solves the problem for you (if you report it fixes the issues - the code will be added to the next release of Edit Orders).
Edit "/admin/edit_orders.php". Around line 245 change the int cast to a float cast. The original code looks like:
Code:
$_POST['update_products'] = zen_db_prepare_input($_POST['update_products']);
foreach($_POST['update_products'] as $orders_products_id => $product_update) {
$product_update['qty'] = (int) $product_update['qty'];
After making your changes the code should look like:
Code:
$_POST['update_products'] = zen_db_prepare_input($_POST['update_products']);
foreach($_POST['update_products'] as $orders_products_id => $product_update) {
$product_update['qty'] = (float) $product_update['qty'];
Thanks!!! It works...
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
nlinksolution
Sorry i haven't check exact version and said 4.0 because thread title.
But the version i am using for edit order is latest 4.1.2
Just for future reference, ALWAYS provide the EXACT version when reporting issues -- not just for this module, but any module..
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
nlinksolution
Thanks!!! It works...
Awesome, thank you for letting us know!
Re: Edit Orders v4.0 Support Thread
I am having a bit of an issue with adding edit order to my Zen Cart install. My problem is that after I have it installed it seems to function normally with the exception that it does not recalculate and additions or subtractions from the order total. Even after using the manual update button no changes are happening to the total. I have already tried an uninstall and re-install of edit orders. This is a newly installed Zen Cart store with only test items. Hopefully someone will have a suggestion.
Here is what I have installed.
Zen Cart 1.5.1
edit orders 4.1.2
easy populate 1.5
quantity discounts 1.12
payment module fee
admin login as customer 3.1
admin new order 1.4
add customers from admin 2.0.5
ckeditor 4.1.2
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
twinkiejr
I am having a bit of an issue with adding edit order to my Zen Cart install. My problem is that after I have it installed it seems to function normally with the exception that it does not recalculate and additions or subtractions from the order total. ...
Going to "guess" this is an incompatibility between "Edit Orders" and "Quantity Discounts". "Quantity Discounts" does not fully support being loaded and run from the admin interface (for good reason) and at this time no "special" handling has been added to "Edit Orders" for the "Quantity Discounts" order total module.
Just to double check:
- Is there thre anything in the Zen Cart debug logs or server error logs?
- If you disable "Quantity Discounts" does everything work?
- Are "ot_subtotal" and "ot_total" enabled?
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
lhungil
Just to double check:
- Is there thre anything in the Zen Cart debug logs or server error logs?
- If you disable "Quantity Discounts" does everything work?
- Are "ot_subtotal" and "ot_total" enabled?
Thanks for the reply.
It does not help to disable "Quantity Discounts". Both "ot_subtotal" and "ot_total" are enabled. I will look in the logs to see if it shows anything. I have setup a second test site and have loaded edit orders and it works. So now I am working through each additional module that to see which one kills edit orders. I will post when that is done in-case it may help someone else.
Re: Edit Orders v4.0 Support Thread
Quote:
Originally Posted by
twinkiejr
Thanks for the reply.
It does not help to disable "Quantity Discounts". Both "ot_subtotal" and "ot_total" are enabled. I will look in the logs to see if it shows anything. I have setup a second test site and have loaded edit orders and it works. So now I am working through each additional module that to see which one kills edit orders. I will post when that is done in-case it may help someone else.
Thank you for replying... Much appreciated if you can narrow down what module is conflicting (so we can look at creating a solution).