更新时间:2023-11-30 09:56:52
如果调用了您的属性,例如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; ?>