Support

Home Forums Event Espresso Premium Remove "or view cart" link

Remove "or view cart" link

Posted: October 18, 2012 at 11:57 pm

Viewing 11 reply threads


Michael Watt

October 18, 2012 at 11:57 pm

Could you please tell me in which file, and which line I should delete to remove the “or view cart” link which is being displayed next to the registration button?

See example here

Thanks for your time

  • This topic was modified 12 years, 2 months ago by Michael Watt.


Dean

October 19, 2012 at 2:09 am

Hello Michael,

The code you are looking for is in event-espresso/includes/functions/cart.php so its a core file so be aware of that, line 815.


Michael Watt

October 22, 2012 at 11:29 pm

Excellent! One more please. How do I remove the following which is displayed next to the register button…

> or Add to Cart

  • This reply was modified 12 years, 2 months ago by Michael Watt.


Dean

October 22, 2012 at 11:33 pm

Michael,

Have a look in the language files, it may be the easiest option to remove or change the text.

The language files are overwritten on update so you need to keep a copy and compare it on update with a program like DiffMerge, but so would the core files and honestly its safer and easier with the language files.

The language files are event-espresso/languages, you are looking for the appropriate PO file.

Your request, the Or and the Add to cart are separate in the language files (roughly line 6736)


Michael Watt

October 24, 2012 at 12:34 am

Dean, could you please tell me where I can delete these from within the core files?

Thanks for your support!


Dean

October 24, 2012 at 1:00 am

Hello Michael,

2 places.

Add to cart is in cart.php line 816, its a whole block of code (the else statement)

the “or” is in the event_list_display.php in the templates, line 131 approx, just delete out the or between the quote marks.


Michael Watt

October 30, 2012 at 12:44 am

Strange. I deleted as you instructed and uploaded the pages to /uploads/ but it’s still there

(see the first event entry http://69.89.31.173/~icajapan/ )


Dean

October 30, 2012 at 1:20 am

Hi Michael,

The cart.php cannot be copied to uploads, it ignores that file there and uses the original.

I just installed a fresh version of 3.1.27 and followed my own instructions and it worked fine.


Michael Watt

October 31, 2012 at 1:28 am

Good news, bad news. The change to cart.php worked. Thanks!
Unfortunately, the removal of the [or] between the quote marks resulted in no change. Take a look http://69.89.31.173/~icajapan/

I uploaded event_list_display.php to wp-content/uploads/espresso/templates
should I refrain from uploading this file to uploads directory?
Any other ideas?

The code now looks like this:

                //REQUIRED, if not available at this point, use the next line before this array declaration
            // $event_name = get_event_field('event_name', EVENTS_DETAIL_TABLE, ' WHERE id = ' . $event_id);
            'event_name' => $event_name,
            //OPTIONAL, will place this term before the link
            'separator' => __(" ", 'event_espresso')
        );


Dean

October 31, 2012 at 1:42 am

Hi Michael,

No its fine to upload that file there, thats where it should be if you are modifying it, BUT sometimes the files are dependant, so if you havent copied across the event_list.php as well, do so and it should kick in with the changes.


Michael Watt

November 2, 2012 at 12:29 am

You are the man! Thanks for your patient support.


Dean

November 2, 2012 at 12:52 am

You’re welcome!

Viewing 11 reply threads

The support post ‘Remove "or view cart" link’ 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