Changing the color of products of order summary on email

Hello!

Is there any filter available to change the color of product title on email (order summaryy)?
On form on the website I solved the issue with CSS, but cannot fix it on email.

Thank you in advance

Hi Joshua!

Thank you very much…

I added on functions.php:

add_filter( 'gform_order_summary', function( $markup ) {
    $markup = str_replace( 'BF461E', '000000', $markup );
    return $markup;
} );

But I do not see any change. Am I doing something wrong?

I’d suggest adding a debug log statement as shown in one of those examples:

GFCommon::log_debug( __METHOD__ . '(): running.' );

… to ensure the code is running. After adding that, you’ll need to have core logging enabled and view an entry or send a notification that should trigger the filter. After doing so, check the log to see that the code is indeed being run.

Hi Joshua!

Yes, the code is running, but the str_replace doesnt seem it is working… I inspect the code, and the original color is still there.

Thanks

Hi Rainer. Can you please try the code like this:

add_filter( 'gform_order_summary', function( $markup ) {
	GFCommon::log_debug( current_filter() . '(): running.' );
	GFCommon::log_debug( current_filter() . '(): Original markup => ' . print_r( $markup, true ) );
	$markup = str_replace( 'BF461E', '000000', $markup );
	GFCommon::log_debug( current_filter() . '(): Modified markup => ' . print_r( $markup, true ) );
	return $markup;
} );

Ensure that logging is enabled: Logging and Debugging - Gravity Forms Documentation

Then test the form to send a notification, and once tested, please share a copy of your system status report: Checking Your Environment Details - Gravity Forms Documentation

We can check the logs for the logging statements and see what is going on. Thank you.

Below you can find 2 system report and log from the frontend part:

I am also including a part of notification debug.

Thank you

System Report

Gravity Forms

Version: 2.6.3 :heavy_check_mark:
Upload folder: /home/wp/disk/wordpress_staging/wp-content/uploads/gravity_forms/
Upload folder permissions: Writable :heavy_check_mark:
Output CSS: Yes
Output HTML5: Yes
No-Conflict Mode: No
Currency: EUR
Background updates: Yes
REST API v2: No
Registration: Site not registered ✘

Add-Ons

GP eCommerce Fields: by Gravity Wiz - 1.2.9 :heavy_check_mark:
GP Populate Anything: by Gravity Wiz - 1.2.12 :heavy_check_mark:
User Registration: by Gravity Forms - 5.0 :heavy_check_mark:

Database

Database Version: 2.6.3 :heavy_check_mark: Your database is up-to-date.
wp_gf_form_view: :heavy_check_mark:
wp_gf_form_meta: :heavy_check_mark:
wp_gf_form: :heavy_check_mark:
wp_gf_form_revisions: :heavy_check_mark:
wp_gf_entry: :heavy_check_mark:
wp_gf_entry_meta: :heavy_check_mark:
wp_gf_entry_notes: :heavy_check_mark:
wp_gf_draft_submissions: :heavy_check_mark:
wp_gf_addon_feed: :heavy_check_mark:

Translations

Site Locale: de_DE
User (ID: 1) Locale: de_DE
Gravity Forms: de_DE
User Registration: de_DE

Log Files

Gravity Forms Core: https://www.---------.com/wp-content/uploads/gravity_forms/logs/gravityforms_9f4cfe52d966dd33b090adf5dd5ba85b367b6cf9.txt
Gravity Perks: https://www.-----.com/wp-content/uploads/gravity_forms/logs/gravityperks_6964df61f7eb62a8f6c500095293ff0722356a78.txt
User Registration Add-On: https://www.-------------.com/wp-content/uploads/gravity_forms/logs/gravityformsuserregistration_dbca4674aac4c70359ff133e4211fd18b3c1c536.txt

WordPress

Home URL: https://www.-----.com
Site URL: https://www.-----.com
REST API Base URL: https://www.------.com/wp-json/
WordPress Version: 5.9.3 :heavy_check_mark:
WordPress Multisite: No
WordPress Memory Limit: 256M
WordPress Debug Mode: Yes
WordPress Debug Log: Yes
WordPress Script Debug Mode: No
WordPress Cron: Yes
WordPress Alternate Cron: No
Background tasks: No ✘ Response code: 401

Active Theme

Flatsome Child: by UX Themes - 3.0 :heavy_check_mark:
Flatsome (Parent): by UX-Themes (http://www.uxthemes.com/) - 3.15.3 :heavy_check_mark:

Active Plugins

Admin Menu Editor Pro: by Janis Elsts - 2.16.1 :heavy_check_mark:
Advanced Custom Fields PRO: by Delicious Brains - 5.12.2 :heavy_check_mark:
Borlabs Cookie - Cookie Opt-in: by Benjamin A. Bornschein, Borlabs - 2.2.45 :heavy_check_mark:
Code Snippets: by Code Snippets Pro - 2.14.3 :heavy_check_mark:
Contact Form 7: by Takayuki Miyoshi - 5.5.4 :heavy_check_mark:
Disable Comments: by WPDeveloper - 2.3.3 :heavy_check_mark:
Google Tag Manager for Wordpress: by Thomas Geiger - 1.14.2 :heavy_check_mark:
GP Preview Submission: by Gravity Wiz - 1.3.10 :heavy_check_mark:
GP Read Only: by Gravity Wiz - 1.9.7 :heavy_check_mark:
GP Terms of Service: by Gravity Wiz - 1.4.1 :heavy_check_mark:
Gravity Forms Multilingual: by OnTheGoSystems - 1.6.3 :heavy_check_mark:
Gravity Perks: by Gravity Wiz - 2.2.7 :heavy_check_mark:
Health Check & Troubleshooting: by The WordPress.org community - 1.4.5 :heavy_check_mark:
Loco Translate: by Tim Whitlock - 2.6.1 :heavy_check_mark:
New User Approve: by NewUserApprove - 2.1 :heavy_check_mark:
Relevanssi: by Mikko Saari - 4.14.7 :heavy_check_mark:
Safe SVG: by Daryll Doyle - 1.9.9 :heavy_check_mark:
Shortcoder: by Aakash Chakravarthy - 5.6 :heavy_check_mark:
Slider Revolution: by ThemePunch - 6.5.14 :heavy_check_mark:
Slider Revolution Before/After Add-On: by ThemePunch - 3.0.5 :heavy_check_mark:
SVG Support: by Benbodhi - 2.4.2 :heavy_check_mark:
Timeline Express: by Code Parrots - 1.8.1 :heavy_check_mark:
Toolset Views: by OnTheGoSystems - 3.6.1 :heavy_check_mark:
WooSidebars: by WooCommerce - 1.4.5 :heavy_check_mark:
WP Mail SMTP: by WPForms - 3.4.0 :heavy_check_mark:
WP Media folder: by Joomunited - 5.3.25 :heavy_check_mark:
WPML CMS Nav: by OnTheGoSystems - 1.5.5 :heavy_check_mark:
WPML Media: by OnTheGoSystems - 2.7.0 :heavy_check_mark:
WPML Multilingual CMS: by OnTheGoSystems - 4.5.2 :heavy_check_mark:
WPML Sticky Links: by OnTheGoSystems - 1.5.4 :heavy_check_mark:
WPML String Translation: by OnTheGoSystems - 3.2.0 :heavy_check_mark:
Yoast Duplicate Post: by Enrico Battocchi & Team Yoast - 4.4 :heavy_check_mark:
Yoast SEO: by Team Yoast - 18.0 :heavy_check_mark:

Web Server

Software: nginx/1.17.5
Port: 443
Document Root: /home/wp/disk/wordpress_staging

PHP

Version: 7.3.33-1+ubuntu18.04.1+deb.sury.org+1 :heavy_check_mark:
Memory Limit: 256M
Maximum Execution Time: 300
Maximum File Upload Size: 2000M
Maximum File Uploads: 100
Maximum Post Size: 2000M
Maximum Input Variables: 10000
cURL Enabled: Yes (version 7.58.0)
OpenSSL: OpenSSL 1.1.1 11 Sep 2018 (269488143)
Mcrypt Enabled: No
Mbstring Enabled: Yes
Loaded Extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, sodium, session, standard, cgi-fcgi, mysqlnd, PDO, xml, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, json, ldap, exif, mysqli, pdo_mysql, pdo_sqlite, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sqlite3, ssh2, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, zip, Zend OPcache

Database Server

Database Management System: MariaDB
Version: 10.4.24 :heavy_check_mark:
Database Character Set: latin1
Database Collation: latin1_swedish_ci

Date and Time

WordPress (Local) Timezone: Europe/Berlin
MySQL (UTC): 2022-05-17 07:25:06
MySQL (Local): 17. Mai 2022 at 9:25
PHP (UTC): 2022-05-17 07:25:06
PHP (Local): 17. Mai 2022 at 9:25

Core Log
2022-05-17 9:19:59.484230 - DEBUG --> GFFormDisplay::process_form(): Starting to process form (#1) submission. 
2022-05-17 9:19:59.497212 - DEBUG --> GFFormDisplay::process_form(): Source page number: 1. Target page number: 2. 
2022-05-17 9:19:59.522741 - DEBUG --> GFFormDisplay::process_form(): After validation. Is submission valid? Yes. 
2022-05-17 9:19:59.846713 - DEBUG --> gform_order_summary(): running. 
2022-05-17 9:19:59.846796 - DEBUG --> gform_order_summary(): Original markup => <tr stayle="background-color:#EAF2FA">
	<td colspan="2">
		<strong style="font-family: sans-serif; font-size:12px;"></strong>
	</td>
</tr>
<tr style="background-color: #FFFFFF">
	<td style="width: 20px">&nbsp;</td>
	<td>
		<table cellspacing="0" style="border-left:1px solid #DFDFDF; border-top:1px solid #DFDFDF; width: 97%">
			<thead>
			<tr>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-family: sans-serif; font-size:12px; text-align:left">Produkt</th>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:50px; font-family: sans-serif; font-size:12px; text-align:center">Menge</th>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:12px; text-align:left">Stückpreis</th>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:12px; text-align:left">Preis</th>
			</tr>
			</thead>
			<tbody>
							<tr>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-family: sans-serif; font-size:11px;">
						<strong style="color:#BF461E; font-size:12px; margin-bottom:5px">Waldviertler Sonnenblumenbrot</strong>
							<ul style="margin:0">
													</ul>
					</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:center; width:50px; font-family: sans-serif; font-size:11px;">1</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">1,00 &#8364;</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">1,00 &#8364;</td>
				</tr>
							<tr>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-family: sans-serif; font-size:11px;">
						<strong style="color:#BF461E; font-size:12px; margin-bottom:5px">MwSt 10%</strong>
							<ul style="margin:0">
													</ul>
					</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:center; width:50px; font-family: sans-serif; font-size:11px;">1</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">0,10 &#8364;</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">0,10 &#8364;</td>
				</tr>
						</tbody>
			<tfoot>
			<tr>
				<td colspan="2" style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-size:11px;">&nbsp;</td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:right; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">Sub Total</strong></td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">1,10 &#8364;</strong>
				</td>
			</tr>
						<tr>
				<td colspan="2" style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-size:11px;">&nbsp;</td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:right; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">Summe</strong></td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">1,10 &#8364;</strong></td>
			</tr>
			</tfoot>
		</table>
	</td>
</tr>
 
2022-05-17 9:19:59.846849 - DEBUG --> gform_order_summary(): Modified markup => <tr stayle="background-color:#EAF2FA">
	<td colspan="2">
		<strong style="font-family: sans-serif; font-size:12px;"></strong>
	</td>
</tr>
<tr style="background-color: #FFFFFF">
	<td style="width: 20px">&nbsp;</td>
	<td>
		<table cellspacing="0" style="border-left:1px solid #DFDFDF; border-top:1px solid #DFDFDF; width: 97%">
			<thead>
			<tr>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-family: sans-serif; font-size:12px; text-align:left">Produkt</th>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:50px; font-family: sans-serif; font-size:12px; text-align:center">Menge</th>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:12px; text-align:left">Stückpreis</th>
				<th style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:12px; text-align:left">Preis</th>
			</tr>
			</thead>
			<tbody>
							<tr>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-family: sans-serif; font-size:11px;">
						<strong style="color:#000000; font-size:12px; margin-bottom:5px">Waldviertler Sonnenblumenbrot</strong>
							<ul style="margin:0">
													</ul>
					</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:center; width:50px; font-family: sans-serif; font-size:11px;">1</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">1,00 &#8364;</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">1,00 &#8364;</td>
				</tr>
							<tr>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-family: sans-serif; font-size:11px;">
						<strong style="color:#000000; font-size:12px; margin-bottom:5px">MwSt 10%</strong>
							<ul style="margin:0">
													</ul>
					</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:center; width:50px; font-family: sans-serif; font-size:11px;">1</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">0,10 &#8364;</td>
					<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif; font-size:11px;">0,10 &#8364;</td>
				</tr>
						</tbody>
			<tfoot>
			<tr>
				<td colspan="2" style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-size:11px;">&nbsp;</td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:right; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">Sub Total</strong></td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">1,10 &#8364;</strong>
				</td>
			</tr>
						<tr>
				<td colspan="2" style="background-color:#F4F4F4; border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; font-size:11px;">&nbsp;</td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; text-align:right; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">Summe</strong></td>
				<td style="border-bottom:1px solid #DFDFDF; border-right:1px solid #DFDFDF; padding:7px; width:155px; font-family: sans-serif;">
					<strong style="font-size:12px;">1,10 &#8364;</strong></td>
			</tr>
			</tfoot>
		</table>
	</td>
</tr>
mail log
2022-05-17 9:23:44.624995 - DEBUG --> GFCommon::send_email(): Sending email via wp_mail(). 
2022-05-17 9:23:44.625053 - DEBUG --> Array
(
    [to] => ele@***.cc
    [subject] => Bestellung: BP-19026035
    [message] => <html>
	<head>
		<title>Bestellung: BP-19026035</title>
	</head>
	<body>
		BP-19026035<br />
Test Name<br />
11111111<br />
Montag von 10 bis 16 Uhr<br />

		<tr style="font-family: sans-serif; font-size: 12px; background-color: #EAF2FA; font-weight: bold; ">
			<td style="" colspan="2" class="entry-view-field-name" ></td>
		</tr>
		<tr class="lastrow">
			<td class="" colspan="2">
				
		<table class="gpecf-order-summary" cellspacing="0" width="100%" style="margin: 0; border: 1px solid #dfdfdf; border-right: none; ">
			<thead>
				<tr>
					<th scope="col" style="border-right: 1px solid #dfdfdf; text-align: left; padding: 8px 10px; font-weight: normal; font-size: 14px; background-color: #f4f4f4; width: 50%; ">Produkt</th>
					<th scope="col" style="border-right: 1px solid #dfdfdf; text-align: center; padding: 8px 10px; font-weight: normal; font-size: 14px; background-color: #f4f4f4; ">Menge</th>
					<th scope="col" style="border-right: 1px solid #dfdfdf; text-align: right; padding: 8px 10px; font-weight: normal; font-size: 14px; background-color: #f4f4f4; ">Stückpreis</th>
					<th scope="col" style="border-right: 1px solid #dfdfdf; text-align: right; padding: 8px 10px; font-weight: normal; font-size: 14px; background-color: #f4f4f4; ">Preis</th>
				</tr>
			</thead>
			<tbody>
							<tr style="">
					<td style="border-right: 1px solid #dfdfdf; vertical-align: top; padding: 8px 10px; width: 50%; ">
						<div style="font-weight: bold; color: #bf461e; font-size: 13px; margin-bottom: 5px; ">
							Waldviertler Sonnenblumenbrot						</div>
						<ul style="padding-left: 0; margin: 0; ">
													</ul>
					</td>
					<td style="border-right: 1px solid #dfdfdf; vertical-align: top; padding: 8px 10px; text-align: center; ">1</td>
					<td style="border-right: 1px solid #dfdfdf; vertical-align: top; padding: 8px 10px; text-align: right; ">1,00 &#8364;</td>
					<td style="border-right: 1px solid #dfdfdf; vertical-align: top; padding: 8px 10px; text-align: right; ">1,00 &#8364;</td>
				</tr>
							</tbody>
			<tfoot style="">
												<tr style="">
													<td style="border-right: 1px solid #dfdfdf; vertical-align: middle; padding: 8px 10px; font-size: 13px; border-top: 1px solid #dfdfdf; background-color: #f4f4f4; background: repeating-linear-gradient(
                                45deg,
                                #f4f4f4,
                                #f4f4f4 3px,
                                #fafafa 3px,
                                #fafafa 6px
                            ); " colspan="2" rowspan="3"></td>
												<td style="border-right: 1px solid #dfdfdf; vertical-align: middle; padding: 8px 10px; font-size: 13px; border-top: 1px solid #dfdfdf; font-weight: bold; background-color: #f4f4f4; text-align: right; ">Gesamt ohne MwSt.</td>
						<td style="border-right: 1px solid #dfdfdf; vertical-align: middle; padding: 8px 10px; font-size: 13px; border-top: 1px solid #dfdfdf; font-weight: bold; background-color: #f4f4f4; text-align: right; ">1,00 &#8364;</td>
					</tr>
																<tr style="">
												<td style="border-right: 1px solid #dfdfdf; vertical-align: middle; padding: 8px 10px; font-size: 13px; border-top: 1px solid #dfdfdf; text-align: right; ">MwSt 10%</td>
						<td style="border-right: 1px solid #dfdfdf; vertical-align: middle; padding: 8px 10px; font-size: 13px; border-top: 1px solid #dfdfdf; text-align: right; ">0,10 &#8364;</td>
					</tr>
																<tr style="">
												<td style="border-right: 1px solid #dfdfdf; vertical-align: middle; padding: 8px 10px; font-size: 13px; border-top: 1px solid #dfdfdf; font-weight: bold; background-color: #EAF2FA; text-align: right; ">Gesamtbetrag inkl. MwSt.</td>
						<td style="border-right: 1px solid #dfdfdf; vertical-align: middle; padding: 8px 10px; font-size: 13px; border-top: 1px solid #dfdfdf; font-weight: bold; background-color: #EAF2FA; text-align: right; ">1,10 &#8364;</td>
					</tr>
										</tfoot>
		</table>

					</td>
		</tr>

		
	</body>
</html>
    [headers] => Array
        (
            [From] => From: "kontakt@****.com" <kontakt@*****.com>
            [Content-type] => Content-type: text/html; charset=UTF-8
        )

    [attachments] => Array
        (
        )

    [abort_email] => 
)
 
2022-05-17 9:23:44.780942 - DEBUG --> GFCommon::send_email(): Result from wp_mail(): 1 
2022-05-17 9:23:44.781038 - DEBUG --> GFCommon::send_email(): WordPress successfully passed the notification email (#59de5efdd57bf - Admin Notification) for entry #65 to the sending server. 
2022-05-17 9:23:44.781074 - DEBUG --> GFCommon::send_email(): The WordPress phpmailer_init hook has been detected, usually used by SMTP plugins. It can alter the email setup/content or sending server, and impact the notification deliverability. 

The site looks to be already changing the original markup of the summary table and presenting the code as lower case hex value. This may be due to having GP eCommerce Fields by Gravity Wiz active on the site. Try the following instead:

add_filter( 'gform_order_summary', function( $markup ) {
    $markup = str_replace( 'bf461e', '000000', $markup );
    return $markup;
} );

Hi Joshua,

I already tried that, also with the hash (#), but no luck…

Thank you

Try adding a higher priority on the filter to ensure it runs after any changes made by GP eCommerce Fields:

add_filter( 'gform_order_summary', function( $markup ) {
    $markup = str_replace( 'bf461e', '000000', $markup );
    return $markup;
}, 15 );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.