Enhancing Product Clarity: PrestaShop Price Unit Labels for Bulk and Variable Products

The PrestaShop forum often serves as a valuable hub for merchants and developers seeking solutions to common e-commerce challenges. Thread #1110461 introduces a module designed to tackle a specific, yet widely encountered, problem: the ambiguity of product pricing for items sold by weight, volume, or specific units. For businesses selling products like fabric, cheese, tiles, or paint, a price displayed as "42.00" without an accompanying unit (e.g., "/ kg", "per litre") can lead to customer confusion and abandoned carts.

Traditionally, PrestaShop merchants have resorted to workarounds such as embedding the unit directly into the product name or manually editing theme templates. While functional, these methods present their own set of issues. Integrating units into product names can clutter product listings and impact SEO, while theme edits are prone to being overwritten during updates, requiring repetitive maintenance and increasing the total cost of ownership for the shop.

The "[MODULE] Price Unit Labels" module, developed by MEG Venture, offers a streamlined solution to this dilemma. Its core functionality is to append descriptive unit labels (e.g., "per kg", "per box") next to product prices across various shop sections, including product pages, category listings, quick views, related product sliders, and the shopping cart. A key advantage highlighted by the developer is its ability to achieve this without requiring direct theme template modifications, which is a significant benefit for long-term maintainability and upgrade paths.

The module integrates seamlessly with PrestaShop's architecture by utilizing the displayProductPriceBlock hook. This server-side rendering approach ensures that labels are part of the page's initial load, avoiding reliance on client-side JavaScript for core functionality, though a small script is used on the product page for dynamic combination switching. For themes that might not natively fire the unit_price price-block hook in listing templates, the developer provides a simple, actionable code snippet:

{hook h='displayProductPriceBlock' product=$product type='unit_price'}

This snippet can be added after the price in the miniature template, demonstrating a thoughtful approach to potential theme compatibility issues.

Beyond its primary function, the module boasts several practical features crucial for PrestaShop merchants:

  • Flexible Configuration: It allows for a shop-wide default unit label, with granular overrides at the product level. Products with combinations can even have distinct labels per combination, catering to diverse product offerings (e.g., a 250g jar vs. a 1kg tub).
  • Multilingual Support: Labels can be entered per shop language, supporting international e-commerce operations.
  • Bulk Management: For large catalogs, a CSV import/export feature facilitates efficient management and updates of unit labels, a critical feature for migration and data synchronization scenarios.
  • Robustness: The module is designed to be compatible with PrestaShop 1.7, 8, and 9, ensuring broad applicability. It also explicitly states its limitations, such as not performing unit price calculations (relying on PrestaShop's native unit price field for that) and the deletion of labels upon uninstallation, prompting users to export data beforehand.

While this thread currently has no replies, the module's detailed description and clear problem-solution fit make it a noteworthy offering in the PrestaShop ecosystem. It addresses a specific pain point for merchants dealing with variable quantity products, enhancing customer clarity and potentially reducing bounce rates. For PrestaShop developers, it offers an example of effective module integration using native hooks and a pragmatic approach to theme compatibility. This module exemplifies how targeted solutions can significantly improve the user experience and operational efficiency of a PrestaShop store.

Start with the tools

Explore migration tools

See options, compare methods, and pick the path that fits your store.

Explore migration tools