A custom wordpress plugin for Ultimate Affiliate Pro, Terawallet and Woocommerce

Job ID: 32505653

Budget: €10 – €110 EUR

A custom wordpress plugin for Ultimate Affiliate Pro, Terawallet and Woocommerce

functionoality I:
1, A field which will be shown on the registration and checkout page.
-1.a)-If there is a logged in user, don't load it.
-1.b)-If there isn't any user who is currently logged in, there will be a field on the registration field and checkout field:
---2.a)- If there isn't any affiliate cookie in the current cookies, show a field for user to digits. The user can digits only 6 digits, and if there are only 6 numbers in the field, start the next validation to see if there is an affiliate code in the database that matches the one digited:
----1) Show error message if it doesn't match
----2)show a success message if it matches
--2.b) If there is/are affiliate cookies, autofill the field mentioned.and allow user only to change it to another one or to let it remain, but not to delete it.
functionoality II: Coupon for users who are affiliate of someone.
It consistes of: 1,a checkbox in the coupon default setting to check "Coupon for users introduced by others".
If the checkbox is checked:
this coupon after having all other conditions,will be and can be applied automatically if one of the following conditions is satisfied:
1) In the checkout field the affiliate code is valid
2) The user is logged in and is affiliate of someone.
Related categories: PHP JavaScript WordPress MySQL WooCommerce