Hi @devworlds,
Thank you for reaching out.
To achieve this, you’ll need to customize your WooCommerce setup. Just to clarify, this kind of support is outside the scope of support that our support staff can help out with here, although I would recommend the following:
- Running the exact question you’re asking, along with the code provided, through an AI platform like ChatGPT for recommendations.
- Checking whether there are existing plugins in the WordPress plugin repository that might be doing that already.
- Joining our WooCommerce Slack community (it does have a developer channel where you can ask coding questions): https://woo.com/community-slack/
Hope it helps!