Automatically download a coupon when clicking an image

Automatically download a coupon when clicking an image

lenssis2025
Tourist
4 0 1

Hi, 

I just created an "event" page on my website and I'll be posting monthly promotions in that page.

I know how to link an url to an image, however, I'd like to know if there's a way when the customer

clicks an image it automatically downloads a coupon code with a pop-up saying something like, "you have successfully downloaded a coupon" 

Thanks!

Replies 3 (3)

laddisahsi
Shopify Partner
444 44 45

Hi @lenssis2025 
How are you?

using custom liquid code, we can add downloads image or PDF URls  in code.
Then on click that coupan code image will be downlaod.

Thanks
Shuvam

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!
lenssis2025
Tourist
4 0 1

Thanks!

Can you give me the instructions or how to use the code?

 

laddisahsi
Shopify Partner
444 44 45
<a href="button.png" download>
    Click Here to Download the Image
</a>

 

use this code.


if you still need any help feel free to contact.

if this working please mark as solved

-Shopify website development, Theme & App Development
-Contact me: WhatsApp


-Email Me
-If this solution is worked, then please Like this and Mark this as accepted solution!