legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay Commerce、Placed Orders ウィジェット: ブラウザの [戻る] ボタンを押すとページ設定が失われる

written-by

Phil Chapman

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ブラウザーの戻るボタンを使用すると、Commerce の Placed Orders ウィジェットで、ページ配置とページ構成ごとのアイテムの両方が失われます。

    セットアップ例
    1. 商業命令
    2 を 5 回完了する。 注文画面に移動します。 > ページあたりのアイテム数を 4 (可能な限り低い値) に設定します。

    4.png
    3. ページ 2
    4 に移動します。 [表示] ボタンをクリックして、最後の注文
    5 の注文の詳細を表示します。 ブラウザ




    5.png

Environment

  • DXP 7.3

解決策

  • これは、現時点で製品の既知の制限です。

    現在の実装では、 itemsPerPage および pageNumberの値がハードコードされています。これは、初期表示値が常に「1 ページあたり 10 アイテム」であることを意味するため、上記の場合、ページが更新されるか戻るボタンが押されると、5 つの注文すべてが表示されます。押されます。

did-this-article-resolve-your-issue

legacy-knowledge-base