Posted: August 19, 2019 at 8:25 am
|
Hello, I am using the Price Modifier Plugin with Event Espresso. My client is looking for an easy way to have a report that shows only the charges for items captured by this plugin. When I use the Excel CSV export option the total amount shows these charges lumped in with the registration costs. I thought about making a simple formula to minus the registration cost from the total paid to give me the balance, which would be the modifier costs. The problem is each attendee has a guest so items are broken out over multiple lines. What would be the best/easiest way for them to see this information? https://snipboard.io/a0zxdO.jpg Thank you! |
Hi there, It’s been a while since I had a look at the Price Modifier add-on by Aparna which I assume is what you are referring to above. Is the value of the selected modifier not already included in the CSV? |
|
|
No it is not. |
Ok, so what is in included in the CSV? In fact, do you have a copy of the add-on I can take a look at? I can contact Aparna and ask for one but it will likely be quicker if you can upload the .zip file for me to take a look. |
|
|
This reply has been marked as private. |
After my reply above, I found an older copy of the Price Modifier Add-on I had on one of my test sites and figured a way to replace the values in the CSV (which in my copy show the price modifier ID rather than the description) with the price options selected, so that snippet is what I came up with. Rather than passing that straight onto you I sent it to Aparna to see if it (or something similar) may be included in the add-on itself. The reasons I did that is it is less complicated further down the line if the add-on does the functionality rather than a snippet, if the add-on is updated to do something similar it can conflict… but anyway, just a quick explanation as to where the above snippet come from.
Where exactly have you placed the code in that snippet? The theme’s functions.php file? If so that may not be loading on the request for the CSV’s, the best place to place snippets of code is into a custom functions plugin and we have documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ A quick explanation of that snippet is that it will replace the CSV value so it no longer shows, as an example from your CSV, in column AE,
My apologies, I guess I’m missing something obvious here but I don’t follow this, what am I looking at in the CSV? |
|
|
I had placed it in the theme functions, so yes that was part of the issue. After reading your explanation of the snippet though, I’m not sure that is what I need. I was looking for a way to have the price of the addon item exported to the CSV. For example, if the addon item was $55 in addition to the registration fee, then the csv export would break out that $55 in a column separately. |
That’s exactly what my snippet should do. If they have selected a value for a modifier it will show the value, if they selected multiple values for a single modifier they will be separated with ‘, ‘. |
|
The support post ‘Excel CSV Export’ 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.