php - Creating exceptions when comparing a variable to a string? -
php - Creating exceptions when comparing a variable to a string? -
the php code excerpt below triggers "call price" select manufacturers on our magento site. so, how "exclude" select products these vendors? instance, within our manufacturer "xmarks" there 10 products not want show "call price" instead sale price, list cost & add together cart button. how do this? i'm finish beginner. give thanks you!
<p class="special-price"> <span class="price-label"><?php echo $this->__('special price:') ?></span> <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getidsuffix() ?>"> <?php if($manufacturername == 'xmarks' || $manufacturername == 'maxtor' || $manufacturername == 'trixfx' || $manufacturername == "oouph" || $manufacturername == "groffer" || $manufacturername == "wofstern"){ ?> <span class="olyprice">call price</span><?php }
<p class="special-price"> <span class="price-label"><?php echo $this->__('special price:') ?></span> <span class="price" id="product-price-<?php echo $_id ?><?php echo $this->getidsuffix() ?>"> <?php function callprice(){ echo '<span class="olyprice">call price</span>';} switch ($manufacturername){ case: 'xmarks' if(product != prduct) { callprice(); } break; case: 'maxtor' if(product != prduct) { callprice(); } break; ...
php magento
Comments
Post a Comment