Dear all,
I would like to show different discounted prices based on the social media post the customer is redirected from.
Suppose a customer is redirected to the product page from social media A, discount code A will apply and the discounted price will show.
Similarly, when a customer is redirected from social media B, discount code B will apply.
I only know that the discount will show when you enter the discount code on the Shopify checkout page.
Is there a way to show the discounted price on the product page?
It seems I can get the discount code information using the Admin API, but then I have to do all the calculation and currency change ourselves?
For the storefront api, do I have to create a checkout using checkoutCreate every time to get the information?
Thanks a lot.