Re: Show product disocunt everywhere

How can I display product discounts on product cards and pages?

AHDesign
Shopify Partner
1 0 1

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:

 

https://komododecks.com/recordings/9zwSsqYUTj5hcPmvAyFn

Replies 2 (2)

gr_trading
Shopify Partner
2053 149 208

 

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.

For any custom development WhatsApp or connect at Email ID: support@grtrading.in for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

Stacy_Zhuk
Shopify Partner
550 22 75

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

Co-founder at Whidegroup, e-commerce development company from Ukraine
- 10+ years of experience with SMBs
- Deep expertise in custom development & optimization
E-mail: anastasia@whidegroup.com