Posted: February 19, 2014 at 12:42 pm
|
The Calendar Table only shows one price although the event has two different prices, one for general admission and one for VIP. How can I get both to show on the Calendar Table? Thanks. |
Hi MsBecca, This is regarding the Custom Calendar Table Template correct? There’s a couple of ways to display the prices, both of which will require some modification to the code. We have to code snippets that can show the range or a list of prices: List https://gist.github.com/sethshoultes/ab1e992668cf3166a686 Include the code you would like to use, placing the function within custom_functions.php in wp-content/uploads/espresso/ Then open espresso-template-calendar-table/index.php line 136 Then add the action you would like to use from the bottom of the Gist. So for example, if you wanted to display the price range you would do this http://take.ms/9FfM1 so espresso-template-calendar-table/index.php line 136 would then become <?php do_action('action_hook_espresso_price_range', $event_id);?> Hope that helps ๐ |
|
|
Yes the Custom Calendar Table Template is correct. I followed the instructions but I was not able to locate the custom_functions.php file in wp-content/uploads/espresso. Is this correct? |
|
Hi, If custom_functions.php does not exist, create it via FTP or your hosting Control Panel. (or create it on your computer and add the code and upload it via FTP). |
|
Hi, Question: This shortcut [EVENT_CUSTOM_VIEW] shows event details when a user is not logged in but [EVENT_CUSTOM_VIEW template_name=”calendar-table”] does not. What causes one to show the details when a user is not logged in but not the other? |
|
Hi, I cannot recreate this, both shortcodes show the appropriate tables when logged in or out. Do you have an example page where this is occurring? |
|
The page is located at http://shoutkey.com/curd. The first one is the Calendar Table View Template which doesn’t show the event details when logged out but the second template shows the event details when logged out. |
Hi MsBecca, The calendar-table template has a ‘Members’ check so if EE Members is installed and the event is member only, or all events are member only, it will display the log-in screen. This would need to be removed if you wish to display member only events to non-members using this template. It is not clear if you would like both shortcodes to display the login, or you would like to remove the check from the calendar-table template. From reading your previous threads it seems you want to display the event details but then require log-in before purchase (meaning removing this check from the template). Would that be correct? Removing the check is fairly simple but just want to clarify before leading you down the wrong path. |
|
|
Hi, Yes I would like the details to show to non-members but be required to log in prior to purchasing tickets, so yes removing the check from the template is what I believe I would need to solve this issue. |
In that case you’ll need to edit espresso-template-calendar-table\index.php Remove lines 106-109 //Check to see if the Members plugin is installed. if ( function_exists('espresso_members_installed') && espresso_members_installed() == true && !is_user_logged_in() && ($member_only == 'Y' || $member_options['member_only_all'] == 'Y') ) { event_espresso_user_login(); }else{ Then remove line 141 }// close is_user_logged_in That should remove the log in check and display the events. |
|
|
Thank you Tony!! That is exactly what I was trying to do. The event details now show when I am logged out. |
No Problem ๐ |
|
The support post ‘Calendar Table View’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.