Support

Home Forums Event Espresso Premium Event Description

Event Description

Posted: October 30, 2013 at 11:26 am

Viewing 16 reply threads


Judy Parker

    October 30, 2013 at 11:26 am

    Hi there, I have 4 different price points for tickets.. adult, student, 6-12yrs, and free
    When one visits the events-registration page and sees the descriptions of the events, under price I want it to show the Adult price, each event is showing a different price and seems to randomly be picking a price point to show… How can I set it to the first price point?


    Dean

    • Support Staff

    October 31, 2013 at 4:18 am

    Hi,

    The prices are displayed in order, so whatever was entered first in the event editor will be shown first in the drop down.


    Judy Parker

      October 31, 2013 at 8:09 am

      Yes, in the drop down they are displayed in order… It’s the description box where it displays theprice, it is not choosing my top price but random prices… Sometimes it displays the top price of $ and sometimes it displays the Free price.


      Josh

        October 31, 2013 at 9:32 am

        Hi Judy,

        Can you post a link to the page where it’s displaying the prices so we can understand the issue better?


        Judy Parker

          October 31, 2013 at 10:41 am

          Hi Josh,
          Here is the link to home games. Prices are $7, $5, $3 and free… each game is the same but it is not consistently showing the same price in the description. You can view here.
          http://www.amherstburgadmirals.com/tickets/pre-order-tickets/

          thanks so much,
          Judy


          Judy Parker

            October 31, 2013 at 10:42 am

            I’d like it them to all display the same amount, $7.00 which is the highest price


            Judy Parker

              October 31, 2013 at 10:44 am

              also, is there a way to display the game start time? I filled out start time in each event …. it doesn’t display.


              Josh

                October 31, 2013 at 1:06 pm

                Hi Judy,

                To make this happen there’s a template file that will need to be edited. It’s named event_list_display.php. To get the first price entered in the event editor to display on the page you linked to there’s a line of code that needs to be adjusted a bit:

                <?php echo  $org_options['currency_symbol'].$event->event_cost; ?>

                gets changed to:

                <?php echo  $org_options['currency_symbol'].do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]'); ?>

                The time can be added with this code:

                <p id="event_time-<?php echo $event_id ?>"><span class="section-title"><?php _e('Time:', 'event_espresso'); ?></span>  <?php echo do_shortcode ('[EVENT_TIME event_id="'.$event_id.'" type="start_time" format="g:i a"]') .' - '. do_shortcode ('[EVENT_TIME event_id="'.$event_id.'" type="end_time" format="g:i a"]'); ?></p>

                Once you have these customizations in place you can copy the event_list_display.php to your active WordPress theme’s folder and your modified file will load from there. This way your changes will not get deleted when you update Event Espresso.


                Judy Parker

                  October 31, 2013 at 1:33 pm

                  Thanks Josh, where do I find this template file? Am I editing through WordPress or my file manager on my server?


                  Josh

                    October 31, 2013 at 1:49 pm

                    The file manager is a better choice than the WP editor. An even better choice is an FTP client with a text editor.

                    The file in question is in the wp-content/plugins/event-espresso/templates folder.


                    Judy Parker

                      October 31, 2013 at 3:05 pm

                      Well 7 out of 8 games changed to the price I wanted.. the last one is still stuck on FREE EVENT


                      Anonymous

                        November 1, 2013 at 3:44 am

                        The code you changed forces Event Espresso to display the first event price entered.

                        So in the previous examples I’d guess you input the prices in the order mentioned ‘Prices are $7, $5, $3 and free’ did you also do so for the event that still displays ‘Free Event’?


                        scarter1208

                          November 1, 2013 at 9:11 am

                          I’m having the same problem. I’m not technically gifted at all so can you explain how I get to the template file in order to change those codes?


                          Sidney Harrell

                          • Support Staff

                          November 1, 2013 at 1:23 pm

                          @scarter1208, you will need ftp access to your files. You can either use the ftp client built in to your host’s cpanel, or use the instructions from your host to connect an ftp client on your local machine, such as filezilla, to your host’s server.


                          Judy Parker

                            November 7, 2013 at 11:07 am

                            Hi all.. my apologies for not answering earlier, I was away at a funeral. All prices were put in order from $7 first, then $5 then $3 then free for all events…. while all corrected after putting in the code that was given to me… my last event is still showing up as FREE EVENT. I deleted the member pricing thinking maybe that was an issue but it is not….


                            Josh

                              November 8, 2013 at 9:30 am

                              Hi Judy,

                              This is very strange. Can you try changing one more line of code? In event_list_display.php (the one you’ve already made a change to) on line 63 there is this:

                              $event->event_cost = empty($event->event_cost) ? '' : $event->event_cost;

                              can you change it to this:

                              $event->event_cost = do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]')


                              Judy Parker

                                November 9, 2013 at 5:32 am

                                Thank you, that did the trick!!

                                Viewing 16 reply threads

                                The support post ‘Event Description’ 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.

                                Event Espresso - Staging Server