Post by Taurinense » Tue Jun 23, 2020 10:49 pm

Hi, I would need to be able to edit customer orders by going to cancel some ordered products when they have ended, for example.

I do not find the possibility to do it by "edit order" in the admin panel.
What am I doing wrong?

Thank you


EDIT: i not have red trash to right panel

OC version 3.0.2.0

Attachments

Schermata 2020-06-23 alle 17.18.30.png

Schermata 2020-06-23 alle 17.18.30.png (104.87 KiB) Viewed 498 times


New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by Taurinense » Wed Jun 24, 2020 4:35 pm

Maybe the title should be changed to "edit order - not working".
I can't really edit an order, I miss the action button (red trash) in line product

New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by paulfeakins » Wed Jun 24, 2020 6:09 pm

You may need an extension to do this.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by Taurinense » Wed Jun 24, 2020 6:31 pm

paulfeakins wrote:
Wed Jun 24, 2020 6:09 pm
You may need an extension to do this.
OK thank you very much! Is there a free one? It seems strange to me that you cannot edit order to default ....

thank you

New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by xxvirusxx » Thu Jun 25, 2020 4:31 pm

You don't need an extension. Remove button should be there as default.
Possible an extension deactivate that button or was removed by someone.

Attachments

Screenshot_2020-06-25_11-23-38.png

Screenshot_2020-06-25_11-23-38.png (31.72 KiB) Viewed 388 times


My converted modules | Opencart 3.0.3.3 |Buy me a beer | Contact me on Skype


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - RO

Post by Taurinense » Fri Jun 26, 2020 3:31 pm

Thanks for the reply. Is there a way to understand which extension can conflict? Because it was not manually removed

thank you

New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by Taurinense » Fri Jun 26, 2020 8:43 pm

On my staging site I disabled all extensions from modules, deleted all installed extensions and searched for a new API.

But I still can't edit an order ... ??? :(

New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by Taurinense » Mon Jun 29, 2020 10:29 pm

Nobody has any idea why I can't edit an order? In addition to not being able to delete the product, I can't even add a new one.
This is unnerving, as I cannot, for example, replace the product if it is finished ... :(

thanks!!

New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by xxvirusxx » Tue Jun 30, 2020 7:26 pm

Taurinense wrote:
Mon Jun 29, 2020 10:29 pm
Nobody has any idea why I can't edit an order?
No, without checking the code...

My converted modules | Opencart 3.0.3.3 |Buy me a beer | Contact me on Skype


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - RO

Post by letxobnav » Tue Jun 30, 2020 7:44 pm

well,
1) what does this mean?
cancel some ordered products when they have ended
2) your quantity field in the order edit page is not standard, no unit price and no total
3) what extensions do you have?
4) what is the current status of these products?
5) are your api settings correct?
6) do you have an api token in your address bar?
7)what does the web developer screen look like?
something like:

Attachments

Capture.JPG

Capture.JPG (43.1 KiB) Viewed 230 times


Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Taurinense » Tue Jun 30, 2020 9:55 pm

letxobnav wrote:
Tue Jun 30, 2020 7:44 pm
well,
1) cancel some ordered products when they have ended
2) your quantity field in the order edit page is not standard, no unit price and no total
3) what extensions do you have?
4) what is the current status of these products?
5) are your api settings correct?
6) do you have an api token in your address bar?
7)what does the web developer screen look like?
something like:
Thanks everyone for the reply

1) Received an order, sometimes I need to modify the purchased products. For example, cancel a product and insert another in that order.
2) I do not know why .. I send a screen of the single product, I believe the prices are entered accurately.
3) I attach a screen of the installed extensions. I tried to disable them all on the staging site (not this main one) but to no avail....
4) the products purchased are all available (I have problems to edit all orders)
5) I think so, I also tried to create a new API and put it in settings but without result .. but maybe I'm wrong something there? I would not be :(
In addition to creating API and entering it in the settings, do I have to do anything else in particular? Thank you
6/7) how do I see it?

thank you so much for your patience and for the help!


site: https://new.turbowaterstyle.com/
simple url order: https://new.turbowaterstyle.com/admin/i ... er_id=9307

Attachments

Schermata 2020-06-30 alle 15.53.05.png

product ordered - Schermata 2020-06-30 alle 15.53.05.png (36.27 KiB) Viewed 212 times

Schermata 2020-06-30 alle 15.52.31.png

order - Schermata 2020-06-30 alle 15.52.31.png (64.29 KiB) Viewed 212 times


New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by letxobnav » Tue Jun 30, 2020 10:28 pm

web developer tools:
dotted menu top right of your browser
more tools -> developer tools
click network tab

open that while going to edit the order
go to the products tab

left bottom, you will see an ajax call to
index.php?route=api/cart/products&api_token=[your api token]&store_id=0
click on that on the right side click on "preview" or "response" to see what that call returns

like this:

Attachments

Capture.JPG

Capture.JPG (89.24 KiB) Viewed 199 times


Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by Taurinense » Wed Jul 01, 2020 4:06 pm

I followed your guide, but I can't find the index with the call in inspection .... where am I wrong? :(

Attachments

No Api.png

No Api - No Api.png (666.59 KiB) Viewed 151 times


New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by sw!tch » Wed Jul 01, 2020 5:37 pm

Refine your network panel to the XHR Tab instead of "ALL", then reload the page and repeat your process of trying to edit an order. See what shows up under that panel. Also you have a console error, so click that red X on the top right and see what that says as well.

Backup and [ learn how to recover ] before you make any changes.


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Taurinense » Wed Jul 01, 2020 5:51 pm

Ok thanks, I load the screens ... nothing comes out of XHR .... ???

Attachments

Schermata 2020-07-01 alle 11.49.08.png

Error icon - From Safari - Schermata 2020-07-01 alle 11.49.08.png (126.8 KiB) Viewed 116 times

Schermata 2020-07-01 alle 11.49.39.png

XHR - From Safari - Schermata 2020-07-01 alle 11.49.39.png (274.88 KiB) Viewed 116 times

Schermata 2020-07-01 alle 11.47.11.png

XHR - From Chrome - Schermata 2020-07-01 alle 11.47.11.png (471.79 KiB) Viewed 116 times


New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by sw!tch » Wed Jul 01, 2020 5:55 pm

Click continue see if anything shows up. Looks like a syntax error, you sure you tried disabling all plugins? Any option plugin you are using?

In the error console it has a line index.php:1514 click that and should bring up the source code. What do those lines look like?

Backup and [ learn how to recover ] before you make any changes.


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Taurinense » Wed Jul 01, 2020 6:06 pm

Nothing .. if I click on continue it doesn't do anything, it doesn't go on and it doesn't even visualize anything ..

these are the extensions installed ....
I tried on the staging site to delete all of them and unpick all the module, but nothing changes ...

Attachments

Schermata 2020-07-01 alle 12.04.09.png

Schermata 2020-07-01 alle 12.04.09.png (51.05 KiB) Viewed 96 times

Schermata 2020-07-01 alle 12.03.56.png

Schermata 2020-07-01 alle 12.03.56.png (79.3 KiB) Viewed 96 times


New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by sw!tch » Wed Jul 01, 2020 6:10 pm

Again on the red x in the top right click that
Then In the error console it has a line reference like index.php:1514 click that. That should bring up the problematic Javascript code.

FYI - When you delete an installed extension you have to still refresh your modification cache after you delete it.

Backup and [ learn how to recover ] before you make any changes.


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by Taurinense » Wed Jul 01, 2020 6:20 pm

There he is ...

ps .. thanks a lot for the help!

Attachments

Schermata 2020-07-01 alle 12.18.15.png

Schermata 2020-07-01 alle 12.18.15.png (221.32 KiB) Viewed 78 times


New member

Posts

Joined
Tue May 28, 2019 11:21 pm

Post by sw!tch » Wed Jul 01, 2020 6:24 pm

Taurinense wrote:
Wed Jul 01, 2020 6:20 pm
There he is ...

ps .. thanks a lot for the help!
Looks like an option add-on. Hard to tell, but looks like they need to escape the apostrophe. You need to figure out which extension then contact them to correct it.

Probably caused by the language translation, but hard to tell from the image. You can try disabling any extensions related to options, refresh your modification cache on each one or otherwise post a commercial request if you are unsure, etc.

Backup and [ learn how to recover ] before you make any changes.


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm
Who is online

Users browsing this forum: No registered users and 18 guests