Im not sure if this is a bug or not but im trying to delete multiple orders at once, specifically missing orders as I have alot of them!
There is no 'multiple' delete button in the orders page, there is a delete button next to each order but not one at the top right like on products.
Is it supposed to be like this?
Cheers
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thanks for your reply,
Thats the issue though, there is a checkbox next to the orders, it is possible to select them all, there is just no delete all button on that page.
Thats why I think its a bug, why is there the ability to select all the orders but then no way to interact with them all? Its like the button was just forgotten about.
This has been posted a couple of times also on the forum but those posts just got ignored.
Thanks
find:
Code: Select all
$data['add'] = $this->url->link('sale/order/add', 'token=' . $this->session->data['token'], 'SSL');
Code: Select all
$data['delete'] = $this->url->link('sale/order/delete', 'token=' . $this->session->data['token'], 'SSL');
find:
Code: Select all
<button type="submit" id="button-shipping" form="form-order" formaction="<?php echo $shipping; ?>" data-toggle="tooltip" title="<?php echo $button_shipping_print; ?>" class="btn btn-info"><i class="fa fa-truck"></i></button>
Code: Select all
<button type="submit" id="button-delete" form="form-order" formaction="<?php echo $delete; ?>" data-toggle="tooltip" title="<?php echo $button_delete; ?>" class="btn btn-info"><i class="fa fa-trash-o"></i></button>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
I just modified the step above. It should work accordingly now.lordslave wrote:Didn't work for me. The delete button appeared at the top, but when I click on it the admin is opened again in another tab without deleting any requests.
My Opencart 2.0.2.0
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
The point of posting code fixes on the forum is to avoid on remembering the change for next releases as it is already up to the Opencart team to add those corrections upon each releases since day one. Delays based on each releases that involves bug fixes is are not simply based on software error.exit15 wrote:Can this be made into a mod? so that we don't have to remember to change with every upgrade. I was testing V 2.1 and this is still an issue there. Frankly an oversight by the developers since we all know too well that the "missing orders" quickly fills up by schmucks testing stolen credit cards.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Thank you,
Sully
PLEASE PLEASE someone help. I'm on 2.0.1.1
~ OC 3.0.3.2 and OCmods only ~
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
~ OC 3.0.3.2 and OCmods only ~
https://www.opencart.com/index.php?rout ... n_id=28516
---
Delete Order History
https://www.opencart.com/index.php?rout ... n_id=23181
My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.
ps i guess the second one is only to delete order history.
~ OC 3.0.3.2 and OCmods only ~
It's already built-in the core in v3.x releases ...
All authorized users can check mark the order IDs from the order list and delete the orders dynamically.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
As the subject says: "Delete multiple orders" this answer is ony partly correct.straightlight wrote: ↑Fri Dec 04, 2020 8:13 pmIt's already built-in the core in v3.x releases ...
All authorized users can check mark the order IDs from the order list and delete the orders dynamically.
Per default (and builtin) with OpenCart 3.x versions you can delete only one (1) order per action.
To delete more at once (bulk) an Extension is needed.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
I wasn't aware that:OSWorX wrote: ↑Fri Dec 04, 2020 9:11 pmAs the subject says: "Delete multiple orders" this answer is ony partly correct.straightlight wrote: ↑Fri Dec 04, 2020 8:13 pmIt's already built-in the core in v3.x releases ...
All authorized users can check mark the order IDs from the order list and delete the orders dynamically.
Per default (and builtin) [v]with OpenCart 3.x versions you can delete only one (1) order per action[/b].
To delete more at once (bulk) an Extension is needed.
Code: Select all
<td style="width: 1px;" class="text-center"><input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);" /></td>
Code: Select all
<td class="text-center"> {% if order.order_id in selected %}
<input type="checkbox" name="selected[]" value="{{ order.order_id }}" checked="checked" />
{% else %}
<input type="checkbox" name="selected[]" value="{{ order.order_id }}" />
{% endif %}
<input type="hidden" name="shipping_code[]" value="{{ order.shipping_code }}" /></td>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
~ OC 3.0.3.2 and OCmods only ~
This was already reported before on the forum. However, the reason why it's not showing is due to the API requirements where only the catalog/controller/api/order.php file deletes the orders. It is indeed a bit confusing that admin users can simply delete the orders from the admin but also having to use an API to delete the orders. Deleting the orders manually doesn't get tracked from the catalog's activity event while playing with customers' transactions like that. This issue's already on my to-do list to fix it since there seem to be a lack of concept regarding this issue.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Also not, that you can check as many as you want, but delete always only one (1) because - as others already mentioned here: there is NO Delete button at the top right.
So don't confuse people here with "sophisticated" answers nobody has a benefit.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Users browsing this forum: No registered users and 73 guests