1
I have a question for you. My problem is that the space in the display is too big if I hide the same options in the shopping cart!
My code hides the image of the product but the white space (empty) is great. I want to fix this to have a beautiful layout.
/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 product link in the cart. But it is difficult to reduce the empty space. I want to remove the empty space, as I do it?
Friend, here everyone speaks Portuguese. So, could you please edit your question to translate it?
– Victor Stafusa
I sent a translation edition.
– mutlei