Support

Home Forums Multiple Event Registration Add-on MER: Show ESPRESSO_CART_LINK anchor instead of "View Cart"

MER: Show ESPRESSO_CART_LINK anchor instead of "View Cart"

Posted: October 22, 2012 at 8:50 am


jmahood

October 22, 2012 at 8:50 am

Hello,

I am using MER for an event and after I click on the link to register and return to the events page, it says “View Cart” even though I did not complete the process. Is there a way to modify this so it always shows my text that I have entered for the anchor?

Thanks


Jonathan Wilson

October 22, 2012 at 9:24 am

Hello again,

It is saying “View Cart” is because the event is added to the cart when you click “Add to cart” (or “Register”, then fill out the registration form).


jmahood

October 22, 2012 at 9:26 am

Is there a way to modify this so it always shows my text that I have entered for the anchor?


Dean

October 22, 2012 at 11:23 pm

Hello,

You can modify the View Cart text in two ways.

The safest and easiest way is via the language files (event-espresso/languages/event_espresso-en_Us.po or your own language file)
This will need to be changed every time the plugin is updated so we recommend keeping a copy offline and on updates comparing it with DiffMerge and resaving.

The not so safe way is to change it in event-espresso/includes/functions/cart.php. This is a core file so any mistakes will break the plugin. Again this will need to be redone on update.


jmahood

October 23, 2012 at 7:45 am

Thanks Dean,

I ended up having to modify cart.php because the copy for the anchor link is likely going to change from time to time with my client.

On line 814, I copied and commented out the following line and added my own line.

    //$registration_cart_anchor = __("View Cart", 'event_espresso');
    $registration_cart_anchor = $anchor;

Hopefully this won’t cause any issues.

Thanks again!

The support post ‘MER: Show ESPRESSO_CART_LINK anchor instead of "View Cart"’ 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