Jump to content


Corporate Sponsors


Latest News: (loading..)

* * * * * 6 votes

NEW! Complete Order Editing Tool!


3242 replies to this topic

#1 jhilgeman

  • Community Member
  • 44 posts
  • Real Name:Jonathan Hilgeman

Posted 08 August 2003, 01:25

If you ever wanted to update any part of an order's information, add new products to an order, insert new information like coupons, change taxes on a specific product, and so on, here's the tool. I truly hope this makes life easier for some of you.

http://www.oscommerce.com/community/contributions,1435

- Jonathan
Download osCommerce Order Editor v1.2 Here:
http://www.oscommerce.com/community/contributions,1435

#2 dixonmarine

  • Community Member
  • 42 posts
  • Real Name:Brian Dixon
  • Location:Albany, OR

Posted 08 August 2003, 01:31

Thanks, we'll give it a shot. We sometimes have to add charges for hazmat shipping ( see http://www.advantagecomposites.com ) after the fact, so this will help.

Brian

#3 golfpros

  • Community Member
  • 15 posts
  • Real Name:Michael Gilliam

Posted 08 August 2003, 03:36

Installed code, tested it, and re-opened order. Everything seems to work great. Took about 5 minutes to install and test. Simplest install I've done and much needed! Now if I can just find the time to hook it into the admin rather than doing it by URL, it'll be perfect.

Thanks again
Michael Gilliam

#4 magicproshop

  • Community Member
  • 125 posts
  • Real Name:Peter
  • Gender:Male

Posted 08 August 2003, 04:10

Hey, congrats on your work, this is a much need contribution. Does this work with MS2?

Thanks again

#5 Met00

  • Community Member
  • 318 posts
  • Real Name:JM Ivler
  • Gender:Male
  • Location:Los Alamitos, CA

Posted 08 August 2003, 05:16

I have found that I have had to, at times, move and order from a charged order to a "credit" (order was cancelled and I need to retain the order in the system, yet show that it was credited back to the customer). Will this allow me to do that?

#6 jhilgeman

  • Community Member
  • 44 posts
  • Real Name:Jonathan Hilgeman

Posted 08 August 2003, 05:32

I've found the easiest way of "hooking" this into the admin system is via the order details page. At the top of the order details page, there's a "back" button - I just copy the code for this, and change the HREF. There's already a "edit order" graphic, too, so you can use that.

That way, if I need to edit an order, I just go to that order's details page, click on "edit order" and presto, I'm in the editing mode.

This contribution SHOULD work in any 2.2 version, and possibly 2.1.

- Jonathan
Download osCommerce Order Editor v1.2 Here:
http://www.oscommerce.com/community/contributions,1435

#7 loxly

  • Community Member
  • 1,802 posts
  • Real Name:Deborah Carney
  • Gender:Male
  • Location:New York State

Posted 08 August 2003, 06:34

Which version are you using it with? It sounds wonderful, but version is important since there are changes between ms1 and ms2 that affect many many contributions.

#8 bodyfeelings

  • Community Member
  • 71 posts
  • Real Name:Matthias F.
  • Location:Germany

Posted 08 August 2003, 07:31

I've installed the Contribution very fast... fine :D

Than I make my first test on a german shop (2.2MS2)

After Updating the following things happened:

The Order is not shown in the view of all orders because the order status was changed to 0

After manuell changing the status in the database it was back again

But than I could see, that the currency was changed from EUR to $

After that I stop testing. Can somebody help ??

#9 CC

  • Community Member
  • 1,289 posts
  • Real Name:....
  • Gender:Male
  • Location:Here \o/

Posted 08 August 2003, 10:33

I was just about to say I had tested this on the basis that this kind of mod has always intrigued me, and I found the same.

Whenever it is used it removes the order from the listings, due to the order status change.

Also, for those that have to add tax to shipping it doesnt do it.
It adds tax to the order total, but not to shipping, so the order grand total is wrong for those that need tax adding in for shipping.

Can I assume that in the US you dont charge tax on Shipping costs?

Apart from that a very nice mod, and certainly an excellent foundation for the community to build on and improve over time.

Nice1 :wink:

#10 CC

  • Community Member
  • 1,289 posts
  • Real Name:....
  • Gender:Male
  • Location:Here \o/

Posted 08 August 2003, 10:47

To alter the currency find this line:
$ot_text = "$" . number_format($ot_value, 2, '.', ',');

And change the "$" to the symbol you wish to display.

#11 End

  • Community Member
  • 97 posts
  • Real Name:Per

Posted 08 August 2003, 10:53

I use ms1, and I got the same problem as bodyfeelings. My shop language is not english, then I change a order "$" appears in the orderhistory.
Also, the "add product" function only chooses products from the english language table... too bad I canīt use this mod until this is fixed, itīs a really nice mod.

#12 bodyfeelings

  • Community Member
  • 71 posts
  • Real Name:Matthias F.
  • Location:Germany

Posted 08 August 2003, 10:56

Quote

To alter the currency find this line:  
Code:  
$ot_text = "$" . number_format($ot_value, 2, '.', ',');  


And change the "$" to the symbol you wish to display.

Yes, thats OK, but the script also calculates a new price - not only changing the sign for the currency.

And the first thing I have to solve is the orderstatus problem.

I think there are some things to to for make the contribution working in different cuntries. But I can't. And the contribution is very good for everybody using osc.

#13 CC

  • Community Member
  • 1,289 posts
  • Real Name:....
  • Gender:Male
  • Location:Here \o/

Posted 08 August 2003, 11:01

Quote

Yes, thats OK, but the script also calculates a new price - not only changing the sign for the currency.

That is like I say, becos the order total is not adding tax to the shipping price.

If you work our the total, it is all fine for the product, try making shipping cost 0.00 and you will see it should be the correct total for what ever tax you charge, but it doesnt add tax to the shipping cost, therefore your total ends up incorrect if you have to add tax to shipping in your country.

Have a look through the code, jhilgeman has commented it quite well, so you can see what each section does and build on it from there.

#14 GFW

  • Community Member
  • 32 posts
  • Real Name:Gerhard Martin

Posted 08 August 2003, 12:19

great!

- just implement a button in the admin area
- add tax to shipping price
- change the order status

and it would be a perfect mod :)

#15 GFW

  • Community Member
  • 32 posts
  • Real Name:Gerhard Martin

Posted 08 August 2003, 12:23

- automatically send the customer a mail with the changes (important for prepayment)

#16 GFW

  • Community Member
  • 32 posts
  • Real Name:Gerhard Martin

Posted 08 August 2003, 12:28

triplepost, sorry :D

- the EUR should be after the price, and not in front of (like 50.00EUR not EUR50.00)

#17 bodyfeelings

  • Community Member
  • 71 posts
  • Real Name:Matthias F.
  • Location:Germany

Posted 08 August 2003, 12:33

Quote

- just implement a button in the admin area  
- add tax to shipping price  
- change the order status  

That would be wonderful....

Quote

automatically send the customer a mail with the changes (important for prepayment)
Must be swiched on/off because not each change is for the customer.

Quote

- the EUR should be after the price, and not in front of (like 50.00EUR not EUR50.00)

In the moment it is fixed in the sourcecode without a variable. It must be variable and depending on the default currency of the shop
Thanks Matthias

#18 End

  • Community Member
  • 97 posts
  • Real Name:Per

Posted 08 August 2003, 12:34

Agree with GFW.

I have noticed a strange thing, when I click the update button in edit_orders and havenīt changed anything the order disappears. Database still has the data, but orderhistory and admin is not showing it. Anyone else got this problem?

#19 bodyfeelings

  • Community Member
  • 71 posts
  • Real Name:Matthias F.
  • Location:Germany

Posted 08 August 2003, 12:39

@end

Quote

The Order is not shown in the view of all orders because the order status was changed to 0  

After manuell changing the status in the database it was back again  

Thanks Matthias

#20 GFW

  • Community Member
  • 32 posts
  • Real Name:Gerhard Martin

Posted 08 August 2003, 12:40

this is ment with "order status", after updating the order status is "0" and disappears, but is still there *fg*.

after changing these things, this would be a perfect and really really simple and helpful mod!