Support

Home Forums WP User Integration Correct Price Calculation/Incorrect Display for Member Pricing with Multi-Regist

Correct Price Calculation/Incorrect Display for Member Pricing with Multi-Regist

Posted: August 29, 2012 at 3:29 pm


Danielle Walton

August 29, 2012 at 3:29 pm

We are using the WP Members add-on and Multi registration add-on. If a member is logged in (and therefore should have logged in pricing) the incorrect price is being displayed. However, in the “Total” area, the price is being calculated correctly. (See attached screenshot.)
enter image description here


Danielle Walton

August 29, 2012 at 4:14 pm

For what it’s worth I added a conditional to see if the user was logged in and modified the MySQL query to pull in the member price/type from the database in the /includes/functions/cart.php file to get the prices to display correctly.

This may not be the most elegant solution, but I just wanted to let someone know that this didn’t work correctly. FYI, this is a fresh install of all plugin components as of this afternoon.


Chris Reynolds

  • Support Staff

August 29, 2012 at 6:17 pm

What version of Members/WP User Integration are you using? Actually, what version of all the Event Espresso plugins are you using? I was pretty sure this got fixed in an update.


Danielle Walton

August 29, 2012 at 6:29 pm

Hey Chris,

Thanks for your help.
EE: 3.1.26.P
EE-Multi-Event: 1.0.4
EE-Members 1.9.4
EE-Calendar: 2.0.3
EE-Permissions:1.5.1

Basically I just modified the SQL query to


$results = $wpdb->get_results("SELECT ept.id, ept.event_cost, ept.member_price, ept.surcharge, ept.surcharge_type, ept.price_type, ept.member_price_type, edt.allow_multiple, edt.additional_limit

(notice the added ept.member_price_type/ept.member_price) and then a conditional to make sure the member is indeed logged in and a member.

  • This reply was modified 11 years, 8 months ago by  Danielle Walton. Reason: add sql code

The support post ‘Correct Price Calculation/Incorrect Display for Member Pricing with Multi-Regist’ 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