dev-master
9999999-dev http://www.ambimax.deThis module adds the ability to disable duplicate media gallery removal.
The Requires
by Tobias Schifftner
This module adds the ability to disable duplicate media gallery removal.
This module is supposed to add an ribbon attribute to Magento eCommerce., (*1)
For installation use composer or copy files manually., (*2)
"require": { "ambimax/magento-module-ambimax-ribbon": "~1.0" }
To add the ribbons to your theme, add the following snippet to all required theme files., (*3)
<div class="ambimax-ribbon"> <?php foreach($_product->getAttributeText('ribbon') as $ribbon): ?> <span class="<?php echo strtolower($ribbon) ?>"> <?php echo $this->__($ribbon) ?> </span> <?php endforeach ?> </div>
Catalog > Manage Attributes > Ribbon Attribute > Manage Options
)To add a custom ribbon you can extend it very easily, (*4)
<div class="ambimax-ribbon"> <?php foreach($_product->getAttributeText('ribbon') as $ribbon): ?> <span class="<?php echo strtolower($ribbon) ?>"> <?php echo $this->__($ribbon) ?> </span> <?php endforeach ?> <?php if($_product->getData('custom_ribbon')): ?> <span class="custom-ribbon"> <?php echo $this->__('Custom Ribbon') ?> </span> <?php endif; ?> </div>
It is possible to place an image within the html. But you should always try to sove this by css!, (*5)
MIT License, (*6)
This module adds the ability to disable duplicate media gallery removal.