Fix Product Sold Counter

Job ID: 39961140

Budget: ₹600 – ₹1,300 INR

My Laravel-powered store already records sales correctly in the database, but the React.js frontend still shows “Sold: 0”. The moment I approve an order in the admin panel I want the correct total to appear on the relevant product card without page refresh.

The app’s data flows through existing REST APIs, so the task is to adjust either the API response, the client-side state update, or both, so that the approved quantity is returned and rendered immediately. The solution must slide cleanly into the current codebase—no framework changes, no breaking of other endpoints, and coding standards that match PSR-12 on the PHP side and idiomatic React on the client.

I value speed, but not at the expense of clarity: concise commits, descriptive messages, and any tiny refactors kept separate from the main bug-fix commit. Once the counter is updating in real time on production, the job is done.