Magento case study
Sample Ordering Journey
A faster sample-ordering experience backed by Magento quote-level safeguards for duplicates and quantity rules.
01
The challenge
Wallpaper samples needed to behave differently from ordinary Magento catalogue items while remaining part of the standard basket and checkout journey.
The journey needed to make requests quick while allowing only one sample per design, preventing duplicate additions and keeping behaviour reliable across listings, product pages and the basket. Those rules needed server-side enforcement rather than reliance on frontend JavaScript.
02
The solution
A central sample identity resolver recognises samples through product options and known sample SKUs. Quote-level plugins use that identity to prevent duplicates, return customer-friendly feedback and normalise sample quantities to one on the server.
AJAX add-to-cart behaviour tracks the initiating sample button, prevents repeated clicks and updates the interface after a successful addition. The implementation remains compatible with ordinary product ordering and retains stock-aware handling for standard products where applicable.
03
The outcome
Customers can request samples without unnecessary interruption to the shopping journey while Magento consistently enforces the retailer’s sample-ordering rules at the basket level.
04