Styling Ecommerce Block Product
Permalink
I'm trying to style the Concrete5 Ecommerce block. I need to decrease the width of the the div with the class ccm-core-commerce-add-to-cart-image which is displayed in this code:
However as you can see the width is assigned from an inline style which overrides any style that I add to my themes external style sheet.
Does anyone know where I can edit this width setting?
Thanks,
Olly
<div class="ccm-core-commerce-add-to-cart-image" style="width:264px"> <a class="ccm-productListImage" href="/dev/index.php/catalog/how-to-build-your-total-brand/"> </div>
However as you can see the width is assigned from an inline style which overrides any style that I add to my themes external style sheet.
Does anyone know where I can edit this width setting?
Thanks,
Olly

In version 2.8.6 of the addon, it's on line 112 of /packages/core_commerce/elements/product/display.php
Thanks Jordan!
I can now see where I can hardcode the div width:
But the PHP code:
Made me realise that this could be edited through the product block directly.
I can now see where I can hardcode the div width:
But the PHP code:
<?php echo $imageMaxWidth?>
Made me realise that this could be edited through the product block directly.