Download the PHP package mage2kishan/module-smart-badge without Composer

On this page you can find all versions of the php package mage2kishan/module-smart-badge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package module-smart-badge

Panth Smart Product Badges & Labels for Magento 2

Magento 2.4.4 - 2.4.8 PHP 8.1 - 8.4 Packagist Upwork Top Rated Plus Panth Infotech Agency Website Get a Quote

Turn every product into a conversion opportunity with automated, rule-based badges and labels. Smart Badge for Magento 2 lets you promote sale items, new arrivals, best-sellers, low-stock products, and custom campaigns — without touching a single product manually.

Panth Smart Badge is a powerful Magento 2 product badge extension that assigns visual labels to products automatically based on flexible rules — sale status, new arrivals, best-sellers, low stock, custom attributes, categories, and more. Design eye-catching badges with a visual builder featuring custom colors, FontAwesome icons, animations, and gradients. Schedule badges to appear during promotions, target specific categories or individual products, and control positioning per page type (product listing, product detail, home, cart). Fully compatible with Hyva and Luma themes, MEQP compliant, and built for Magento 2.4.4 - 2.4.8 on PHP 8.1 - 8.4.

Whether you're running a flash sale, launching a new collection, highlighting bestsellers, or creating urgency around low-stock inventory, Smart Badge gives you the tools to drive conversions with zero manual product tagging.


🚀 Need Custom Magento 2 Development?

Get a free quote for your project in 24 hours — custom modules, Hyva themes, performance optimization, M1→M2 migrations, and Adobe Commerce Cloud.

Get a Free Quote

### 🏆 Kishan Savaliya **Top Rated Plus on Upwork** [![Hire on Upwork](https://img.shields.io/badge/Hire%20on%20Upwork-Top%20Rated%20Plus-14a800?style=for-the-badge&logo=upwork&logoColor=white)](https://www.upwork.com/freelancers/~016dd1767321100e21) 100% Job Success • 10+ Years Magento Experience Adobe Certified • Hyva Specialist ### 🏢 Panth Infotech Agency **Magento Development Team** [![Visit Agency](https://img.shields.io/badge/Visit%20Agency-Panth%20Infotech-14a800?style=for-the-badge&logo=upwork&logoColor=white)](https://www.upwork.com/agencies/1881421506131960778/) Custom Modules • Theme Design • Migrations Performance • SEO • Adobe Commerce Cloud

Visit our website: kishansavaliya.com  |  Get a quote: kishansavaliya.com/get-quote


Table of Contents


The 8 Built-In Badge Types

Smart Badge ships with 8 pre-configured badge types that cover the most common merchandising scenarios. Each is fully customizable and can be enabled, disabled, restyled, or scheduled independently.

# Badge Type Trigger Rule Typical Use Case
1 Sale Product has a special price active Flash sales, clearance, seasonal discounts
2 New Arrival Product created within N days (configurable) Promote fresh inventory and collections
3 Best Seller Top N products by order quantity or revenue Social proof, highlight popular items
4 Low Stock Stock qty below configurable threshold Urgency, scarcity-driven conversions
5 Out of Stock Product is out of stock Transparent inventory communication
6 Hot Deal % discount exceeds configurable threshold Highlight high-value discounts
7 Free Shipping Product qualifies for free shipping Reduce cart abandonment
8 Custom / Featured Rule-based on any attribute, category, or SKU list Campaigns, brand spotlights, exclusives

Key Features

Rule-Based Automatic Assignment

Visual Badge Builder

Animations & Effects

Scheduling & Campaigns

Page-Specific Positioning

Admin Experience


Compatibility

Requirement Versions Supported
Magento Open Source 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce 2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8
Adobe Commerce Cloud 2.4.4 — 2.4.8
PHP 8.1.x, 8.2.x, 8.3.x, 8.4.x
MySQL 8.0+
MariaDB 10.4+
Hyva Theme 1.0+ (native support)
Luma Theme Native support
Required Dependency Panth_Core (free)

Installation

Composer Installation (Recommended)

Manual Installation via ZIP

  1. Download the latest release ZIP from Packagist or the Adobe Commerce Marketplace
  2. Extract to app/code/Panth/SmartBadge/ in your Magento installation
  3. Also install the free Panth_Core base module
  4. Run the same commands as above starting from bin/magento module:enable

Verify Installation

After installation, navigate to:


Configuration

Navigate to Stores → Configuration → Panth Extensions → Smart Badge to configure global settings:

Setting Default Description
Enable Smart Badge Yes Master toggle for the module
New Arrival Threshold (Days) 30 Products created within N days receive the "New" badge
Low Stock Threshold (Qty) 5 Stock qty below this value triggers the "Low Stock" badge
Best Seller Top N 20 Top N products by order qty receive "Best Seller"
Hot Deal Discount Threshold 30 Discounts above N% receive the "Hot Deal" badge
Maximum Badges per Product 3 Cap on simultaneous badges per product
Enable Animations Yes Globally enable/disable CSS animations
Load FontAwesome Auto Auto / Always / Never — skip if your theme already loads FA
Enable on Category Pages Yes Show badges on product listings
Enable on Product Pages Yes Show badges on PDP
Enable on Cart No Show badges in cart line items

How Badge Rules Work

Each badge in the admin grid is a rule — a combination of conditions that must be true for the badge to appear on a product.

Rule Components

  1. Trigger type — one of the 8 built-in types (Sale, New, Best Seller, etc.) or Custom
  2. Conditions — optional additional filters (category, attribute set, SKU list, price range, customer group)
  3. Schedule — optional start/end dates or recurring window
  4. Design — visual styling (color, shape, icon, animation, position)
  5. Priority — integer controlling display order when multiple badges match

Example: "Winter Clearance" Rule


Badge Positioning & Page Targeting

Smart Badge gives you independent control over where each badge appears across your storefront:

Page Type Available Positions
Category / Listing Top-Left, Top-Right, Bottom-Left, Bottom-Right, Center Overlay
Product Detail (PDP) On Main Image (9-point grid), Above Title, Beside SKU, Next to Price, Above Add to Cart
Home / Widgets Inside Product Slider / Featured Grid blocks
Cart / Mini-Cart Beside line item name (optional)
Search Autocomplete Inline with product thumbnail

Each badge rule can specify a different position per page type — e.g., a "Sale" badge might be top-right on listings but next-to-price on the PDP.


FontAwesome Icons & Animations

Smart Badge bundles FontAwesome 6 Free support with optional auto-loading. Choose from hundreds of icons including:

Built-In Animations

Animation Effect Best For
Pulse Gentle rhythmic scale Urgency badges (Low Stock, Hot Deal)
Shake Horizontal jitter Flash sales, limited-time
Bounce Vertical hop New arrivals
Glow Soft outer light Premium / Featured
Shine Diagonal gradient sweep Best Seller, Premium
Flip 3D rotation Reveal effect
Fade Opacity oscillation Subtle, non-distracting

All animations honor the prefers-reduced-motion media query for accessibility.


Scheduling Badges

Every badge rule supports time-based activation:

The scheduler runs via Magento's cron, so ensure bin/magento cron:run is scheduled in your system crontab.


Hyva & Luma Theme Support

Smart Badge is one of the few Magento 2 badge extensions with first-class Hyva support:


Performance

Typical performance impact: < 5ms added to category page render on a store with 10,000 products and 15 active badge rules.


FAQ

Does Smart Badge slow down my category pages?

No. Badge lookups are indexed and cached per product + store view + customer group, and badge rendering is pure CSS. Typical overhead is under 5ms on listing pages.

Can I create my own custom badges?

Yes. Use the Custom / Featured badge type and define rules based on any product attribute, category, SKU list, or price condition.

Does it work with configurable and bundle products?

Yes. Badges apply at the parent-product level on listing pages and follow your theme's configurable/bundle display logic on the PDP.

Will badges appear in product sliders and PageBuilder?

Yes. Smart Badge integrates with Magento's native product list blocks, PageBuilder product widgets, and popular slider extensions including Panth Product Slider.

Can I schedule a badge for a specific campaign?

Yes. Each rule supports a start/end datetime or a recurring weekly window, all timezone-aware.

Does it work with Hyva themes?

Yes. Smart Badge ships native Hyva support — Alpine.js + Tailwind, no jQuery — detected automatically via Panth Core's theme helper.

Is the source code available?

Yes. The full source is on GitHub at github.com/mage2sk/module-smart-badge.

Does Smart Badge support multi-store and multi-language?

Yes. Every badge rule is scopable to website / store view, and all text fields are translatable via Magento's __() function.

What if my theme already loads FontAwesome?

Set Load FontAwesome to Never in configuration to skip loading it a second time.

Can I limit how many badges show per product?

Yes. The Maximum Badges per Product config (default 3) caps simultaneous badges. Rule priority determines which ones display when more match than allowed.


Support

Channel Contact
Email [email protected]
Website kishansavaliya.com
WhatsApp +91 84012 70422
GitHub Issues github.com/mage2sk/module-smart-badge/issues
Upwork (Top Rated Plus) Hire Kishan Savaliya
Upwork Agency Panth Infotech

Response time: 1-2 business days.

💼 Need Custom Magento Development?

Looking for custom Magento module development, Hyva theme customization, store migrations, or performance optimization? Get a free quote in 24 hours:

Get a Free Quote

Hire on Upwork    Visit Agency    Visit Website


About Panth Infotech

Built and maintained by Kishan Savaliyakishansavaliya.com — a Top Rated Plus Magento developer on Upwork with 10+ years of eCommerce experience.

Panth Infotech is a Magento 2 development agency specializing in high-quality, security-focused extensions and themes for both Hyva and Luma storefronts. Our extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management — over 34 modules built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on the Adobe Commerce Marketplace or Packagist.


Quick Links


Ready to boost conversions with smart product badges?
Get Started


SEO Keywords: magento 2 product badges, sale badge, new arrival badge, product labels, smart badges, urgency badges, magento 2 label extension, best seller badge magento 2, low stock badge, out of stock badge magento, hot deal badge, free shipping badge, hyva product badges, luma product labels, magento 2 product label extension, rule-based badges magento, scheduled product badges, fontawesome magento badges, animated product labels, category badge magento 2, product detail page badge, magento 2 merchandising, conversion rate optimization magento, urgency marketing magento, scarcity badges, magento 2.4.8 badges, php 8.4 magento module, panth smart badge, panth infotech, mage2kishan, mage2sk, kishan savaliya magento, top rated plus magento freelancer, hire magento developer upwork, custom magento development, magento 2 hyva development


All versions of module-smart-badge with dependencies

PHP Build Version
Package Version
Requires php Version ~8.1.0||~8.2.0||~8.3.0||~8.4.0
magento/framework Version ^103.0
magento/module-catalog Version ^104.0
magento/module-catalog-inventory Version ^100.4
magento/module-review Version ^100.4
magento/module-backend Version ^102.0
magento/module-store Version ^101.1
magento/module-eav Version ^102.1
magento/module-ui Version ^101.2
magento/module-sales Version ^103.0
magento/module-wishlist Version ^101.2
magento/module-media-storage Version ^100.4
magento/module-config Version ^101.2
mage2kishan/module-core Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mage2kishan/module-smart-badge contains the following files

Loading the files please wait ...