且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento的 - 单定制产品属性与值数组

更新时间:2023-11-30 09:48:22

也许代替:

$ ingredientsArray =阵列($ ingredientsArrayContent);

$ingredientsArray = array($ingredientsArrayContent);

尝试使用:

$ ingredientsArray =阵列(爆炸( ",$ ingredientsArrayContent));

$ingredientsArray = array(explode(",",$ingredientsArrayContent));

根据您的属性是否被设置为:水,盐,色素"或水,盐,色素"定界符可能需要更改或您设置的属性值可能需要改变.

Depending on whether your attribute is set as: "water,salt,colourings" or "water, salt, colourings" your delimiter might need to change or how you set your attribute values might need to change.