Skip to content

When you change the address on the order page, the amount of the Payment block also changes. #34751

Open
PrestaShop/ui-testing-library
#1120

Description

@AudaceV

Prerequisites

Describe the bug and add attachments

iEThSgr

Expected behavior

No response

Steps to reproduce

Sell>orders>orders

  • Shipping address
  • Selected another address

iEThSgr

PrestaShop version(s) where the bug happened

8.0 and 8.1

PHP version(s) where the bug happened

No response

If your bug is related to a module, specify its name and its version

No response

Your company or customer's name goes here (if applicable).

No response

Activity

  1. added
    BugType: Bug
    NewNew issue not yet processed by QA
    on Dec 1, 2023
  2. AudaceV commented on Dec 1, 2023

    @AudaceV
    Author

    I'm forgot... The order must be "payment accepted"...Obviously :) (before to change another address)

  3. reopened this on Dec 1, 2023
  4. ShaiMagal commented on Dec 3, 2023

    @ShaiMagal
    Contributor

    @AudaceV New (changed) address is from same country/state or different?

    If different, maybe it's this settings:
    "Shop Parameters" - "Order Settings" - "Recalculate shipping costs after editing the order"

  5. AudaceV commented on Dec 4, 2023

    @AudaceV
    Author

    Hi,

    thanks for your response!
    The country/state is the same.

  6. florine2623 commented on Dec 4, 2023

    @florine2623
    Contributor

    Hello @AudaceV ,

    I can't reproduce your issue using the same order as you.

    Screen.Recording.2023-12-04.at.10.18.59.mov

    I'm closing te issue to avoid clogging the backlog.
    Thanks!

  7. added
    InvalidResolution: issue closed because invalid
    and removed
    NewNew issue not yet processed by QA
    on Dec 4, 2023
  8. AudaceV commented on Dec 4, 2023

    @AudaceV
    Author

    Hi @florine2623,

    like wrote before: The order must be "payment accepted"...Obviously :) (before to change another address)
    Please, check again!

  9. AudaceV commented on Dec 4, 2023

    @AudaceV
    Author

    Hi @florine2623,

    NOT SOLVED!

    like wrote before: The order must be "payment accepted"...Obviously :) (before to change another address)
    Please, check again!

  10. MatShir commented on Dec 4, 2023

    @MatShir
    Contributor

    So once the order is paid we should not update price :/
    I'm wondering if it is a new behaivor or just an old bug

  11. reopened this on Dec 4, 2023
  12. 15 remaining items

  13. added
    ReadyStatus: Issue is ready to be worked on
    and removed on Dec 7, 2023
  14. MatShir commented on Dec 7, 2023

    @MatShir
    Contributor

    If it concerns only demo product, I'm putting the severity to trivial. But if a member of the community can reproduce it for new orders we could increase the severity

  15. added
    TrivialSeverity: trivial bug > https://build.prestashop.com/news/severity-classification
    and removed
    MinorSeverity: minor bug > https://build.prestashop.com/news/severity-classification
    on Dec 7, 2023
  16. github-actions commented on Mar 23, 2026

    @github-actions
    Contributor

    👋 Hi there,

    Thank you for opening this issue. We've noticed that this issue has been open for more than 547 days with no recent activity. We want to keep our issue tracker focused and up to date.

    Is this issue still relevant to you?

    • If yes, please leave a short comment below (you or anyone else) to confirm that it's still relevant. We'll then remove the "stale" label and keep the issue open.
    • If we don't hear back, we'll assume the issue is no longer needed. A grace period of 30 days will apply from this message. After that, the issue will be automatically closed.

    We appreciate your contribution and understanding. 🙏

  17. github-actions commented on Apr 23, 2026

    @github-actions
    Contributor

    🔒 This issue has been automatically closed because there was no response or activity after it was marked as stale and the 30-day grace period has ended.

    If you believe this issue is still relevant, please feel free to reopen it and add a comment explaining why. We're happy to take another look.

    Thank you for your participation in this repository.

  18. boo-code commented on Sep 2, 2026

    @boo-code
    Contributor

    @AureRita's observation — reproduces on the preregistered orders but not on new ones — has a concrete cause: four of the five demo orders ship with a total_paid that contradicts the rest of their own row.

    From install-dev/fixtures/fashion/data/orders.xml, checking each order against its own siblings:

    id          products_wt  ship_incl  disc_incl   expected  total_paid  paid_incl   ok?
    orders_1          59.80       8.40       0.00      68.20       61.80      68.20   MISMATCH
    orders_2         169.90       0.00       0.00     169.90      169.90     169.90   OK
    orders_3          12.90       8.40       0.00      21.30       14.90      21.30   MISMATCH
    orders_4          12.90       8.40       0.00      21.30       14.90      21.30   MISMATCH
    orders_5          18.90       8.40       0.00      27.30       20.90      27.30   MISMATCH
    

    The gap is exactly total_shipping_tax_incl - 2.00 every time, and orders_2 — the only order with no shipping — is the only consistent one. The same query against a shop installed from these fixtures returns the same numbers, so it is the data, not the installer.

    Editing the order then runs OrderAmountUpdater::updateOrderTotals(), which recomputes total_paid from the cart and stores the consistent value. Nothing about the address needs to change for the figure to move — the stored value was simply never equal to what the order adds up to. Orders created through the front office or the back office are consistent from birth, which is why they do not reproduce it.

    Worth knowing for whoever fixes it: PrestaShop/ui-testing-library's src/data/demo/orders.ts encodes the same wrong figures, and 02_filterOrders.ts:121 filters the orders grid by dataOrders.order_4.totalPaid, so the fixture and the library have to change together. That file also says 69.90 for OHSATSERP where the fixture has always said 169.90.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    8.1.xBranchBOCategory: Back OfficeBugType: BugOrderComponent: Which BO section is concernedReadyStatus: Issue is ready to be worked onTrivialSeverity: trivial bug > https://build.prestashop.com/news/severity-classificationVerifiedThe issue has been reproduced

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions