PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

[MODULE] Free Script to edit orders

169 replies to this topic
#1
luca.lb

    PrestaShop Apprentice

  • Members
  • PipPip
  • 28 posts
I've made this script because there are no good modules to edit order
I have not written a module because I can not do it, I hope someone take my example and write a PrestaShop module.

** Feature **
- add products into order;
- edit order products quantity, price and description;
- edit order cost of shipping and discount;


test it before using it!

Bye


to download the last version visit http://ad.atomicshop...?pop=prestashop

#2
msk69

    PrestaShop Apprentice

  • Members
  • PipPip
  • 403 posts
Whow, the description sounds promising, just downloaded it, and give it a go.
Thanks.

#3
msk69

    PrestaShop Apprentice

  • Members
  • PipPip
  • 403 posts
The qty edit works ok with me, but when i want to add a product i get an: Access Denied.
Also when i call the add_product.php fromout the url directly.

#4
luca.lb

    PrestaShop Apprentice

  • Members
  • PipPip
  • 28 posts
open add_product.php

delete this

if ( is_null($_SESSION['token']) ) die('Access Denied');


attach the correct files

#5
msk69

    PrestaShop Apprentice

  • Members
  • PipPip
  • 403 posts
Now it works, thanks!

Only when adding a product, the same product appears in every language. could that be filtered to one?

Also what would has to be changed to update the description as well of the product.
Reason for this is that we are selling erotic goods, and if we send it outside the eu, we do not want erotic description of the product, so we digg into the db and change the lines.

the script may also be a good base to update stock easily, search product and enter the qty received. ?

#6
luca.lb

    PrestaShop Apprentice

  • Members
  • PipPip
  • 28 posts
i've modified the script! Description editing is possible now!

#7
msk69

    PrestaShop Apprentice

  • Members
  • PipPip
  • 403 posts
Great, Thank you very much!

Marco

#8
Curly

    PrestaShop Newbie

  • Members
  • Pip
  • 5 posts
I have tried the script and this seems to be what I am missing in Prestashop!

There is only one problem and that is that I do not get an id_lang from the add_product.php. My url looks like: order_edit.php?action=add_product&id;_lang=&id_order=000002&id_product=5 and this gives an error when adding a product.
Am I doing something wrong?

#9
palanca

    PrestaShop Newbie

  • Members
  • Pip
  • 7 posts
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in Z:\home\site.ru\www\law\order_edit.php on line 45

that correct?
thanks!

#10
luca.lb

    PrestaShop Apprentice

  • Members
  • PipPip
  • 28 posts
the bug have been fixed, I've update the the files
Bye

#11
dreamworker

    PrestaShop Newbie

  • Members
  • Pip
  • 22 posts
great script .. thank you.

Could someone create module(or edit AdminOrders) based on this script?

#12
palanca

    PrestaShop Newbie

  • Members
  • Pip
  • 7 posts
Download the new archive. error is the same:)

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in Z:\home\site.ru\www\law\order_edit.php on line 45

Thank you!

Maybe because I use the Cyrillic alphabet?

#13
msk69

    PrestaShop Apprentice

  • Members
  • PipPip
  • 403 posts

From 1267173345:

great script .. thank you.

Could someone create module(or edit AdminOrders) based on this script?


Just make a quick access link ;-)
Back Office >> Tools >> Quick Accesses
Works faster then going into the modules page.

#14
Curly

    PrestaShop Newbie

  • Members
  • Pip
  • 5 posts
I tried it and I am also getting the same error. The id_lang is missing from the add_product.php page. The link to add a new product looks as follows: order_edit.php?action=add_product&id;_lang=&id_order=000002&id_product=8
When I manually set id_lang to a certain value it works.

#15
msk69

    PrestaShop Apprentice

  • Members
  • PipPip
  • 403 posts
Maybe standard, the default language should be set on 1 in the script?

#16
jakubek

    PrestaShop Apprentice

  • Members
  • PipPip
  • 237 posts
i have version 1.1 and dont see change in order .

its compatibile with xx verison?
Posted Image

#17
luca.lb

    PrestaShop Apprentice

  • Members
  • PipPip
  • 28 posts
i've developped its on 1.2.5 version

#18
jakubek

    PrestaShop Apprentice

  • Members
  • PipPip
  • 237 posts
in 1.3 will be ok too?
Posted Image

#19
luca.lb

    PrestaShop Apprentice

  • Members
  • PipPip
  • 28 posts
yes, 1.3 is ok!

#20
jakubek

    PrestaShop Apprentice

  • Members
  • PipPip
  • 237 posts
i add 2 file in admin and i dont see element to edit? why?
Posted Image