2017 © Pedro Peláez
 

magento-module magento-module-ambimax-ribbon

This module adds the ability to disable duplicate media gallery removal.

image

ambimax/magento-module-ambimax-ribbon

This module adds the ability to disable duplicate media gallery removal.

  • Monday, July 25, 2016
  • by tschifftner
  • Repository
  • 1 Watchers
  • 1 Stars
  • 173 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 60 % Grown

The README.md

ambimax® Ribbon

This module is supposed to add an ribbon attribute to Magento eCommerce., (*1)

Installation

For installation use composer or copy files manually., (*2)

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., (*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>

Add Ribbon

  1. To add a ribbon just extend the ribbon attribute options (Catalog > Manage Attributes > Ribbon Attribute > Manage Options)
  2. Style with css
  3. Add translation

Custom Ribbons

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>

Use Image-Ribbons

It is possible to place an image within the html. But you should always try to sove this by css!, (*5)

License

MIT License, (*6)

Author Information

The Versions

25/07 2016

dev-master

9999999-dev http://www.ambimax.de

This module adds the ability to disable duplicate media gallery removal.

  Sources   Download

The Requires

 

by Tobias Schifftner