How to edit an existing order

Author Message

Mario Caprino

Monday 26 June 2006 3:15:54 am

Is there any way to edit an existing order?

For example; I need to remove an Order item from a customer's order as the customer has by accident added it to his order and completed the order. As an Order item is heavily connected to the rest of the Order I can not edit the database directly, as I for exmaple would if he only wanted to edit his address.

Is there an administration interface to editing existing orders? How do other people handle such requests?

Thank you for your help.

Best regards,
Mario Caprino

Łukasz Serwatka

Monday 26 June 2006 11:24:10 pm

Hi Mario,

You can remove order. Click "Webshop" tab, then click order id. In next view you can remove it by clicking "Remove" button. Unfortunately you can't edit edit/update order/customer info with new information. You can write an extension which will update customer data. You can re-use code from kernel/shop/userregister.php.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Lars Bratli

Sunday 09 July 2006 3:11:42 am

Hi everybody! (My first post :)

Removing an order does not work for me. When I click remove it posts back to the list of orders without removing it. Is there any other way to delete orders? Running on 3.8.0 btw.

Łukasz Serwatka

Sunday 09 July 2006 11:29:14 pm

Hello Lars, and welcome to eZ publish Community.

In 3.8.x remove functionality was replaced with archive. However according to PHP code it should be possible to remove the order (backward compatibility). I think bug is in the template design/admin/templates/shop/orderview.tpl

Line 109:
replace

<input type="hidden" name="DeleteIDArray[]" value="{$order.id}" />

with

<input type="hidden" name="OrderIDArray[]" value="{$order.id}" />

I will post bug report about this and commit the fix.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Lars Bratli

Monday 10 July 2006 12:53:57 am

Thank you so much Lukasz, that did the job :D

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:31:43
Script start
Timing: Jan 18 2025 22:31:43
Module start 'layout'
Timing: Jan 18 2025 22:31:43
Module start 'content'
Timing: Jan 18 2025 22:31:43
Module end 'content'
Timing: Jan 18 2025 22:31:43
Script end

Main resources:

Total runtime0.0197 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.0391152.6250
Module start 'layout' 0.00700.0027 741.664139.4453
Module start 'content' 0.00980.0070 781.109493.4141
Module end 'content' 0.01680.0029 874.523434.3047
Script end 0.0197  908.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003015.1829140.0002
Check MTime0.00136.3441140.0001
Mysql Total
Database connection0.00083.854310.0008
Mysqli_queries0.002713.529830.0009
Looping result0.00000.055510.0000
Template Total0.002412.110.0024
Template load0.00104.973610.0010
Template processing0.00147.090310.0014
Override
Cache load0.00073.473910.0007
General
dbfile0.00031.316280.0000
String conversion0.00000.041140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs