Easy Digital Downloads - Additional Shortcodes
Antivirus scan
Powered by ClamAV
✅ Verified clean
This product file has passed our security filters.
Want to run a fresh ClamAV scan right now? Takes a few seconds and shows scanner version, signature DB and live result.
This can take 5 to 30 seconds.
Clean file Threat detected
No threats detected in this file.
- File
- Size
- Scanned
- ClamAV
- Signature database
⚡ Powered by ClamAV
Scan could not be completed
Report product
If you detected an issue (broken file, malware, inappropriate content, etc.) let us know and we'll review it ASAP.
Sign in to reportNewer version out, or a problem?
About Easy Digital Downloads - Additional Shortcodes
Showing a different block depending on what is in the cart
You can show different content to someone with items in the cart, to someone with an empty cart and to someone who has bought before. Additional Shortcodes adds short codes that show or hide parts of a page depending on the situation of the visitor.
For example, if the visitor has a specific product in the cart, you can suggest related products before checkout. If they open an empty cart, instead of a simple notice, you can load products on that same page so they can buy without searching elsewhere. And if they are logged in but have never bought, you can offer a discount that is not available to the general public.
What makes it practical is that the rule is set up once and then applies by itself on every visit.
Available conditions and how they are written on the page
Each short code wraps the content you want to show or hide. The available conditions are these:
- The cart contains specific products or is empty.
- The user has previous purchases or has none.
- The visitor is logged in or is not logged in.
- The user has active or expired licenses, which requires Software Licensing.
With edd_items_in_cart you can list several IDs separated by commas. The match parameter decides whether it is enough for any of them to be in the cart (any) or whether all of them must be (all). If a product has variable pricing, add a colon and the number of the option, as in 25:1, or use only the ID to cover all options. With edd_user_has_no_purchases, the loggedout parameter decides whether logged out visitors should also see the content, and by default they do.
Works with Easy Digital Downloads and needs Software Licensing for the license conditions
Additional Shortcodes extends Easy Digital Downloads, so the EDD store has to be installed and active. The cart and purchase conditions rely on that store. The active and expired license conditions, however, only work if you use Software Licensing.
Before writing the short codes, decide which visitor you want to convert and which data from their cart or purchase history identifies them.
Frequently asked questions about Additional Shortcodes
Do I need Software Licensing for every condition?
No. Only the active and expired license conditions depend on Software Licensing. The cart, purchase and login conditions work with the Easy Digital Downloads store.
What does a visitor who is not logged in see?
It depends on the code. edd_user_has_purchases never shows content to someone who is not logged in. With edd_user_has_no_purchases you decide whether logged out visitors also see the content, using the loggedout parameter, which is true by default.
How do I indicate a specific pricing option?
Add a colon and the option number after the product ID, for example 25:1. If you only put the ID, the condition applies to all the options of that product.
Can I require several products at once?
Yes. You can list several IDs separated by commas. With match=all they must all be in the cart, and with match=any one is enough.
Can I show content to customers with expired licenses?
Yes, the edd_has_expired_licenses code shows content only to users with expired licenses. Like the other license code, it requires Software Licensing.
Topics
Version history
-
v
1.4 Current 16 May 2024
Customer reviews
Sign in to leave a review. Only people who have the product can review it.
No reviews for this product yet.
Frequently asked questions
-
GPL (General Public License) is the license under which WordPress and most premium plugins/themes are distributed. It grants you the right to use, modify and redistribute the software in as many projects as you want, with no domain restrictions.
-
Yes. With membership you get automatic updates via our GPLClub Updater plugin (installed on your WP, detects new versions and applies them). With individual purchase, you get one year of manual updates from your account.
-
Depends on the plan. Monthly: 3 domains. Semi-annual: 7. Annual and Lifetime: 15. Individual purchase: 1 domain.
-
GPLClub offers its own support for installation, configuration and compatibility. For direct support from the original author (feature requests, product-specific bugs), a license purchased from the author is required.