ambimax / magento-module-ambimax-ribbon
This module adds the ability to disable duplicate media gallery removal.
Installs: 949
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento-module
pkg:composer/ambimax/magento-module-ambimax-ribbon
Requires
This package is not auto-updated.
Last update: 2025-10-26 01:29:11 UTC
README
This module is supposed to add an ribbon attribute to Magento eCommerce.
Installation
For installation use composer or copy files manually.
composer
"require": {
"ambimax/magento-module-ambimax-ribbon": "~1.0"
}
Theme
To add the ribbons to your theme, add the following snippet to all required theme files.
<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>
Add Ribbon
- To add a ribbon just extend the ribbon attribute options (
Catalog > Manage Attributes > Ribbon Attribute > Manage Options) - Style with css
- Add translation
Custom Ribbons
To add a custom ribbon you can extend it very easily
<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>
Use Image-Ribbons
It is possible to place an image within the html. But you should always try to sove this by css!