Author Topic: Order Edit Addon  (Read 48252 times)

nfischer

  • Beginner
  • *
  • Posts: 21
    • Création de boutiques de vente en ligne
Re: Order Edit Addon
« Reply #30 on: July 21, 2006, 09:55:38 am »
I worked on this script and now you can add a new item to an existing order.
All the people can test this script and say me remarks or bugs.

The script is attached to this post. To install it you have to :
1. Download the attached file
2. Unzip it
3. Put it in your administrator/components/com_virtuemart/classes directory
4. Edit administrator/components/com_virtuemart/html/order.order_print.php
5. Replace the line

$tab->endPane();

with

$tab->startTab( $VM_LANG->_PHPSHOP_ORDER_EDIT, "order_edit_page" );
require_once(CLASSPATH.'ps_order_edit.php');
$tab->endTab();

Here are the elements to add in the language file (administrator/components/com_virtuemart/languages/). It's the french version :
   var $_PHPSHOP_ORDER_EDIT_ACTIONS = 'Actions';
   var $_PHPSHOP_ORDER_EDIT = 'Modifier Commande';
   var $_PHPSHOP_ORDER_EDIT_ADD = 'Ajouter';
   var $_PHPSHOP_ORDER_EDIT_ADD_PRODUCT = 'Ajouter un Produit';
   var $_PHPSHOP_ORDER_EDIT_EDIT_ORDER = 'Modifier la commande';
   var $_PHPSHOP_ORDER_EDIT_ERROR_QUANTITY_MUST_BE_HIGHER_THAN_0 = 'La quantité doit être supérieure à 0';
   var $_PHPSHOP_ORDER_EDIT_PRODUCT_ADDED = 'Produit ajouté à la commande';
   var $_PHPSHOP_ORDER_EDIT_PRODUCT_DELETED = 'Produit supprimé de la commande';
   var $_PHPSHOP_ORDER_EDIT_QUANTITY_UPDATED = 'Quantité mise à jour';
   var $_PHPSHOP_ORDER_EDIT_RETURN_PARENTS = 'Retour aux produits parents';

[attachment cleanup by admin]

djreason

  • Jr. Member
  • **
  • Posts: 125
    • Game Room and Man Cave Supplies
Re: Order Edit Addon
« Reply #31 on: July 29, 2006, 10:12:34 am »
seems like parts of this modification are showing up in french.  anyway to convert it to english for us dumb Americans?  LOL


seriously...English only request for this add-on

djreason

  • Jr. Member
  • **
  • Posts: 125
    • Game Room and Man Cave Supplies
Re: Order Edit Addon
« Reply #32 on: July 29, 2006, 10:29:22 am »
i also noticed that this does not update tax on the order.  I charge tax for those customers in my state and when I add items to their order, the tax does not update, nor is there a field to do so.  May want to work on this too.  It doesnt matter on orders where tax is not included, but local sales, it will wind up costing me money

Thanks in advance

nfischer

  • Beginner
  • *
  • Posts: 21
    • Création de boutiques de vente en ligne
Re: Order Edit Addon
« Reply #33 on: July 29, 2006, 11:19:28 am »
This addon will be integrated in Virtuemart. The translation in english will be available (and German)
You have to wait a little bit ...

For the tax problem, I don't understand exactly. It occurs when you add an item or when you modify the shipping tax ?

djreason

  • Jr. Member
  • **
  • Posts: 125
    • Game Room and Man Cave Supplies
Re: Order Edit Addon
« Reply #34 on: July 29, 2006, 11:29:12 am »
I dont use a shipping tax.  In the United States, each state has their own unique sales tax.  I am in Arizona so all order from people who are in Arizona add a 7.8% sales tax to the order total.  For example, if an item costs $139, then it would reflect a total cost around $147 or so.  When I add new items using this new modification, it does not recalculate the tax on those additional items...it keeps the same tax as if I only had one item in there.  Ultimately, there should be a code for a tax multiplier, i.e.  1 x 7.8%, 2 x 7.8%, etc....  Or it can be one multiplier for the total order cost.  so if the total cost line reads $150 it would take total order cost x 7.8% for a newly calculated grand total.  I hope this makes sense.

Thanks,

Brad


p.s...I already did the english translation on my own.  not that hard to search for words in the php file and change them to english

nfischer

  • Beginner
  • *
  • Posts: 21
    • Création de boutiques de vente en ligne
Re: Order Edit Addon
« Reply #35 on: July 31, 2006, 13:34:27 pm »
That's strange because I've tested this functionnality and on my VM there is no problem the tax total is ok after I've added a new item.
Could you post snapshots before and after you add a new product ?

djreason

  • Jr. Member
  • **
  • Posts: 125
    • Game Room and Man Cave Supplies
Re: Order Edit Addon
« Reply #36 on: July 31, 2006, 19:32:55 pm »
okay...here is a before and after.  if you notice, the first part of the order is for a tippman 98 at 147 which includes tax.  when I add on more of the same item, it defaults back to the outside of Arizona cost of 139. 

what do you think may be the problem?



[attachment deleted by admin]

nfischer

  • Beginner
  • *
  • Posts: 21
    • Création de boutiques de vente en ligne
Re: Order Edit Addon
« Reply #37 on: July 31, 2006, 20:29:30 pm »
ok, I will test this on my VM installation tomorrow.

djreason

  • Jr. Member
  • **
  • Posts: 125
    • Game Room and Man Cave Supplies
Re: Order Edit Addon
« Reply #38 on: August 03, 2006, 19:55:03 pm »
any luck on this yet?

Thanks for working on it

Brad

HulaQueen

  • Jr. Member
  • **
  • Posts: 316
Re: Order Edit Addon
« Reply #39 on: August 04, 2006, 12:25:19 pm »
This project is being tracked in the development section of the site and has an estimated delivery timeline of the end of August.

When you're ready for beta testers let me know - I would love to help.

Here's the link to the project for those of you that want to volunteer! This thread here looks happening too. I'm so excited for this functionality to come in.
http://virtuemart.net/index.php?option=com_flyspray&do=details&id=27&histring=order%20edit&pagenum=3&Itemid=83

Cheers,
Hula


Virtue Monkey

  • Jr. Member
  • **
  • Posts: 107
    • Church of the Flying Spaghetti Monster
Re: Order Edit Addon
« Reply #40 on: August 05, 2006, 14:46:26 pm »
Yes Siree,

This is one juicy, well needed mod, congrats to all working on it and let me know when it's ready to be tested by the most ruthless, unforgiving type of beta tester there is... a clueless newbie! (yes, scream my little ones! ;) )

hanhand

  • Beginner
  • *
  • Posts: 21
Re: Order Edit Addon
« Reply #41 on: August 07, 2006, 11:49:52 am »
Hello
This add-on is marvellous and it is essential for store owners thanks to all of you that worked on it, but i believe that this hack should have the capability to add to the cart of the customer and not only to orders that are placed by customers.

also it will be a good feature to allow admins to start a new order not only modify orders.

Thanks for the work

onsitenet

  • Beginner
  • *
  • Posts: 23
Re: Order Edit Addon
« Reply #42 on: August 15, 2006, 00:06:49 am »
Another good hack!

correction: (VM_1.0.6)

replace this code arround line 132 to 133

Code: [Select]
$tab->endTab();
$tab->endPane();

with this one:

Code: [Select]
$tab->endTab();
// MODIFICATION --- Manage orders (edit) from Back-End
$tab->startTab( $VM_LANG->_PHPSHOP_ORDER_EDIT, "order_edit_page" );
require_once(CLASSPATH.'ps_order_edit.php');
$tab->endTab();
// END OF MOD
$tab->endPane();

Additional language update must be made for "choose a product" (to add to the order)
which is in French... but I don't know where to find it!

Still is a "best of" hack,
George.

nfischer

  • Beginner
  • *
  • Posts: 21
    • Création de boutiques de vente en ligne
Re: Order Edit Addon
« Reply #43 on: August 16, 2006, 11:26:41 am »
Hi djreason,

I understand your problem and I have tested the same process on my Virtuemart 1.0.6.
There is no problem for me, when I add a new item to an existing order, the Total Tax is updated. I don't know why this problem occurs because it seems that I have the same configuration as you. I'm french and in France there is a 19,6% tax on each product.

Could you tell me what is your Tax configuration ? (Virtual Tax, Tax mode, ...)

Troubleshooter

  • Beginner
  • *
  • Posts: 5
Re: Order Edit Addon
« Reply #44 on: August 23, 2006, 20:14:22 pm »
for the translation of the Dropdown Menu check ps_order_edit.php at line 810 and it means choose an articel or somthing like that...  8)