【问题标题】:Remove Multiple Categories from Product In HYbris Using Impex使用 Impex 从 HYbris 中的产品中删除多个类别
【发布时间】:2018-12-06 01:33:03
【问题描述】:

如何在 HYbris 中使用 impex 删除多个类别并将其添加到产品中 在单行中 比如:

REMOVE CategoryProductRelation;target[unique=true](code,$catalogVersion);source[unique=true](code,$catalogVersion)

;xyz;cat1,cat2,cat3

【问题讨论】:

    标签: hybris impex


    【解决方案1】:

    你也可以试试:

    $ProductCatalogVersion=catalogVersion(catalog(id[default='$catalogID']),version[default='$catalogVersionID_STAGED'])[unique=true,default='$catalogID:$catalogVersionID_STAGED']
    $CategoryCatalogVersion=catalogVersion(catalog(id[default='$catalogID']),version[default='$catalogVersionID_STAGED'])[unique=true,default='$catalogID:$catalogVersionID_STAGED']
    
    $superCategories=supercategories(code,$CategoryCatalogVersion)
    
    
    INSERT_UPDATE Product;$ProductCatalogVersion;code[unique=true];$superCategories[mode = remove]
    ;;xyz;cat1,cat2,cat3
    

    希望对你有帮助

    【讨论】:

      【解决方案2】:

      每行删除 1 行。

       REMOVE CategoryProductRelation;target(code,$catalogVersion)[unique=true];source(code,$catalogVersion)[unique=true]
      
       ;xyz;cat1
       ;xyz;cat2
       ;xyz;cat3
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-09-02
        • 2019-01-19
        相关资源
        最近更新 更多