Ihaveaquestionforyou.MyproblemisthatthespaceontheviewistoobigifIhidethesameoptionsintheshoppingcart!
Mycodehidestheproductimagebuttheemptyspaceislarge.Iwanttofixthistohaveabeautifullayout.
/app/design/frontend/rwd/default/template/customcart/cart/item/default.phtml [o arquivo original]
CODE:
<td class="product-cart-image">
<?php if ($this->hasProductUrl()):?>
<?php //hide product link of image only ?>
<?php if(!Mage::getStoreConfig('....../option/rwd_item_image')): ?>
<a href="<?php echo $this->getProductUrl() ?>" title="<?php echo $this->escapeHtml($this->getProductName()) ?>" class="product-image">
<?php endif; ?>
<?php endif;?>
<?php //hide product image only ?>
<?php if(!Mage::getStoreConfig('...../option/rwd_item_image')): ?>
<img src="<?php echo $this->getProductThumbnail()->resize(180); ?>" alt="<?php echo $this->escapeHtml($this->getProductName()) ?>" />
<?php endif; ?>
<?php if ($this->hasProductUrl()):?>
</a>
<?php endif;?>
This code hides the image and the product link in the cart. But it is difficult to reduce empty space. I want to remove empty space, how do I do that?