Please refer to TemplateMonster Support for any issues surrounding TemplateMonster/TemplateTuning Themes – thanks, Jigoshop Team

Bug: Editing and updating an order does not update totals correctly

markf@projectdiscovery.com's Avatar

markf@projectdiscovery.com

24 May, 2012 03:10 AM

Let's say we want to update an order and increase an amount. The functionality is there in theory. You can go to Orders and edit the order and new totals do calculate correctly at first. But if you click to save the order, the order totals revert to the original amount. If you send an invoice, it will have the correct subtotal but will have the original total will be what the customer is asked to pay.

In the order below, the original order was for a test product for $1.00. We updated the order and the new total should be $300, but the customer is only invoiced the original $1.

We need a fix please.

Jigoshop 1.2.1
Twenty Eleven
Authorize.net
Checkout field manager
Easy FancyBox
Fast Secure Contact Form
Custom Meta Widget
Tiny MCE Widget
MaxButtons
Social Sharing Toolkit
Ultimate TinyMCE

  1. Support Staff 2 Posted by ivica on 24 May, 2012 08:01 AM

    ivica's Avatar

    Hi! Thank you for your report, I forwarded it directly to developers for
    investigation.

  2. 3 Posted by markos24ro on 24 May, 2012 04:31 PM

    markos24ro's Avatar

    In version 1.2.2, Jigoshop Version: 1.2.2, WordPress Version: 3.3.2, PHP Version: 5.2.17.

    When I change order status after click on save command button all costs of products are multiply with the quantity.

    If I change status from "on hold" to "processing" all costs are doubleingin command, but the totals and subtotal remain good.

    Then when I change status of command from "processing" to "completed" the cost of each product multiplied by the quantity again.

    What can I do?

  3. 4 Posted by Matt on 24 May, 2012 06:48 PM

    Matt's Avatar

    Try the two changes outlined here, and let me know if that fixes all your totals issues:
    http://i.imgur.com/ofQ7p.png

  4. 5 Posted by markos24ro on 24 May, 2012 07:12 PM

    markos24ro's Avatar

    Thanks, that's works, but from admin using the JigoShop - Delivery Notes, the note printed is stiil worng, take worng calculation but I don't no from where.

    A little help please to solve this second problem.

    Thank you.

  5. 6 Posted by Matt on 24 May, 2012 07:48 PM

    Matt's Avatar

    Sorry, the Delivery Notes plugin wasn't developed by the Jigoshop Team, therefore we can't provide support for it.

    Cheers

  6. 7 Posted by markos24ro on 24 May, 2012 07:56 PM

    markos24ro's Avatar

    ok, thanks very much for help.

  7. 8 Posted by markf@projectdiscovery.com on 25 May, 2012 03:33 AM

    markf@projectdiscovery.com's Avatar

    Hey Matt -

    The fix you provided here (http://i.imgur.com/ofQ7p.png) seems to have done the trick. The totals now appear correctly and emailing an invoice sends the correct amount as well.

    Can a guy assume that new code will automatically be included in any new versions of Jigoshop? Thanks for the help Matt.

  8. 9 Posted by Matt on 25 May, 2012 02:15 PM

    Matt's Avatar

    Absolutely, it will be fixed for v1.2.3 and forever after :).

  9. 10 Posted by colormania on 30 May, 2012 05:52 AM

    colormania's Avatar

    For people using delivery notes, it is remultiplying the total by quantity. I've done something in jigoshop-delivery-notes-classes, line 248 :

    $data['price'] = jigoshop_price($item['cost'] * $item['qty'], array('ex_tax_label' => 1));

    I suppressed * $item['qty'] and it seems to have done the trick for frontend orders.

    But I still have a problem when I create manually orders as subtotals and totals don't seem t calculated the same way.

    Here is the other thread.

  10. 11 Posted by Lynn on 15 Jun, 2012 02:40 PM

    Lynn's Avatar

    Matt, I have an urgent problem. We shipped out our orders but there is no options for me to go to Edit Order and select complete the order. The entire bar of Customer Billing Address and Costomer Shipping Address, Order status..etc are missing. Please see my attached image. Please help.

  11. Support Staff 12 Posted by ivica on 15 Jun, 2012 03:15 PM

    ivica's Avatar

    Hi Lynn! I don't see your image attached?

  12. 13 Posted by superkat1 on 25 Jul, 2012 07:57 PM

    superkat1's Avatar

    Matt,
    I verified your code fix and it is indeed already included in the new 1.2.3 version, however, the problem still remains. The problem being manual orders input from the back end are not saving correctly, the data is being dumped. The totals go back to zero and all customer billing, address etc. will not save. I see that the beta test of 1.3 will fix this, but I need a work around to be used on my live site until 1.3 is actually launched.

  13. 14 Posted by Matt on 28 Jul, 2012 03:38 PM

    Matt's Avatar

    Yes that bug should be fixed in the current 1.3 public beta.

  14. 15 Posted by superkat1 on 30 Jul, 2012 10:17 AM

    superkat1's Avatar

    referring again to my last post " I see that the beta test of 1.3 will fix this, but I need a work around to be used on my live site until 1.3 is actually launched."

    Is it possible for you to provide that code which is the "fix" in 1.3 for those of us needing our live sites to function. A known fix currently only in beta testing isn't the answer. I can't use the beta version as my functional shop and I need these values to not be zeroed for my invoices or my customers.
    Thanks so much!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.