【问题标题】:Magento how to show product attribute in product page?Magento如何在产品页面中显示产品属性?
【发布时间】:2015-09-23 07:28:26
【问题描述】:

我在产品页面代码中使用一个属性来显示一个属性值是:

getProductShipping()):?>
Shipping Charges : Rs.getProductShipping(); ?>

它显示运费:卢比。 20什么是属性值。如果某些产品在该产品中没有价值,则那里没有显示任何内容,但如果没有价值,我想显示免费送货。我想要代码,请帮助我。

属性

【问题讨论】:

    标签: php magento attributes


    【解决方案1】:

    它可以这样工作:

    <?php if($product->getProductShipping()) { ?>
       Shipping Charges : Rs. <?php echo $product->getProductShipping(); ?>
    <?php } else { ?>   
       Free Shipping
    <?php } ?>      
    

    【讨论】:

    • getProductShipping 适合您吗?您在显示免费送货时遇到问题.. 对吗?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多