Author Topic: [ADD-ON] [FREE] - Offline Payment Module  (Read 1588 times)

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 505
  • Karma: +43/-2
  • Etano Contributor (Skins & Mods)
    • KH Web Development
[ADD-ON] [FREE] - Offline Payment Module
« on: May 11, 2016, 06:59:41 PM »
Offline Payment Module


Add-On Version : V1.00 | Script Compatibility: 2.00 / 2.10 / 2.20 /  2.30 / 2.40 | Released : 12th May 2016 | Last Updated : N/A




How It Works
  • User browses your subscriptions packages as normal and clicks Offline Payment
  • User is then taken to a page with instructions on how to pay (how you confirm payment is upto you - you could get the user to include their username with postal payments, checks, transfers in ref sections. or have them email you ect.. theres no simple example as it will vary how you're accepting payments.)
  • Once you have confirmed the payment, simply go to the users profile and click Offline Payment in the menu.
  • You will then be taken to a page which will allow you to manually enter the payment into the system and update the users account
  • You can also select to send the user a on-site message confirming that their account has been updated.

IMPORTANT
If a user has an active membership (free or paid) it will be cancelled. As soon as the Offline Payment entry form is submitted the new membership is active. So if a user is renewing their membership you should consider adding the remaining days to the new memberships duration when filling the form in. (You will see a warning if a user has an active membership along with the expiry date)



How To Install
Installation is pretty much automatic with minor manual edits required (skin related)

Step 1 - Download the Mod

Click Here

There is no need to unpack/extract the download.



Step 2 - Upload to Site

Upload the downloaded zipped file to ROOT > tmp > packages > HERE



Step 3 - Install Mod

Go to your admin panel and visit the Package Manager page. Here you will see the mod available to install.
Click the install link and wait for the installation to complete.



Step 4 - Add Link

To be able to add a offline payment to a user you must add a link to the profile page in the admin panel.

Open admin > skin > profile.html

and locate the profile menu and add:

Code: [Select]
<li><a href="offline_payment.php?uid={output.fk_user_id}">Offline Payment</a></li>

and save.

You should now see a Offline Payment option when viewing a users profile. If you click it you will be taken to the Offline Payment entry page where you can add a payment to the system records and update the users account.



Step 5 - Add Your Offline Page Instructions

You will need to manually edit skins_site > def > offline_payment.html to tell your users how to make offline payments.

for an idea check Mavericks offline payment instructions example Click Here

Also, heres some minor styling for Offline Payment button/link that appears on the subscriptions page.

Open, skins_site > def > styles > content.css and add:
Code: [Select]

.offlinepay-btn {
display: inline-block;
    background: #3D3D3D;
    color: #FFFFFF;
    padding: 7px 5px;
    text-decoration: none;
    border: 1px solid #222;
    border-radius: 4px 4px 4px 4px;
}
.offlinepay-btn:hover,.offlinepay-btn:focus {
    background: #6A6A6A;
    text-decoration: none;
    border: 1px solid #5C5C5C;
}





Step 6 - Enable Offline Payments

The Offline Payment page and button on subscription page will not be accessible unless the mod is activated.

In your admin panel go to Features and Options and scroll down to the Offline Payments section. Check the box to enable it and click save.


And that should be it!


Hornyflings

  • Prime Member
  • ****
  • Posts: 194
  • Karma: +3/-0
    • AsiasHeart
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #1 on: May 11, 2016, 11:15:20 PM »
Hi KHDev,
you did a great job again. Thanks a lot for sharing.
Just installed the mod. it works more than perfect.
Very practicable solution for everyone here who accept offline payments.

Each and every mod (even need to pay small amount for it similar to other comparable dating scripts) improves the features of etano and makes it to an outstanding dating solution.

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 505
  • Karma: +43/-2
  • Etano Contributor (Skins & Mods)
    • KH Web Development
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #2 on: May 12, 2016, 08:56:29 AM »
Hi KHDev,
you did a great job again. Thanks a lot for sharing.
Just installed the mod. it works more than perfect.
Very practicable solution for everyone here who accept offline payments.

Each and every mod (even need to pay small amount for it similar to other comparable dating scripts) improves the features of etano and makes it to an outstanding dating solution.

Hey,

Thanks and glad you like the little mod :)



Hornyflings

  • Prime Member
  • ****
  • Posts: 194
  • Karma: +3/-0
    • AsiasHeart
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #3 on: May 12, 2016, 11:50:16 AM »
Yes like it, checked it with adding payments, everything is working very paracticable. Right now couldn't check to add the button in subscription.html because I've removed that part of code months ago and replaced it with instructions how to pay offline. Need to replace with the original file and move the instructions to offline_payment.html

I've just realized there must be a minor issue during installation. got this error code:

Code: [Select]
ftp_delete(): /html/tmp/packages/OfflinePaymentsInstaller/files: Is a directory
Last query run: SELECT `fk_module_code`,`config_value` FROM `dsb_site_options3` WHERE `fk_module_code` IN ('skin_def') AND `config_option`='skin_dir'

ftp_rmdir(): /html/tmp/packages/OfflinePaymentsInstaller/: Directory not empty
Last query run: SELECT `fk_module_code`,`config_value` FROM `dsb_site_options3` WHERE `fk_module_code` IN ('skin_def') AND `config_option`='skin_dir'

Seems the particular files/directory couldn't be removed in tmp folder. More or less a blemish.

In any case your mod makes it lots easier to handle offline payments. Thanks again!

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 505
  • Karma: +43/-2
  • Etano Contributor (Skins & Mods)
    • KH Web Development
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #4 on: May 12, 2016, 04:04:08 PM »
Hmm strange. Minor detail anyways as it won't affect the mod. Should get removed in the weekly clean up cron alternatively can be manually deleted as those files are no longer needed. :)

Omololu

  • Active Member
  • ***
  • Posts: 45
  • Karma: +0/-0
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #5 on: May 26, 2016, 04:19:01 PM »
Hi;

I installed and revieved the mods, it works fine. but i noticed one thing "when admin upgrade a user account e.g. Free to Paid, after the expiry date of the account (Paid) the user account did not went back to Free rather, it still remain as Paid and user access the site as paid member and not as free member.

Someone should try and review that, any possible suggestions to rectify that?

thanks all....

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 505
  • Karma: +43/-2
  • Etano Contributor (Skins & Mods)
    • KH Web Development
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #6 on: May 26, 2016, 05:20:08 PM »
Hi;

I installed and revieved the mods, it works fine. but i noticed one thing "when admin upgrade a user account e.g. Free to Paid, after the expiry date of the account (Paid) the user account did not went back to Free rather, it still remain as Paid and user access the site as paid member and not as free member.

Someone should try and review that, any possible suggestions to rectify that?

thanks all....

Hi,

Hmm strange as its based on Etano's "Change Membership" feature.

When you view the users profile in the admin panel can you confirm whether the users membership is Paid or Free also the expected expiry date?

There could be a couple of possible reasons:

1) If the user was logged in before the expiry end time then its possible their current session hasn't been updated (if i'm correct the session membership is stored when the user logs in) if they haven't logged out since so while their account has been downgraded (which you'd be able to verify by viewing their profile in the admin panel) it could be possible that access will not be denied to paid features until the user has logged out and logged back in.

2) Your cron jobs are not running correctly. (You can try and test it by viewing a members profile, select "Change Membership" NOT the offline method and change the users membership to a paid plan. If that membership is not downgraded when the expiry date passes then it would suggest something is not correct such as cronjob)


Omololu

  • Active Member
  • ***
  • Posts: 45
  • Karma: +0/-0
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #7 on: May 27, 2016, 02:27:50 PM »
Thanks for your reply, i will work on it.

Omololu

  • Active Member
  • ***
  • Posts: 45
  • Karma: +0/-0
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #8 on: May 31, 2016, 11:13:31 PM »
Did you have a responsive version for this mod?

Its now working properly on the new Bootmin Admin Skin.

KHDev

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 505
  • Karma: +43/-2
  • Etano Contributor (Skins & Mods)
    • KH Web Development
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #9 on: June 03, 2016, 08:21:47 AM »
Did you have a responsive version for this mod?

Its now working properly on the new Bootmin Admin Skin.

I will put together a bootstrap version for BootMin shortly. :)

Omololu

  • Active Member
  • ***
  • Posts: 45
  • Karma: +0/-0
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #10 on: June 03, 2016, 01:59:18 PM »
alright man......

digitales

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: [ADD-ON] [FREE] - Offline Payment Module
« Reply #11 on: November 14, 2017, 12:10:25 PM »
i like to use that add on, may you re upload the files, KHDev, please?