Igor's CCBill Mod - how to hide dolphin default prices & create trials

Using Igor's CCBill (adult payment processor) mod is nice and easy, and nice and flexible too, enabling you to setup one time payments, auto rebilling and trials that auto rebill. However, the way dolphin displays prices and membership durations on "My Membership" and "Cart" pages kind of sucks, and here's why;

If you have setup a trial for say 3 days at $2.99 that will rebill at the end of the 3 days to a 30 day cycle at say $24.99, you naturally want to show the price and duration of the trial to you member. What happens in reality is that Dolphin displays the price as $24.99 and duration of 30 days which doesn't make your trial look very enticing! I poked around inside the dolphin admin to find a solution for this, but I couldn't. So I had to devise my own, and here it is for you to use too.

The fix is quite simple! Laughing
We're going to edit a couple of templates, and change/create our membership level descriptions...

1. We'll start with adding the price and durations to the descriptions. You will need to change your descriptions for each membership level (to include the price and duration) that you created in dolphin admin > setting > membership levels. If you are creating a new membership level, then this is quite simple to put the price and duration in the description when you create it, but once created, there is no way to edit the description. So you will need to edit it in MySQL using phpMyAdmin or similar.

In phpMyAdmin select your dolphin database, go to the "sys_acl_levels" table, and browse that table. Here you can click on the edit icon to each of your paid memberships.

If you haven't yet created your paid membership levels, then you can do the next part direct in dolphin > settings > membership levels > new

2. In the description field you can format your text with html to lay it out neatly. I used inline css inserted into spans. So I have my description as before. Then below that I have the price highlited in green, then below that I have a small, grey text for info such as (rebills monthly). Save your changes.

3. Open up /modules/boonex/membership/templates/base/available.html in your favorite editor. You will find tags such as __price__ , __currency_icon__ , (__days__) . You can simply comment them out using standard html comments to hide them. You could delete them, but commending is less destructive.

4. Open up /modules/boonex/payment/templates/base/cart.html in your editor. Look out for tags such as __items_price__ , __vendor_currency_code__ . Comment those out. Now find __item_title__ . Comment it out and after the comment type in "Membership" or what ever you like. You can also change the name of your cart from "Administrator's Cart" by commenting out and replacing with your own words, but make sure not to comment out other stuff that's needed.

That should be it. Go to your "My Membership" page and check. Now add an item to your cart, and check the cart page.

You may also want to edit /modules/boonex/membership/templates/base/current.html but I haven't got as far as testing the return from ccbill payment page back to dolphin yet!

 

Hope this helps! Wink

Quote · 3 Mar 2011

Unfortunately sinse I posted this I have had some non-related problems with Igor's CCBill Mod, and he isn't answering my messages! Anyone know how to contact him?

Quote · 4 Apr 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.