Posted: 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? Thanks for your time
|
|
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. |
|
Excellent! One more please. How do I remove the following which is displayed next to the register button… > or Add to Cart
|
|
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) |
|
Dean, could you please tell me where I can delete these from within the core files? Thanks for your support! |
|
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. |
|
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/ ) |
|
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. |
|
Good news, bad news. The change to cart.php worked. Thanks! I uploaded event_list_display.php to wp-content/uploads/espresso/templates The code now looks like this:
|
|
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. |
|
You are the man! Thanks for your patient support. |
|
You’re welcome! |
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.