PrestaShop Forums: [MODULE] Free Script to edit orders - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


[MODULE] Free Script to edit orders


[MODULE] Free Script to edit orders

#1 luca.lb

    PrestaShop Apprentice

  • 18 Dec 2009
  • Members
  • PipPip
  • 28 posts

Posted 24 February 2010 - 09:11 AM

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

  • 11 Jan 2008
  • Members
  • PipPip
  • 393 posts

Posted 24 February 2010 - 09:21 PM

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

#3 msk69

    PrestaShop Apprentice

  • 11 Jan 2008
  • Members
  • PipPip
  • 393 posts

Posted 24 February 2010 - 09:56 PM

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

  • 18 Dec 2009
  • Members
  • PipPip
  • 28 posts

Posted 25 February 2010 - 12:29 AM

open add_product.php

delete this

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


attach the correct files

#5 msk69

    PrestaShop Apprentice

  • 11 Jan 2008
  • Members
  • PipPip
  • 393 posts

Posted 25 February 2010 - 09:24 AM

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

  • 18 Dec 2009
  • Members
  • PipPip
  • 28 posts

Posted 25 February 2010 - 10:25 AM

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

#7 msk69

    PrestaShop Apprentice

  • 11 Jan 2008
  • Members
  • PipPip
  • 393 posts

Posted 25 February 2010 - 11:26 AM

Great, Thank you very much!

Marco

#8 Curly

    PrestaShop Newbie

  • 10 Sep 2009
  • Members
  • Pip
  • 5 posts

Posted 25 February 2010 - 08:30 PM

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

  • 25 Feb 2010
  • Members
  • Pip
  • 7 posts

Posted 26 February 2010 - 09:25 AM

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

  • 18 Dec 2009
  • Members
  • PipPip
  • 28 posts

Posted 26 February 2010 - 09:33 AM

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

#11 dreamworker

    PrestaShop Newbie

  • 21 Nov 2009
  • Members
  • Pip
  • 22 posts

Posted 26 February 2010 - 09:35 AM

great script .. thank you.

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

#12 palanca

    PrestaShop Newbie

  • 25 Feb 2010
  • Members
  • Pip
  • 7 posts

Posted 26 February 2010 - 10:11 AM

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

  • 11 Jan 2008
  • Members
  • PipPip
  • 393 posts

Posted 26 February 2010 - 10:14 AM

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

  • 10 Sep 2009
  • Members
  • Pip
  • 5 posts

Posted 26 February 2010 - 11:18 AM

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

  • 11 Jan 2008
  • Members
  • PipPip
  • 393 posts

Posted 26 February 2010 - 11:22 AM

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

#16 jakubek

    PrestaShop Apprentice

  • 24 Nov 2009
  • Members
  • PipPip
  • 237 posts

Posted 27 February 2010 - 08:27 AM

i have version 1.1 and dont see change in order .

its compatibile with xx verison?
Posted Image

#17 luca.lb

    PrestaShop Apprentice

  • 18 Dec 2009
  • Members
  • PipPip
  • 28 posts

Posted 27 February 2010 - 09:26 AM

i've developped its on 1.2.5 version

#18 jakubek

    PrestaShop Apprentice

  • 24 Nov 2009
  • Members
  • PipPip
  • 237 posts

Posted 27 February 2010 - 09:28 AM

in 1.3 will be ok too?
Posted Image

#19 luca.lb

    PrestaShop Apprentice

  • 18 Dec 2009
  • Members
  • PipPip
  • 28 posts

Posted 27 February 2010 - 09:55 AM

yes, 1.3 is ok!

#20 jakubek

    PrestaShop Apprentice

  • 24 Nov 2009
  • Members
  • PipPip
  • 237 posts

Posted 27 February 2010 - 11:03 AM

i add 2 file in admin and i dont see element to edit? why?
Posted Image





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users