Skip to content

sdinteractive/SomethingDigital_ProductBadge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Product Badge

This extension adds developer-friendly, programmable badges to Magento.

Alt text

How it works

This extension adds a section into System > Configuration > Catalog > Product Badge Options that allows users to configure and create badges. A "Badge" product attribute is also added into the product configuration.

Each badge is created with a label and a class which allow the developer to style the badges differently on the frontend.

Take following steps in order to add a new badge.

Step 1: Add new class to productbadge.css in following format.

.badge--percent-off-90 {
  background: url("../images/badges/90Off-Icons.png") no-repeat scroll 0 0;
  background-position: center center;
  background-size: 100% 100%;
  background-color: transparent !important;
}

Step 2: Add badge image to appropriate location.

Step 3: Add new badge option at System > Configuration > Catalog > Product Badge Options > Add New Badge

image

Step 4: Assign badge to a product by going to product configuration.

image

Step 5: Flush cache.

Reference

You can refer PR https://github.com/sdinteractive/Papyrus-PapyrusOnline/pull/1087 where we added extension to papyrus repo. (not through modman though)

About

Programable badges for Magento

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published