Easy Digital Downloads Archives - Sitewide Sales: All-in-One Flash Sales Plugin for WordPress https://sitewidesales.com/tag/easy-digital-downloads/ Fri, 08 Sep 2023 15:31:09 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 https://sitewidesales.com/wp-content/uploads/2019/10/cropped-Sitewide-Sales_favicon-32x32.gif Easy Digital Downloads Archives - Sitewide Sales: All-in-One Flash Sales Plugin for WordPress https://sitewidesales.com/tag/easy-digital-downloads/ 32 32 Hide Sale Banners for Previous Customers in Easy Digital Downloads https://sitewidesales.com/hide-sale-banners-previous-customers-easy-digital-downloads/ Thu, 23 Jun 2022 14:12:56 +0000 https://sitewidesales.com/?p=10047 Offering new customers a unique incentive is a strong way to convert new shoppers. But how do you prevent these discount banners from being shown to your existing, previous customers? In this code tutorial, I show you two methods to hide your Sitewide Sale banner for previous customers in EDD. First, there is code to […]

The post Hide Sale Banners for Previous Customers in Easy Digital Downloads appeared first on Sitewide Sales: All-in-One Flash Sales Plugin for WordPress.

]]>
Offering new customers a unique incentive is a strong way to convert new shoppers. But how do you prevent these discount banners from being shown to your existing, previous customers?

In this code tutorial, I show you two methods to hide your Sitewide Sale banner for previous customers in EDD. First, there is code to check for a specific purchase, by download ID, for the current logged in user. The second section is a general check whether the current user has made any purchases at all through EDD.

Hide Sale Banners for Previous Customers in Easy Digital Downloads

The Code Recipe

View the code on Gist.

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. We have a post on how to create a customizations plugin on our partner website, Paid Memberships Pro.

Modify line 15 for your specific download IDs. If you need to check for more than one product ID, you can duplicate lines 14-17 and set a unique product ID for each check. The function edd_has_user_purchased does not accept an array of IDs. Or, remove lines 14-17 if you only want to use the general check for any previous purchases.

The post Hide Sale Banners for Previous Customers in Easy Digital Downloads appeared first on Sitewide Sales: All-in-One Flash Sales Plugin for WordPress.

]]>
Hide Discount Code Field in Easy Digital Downloads https://sitewidesales.com/hide-discount-code-field-easy-digital-downloads/ Thu, 23 Jun 2022 12:18:16 +0000 https://sitewidesales.com/?p=10031 Coupons are a great way to convert those “on the fence” shoppers. But research has shown that the presence of a “discount code” field on your checkout page can slow buyers down and (sometimes) lose you money. In this tutorial, I give you the code to hide the discount code field in Easy Digital Downloads. […]

The post Hide Discount Code Field in Easy Digital Downloads appeared first on Sitewide Sales: All-in-One Flash Sales Plugin for WordPress.

]]>
Coupons are a great way to convert those “on the fence” shoppers. But research has shown that the presence of a “discount code” field on your checkout page can slow buyers down and (sometimes) lose you money.

In this tutorial, I give you the code to hide the discount code field in Easy Digital Downloads. I’ve included a few example URLs that allow you to pass in a code via URL so that your site can still run a promotional offer.

Hide Discount Code Field in Easy Digital Downloads

Include Discount Code in URL

Easy Digital Downloads supports adding a discount code to the cart via URL. Here are two example URLs that show you how to pass a discount code through to the checkout page via URL attribute:

Direct URL to the cart page with the coupon code ‘loyal’.

http://sitewidesales.local/checkout/?discount=loyal

Add a specific download (by ID) to the checkout and automatically apply the coupon code ‘loyal’. This is a great way to drive checkout conversions for a single product on sale.

http://sitewidesales.local/checkout/?edd_action=add_to_cart&download_id=319&discount=loyal

The Code Recipe

View the code on Gist.

Adding the Recipe to Your Website

You can add this recipe to your site by creating a custom plugin or using the Code Snippets plugin available for free in the WordPress repository. We have a post on how to create a customizations plugin on our partner website, Paid Memberships Pro.

Before and After Screenshots

Easy Digital Downloads Cart Screenshot with a Visible Coupon Code Field
Easy Digital Downloads Cart Screenshot with a Visible Coupon Code Field
Easy Digital Downloads Cart Screenshot with No Coupon Code Field
Easy Digital Downloads Cart Screenshot with No Coupon Code Field

Run a Better Sale with Easy Digital Downloads

Sitewide Sales is a new way to run sales for your WordPress-powered ecommerce site. Using Sitewide Sales, you can set up an active promotion that runs from your set start time and end time.

The plugin automatically applies discounts according to the rules you set up—no coding required. If you want to run a true sale that automatically applies a discount without the need for manual coupon entry, you need try the Sitewide Sales plugin—it works with Easy Digital Downloads and other popular ecommerce plugins for WordPress.

The post Hide Discount Code Field in Easy Digital Downloads appeared first on Sitewide Sales: All-in-One Flash Sales Plugin for WordPress.

]]>