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

 

Order change in backoffice: removing an items does not update totals?

7 replies to this topic
#1
boran

    PrestaShop Apprentice

  • Members
  • PipPip
  • 42 posts
Hi,

Lets say a client places an order with many items, and we notices that one is not in stock and cannot be delivered for a long time.
So we contact the client who says to forget that item and deliver the rest.

In Back Office >> Orders, the item is deleted from the Order.
But the order totals on the top right are not deleted.

Is the normal, or a bug?

Thanks in advance.

#2
TropischBruin

    PrestaShop Fanatic

  • Moderators
  • 2198 posts
Bug, solved in the SVN I think.
Norman in 't VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

#3
boran

    PrestaShop Apprentice

  • Members
  • PipPip
  • 42 posts
I'm using SVN from early Jan. Is it very recent?

Sean

#4
TropischBruin

    PrestaShop Fanatic

  • Moderators
  • 2198 posts
Why not check and update?
Norman in 't VeldtModeratorPrestaShopForums
Help PrestaShop, make a donation!

#5
boran

    PrestaShop Apprentice

  • Members
  • PipPip
  • 42 posts
Well it took me several days to update, not a trivial task :-)
I'm now running SVN 468.

This bug has not been fixed.

#6
L. Brett Sinclair

    PrestaShop Apprentice

  • Members
  • PipPip
  • 320 posts
yes, it's a bug

you need to manually update total_paid,total_product,total_paid_real in table ps_orders
Tout sur la Country avec
www.Country-Cowboy.com

Blanchiment des dents avec
www.DentsDeStars.com
:cheese:

#7
boran

    PrestaShop Apprentice

  • Members
  • PipPip
  • 42 posts
Has a bug been registered, I'd like to track it.
I don't suppose you've example SQL statements that I can use as a starting point, i.e. that calculate the total correctly?

Sean

#8
L. Brett Sinclair

    PrestaShop Apprentice

  • Members
  • PipPip
  • 320 posts
since it is on a rare occasion, I handle it on case by case basis.
I do not have a SQL that recalculate everything.

In your case, I would delete the line ps_order_detail related to that order. (based on your DB host, phpadmin, you can just click the "delete" button)
Then, I would decrease the record in ps_orders to the amount value that I deleted.

Now there are some statistics tables that should be updated that I do not update at the moment.
Tout sur la Country avec
www.Country-Cowboy.com

Blanchiment des dents avec
www.DentsDeStars.com
:cheese: