Hi all
I want to up-sell Webinars to existing Members using custom capabilities.
I need to be able to sell pre webinar Signups and post webinar Purchases basically for the same custom capability.
There are four states.
1. Before Event – NOT PURCHASED – Displays a Sign Up Button Image
2. Before Event – ALREADY PURCHASED – Shows “You, already signed-up to this event, don’t forget to set your alarm” type of message
3. After Event – NOT PURCHASED – displays a Buy Button Image
4. After Event – PURCHASED – Displays a list of Video Download Options, three button images
The Problem
How can I set a date and time for the event (a custom capability) so that the stages can be displayed accordingly.
I have had limited success using the ‘Shortcode Exe PHP’ Plugin to handle the Date specific stuff. See the following:
[s2If current_user_can(access_s2member_ccap_webinar2)]Download</p>
<p><a href="#"><img class="alignnone size-full wp-image-1850" title="Download an .mp4 video file of this Wise Hippo Instructors' Webinar" alt="Download an .mp4 video file of this Wise Hippo Instructors' Webinar" src="http://www.thewisehippo.com/wp-content/uploads/2013/11/mp4-button.png" width="96" height="21" /></a><a href="#"><img class="alignnone size-full wp-image-1850" title="Download a .webm video file of this Wise Hippo Instructors' Webinar" alt="Download a .webm video file of this Wise Hippo Instructors' Webinar" src="http://www.thewisehippo.com/wp-content/uploads/2013/11/webm-button.png" width="96" height="21" /></a><a href="#"><img class="alignnone size-full wp-image-1850" title="Download a .wmv video file of this Wise Hippo Instructors' Webinar" alt="Download a .wmv video file of this Wise Hippo Instructors' Webinar" src="http://www.thewisehippo.com/wp-content/uploads/2013/11/wmv-button.png" width="96" height="21" /></a>[/s2If][s2If !current_user_can(access_s2member_ccap_webinar3)]<strong>[Webinar2]</strong>[/s2If]
[Webinar2] is the ‘Shortcode Exe PHP’ shortcode. Here is the PHP in it.
date_default_timezone_set('Europe/London');
$Webinar2 = date('16-10-2013 10:00');
echo date('d-m-Y H:i', time()) > $Webinar2 ? '<img class="alignnone size-full wp-image-1850" alt="View Button" src="http://www.thewisehippo.com/wp-content/uploads/2013/10/view-button.png" width="96" height="21" />' : '[s2Member-PayPal-Button level="*" ccaps="webinar2" desc="Webinar 2" ps="The_WiseHippo" lc="" cc="GBP" dg="0" ns="1" custom="www.thewisehippo.com" ra="0.01" rp="1" rt="L" rr="BN" image="http://www.thewisehippo.com/wp-content/uploads/2013/10/sign-up-now-button.png" output="button" /]';
The problems seems to be stage 2…if they have signed up for the event then it shows a list of downlood options but there are no downloads as the event has NOT taken place yet.
Maybe there is a way to use functioning shortcodes in the PHP in ‘Shortcode Exe PHP’ plugin. I can only get html to work in the above PHP code. If I enter the shortcodes nothing works!…just a thought!
I hope that’s enough info for ya’ll to understand my problem. Fingers crossed someone can help me here.
Many thanks
John
-
This topic was modified 3 years, 1 month ago by
John Cook.
-
This topic was modified 3 years, 1 month ago by
John Cook.