Например, чтобы отключить кнопку «Добавить в корзину» на странице сведений о продукте, вы можете добавить код ниже.
Перейти к приложению \ дизайн \ внешний интерфейс \\\ шаблон \ каталог \ продукт \ вид \ addtocart.phtml Добавить ниже кода после getProduct();?>
<?php if($_product->getTypeId() != 'simple'): ?>
<?php endif; ?>
поэтому файл выглядеть, как показано ниже.
<?php $_product = $this->getProduct();?>
<?php if($_product->getTypeId() != 'simple'): ?>
<?php $buttonTitle = $this->__('Add to Cart'); ?>
<?php if($_product->isSaleable()): ?>
<div class="add-to-cart">
<?php if(!$_product->isGrouped()): ?>
<label for="qty"><?php echo $this->__('Qty:') ?></label>
<input type="text" name="qty" id="qty" maxlength="12" value="<?php echo $this->getProductDefaultQty() * 1 ?>" title="<?php echo $this->__('Qty') ?>" class="input-text qty" />
<?php endif; ?>
<button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
<?php echo $this->getChildHtml('', true, true) ?>
</div>
<?php endif; ?>
<?php endif; ?>
И все готово!