fix: set state=1 in product XML so PS 8 admin list shows synced products
PS 8 introduced a state column (0=draft, 1=published). Products created via Webservice without state default to 0, making them invisible in the admin product list (which filters state=1 only). The storefront does not check state, so products appeared there but not in admin. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
fe7be5fc80
commit
0d32497abd
|
|
@ -255,6 +255,7 @@ public class PrestashopClient {
|
||||||
if (dto.idCategoryDefault() != null) {
|
if (dto.idCategoryDefault() != null) {
|
||||||
sb.append("<id_category_default>").append(escapeXml(dto.idCategoryDefault())).append("</id_category_default>");
|
sb.append("<id_category_default>").append(escapeXml(dto.idCategoryDefault())).append("</id_category_default>");
|
||||||
}
|
}
|
||||||
|
sb.append("<state>1</state>");
|
||||||
sb.append("<id_tax_rules_group>1</id_tax_rules_group>");
|
sb.append("<id_tax_rules_group>1</id_tax_rules_group>");
|
||||||
sb.append("<id_shop_default>1</id_shop_default>");
|
sb.append("<id_shop_default>1</id_shop_default>");
|
||||||
sb.append("<available_for_order>1</available_for_order>");
|
sb.append("<available_for_order>1</available_for_order>");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue