ACP2E-4808:產品重量顯示不含店面的度量單位
ACP2E-4808修補程式修正了storefront產品頁面上的Weight屬性在 Additional Information 或 More Information 區段中只顯示原始數值而沒有設定測量單位(lbs或kgs)的問題。 安裝Quality Patches Tool (QPT) 1.1.80時,即可使用此修補程式。 修補程式ID為ACP2E-4808。 請注意,此問題已排程在Adobe Commerce 2.4.9中修正。
受影響的產品和版本
已為Adobe Commerce版本建立修補程式:
- Adobe Commerce (所有部署方法) 2.4.7-p7
與Adobe Commerce版本相容:
- Adobe Commerce (所有部署方法) 2.4.5 - 2.4.9
NOTE
此修補程式可能適用於發行版本為Quality Patches Tool的其他版本。 若要檢查修補程式是否與您的Adobe Commerce版本相容,請將
magento/quality-patches套件更新至最新版本,並在Quality Patches Tool上檢查相容性:搜尋修補程式頁面。 使用修補程式ID作為搜尋關鍵字,以尋找修補程式。問題
店面產品頁面上的Weight屬性在 Additional Information 或 More Information 區段中只顯示原始數值,沒有設定的測量單位(lbs或kgs)。
要再現的步驟:
- 前往「管理員> Stores > Attributes > Product」。
- 開啟「權數」屬性。
- 在 Storefront Properties 底下,將 Visible on Catalog Pages on Storefront 設定為Yes。
- 前往「管理員> Catalog > Products」。
- 開啟任何產品,並確定在「重量」屬性中輸入了值。
- 導覽至店面的產品頁面。
- 檢視 Additional Information 或 More Information 區段。
- 觀察權重列。
預期結果:
重量以設定的單位顯示,例如 2 磅(或公斤,視商店組態而定)。
實際結果:
重量只顯示為數字(例如10.000000),不顯示任何單位。
套用修補程式
若要套用個別修補程式,請根據您的部署方法使用下列連結:
- Adobe Commerce或Magento Open Source內部部署: Quality Patches Tool指南中的Quality Patches Tool >使用狀況。
- 雲端基礎結構上的Adobe Commerce:雲端基礎結構上的Commerce指南中的升級和修補程式>套用修補程式。
相關閱讀
若要進一步瞭解Quality Patches Tool,請參閱:
recommendation-more-help
commerce-operations-help-tools