Changeset 2381013
- Timestamp:
- 09/14/2020 12:16:44 PM (6 years ago)
- Location:
- referralyard/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
woocommerce-referralyard.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
referralyard/trunk/readme.txt
r2374825 r2381013 10 10 Author: ReferralYard Team 11 11 Author URI: https://referralyard.com/ 12 Version 1. 112 Version 1.2 13 13 14 14 ReferralYard helps you build relationships with customers by rewarding them for driving referral sales. … … 25 25 * Social Sharing 26 26 * SMS Sharing 27 * Campaigns 27 28 * Email Customization 28 29 * Full Design Customization -
referralyard/trunk/woocommerce-referralyard.php
r2374809 r2381013 5 5 Description: Grow your revenue & customer happiness with a Referral program. 6 6 Author: ReferralYard 7 Version: 1. 07 Version: 1.2 8 8 */ 9 9 … … 112 112 /** 113 113 * ---------------------------------------------- 114 * Add ReferralYard Scripts to Footer114 * Add ReferralYard Scripts to Header 115 115 * ---------------------------------------------- 116 116 */ 117 add_action('wp_ footer', 'add_referralyard_elements');118 function add_referralyard_ elements() {117 add_action('wp_head', 'add_referralyard_integration_script'); 118 function add_referralyard_integration_script() { 119 119 global $referralBaseUrl; 120 120 $referralyard_options = get_option('referralyard_options'); 121 echo '<div id="referral-overlay" 122 data-provider="'.$referralBaseUrl.'" 123 data-api-key="'.$referralyard_options['referralyard_api_key'].'" 124 data-customer-id="'.get_current_user_id().'" 125 data-customer-email="'.wp_get_current_user()->user_email.'" 126 data-customer-name="'.wp_get_current_user()->user_firstname.' '.wp_get_current_user()->user_lastname.'"> 127 </div>'; 121 echo '<script> 122 window.ReferralYard = { 123 provider: "'.$referralBaseUrl.'", 124 api_key: "'.$referralyard_options['referralyard_api_key'].'", 125 customer_id: "'.get_current_user_id().'", 126 customer_name: "'.wp_get_current_user()->user_firstname.' '.wp_get_current_user()->user_lastname.'", 127 customer_email: "'.wp_get_current_user()->user_email.'" 128 } 129 </script>'; 128 130 } 129 131
Note: See TracChangeset
for help on using the changeset viewer.