The Problem
Jewelry pricing was managed manually by assigning fixed prices to products, despite constant fluctuations in gold rates and variations in purity and weight.
Updating prices required editing each product individually, making the process time-consuming and prone to inconsistencies.
The Solution
Built a dynamic pricing engine that calculates product prices at runtime based on configurable variables.
The system uses a centralized gold rate input and derives pricing using purity (karat), weight, and configurable making charges. All calculations are handled through a custom PHP logic layer, replacing static pricing entirely.
Architecture Overview
-
Pricing Input Layer
Centralized admin panel to input daily gold rate and define making charges for different karat categories.
-
Calculation Engine
Processes weight, purity, and pricing rules to compute final product cost dynamically using PHP-based logic.
-
Configuration Layer
Supports multiple pricing strategies including percentage-based and per-gram charges, allowing flexible pricing models.
-
Output Layer
Overrides default product pricing and renders computed values in real time across product pages.
The Result
Eliminated the need for manual price updates across products by introducing a centralized, rule-based pricing system.