Posted: February 27, 2014 at 7:09 am
|
Hello, I am trying to locate some information i need to edit on the View Cart page. There is a line telling me to choose the amount of attendees… Just behind that there is a price and some text information… I need to edit that text there is just right to the price.. i noticed that these lines of code from shopping_cart.php Example output:
Where (choose amount of attendees) is a acrtual dropdown…. Where can i edit the text “tidligt ude rabat” which is in my language (danish).. but i need to remove that text.. π |
|
<td class=”price”>kr1,950.00 Tidligt Ude Rabat </td>” this is a raw output if it helps π |
Hi Morten, Usually we would advise you to use POEdit to ‘translate’ the text (you could just translate it to be nothing (”). However, doing so will translate all instances of ‘ Early Pricing’ to nothing which may or may not be suitable. The guide to do that is posted here: https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ However if you would like to remove that text only from the cart page, you will need to modify the function that outputs it. This function is event_espresso_group_price_dropdown within event-espresso/includes/functions/cart.php. It is a pluggable function Copy the whole function without the function_exists wrapper (lines 1171-1268) if ($early_price_data = early_discount_amount($event_id, $result->event_cost)) { $result->event_cost = $early_price_data['event_price']; $message = __(' Early Pricing', 'event_espresso'); } either remove or comment out $message. Such as: if ($early_price_data = early_discount_amount($event_id, $result->event_cost)) { $result->event_cost = $early_price_data['event_price']; //$message = __(' Early Pricing', 'event_espresso'); } That will remove the text from the cart page and keep your modification ‘update-safe’. |
|
|
Hello Tony π I need to remove the text 100% from the page that i mentioned. When i click “view cart” the page with all different events are listed. I will take a look at what you wrote when i arrive at the job π Thanks ^^ |
|
super thanks again, it works and everything is in order π |
The support post ‘view cart page – edit some information’ 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.