Composable commerce development
Scaling B2B & B2C
Operations for
a Large Canadian Retailer
About the project
A Canadian clothing retailer approached Dinarys to streamline their online distribution channels, integrate them with the company’s internal ERP system, and establish real-time data exchange for the product catalog, order fulfillment, and product availability. Their primary business goals were to increase sales, customer satisfaction, and operational efficiency.
Our main development goals:
-
Launch a B2C website that runs on Magento 2 and retrieves product data from the client’s ERP system in real time.
-
Optimize B2B website performance to maintain projected business operations after ERP integration without disruptions.
-
Integrate the developed B2B and B2C websites with the client’s existing ERP system, prioritizing real-time data updates and access.
Technical challenges we faced:
-
The B2C website was partially developed by another team using Magento 1; however, the project was halted mid-process. As a result, the website was not properly built and could not function with the ERP as the client intended.
-
The B2B website was not integrated with the ERP system and lacked supplementary documentation on functionality, third-party integrations, and the development process.
-
The client’s ERP system operated on poorly built APIs that could not effectively integrate with other systems or exchange and update data on the product catalog and orders in real time.
Solutions we provided:
-
The Dinarys team migrated the B2C website from Magento 1 to Magento 2 to ensure proper operation today and seamless future integration with internal and third-party systems.
-
Our development and business analysis teams created comprehensive documentation of the B2B website’s technical capabilities and operations, supplementing it with detailed records of all improvements made during ERP integration.
-
The development team built a custom connector for the ERP’s API to convert the ERP’s outdated data format into modern formats required by Magento. Now, the ERP flawlessly integrates with the client’s B2C and B2B websites, ensuring real-time product and order data exchange.
Have similar business problems? We have an action plan.
Contact our Chief Delivery Officer for a free consultation to explore all possible solutions
Have similar business problems? We have an action plan.
Contact our Chief Delivery Officer for a free consultation to explore all possible solutions
Konstantyn
Delivery Director
01
Cost estimation & breakdown
Know what to expect up front
02
Team setup recommendations
Involve only the experts your project truly needs
03
Technologies & integrations
Identify what you need and where you can save
About the client
SanMar is a large Canadian clothing retailer. The company runs a well-established retail network and a growing B2B sales channel. As customer expectations changed and eCommerce became more promising, they saw the need to upgrade their digital systems to stay competitive.
Main business problems
Before this project, SanMar mainly operated in the physical clothing retail industry. They had been using the same ERP system for years, but its inability to provide real-time updates significantly hindered their daily operations:
Employees had to manually check and update inventory, slowing down order fulfillment
Orders were not instantly reflected in the ERP, causing delays and inaccurate order tracking
Lack of real-time synchronization led to incorrect pricing displayed on the website
Demand forecasting was unreliable, resulting in overstocking or stockouts of high-demand products
Why did SanMar decide to act?
Delaying the implementation of a B2C Magento 2 website and a B2B platform with real-time ERP connectivity could have led to:
01
Lost revenue
-
Had the client not implemented real-time ERP integration, manual product updates would have spiraled into constant errors — pricing mismatches, stock discrepancies, and fulfillment delays — frustrating customers and slashing sales.
-
Competitors with real-time automation would have set new standards for speed and accuracy, pulling customers away. Over five years, this gap would have eroded market share, driven up operational costs, and weakened brand trust.
02
Operational disasters
-
Without performance optimization, the B2B platform would have struggled under growing traffic and order volumes, leading to slow load times, failed transactions, and costly downtime.
-
Had data silos persisted, employees would have been forced into time-consuming manual updates for inventory, pricing, and orders — increasing errors, delaying fulfillment, and driving up operational costs.
03
Higher operational and IT costs
-
As the business grew, manual processes would have required more admin staff just to keep operations running, draining resources that could have been invested in automation.
-
Slow order fulfillment from disconnected systems would have driven up operational costs and frustrated customers, leading to lost trust, declining loyalty, and revenue slipping to competitors.
Technologies Dinarys applied:
MACH to eliminate current troubles and preserve room for future innovations
To ensure seamless data flow and future scalability, we implemented an API-first integration approach, making the ERP a central hub for real-time operations. The outdated data format used by the client’s ERP presented a challenge, as it wasn’t directly compatible with Magento. To address this, we developed a custom API connector that converts data from the legacy format into modern, structured formats required by the B2C and B2B platforms.
By choosing MACH principles — in particular, an API-first architecture — we created a flexible, scalable foundation for further integrations. This approach not only ensures real-time synchronization between the ERP and eCommerce platforms but also lays the groundwork for integrating third-party services such as PIMs, CRM systems, marketing automation, and logistics management and monitoring tools.
The API-driven setup enhances platform stability by reducing dependencies on rigid, monolithic structures. The system is now equipped to:
Handle future business expansion
Manage technology upgrades
Facilitate integrations with minimal disruption
Want to know if MACH principles align with your business goals and technology challenges?
Get a free consultation with KonstantynWhat impact did the project have on the client’s business?
By migrating to Magento 2, integrating with the ERP system for real-time product catalog updates, and implementing MACH technologies, SanMar:
1. Improved operational efficiency with real-time data updates
Before the project, SanMar’s outdated ERP system lacked real-time synchronization, leading to delays in inventory updates, pricing adjustments, and order processing. With our API-first integration, data now flows seamlessly between the ERP and both the B2B and B2C platforms, eliminating manual data entry and reducing the risk of stock discrepancies. This has resulted in:
-
Faster order fulfillment with automated stock and pricing updates
-
A significant reduction in errors from outdated or mismatched data
-
An improved customer experience, as buyers always see accurate product availability
2. Greater system flexibility for future integrations
By developing a custom API connector that translates the ERP’s data from an outdated format to modern formats, we enabled smooth integration with Magento and future third-party services. This ensures:
-
Seamless integration of new technologies such as CRM, PIM, and marketing automation systems
-
Scalability, as the system can now adapt to market changes without costly overhauls
-
Reduced IT maintenance costs, as integrations no longer require complex workarounds
3. Increased sales and revenue
With a fully integrated B2C Magento 2 website and a performance-optimized B2B platform, the client’s eCommerce operations are now primed for growth and scalability:
-
Higher conversion rates from a more stable and responsive online store
-
Faster order processing, leading to improved customer satisfaction and retention
-
Expanded revenue streams, as real-time inventory visibility enables the business to capitalize on demand without overselling
Business results
Together with our client, we achieved the following results:
Automated data updates
through API-based integration with the internal ERP system, enabling a real-time data stream for product stock levels, availability, price dynamics, and catalogs.
Increased ERP operational efficiency
by implementing a new method for integrating with the back end and offering a more intuitive interface for customers that helps them run their businesses more effectively.
Reduced labor costs and accelerated operations
by integrating key third-party services for logistics, CRM, and marketing, made possible by an API-first architecture.
Sped up order processing
through real-time stock visibility, allowing our client to surpass competitors and gain a competitive edge.
Future-proof your retail operations with our team
We’ll help you build a high-performance,
future-ready commerce ecosystem
Future-proof your retail operations with our team
We’ll help you build a high-performance,
future-ready commerce ecosystem
Roman
CTO
01
Increase your revenue
with seamless operations and automation
02
Enhance reliability and customer satisfaction
through real-time updates of stock and delivery data
03
Scale your platform
for effortless business expansion
Discover more projects
Automotive parts marketplace
Created a comprehensive online platform with a complete catalog of automotive parts
-
Integrating TecDoc’s extensive parts catalog via API
-
Developing core search functionality, synchronization, and validation
-
Creating technical documentation and user guides
Prostor
Integrated Prostor’s eCommerce platform with their custom CRM system
-
Migrating the Prostor platform to Magento 2
-
Integrating the newly migrated system with Prostor’s custom CRM for a personalized shopping experience
-
Designing a user-friendly checkout page to improve conversion rates
Kontakt Home
Implemented a new online store based on Magento 2 CMS
-
Building a custom front end for CMS functionality
-
Integrating the client’s store with a ready-made ERP system
-
Adding custom features and integrating out-of-the-box services