Hello, Guest |
| Register
Remember me Forgot password ?
Site Map Site Map Contact us Contact us
PrestaShop e-commerce software
  775 users online
Forum  >  English Forum  >  Third party modules  >  Thread

1 of 5
1
Post Reply
New Topic
[MODULE] Free Script to edit orders

offline
Posted: 24 February 2010 11:11 AM   [ Ignore ]
Apprentice
RankRank

Messages :

  • total: 42
  • last 7 days: 0
Joined: 2009-12-18

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.it/?pop=prestashop

 
offline
Posted: 24 February 2010 11:21 PM   [ Ignore ]   [ # 1 ]
Senior Member
RankRankRank
Avatar

Messages :

  • total: 321
  • last 7 days: 1
Joined: 2008-01-11

Whow, the description sounds promising, just downloaded it, and give it a go.
Thanks.

 
offline
Posted: 24 February 2010 11:56 PM   [ Ignore ]   [ # 2 ]
Senior Member
RankRankRank
Avatar

Messages :

  • total: 321
  • last 7 days: 1
Joined: 2008-01-11

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.

 
offline
Posted: 25 February 2010 02:29 AM   [ Ignore ]   [ # 3 ]
Apprentice
RankRank

Messages :

  • total: 42
  • last 7 days: 0
Joined: 2009-12-18

open add_product.php

delete this
<code>
if ( is_null($_SESSION[‘token’]) ) die(‘Access Denied’);
<code>

attach the correct files

 
offline
Posted: 25 February 2010 11:24 AM   [ Ignore ]   [ # 4 ]
Senior Member
RankRankRank
Avatar

Messages :

  • total: 321
  • last 7 days: 1
Joined: 2008-01-11

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. ?

 
offline
Posted: 25 February 2010 12:25 PM   [ Ignore ]   [ # 5 ]
Apprentice
RankRank

Messages :

  • total: 42
  • last 7 days: 0
Joined: 2009-12-18

i’ve modified the script! Description editing is possible now!

 
offline
Posted: 25 February 2010 01:26 PM   [ Ignore ]   [ # 6 ]
Senior Member
RankRankRank
Avatar

Messages :

  • total: 321
  • last 7 days: 1
Joined: 2008-01-11

Great, Thank you very much!

Marco

 
offline
Posted: 25 February 2010 10:30 PM   [ Ignore ]   [ # 7 ]
Newcomer
Rank

Messages :

  • total: 5
  • last 7 days: 0
Joined: 2009-09-10

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?

 
offline
Posted: 26 February 2010 11:25 AM   [ Ignore ]   [ # 8 ]
Beginner
Rank

Messages :

  • total: 7
  • last 7 days: 0
Joined: 2010-02-25

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!

 
offline
Posted: 26 February 2010 11:33 AM   [ Ignore ]   [ # 9 ]
Apprentice
RankRank

Messages :

  • total: 42
  • last 7 days: 0
Joined: 2009-12-18

the bug have been fixed, I’ve update the the files
Bye

 
offline
Posted: 26 February 2010 11:35 AM   [ Ignore ]   [ # 10 ]
Apprentice
RankRank

Messages :

  • total: 23
  • last 7 days: 0
Joined: 2009-11-21

great script .. thank you.

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

 Signature 

Můj obchod sexy kostýmky na party a karneval

 
offline
Posted: 26 February 2010 12:11 PM   [ Ignore ]   [ # 11 ]
Beginner
Rank

Messages :

  • total: 7
  • last 7 days: 0
Joined: 2010-02-25

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?

 
offline
Posted: 26 February 2010 12:14 PM   [ Ignore ]   [ # 12 ]
Senior Member
RankRankRank
Avatar

Messages :

  • total: 321
  • last 7 days: 1
Joined: 2008-01-11

dreamworker - 26 February 2010 11:35 AM
great script .. thank you.

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

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

 
offline
Posted: 26 February 2010 01:18 PM   [ Ignore ]   [ # 13 ]
Newcomer
Rank

Messages :

  • total: 5
  • last 7 days: 0
Joined: 2009-09-10

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.

 
offline
Posted: 26 February 2010 01:22 PM   [ Ignore ]   [ # 14 ]
Senior Member
RankRankRank
Avatar

Messages :

  • total: 321
  • last 7 days: 1
Joined: 2008-01-11

Maybe standard, the default language should be set on 1 in the script?

 
offline
Posted: 27 February 2010 10:27 AM   [ Ignore ]   [ # 15 ]
Club Member
RankRankRank

Messages :

  • total: 200
  • last 7 days: 3
Joined: 2009-11-24

i have version 1.1 and dont see change in order .

its compatibile with xx verison?

 
 
1 of 5
1
Fast Reply
New Topic