Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能知道如何在 magento upsell 网格中添加自定义字段以及保存产品后,如何获取该字段的值(是/否)?
确保产品属性设置为出现在产品列表中。
然后你应该可以使用简单的调用来调用它。
<?php if($_link->getAttributecode() == 1) echo 'Yes'; else echo 'No'; ?>
这个理论虽然没有经过测试。