Author Topic: Order does not update on backend edit  (Read 466 times)

tvds

  • Beginner
  • *
  • Posts: 8
Order does not update on backend edit
« on: March 07, 2017, 08:48:02 am »
So I have a strange problem.

I've got this migrated joomla site 1.x to 3.x with virtuemart upgraded.

Now everything looks to work fine but somehow the order editing on the backend does not work. (or is it a feature that does not exsists?

I can edit an order on the backend (as some customers would like to have a different product of I would like to give them an extra discount)

But when I'm editing nothing auto-recalculates! When changing discounts or pricing nothing updates
I cannot even add a product and search for it.

Could somebody please help me?

I'm willing to pay!

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2585
  • VirtueMart Version: 3.2.4
Re: Order does not update on backend edit
« Reply #1 on: March 07, 2017, 10:06:52 am »
That is how it works in VM3 unfortunately. 

IMHO everything else is an improvement over VM1
regards
A

Joomla 3.7.4
php 5.6 + php 7

tvds

  • Beginner
  • *
  • Posts: 8
Re: Order does not update on backend edit
« Reply #2 on: March 07, 2017, 10:11:55 am »
No what really?

So I have to calculate everything by hand? Wow!

Great product :-)

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9327
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Order does not update on backend edit
« Reply #3 on: March 07, 2017, 10:13:20 am »
That is not true AH, the recalculation works, BUT you must configure it. You must delete the values, which should be recalculated, only empty values are recalculated. And you must hit the checkbox
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9327
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Order does not update on backend edit
« Reply #4 on: March 07, 2017, 10:15:09 am »
and you should try the last version vm3.0.19.8, because I did some improvments there for the order edit. For example it does not send automatically an email to the customer storing the edited order.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tvds

  • Beginner
  • *
  • Posts: 8
Re: Order does not update on backend edit
« Reply #5 on: March 07, 2017, 10:15:51 am »
So how do I configure it?

Does it update right away (so like a ajax call) or do I first have to save the edited order?

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9327
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Order does not update on backend edit
« Reply #6 on: March 07, 2017, 10:20:37 am »
"BUT you must configure it. You must delete the values"

How else should the system know what are input data and what are to be calculated data? and of course, you cannot calculate in any direction, but you can assume it works from left to right. Example

a) You edit a product, you change the net price, the product had a discount, you set for the discount 0.0 => you will get the final price and tax calculated based on the discount.

b) You edit the same product, the discount is done by a calculation rule based on percentage, you empty the discount field => a new discount is calculated and a new final price and tax.

But always, when you write something in a field, it is not overriden. It is imho a lot better than in vm1.1, but seems that even moderators dont know about.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

tvds

  • Beginner
  • *
  • Posts: 8
Re: Order does not update on backend edit
« Reply #7 on: March 07, 2017, 10:33:58 am »
Milbo,

Are we talking about product editing or order editing?

Because I'm talking about order editing :-)

tvds

  • Beginner
  • *
  • Posts: 8
Re: Order does not update on backend edit
« Reply #8 on: March 07, 2017, 10:35:19 am »
What ever I do in the Order edit form I does not auto-recalculate

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2585
  • VirtueMart Version: 3.2.4
Re: Order does not update on backend edit
« Reply #9 on: March 07, 2017, 10:43:34 am »
Correction

Quote
I cannot even add a product and search for it.

This is true.


@milbo states:-
Quote
You must delete the values, which should be recalculated, only empty values are recalculated. And you must hit the checkbox

I wish you good luck with working out which fields you have to populate.

I decided to just populate the £10.00 in the base price for an example and check the calculate button

My results are shown - calculate was set for the item added and the totals.  (At this moment in time I think the "recalculation works" is based on what you mean by works and what you populate)

Please feel free to play around with this and let us know how you get on.


regards
A

Joomla 3.7.4
php 5.6 + php 7

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1022
    • Kreativ Fotografi
  • VirtueMart Version: 3.0.19.9
Re: Order does not update on backend edit
« Reply #10 on: March 07, 2017, 10:45:41 am »
Hello Milbo

That sounds great, but I do not agree. The recalculation does some unexpected things.

I have an example, that is actually correct from the start, but I wanted to see if it updates as expected.

Discount rule of 50 %
VAT rule 25 %

From left to right:
cost price 156 sek
base price with VAT 195 sek
Product price 97,50 sek
VAT 19,50 sek
discount 78 sek
total 97,50 sek

If I delete discount, tick calculate and hit save, I get:
From left to right:
cost price 156 sek
base price with VAT 195 sek
Product price 195 sek
VAT 39 sek
discount 0,00 sek
total 195 sek

What am I doing wrong ?

best regards

Jörgen @ Kreativ Fotografi

Joomla 3.6.5
Virtuemart 3.0.19.9
Olympiantheme Hera (customized)

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2585
  • VirtueMart Version: 3.2.4
Re: Order does not update on backend edit
« Reply #11 on: March 07, 2017, 11:00:34 am »
Quote
But always, when you write something in a field, it is not overriden. It is imho a lot better than in vm1.1, but seems that even moderators dont know about.

Check back to old VM1 @milbo - "imho a lot better" - is not the same as user friendly

Select an existing product -
Add 1 or a qty of that product to the order
Change the  net, gross for the line if required and recalculate. 
Store the correct SKU / Product ID  in the order details
Update the order totals to f=reflect the product changes.


However - this has been raised before and we have moved no further with this function (IMHO)

http://forum.virtuemart.net/index.php?topic=124027.msg423904#msg423904
http://forum.virtuemart.net/index.php?topic=131253.msg463599#msg463599



regards
A

Joomla 3.7.4
php 5.6 + php 7

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2585
  • VirtueMart Version: 3.2.4
Re: Order does not update on backend edit
« Reply #12 on: March 07, 2017, 11:02:22 am »
Ah Jorgen - I see you are still trying to work with this :-)

Quote
What am I doing wrong ?

Maybe the question is - what do I need to do to get it right.
regards
A

Joomla 3.7.4
php 5.6 + php 7

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9327
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/