Unnecessary space in sales module div

1

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?

    
asked by anonymous 06.02.2015 / 08:25

1 answer

1

This is a very useful tip that many beginners are struggling to do: enable template hints in Magento admin.

To do so, simply run the following SQL command in your database:

INSERT INTO core_config_data (scope, scope_id, path, value)
VALUES ('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);

And now, of course, how to disable:

UPDATE core_config_data SET value = 0 WHERE 
(scope = 'default' AND scope_id = 0 AND path = 'dev/debug/template_hints') OR
(scope = 'default' AND scope_id = 0 AND path = 'dev/debug/template_hints_blocks')

With this you can see where it is generating the unnecessary space.

    
06.02.2015 / 20:19