Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
view cart page - edit some information | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium view cart page – edit some information

view cart page – edit some information

Posted: February 27, 2014 at 7:09 am

Viewing 4 reply threads


Morten Mouritzen

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
`<td colspan=”2″>
<?php echo event_espresso_group_price_dropdown( $r->id, 0, 1, $_SESSION[‘espresso_session’][‘events_in_session’][$r->id][‘price_id’]); ?>
</td> `

Example output:

Members Admission kr1,950.00 Tidligt Ude Rabat (choose amount of attendees)

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..

:)


Morten Mouritzen

February 27, 2014 at 7:15 am

<td class=”price”>kr1,950.00 Tidligt Ude Rabat </td>”

this is a raw output if it helps :)


Anonymous

February 27, 2014 at 7:57 am

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:

http://staging.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)
Paste that function into wp-content/uploads/espresso/custom_functions.php and then edit this:

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’.


Morten Mouritzen

February 27, 2014 at 11:49 pm

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 ^^


Morten Mouritzen

February 28, 2014 at 12:48 am

super thanks again, it works and everything is in order :-)

Viewing 4 reply threads

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.

Event Espresso - Staging Server