属性TextFieldでvalue= 0の場合、 "無料配信"を表示する
-
28-09-2020 - |
質問
この
解決
<span class="price-label"><?php echo $_specialPriceStoreLabel ?></span>
<span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getIdSuffix() ?>"
<?php if($helperSettings->isShowOfferPrice($_product)):?> itemprop="lowPrice"<?php endif;?>>
<?php echo $_coreHelper->formatPrice($_finalPrice, false) ?>
<?php
$deliveryPrice = $_product->getData("mp_local_shipping_charge");
if($deliveryPrice == 0){
<p class="sell_price"><?php echo "Selling Price (Free Delivery )"; ?>
}elseif(empty($deliveryPrice)){
<p class="sell_price"><?php echo "Selling Price"; ?>
<?php echo "+ Rs 50 Delivery "; ?>
<?php }else {?>
<p class="sell_price"><?php echo "Selling Price"; ?>
<?php
echo "+ Rs " . $_product->getData("mp_local_shipping_charge") . " Delivery ";
?>
<?php } ?>
. 所属していません magento.stackexchange