All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi, I’ve set up a product discount for a user with a certain tag. I’m using the native shopify functionality for that. Problem is, that the discount only shows it the cart & checkout. I need the discount also to show up in product cards and in the product page.
Is that possible?
I've recorded a short video:
To achieve this, custom development in your theme is required, and it can be accomplished using the following method:
If you have a single discount code applicable to all tagged users, you can create a metafield at the customer level. This metafield will contain a metaobject with information about the coupon code, whether it's a percentage or flat amount discount, and the product ID for which the coupon is applicable.
After the customer logs in, you can retrieve this customer object and calculate the new price by applying the specified logic.
I hope this explanation clarifies the process. Let me know if you have any further questions.
Hello @AHDesign,
Some custom coding is required to add this functionality. If you are not a technically aware person yourself, it is better to cooperate with a Shopify professional.
Please, let me know if you need any assistance.
Best regards,
Anastasia