Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20
  1. #11
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Negative values in order total. Edit Orders Problem

    The current values of orders_total.value *should* be positive unless you've diddled with them, in which case you should probably restore from backup.

    The values of of orders_total.text might not show a "-" if you haven't used the fix I described.

    I think I just fixed them in phpMyAdmin - I don't seem to have a script that does this.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #12
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Negative values in order total. Edit Orders Problem

    some are positive some are negative, it is a mess.

    The fix you described is already in my edit orders

    What about the reward point module, how does that interact with edit orders and this - problem

  3. #13
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Negative values in order total. Edit Orders Problem

    OK. Fixing negative values field:

    1) Make a backup
    2) Run this SQL
    update orders_total set value = value * -1 WHERE value < 0;

    On the rewards stuff, I have no idea. Ask the rewards mod author.

    Give me a bit and I'll figure out how to fix the text field.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #14
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Negative values in order total. Edit Orders Problem

    OK, this has Zen Cart's built in group pricing and coupons plus all my stuff. You probably don't need all this but it's here for reference.

    Again, backup first.

    update `orders_total` SET text = concat('-', text) WHERE substring(text, 1, 1) <> '-' AND class in ('ot_coupon', 'ot_group_pricing', 'ot_better_together', 'ot_big_chooser', 'ot_bigspender_discount', 'ot_combination_discounts', 'ot_frequency_discount', 'ot_quantity_discount', 'ot_newsletter_discount', 'ot_military_discount');
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #15
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Negative values in order total. Edit Orders Problem

    I presume I can dump ot_reward_points in there too.

    The strange thing is, the totals still don't add up, (in monthly sales/tax summary) and I can't figure out why!

  6. #16
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Negative values in order total. Edit Orders Problem

    Please stick to one problem per thread. Get the table fixed and then open a new thread or post to the support thread about your issues with the tax summary mod.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #17
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Negative values in order total. Edit Orders Problem

    Will do, what is the default layout for the text field?

    -&pound;15.75
    or
    &pound;-15.75



    Also, your code turns

    &pound;-15.75 into -&pound;-15.75

    which looks odd, -£-15.75

  8. #18
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,696
    Plugin Contributions
    123

    Default Re: Negative values in order total. Edit Orders Problem

    There is no default; it depends on what the software does. You'd have to look at each module. Mine all do -$. Look at coupon and gv to see how they work.

    If you get -£-15.75 then fix it. I already posted a SQL query which does string modification. Figure out how to make this fix -L- into -L.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #19
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Negative values in order total. Edit Orders Problem

    I understand concat('-', text)

    but I'm stumped by

    WHERE substring(text, 1, 1) <> '-'


    Sub-Total: £24.99
    Value of Redeemed Reward Points: -£2.50
    FastFix≡ (Collect from our store, your goods will be waiting for you!): £0.50
    Total: £27.99

    I can see a problem with that total...

    is that a edit/super orders issue?
    Last edited by DigitalShadow; 19 Jan 2012 at 02:55 AM.

  10. #20
    Join Date
    Mar 2009
    Posts
    609
    Plugin Contributions
    0

    Default Re: Negative values in order total. Edit Orders Problem

    where the reward_points are being added instead of removed, resulting in £2.50 discount becoming a £2.50 surcharge, showing a £5 difference between expected and displayed.

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Replies: 2
    Last Post: 8 Apr 2015, 01:23 PM
  2. v139h Edit Order Total Headings
    By SethF in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Apr 2012, 09:02 PM
  3. Replies: 2
    Last Post: 23 Jul 2009, 12:59 AM
  4. Edit Order drops tax of sub total?
    By Gonzon in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 Jan 2008, 12:24 PM
  5. Table Rate Calculation Problems with Negative values
    By matt123 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 Dec 2007, 06:28 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR