EDD, modify code - Prevent Duplicate Purchases

gggg

Active member
Trusted Uploader
Sep 17, 2019
155
88
28
Hello Babiato, this is my first Q&A, I really don't know where to find the answer. I just code a little Php and I am Stuck!
I am trying to prevent purchase duplicated. Yes, this code works for Completed status.

Easy digital download has many status, completed/pending....

In this case, I want to prevent my student to purchase many times in the same product (after finised purchase student will transfer money through local bank so the status will be Pending untill I manually change the status to completed), I use Checks addon (EDD addon that I share here)
This is the link of the code. https://library.easydigitaldownloads.com/checkout/prevent-duplicate-purchases.html

Can you guys guild me please?
 

Attachments

  • pending.PNG
    pending.PNG
    43.6 KB · Views: 12

4c0u8

Member
Jul 16, 2022
52
3
8
1. In the web hosting path /wp-content/plugins you have make folder for example Easy Digital Download
2. Make new file in text editor (for example Brakets, Notepad++ etc) with UTF-8 support
3. Copy & Paste code you ask to implement to WordPress as plugin
4. Save file as (for example) easy-digital-download.php
5. Upload file to created folder in WordPress plugin directory (Easy Digital Download)
6. In the WordPress administration go to Plugins page
7. Find non active plugin called Easy Digital Downloads - Prevent Duplicate Purchases
8. Enable it
 

Latest posts

Forum statistics

Threads
69,226
Messages
908,438
Members
237,026
Latest member
Hefon_mark

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu