[僅限PaaS]{class="badge informative" title="僅適用於雲端專案(Adobe管理的PaaS基礎結構)和內部部署專案的Adobe Commerce 。"}

ACSD-60538:如果在​ All Store Views ​中停用產品,則屬性無法正確顯示

ACSD-60538修補程式修正了產品在​ All Store Views ​中停用,且只在特定商店檢視範圍中啟用的情況下,產品屬性在GraphQL回應中無法正確顯示,導致產品無法正確顯示的問題。 安裝Quality Patches Tool (QPT) 1.1.51時,即可使用此修補程式。 修補程式ID為ACSD-60538。 請注意,此問題已排程在Adobe Commerce 2.4.8中修正。

受影響的產品和版本

已為Adobe Commerce版本建立修補程式:

Adobe Commerce (所有部署方法) 2.4.7-p1

與Adobe Commerce版本相容:

Adobe Commerce (所有部署方法) 2.4.7 - 2.4.7-p2

NOTE
此修補程式可能適用於發行版本為Quality Patches Tool的其他版本。 若要檢查修補程式是否與您的Adobe Commerce版本相容,請將magento/quality-patches套件更新至最新版本,並在Quality Patches Tool上檢查相容性:搜尋修補程式頁面。 使用修補程式ID作為搜尋關鍵字,以尋找修補程式。

問題

如果產品在​ All Store Views ​中停用,並且只在特定的存放區檢視範圍中啟用,則產品屬性在GraphQL回應中無法正確顯示,導致產品無法正確顯示。

必要條件

已安裝清查模組。

要再現的步驟

  1. 建立可設定的產品包含​ color ​屬性和三個子產品(藍色黑色 ​和​ 棕色)。

  2. 停用​ 範圍上兩個關聯的子產品( ​藍色​ ​黑色​ All Store Views)。

  3. 移至​ Store View ​範圍。

  4. 在​ 範圍上啟用子產品( ​藍色​ ​黑色​ Store View)。

  5. 執行以下GraphQL請求:

    code language-graphql
    {
      products(filter: { sku: { eq: "SKU" } }) {
        items {
            ... on ConfigurableProduct {
              configurable_options {
                attribute_id,
                attribute_code,
             values {
              value_index
              label
            }
        }
        variants {
          product {
            sku
          }
          attributes {
            label
            code
            value_index
           }
          }
         }
        }
       }
      }
    

預期結果

GraphQL回應包含在​ All Store Views ​上停用並在​ Store View ​範圍上啟用的子關聯產品的屬性值。

實際結果

產品在​ All Store Views ​上停用並在​ Store View ​範圍上啟用時,GraphQL回應的子關聯產品屬性值為空白。

套用修補程式

若要套用個別修補程式,請根據您的部署方法使用下列連結:

相關閱讀

若要進一步瞭解Quality Patches Tool,請參閱:

如需QPT中其他修補程式的詳細資訊,請參閱Quality Patches Tool指南中的:搜尋修補程式Quality Patches Tool。

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3