Support

Home Forums Event Espresso Premium ee 4.6.1 broke Grid layout add on

ee 4.6.1 broke Grid layout add on

Posted: February 4, 2015 at 7:29 pm


Austin

February 4, 2015 at 7:29 pm

Also the css to get rid of additional ticket information doesn’t work anymore either:
#single-page-checkout .spco-attendee-panel-dv:not(:first-of-type) {
display: none;
}

Umm.. But I really need the css and stuff from the Grid Layout Addon back.. Recommendations?
4.6.1 isn’t recognizing the shortcode for grid layout.


Austin

February 4, 2015 at 7:30 pm

Sorry 4.6 not 4.6.1


Austin

February 4, 2015 at 7:40 pm

(It would be awesome also if we could edit our posts… *=-)


Josh

  • Support Staff

February 4, 2015 at 7:55 pm

Hi Royale,

Did you update the grid layout add-on to version 1.2.2?

I’m not certain what exactly you’re trying to hide with your CSS, but if you can describe what you are trying to hide or include a screenshot, we can give you suggestions.


Austin

February 4, 2015 at 8:18 pm

Hey Josh – Sorry for speaking soon on one part.

I upgraded the grid layout and got the shortcode to work but I am very disappointed to find all my customizations for the code in the grid view are gone. The CSS is reverted and does this mean every time there’s an update I will have to rewrite the customized code?

As for the other part that single page css you gave me before kept the checkout page from showing all the tickets, leaving just the first one.

For example if you buy a ticket for event 1 with an adult and a child, you only have to fill out information for the adult, but on the check out page it lists out :
Ticket Details

Ticket Name and Description Qty Price Total
Spouse / Guest 1 $975.00 (USD) $975.00 (USD)

Ticket Details

I only want ticket details on the first ticket, the rest of the tickets should just show up on the payment page, not the registration page. Your hiding not first of type worked on the previous version.. On this one it doesn’t work anymore.

Also all custom css I added to the registeration page (made the questions 50% length etc) is gone.. how do I go about saving that, or do I just not update?


Josh

  • Support Staff

February 4, 2015 at 9:09 pm

Hi Royale,

You can avoid losing your custom code on updates by putting all your custom CSS in a create a child theme or in the Reaktiv CSS Builder plugin CSS editor.

With the additional ticket information that you’re trying to hide:

The divs were refactored quite a bit with the single page checkout code refactor. Here’s what will work for 4.6:

.spco-step-dv .spco-attendee-panel-dv:not(:first-of-type) .spco-ticket-info-dv {
display: none;
}


Austin

February 5, 2015 at 5:50 am

Thanks so much Josh. I changed out some of the layout too in the grid theme…

Like I added :
//echo ‘<b class=”title”><table><td>’ . $post->post_title. ‘</b></td>’;
echo ‘<table><tr><td width=”20%”><b class=”start-date-day”>’ . date_i18n( $date_format, strtotime($startdat) ).'</b>’;
echo ‘<br /><b class=”start-date-month”>’. date_i18n( $date_format2, strtotime($startdat) ) . ‘</b></td>’;
/*if($event->event_cost === “0.00”) {
echo __(‘FREE’, ‘event_espresso’);
}else {
echo $org_options[‘currency_symbol’] . $event->event_cost;
}*/
//echo ‘<br />’;
//echo ‘<b class=”start-date”>’ . date_i18n( $date_format . ‘ ‘ . $time_format, strtotime( $startdat ) ) . ‘</b>’;
//echo ‘<b class=”start-date”><td>’ . date_i18n( $date_format ) . ‘</b>’;
echo ‘<td width=”80%”><b class=”event-title”>’ . $post->post_title. ‘</b>’;
echo ‘</td></tr></table>’;
//echo ‘<br /><br />’;

//echo ‘<b class=”button-text”>’ . $button_text . ‘</b>’;
?>

To the template.template.php to get my grid to look like:
http://pesa.minervadevsites.com/meetingsandevents/
along with some custom css and a couple other things – should I just keep this ‘custom file’ or will future updates break it?


Austin

February 5, 2015 at 5:51 am

Sorry for the copy and paste – I tend to just comment out the original code in case I screw stuff up.. (I am still rather new in PHP)


Josh

  • Support Staff

February 5, 2015 at 7:09 am

Hi Royale,

You can preserve your changes to the grid template file through updates by copying the file into /wp-content/uploads/espresso/templates

The support post ‘ee 4.6.1 broke Grid layout add on’ 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