Support

Home Forums Event Espresso Premium Event list view price showing inproperly.

Event list view price showing inproperly.

Posted: August 31, 2016 at 11:35 am

Viewing 13 reply threads


dantetdc

August 31, 2016 at 11:35 am

I followed the instructions here:
https://gist.github.com/lorenzocaum/ef6afefd07c9c5f6f681
But the starting from price is not showing in the correct place.

You may verify it here:
http://gmtonline.net/upcomin-trips-registration/

Code is:

*** code removed per forum rules ***

  • This topic was modified 8 years, 4 months ago by Josh. Reason: *** code removed per forum rules ***


Josh

  • Support Staff

August 31, 2016 at 1:14 pm

code can be viewed at:

https://gist.github.com/anonymous/7b531ffc73f393417517e53c72eeb53b


Josh

  • Support Staff

August 31, 2016 at 1:18 pm

It looks like there are a few mistakes in your code. If you take a close look at lines 94 and 97, you’ll see a few spots that need to be fixed.

https://gist.github.com/anonymous/7b531ffc73f393417517e53c72eeb53b#file-php-php-L94


dantetdc

August 31, 2016 at 1:29 pm

Hi there!
Thanks for the quick reply!
To tell you the truth, I don’t have experience with coding!
I just follow the instructions here:

https://gist.github.com/lorenzocaum/ef6afefd07c9c5f6f681

Would it be possible for you to tell me exactly what needs to be changed?

Thank you.


Josh

  • Support Staff

August 31, 2016 at 1:45 pm

Those instructions that you followed do not instruct to change the lines that you altered to the point of breakage. So the first thing you need to do is double check your work and make sure you follow the instructions exactly. Then the second thing you do is compare the lines of code from the original file to your altered file.

For example this is from the original file:

$live_button = '<a id="a_register_link-'.$post->ID.'" class="a_register_link" href="'.$registration_url.'">'.$button_text.'</a>';

And this is from your altered copy:

$live_button = '<a>ID.'" class="a_register_link" href="'.$registration_url.'">'.$button_text.'</a>';

If you compare the two, you’ll notice that these characters were deleted from your copy:

id="a_register_link-'.$post-

When you delete parts of the code like in the above example, you can expect things to not display properly.


dantetdc

August 31, 2016 at 1:58 pm

The reason coulb be because I mixed the “show start-end date” and the “show price” at the same time.

Well, I’ll double check that.

Thank you!


Josh

  • Support Staff

August 31, 2016 at 2:52 pm

If you were trying to combine those, you were editing the wrong lines of code. Those lines actually are for the links that go to the single event page.


dantetdc

August 31, 2016 at 3:00 pm

I tried combining them again.
Code here: https://gist.github.com/anonymous/2e615268c7c6985ea3bfc4f314891e25

Date info dissapeared: http://gmtonline.net/upcomin-trips-registration/

I changed the code to show start-end date successfully. The problem is when I’m including the show price one… It removes dates!


dantetdc

August 31, 2016 at 3:04 pm

It’s line 138… But I don’t know how to fix that… I’m code-illiterate!


Josh

  • Support Staff

August 31, 2016 at 3:26 pm

I suggest reverting the code in that line to what’s in the original file. Copy and Paste.


dantetdc

August 31, 2016 at 3:31 pm

Done. Still the same:

http://gmtonline.net/upcomin-trips-registration/


Josh

  • Support Staff

August 31, 2016 at 3:37 pm

I’m finding more and more mistakes in your code. Is there a PHP developer on your team, or is this kind of a do-it-yourself deal?

Basically, it’s not going to display a date because there’s no $startdate variable before this line of code:

<td class="start_date event-<?php echo $post->ID; ?>" data-value="<?php echo $datetime->get_raw( 'DTT_EVT_start' ); ?>"><?php echo $startdate; ?></td>


Josh

  • Support Staff

August 31, 2016 at 3:39 pm

I fixed a few more mistakes that I could find and put them in this other gist:

https://gist.github.com/anonymous/12aaec9789653412fcd56e75e6ac6594


dantetdc

August 31, 2016 at 3:51 pm

Indeed, no dev, no team. I was thrown in this… Anyways, thank you for your help! EE has the best support ever!

Viewing 13 reply threads

The support post ‘Event list view price showing inproperly.’ 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