How to include a discount code in a Direct Buy Button?

How to include a discount code in a Direct Buy Button?

LeticiaIb
Excursionist
23 0 4

Hello, I am trying to create a Direct Buy Button with a discount code included.

So customers would click and go directly to check out, with the specific product and the discount applied.

I did already the Direct Buy Button, I need to add the discount code.

Thanks!

Replies 3 (3)

oscprofessional
Shopify Partner
16116 2409 3125

Hello @LeticiaIb ,
You're saying you want discounts to be applied automatically when customers click the buy button during checkout.

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free
LeticiaIb
Excursionist
23 0 4

Hello Osc, thanks for your answer, I'll try to clarify:

I have a Direct Buy Button, which leads from a page directly to the check out with the product already added. You can check this page as an example: https://leticiaiborra.com/pages/nutrirme-programa-individual-para-el-embarazo if you click on "Lo quiero ahora" you'll be redirected to the check out with the product added (no need to visit the product page, add product to cart, etc).

 

I am creating now a new page, which includes the Direct Buy Button but I want this button to include also a discount, so the customer would click and arrive directly to the checkout, with the product and the discount already applied

oscprofessional
Shopify Partner
16116 2409 3125

Hello @LeticiaIb,
To create a direct buy button with a discount applied, you can typically achieve this through a combination of Shopify's features and possibly a Shopify app for additional functionality. Here's how you can create a direct buy button with a discount applied on Shopify:

  • Create a Discount Code: In your Shopify admin panel, navigate to Discounts > Create Discount. Generate a discount code with the desired discount amount or percentage.

  • Install an App (if necessary): Depending on your specific requirements, you might need to install a Shopify app to create custom buy buttons or to apply discounts automatically. Search the Shopify App Store for apps that offer this functionality.

  • Create a Custom Buy Button: If you're comfortable with HTML and CSS, you can manually create a custom buy button in your theme.liquid file. You can style the button to display the discount information and link it to the checkout page with the discount code applied.
    Here's an example of how you can create a custom button in Shopify's Liquid templating language:

 

<a href="/checkout?discount=DISCOUNT_CODE" class="buy-now-button">Buy Now with 10% Off!</a>

 

Replace DISCOUNT_CODE with the actual discount code you've generated.

  • Test the Button: Test the button thoroughly to ensure that clicking it redirects the customer to the checkout page with the discount applied.

  • Consider App Integration: If you find it challenging to create the button manually or if you need additional functionality, consider integrating a Shopify app that offers direct buy buttons with automatic discount application. Some popular apps include "Bold Discounts" or "Discounted Upsells by Booster Apps".

  • Monitor Performance: After implementing the button, monitor its performance to see if it increases conversion rates or generates more sales. Adjust the design or functionality if necessary to optimize results.

Remember to always test thoroughly after making any changes to your Shopify store to ensure a smooth customer experience.

 

 

Get pass your Store Core Web Vital Free Speed Optimization Audit, Chat on WhatsApp | Skype : oscprofessionals-87 | Email: pallavi@oscprofessionals.com | Hire us | Guaranteed Site Speed Optimization | Website Free Audit | Shopify Theme Customization | Build Shopify Private App | Shopify SEO | Digital Marketing | Oscp Upsell & Cross sell App : Free | Oscp Sales & Volume Discount App : Free | Custom Pricing Wholesale App : Free