Bullion House Online Shop
WooCommerce shop for gold, silver and platinum coins and bars, with live API prices, price graphs and a price lock at checkout.
Desktop + mobile
- CategoryWeb Projects
- TypeOnline shop
- TypeCron application
- TypeAPI Integration
- TypeWeb design
- TypeSEO Optimization
- TagWeb
- PlatformWordpress
- CollaborationTeamwork
- CategoryWeb Projects
- TypeOnline shop
- TypeCron application
- TypeAPI Integration
- TypeWeb design
- TypeSEO Optimization
- TagWeb
- PlatformWordpress
- CollaborationTeamwork
The project.
Online shop, Cron application, API Integration · Aug 2024 — Dec 2024
Online shop made in WordPress with WooCommerce, Elementor Pro, ACF and Yoast SEO, for buying and selling metal coins and bars. Product prices update every 2 minutes from a metal price API, through a custom cron event and ACF fields per product (metal, currency, weight unit, weight and markup), with validation so a price is never 0 or invalid. The header shows live metal prices and a price graph in a popup. Users can sell products back with instant buy, quantity discounts apply automatically, and deposits are possible at checkout, where prices stay locked for 5 minutes. The site was also optimized for performance and SEO.
Website showcase
27 desktop and 19 mobile views, shown in pairs. Pick a screen from the rail; open the stage for the full capture.
Seo Optimization
The website was optimized for high performance, ensuring a seamless balance between numerous custom implementations and the use of various plugins.
To automate the updates seamlessly, I implemented a custom scheduler event cron that triggers the price update every 2 minutes. The process is closely monitored using the WP Crontrol plugin, which ensures the cron jobs are executed as expected.
Additionally, I incorporated price validation security conditions to guarantee reliability. These conditions prevent prices from being set to 0 or null and ensure that only valid numeric float values are accepted, maintaining accuracy and stability for live pricing.
Live Pricing Updates
Product prices for gold, silver, and platinum are automatically updated every 2 minutes, ensuring accurate and up-to-date values powered by a reliable metal price API. This functionality was custom-built using advanced code and ACF fields tailored for each WooCommerce product. Key fields include metal type, currency, weight unit (oz/gram), weight, and markup—enabling precise calculations for dynamic pricing.
After the 5-minute window expires, the checkout total will automatically refresh to reflect the latest live prices, and a new 5-minute price lock will begin. This ensures a smooth and predictable checkout process while maintaining the accuracy of dynamically updated prices.
Custom Checkout
Once you reach checkout, prices are locked for 5 minutes to ensure stability, even with frequent updates. This feature was implemented because product prices are updated every 2 minutes, which could otherwise disrupt the checkout experience. To address this, we created a custom solution that saves the current checkout price in cache for 5 minutes. During this time, the total remains fixed, providing you with a consistent and stable price.