Support

Home Forums Multiple Event Registration Add-on .remove-cart-item not actually removing the items

.remove-cart-item not actually removing the items

Posted: August 28, 2013 at 7:38 am


Hugo Azzolini

August 28, 2013 at 7:38 am

Good Morning, Support Team.

I am running into an odd little bug where the .remove-cart-item is visually removing the event from the cart, but if I attempt to proceed with the purchase, I am faced with this error:

AttentionFor Heroes & Legends! (A Young People's Concert), please make sure to select between 1 and 301 attendees or delete it from your cart.

To duplicate:

take a loot at https://orlandophil.org/opera-series/
click the ‘Purchase’ button for the first listed event.
close the modal window
click the ‘Purchase’ button for the second listed event.
close the modal window
click the ‘View Cart’ link at the affixed to the bottom of the screen
Once the cart page loads, add a quantity to the first event
Remove the second event via the beige ‘X’ to the right of the event title
Scroll to the bottom of the page and click the red “Purchase Tickets’ link


Josh

  • Support Staff

August 28, 2013 at 11:59 am

Hi Hugo,

Can you try the above test with no modified code running from /wp-content/uploads/espresso/templates or /wp-content/uploads/espresso/ ?


Hugo Azzolini

August 30, 2013 at 7:11 am

That seemed to do it:
http://dppad.com/demo/orlandophil/?page_id=24

Now to figure out which template (specifically) was causing the crash…

Thanks!


Josh

  • Support Staff

August 30, 2013 at 7:32 am

I can advise checking shopping_cart.php since that’s the template that displays the remove from cart buttons.


Hugo Azzolini

August 30, 2013 at 1:42 pm

To fully illustrate the issue and how it was remedied:

We wanted to use a custom image for the ‘remove-cart-item’, and in doing so omitted the necessary id: id="cart_link_<?php echo $r->id ?>"

The full, working code for a custom image is:

<span class="remove-cart-item"> <img class="ee_delete_item_from_cart" id="cart_link_<?php echo $r->id ?>" alt="Remove this item from your cart" src="<?php bloginfo('stylesheet_directory'); ?>/img/remove-cart.png" /> </span>

The support post ‘.remove-cart-item not actually removing the items’ 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