Well, from the beginning then ;o)
As I still havent made any changes to the affected php files for "Order re-order" I copied them in according to the directory structure in the contribution.
I call the function from where it then is standard implemented, that is in acount_history_info.php.
I started copying on order, everything was ok. It was a short order with just 3 items, each with a purchase quatity of 1 item.
And btw. I have allowed checkout without stock available.
Next was trying a larger order with 27 items, and one of the items had been bought with a quatity of 3, and that item wasn't copied. Did some more investigation, and at the end tried an order with:
Line 1 2x item
Line 2 3x another item
Line 3 4x a third item.
checked the order out, went to my account again, and tried to re-order that last order, but absolutely nothing was copied to the cart.
So my theory is, that there must be something in the code to prevent copying lines where the number of bought items are different from 1. Could it be like there is a check to see if the item beeing copied are checked agains the standard quatity on the product?
Best regards
Palle
Sorry, but I am not a code wizard, so it is a little difficult for me.