Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Posts
    53
    Plugin Contributions
    0

    Default Duplicating orders

    Can anyone enlighten me as to what might be happening here?

    Situation:
    I am getting duplicated orders all the time.
    If (say) the next order number in the sequence should be 100, I am getting order numbers 100 AND 101 generated. I get email confirmations for both, and both are stored in the database.
    The order number that gets reported on screen is 101.
    The timestamp on the database is identical.

    What I've done:
    So - I am certain that I have caused this:
    I have added a new field to the orders table to hold a customer licence number. The field is added after the IP number and is a varchar(25) type.

    I've also modified the following files:
    includes/classes/order.php
    includes/languages/english/mysitename/checkout_shipping.php
    includes/modules/pages/checkout_shipping/header.php
    includes/templates/mysitename/templates/tpl_checkout_shipping_detault.php

    The changes to each were very straightforward

    only the language and the form template are in an override directory - the other 2 files directly replaced the originals (after backup of course!)

    Since the problem only started after these files were replaced, I have to conclude that this caused the problem.

    The problem is that I have now removed all the new files - just the changed database field remains - and it is still happening. It definitely wasn't happening before.

    Could one of you super-smart developers give me a clue about where I might look for the problem? or what might be causing it? Order.php seems the most likely - is there anyway this might be called twice?

    PLEASE help - this was supposed (!) to be the last change before the site went live - and I now seem to have wrecked it!!

    Yours Hopefully.

    Julia

  2. #2
    Join Date
    Mar 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: Duplicating orders

    Can anyone assist here?

    I did actually manage to get rid of this.
    - I reinstalled the software,
    - deleted (rather than renamed) all the backed up, changed files, in case any of them were still being called.
    - reapplied all my changes

    and it then worked ok

    Unfortunately, it has started happening again today, following some more changes.

    If someone could point me in the direction of where the shipping module is calling the save and email routines, I can put some debugging in it and try to trace it through.

    ANY assistance VERY welcome. I don't know if I can face another install and redo.

  3. #3
    Join Date
    Mar 2007
    Posts
    53
    Plugin Contributions
    0

    Default Re: Duplicating orders

    update - I'm onto something here.

    What seems to be causing it is the css buttons mod. I switch it off, the dups don't hapen, I switch it on and they're back! off - no dups, on - dups repeatable every time.

    I'll now go and make sure it installed properly.

 

 

Similar Threads

  1. Duplicating a Store
    By bobthemolder in forum General Questions
    Replies: 8
    Last Post: 17 Jan 2010, 05:21 AM
  2. Duplicating a page?
    By AmirGTR in forum Addon Templates
    Replies: 3
    Last Post: 6 Jan 2010, 06:27 AM
  3. Duplicating sites
    By identity in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 26 Mar 2009, 01:41 PM
  4. Duplicating a site
    By ThePatch in forum General Questions
    Replies: 10
    Last Post: 20 Jul 2007, 01:49 PM

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