Magento 1.9.3 Removing Add to Compare / Add to List in Product view
-
12-12-2020 - |
Domanda
Need help removing the following from beneath the Add to Cart. Thanks.
<?php if (!$this->hasOptions()):?>
<div class="add-to-box">
<?php if($_product->isSaleable()): ?>
<?php echo $this->getChildHtml('addtocart') ?>
<?php if( $this->helper('wishlist')->isAllow() ||
$_compareUrl=$this->helper('catalog/product_compare')-
>getAddUrl($_product)): ?>
<span class="or"><?php echo $this->__('OR') ?>
</span>
<?php endif; ?>
<?php endif; ?>
<?php echo $this->getChildHtml('addto') ?>
</div>
<?php echo $this->getChildHtml('extra_buttons') ?>
<?php elseif (!$_product->isSaleable()): ?>
<div class="add-to-box">
<?php echo $this->getChildHtml('addto') ?>
</div>
<?php endif; ?>
Soluzione
remove this code in your view.phtml
<?php echo $this->getChildHtml('addto') ?>
or Remove this Block in your local.xml
<remove name="addto" />
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange