HEX
Server: LiteSpeed
System: Linux server902.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: deshuvsd (2181)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/deshuvsd/www/wp-content/plugins/woo-cart-abandonment-recovery/admin/assets/js/admin-mce.js
( function () {
	tinymce.PluginManager.add( 'cartflows_ac', function ( editor ) {
		editor.addButton( 'cartflows_ac', {
			type: 'menubutton',
			text: 'WCAR Fields',
			icon: false,
			menu: [
				{
					text: wcf_ca_details.admin_firstname,
					value: '{{admin.firstname}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.admin_company,
					value: '{{admin.company}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.abandoned_product_details_table,
					value: '{{cart.product.table}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.abandoned_product_names,
					value: '{{cart.product.names}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.cart_checkout_url,
					value: '{{cart.checkout_url}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.coupon_code,
					value: '{{cart.coupon_code}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.customer_firstname,
					value: '{{customer.firstname}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.customer_lastname,
					value: '{{customer.lastname}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.customer_full_name,
					value: '{{customer.fullname}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.cart_abandonment_date,
					value: '{{cart.abandoned_date}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.site_url,
					value: '{{site.url}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
				{
					text: wcf_ca_details.unsubscribe_link,
					value: '{{cart.unsubscribe}}',
					onclick() {
						editor.insertContent( this.value() );
					},
				},
			].sort( function ( a, b ) {
				return a.text.localeCompare( b.text );
			} ),
		} );
	} );
} )( jQuery );