更新时间:2023-11-30 09:34:34
如果你的属性被调用,比如说,show_image
,那么你可以这样读:
If your attribute was called, say, show_image
then you read it back like this:
<?php if ($_product->getShowImage()) : ?>
<img .... /><!-- PUT WHATEVER ELSE HTML YOU NEED HERE -->
<?php endif; ?>