Support

Home Forums Event Espresso Premium Customizing the shopping cart: how to call to all info

Customizing the shopping cart: how to call to all info

Posted: August 23, 2014 at 7:39 am

Viewing 2 reply threads


Stanley Allen

August 23, 2014 at 7:39 am

I want to make my shopping cart (shopping_cart.php) look exactly like this design from my designer:

https://www.mrwpress.com/mrwpress-view-cart.jpg

So you can see there are some things that need to take place:

1. The featured image for each event needs to be in the cart. I tried putting the PHP code `
<?php //Featured image
echo apply_filters(‘filter_hook_espresso_display_featured_image’, $event_id, !empty($event_meta[‘event_thumbnail_url’]) ? $event_meta[‘event_thumbnail_url’] : ”);?>`

into the template but it will not spit out the featured image. So, I figured that maybe I did not have some variable or something where there was an array() of information. So, I copied all of the information from another template and the $global variables, etc. I still could not get the featured image to show up. How can I get the featured image to show up on the shopping cart?

2. In the design there is a column that shows the price for each event in the cart. The trouble is I found this PHP in the shopping_cart.php template and it spits out entire little table of info. The code I found was: <?php echo event_espresso_group_price_dropdown( $r->id, 0, 1, $_SESSION['espresso_session']['events_in_session'][$r->id]['price_id']); ?>

and that code renders a table as such:

<table class="price_list">
<tbody>
<tr>
<td class="price_type">General Admission</td>
<td class="price">$199.00 </td>
<td class="selection">
</tr>
<tr>
</tbody>
</table>

So in some fashion that fancy PHP function does quite a bit of work. Is there any variable in that file I can do a var_dump() on and get the price and the price alone? It is spitting it out, but how?

3. The next column over is the “Attendees” column. This is another part of the function and table rendered from my issue in #2 above. This attendee selector is buried inside that function and I need to find that function. I would like to alter it so that it is a text input field (not a drop down) and the calculation based on whatever number is in that field (per my design). Is there a way to accomplish this?

4. Next column is the “Subtotal” column. Is there a way to do a subtotal on every item in the cart individually as the user adjusts the number of attendees? As my design would suggest? If I can get the price issue from #2 figured out so that I can spit the price out to the page, then I could use some jQuery to do the calculations. What do you recommend doing in order to accomplish this column of my design?

Thank you very much in advance for your help here! I suspect we will be writing a few tickets up after this one because I have some questions on other templates as well. In the end, the process should go according to these designs:

1. https://www.mrwpress.com/mrwpress-select-courses.jpg

2. https://www.mrwpress.com/mrwpress-view-cart.jpg

3. https://www.mrwpress.com/mrwpress-attendee-info.jpg

4. https://www.mrwpress.com/mrwpress-verify-registration-and-payment-method.jpg


Stanley Allen

August 23, 2014 at 10:44 am

This is how my shopping cart looks at the moment

https://www.mrwpress.com/my_cart_08232014.png

Please note from the URL in my screen shot I am working from my local host. I don’t have this on my live site and that is why I am providing you a screen shot.

Thanks!


Dean

August 25, 2014 at 1:55 am

Hi,

The above can likely be done, but unfortunately that level of customisation falls outside of the scope of support (all customisation does, though if it’s minor we often help anyway).

I would recommend contacting a developer for assistance, we have a list of recommended ones here: https://eventespresso.com/developers/event-espresso-pros/

Viewing 2 reply threads

The support post ‘Customizing the shopping cart: how to call to all info’ 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