Support

Home Forums Event Espresso Premium Member vs non-member pricing

Member vs non-member pricing

Posted: December 5, 2012 at 7:04 am


patrick sanders

December 5, 2012 at 7:04 am

It appears that the Members plugin (WP User Integration) only reflects the correct member/wordpress user price when on a page that contains [ESPRESSO_EVENTS], but not on a page that has [EVENT_LIST]. Wouldn’t it make more sense to have the Member module be context aware throughout the site instead of just on the registration page? Or are we missing something?


Dean

December 6, 2012 at 1:58 am

Hi Patrick,

The default action for both of those shortcodes is to display the non member price in the list of events. We have specifically left it open for people to modify the templates in whatever way they choose to display the info.


Carina Hume

December 6, 2012 at 9:17 am

How would you go about modifying the template to have both display?


Dean

December 7, 2012 at 4:37 am

Hi Carina,

OK on closer looking it needs 2 edits.

1) in the events_list.php on line 74 approx you will see this

$sql = "SELECT $DISTINCT e.*, ese.start_time, ese.end_time, p.event_cost ";

change it to this

$sql = "SELECT $DISTINCT e.*, ese.start_time, ese.end_time, p.event_cost, p.member_price ";

That adds the members price to the info available, not sure why it isn’t there already but thats how to add it.

2) In events_list_display.php add something like this to approx line 72

<p><span class="section-title">Member Price: </span><?php echo $org_options['currency_symbol'].$event->member_price; ?></p>

This will display the member price in a similar way to the standard price.

Note that these are based on version 3.1.29 templates.


Carina Hume

December 7, 2012 at 2:49 pm

That did it, thanks.


Jonathan Wilson

December 7, 2012 at 4:03 pm

We noticed this earlier in the week and I submitted a ticket for this to be fixed in an update. Dean, I will copy your fix into the ticket that we have entered.

The support post ‘Member vs non-member pricing’ 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