Changeset 3238062
- Timestamp:
- 02/10/2025 04:33:10 PM (13 months ago)
- Location:
- salesfire
- Files:
-
- 4 added
- 8 edited
- 1 copied
-
tags/1.0.8 (copied) (copied from salesfire/trunk)
-
tags/1.0.8/SUBMITTING.TXT (modified) (5 diffs)
-
tags/1.0.8/readme.txt (modified) (2 diffs)
-
tags/1.0.8/salesfire.php (modified) (1 diff)
-
tags/1.0.8/src/Tracking.php (modified) (3 diffs)
-
tags/1.0.8/src/js (added)
-
tags/1.0.8/src/js/sfgetid.js (added)
-
trunk/SUBMITTING.TXT (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/salesfire.php (modified) (1 diff)
-
trunk/src/Tracking.php (modified) (3 diffs)
-
trunk/src/js (added)
-
trunk/src/js/sfgetid.js (added)
Legend:
- Unmodified
- Added
- Removed
-
salesfire/tags/1.0.8/SUBMITTING.TXT
r2690944 r3238062 1 Ensure you have bumped the version inside of readme.txt and salesfire.php, and added an entry to Changelog within the readme.txt. 1 Ensure you have bumped the version inside of readme.txt, salesfire.php and tracking.php (load_scripts func), and added an entry to Changelog within the readme.txt. 2 3 # Install SVN using 4 ``` 5 brew install subversion 6 ``` 2 7 3 8 # Cloning SVN … … 13 18 You can create another folder called working-env with a installation of WordPress. Inside the plugins you can clone the `salesfire` plugin from GitHub. 14 19 20 # Change branch 21 ``` 22 svn checkout --depth immediates https://plugins.svn.wordpress.org/salesfire svn 23 ``` 24 25 # Go to svn folder in terminal 26 27 Find the svg folder on your computer and cd into it using terminal 28 29 # Pull down changes 30 ``` 31 svn update --set-depth=infinity 32 ``` 33 34 # Set up branches 35 ``` 36 svn up assets branches trunk 37 ``` 38 15 39 # Updating SVN 16 40 17 41 You will need to copy the working plugin into the trunk/ within /svn, e.g. 42 The path below should match going from the svn folder on your computer to the wordpress installation you have set up with the plugin. 18 43 19 44 ``` … … 22 47 23 48 (You will also need to copy across .wordpress-org folder if necessary.) 49 50 51 # Check changes have been made 52 ``` 53 svn status 54 ``` 24 55 25 56 Run following: … … 34 65 35 66 You then need to copy the trunk to the new version: 36 67 (Where 1.0.1 is below it should be the version you have bumped in the plugin) 37 68 ``` 38 69 svn cp "trunk" "tags/1.0.1" … … 45 76 ``` 46 77 78 When running the above command you will be asked for the username and password for wordpress.org which can be found in 1password. 79 47 80 You will then see the updated version here: https://wordpress.org/plugins/salesfire/. 48 81 -
salesfire/tags/1.0.8/readme.txt
r3218915 r3238062 4 4 Tags: cro, ecommerce, recommendations, popups, search, email, prompts, messenger, chat, conversions 5 5 Tested up to: 6.7 6 Stable tag: 1.0. 76 Stable tag: 1.0.8 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 23 23 24 24 == Changelog == 25 26 = 1.0.8 - 2025-01-23 = 27 - Add deterministic tracking 28 - Tested compatibility with WordPress 6.7. 25 29 26 30 = 1.0.7 - 2025-01-08 = -
salesfire/tags/1.0.8/salesfire.php
r3218915 r3238062 5 5 * Plugin URI: https://www.salesfire.co.uk 6 6 * Description: Boost conversions with Salesfire CRO. Integrates with WooCommerce. 7 * Version: 1.0. 77 * Version: 1.0.8 8 8 * Developer: Salesfire 9 9 * Developer URI: https://www.salesfire.co.uk -
salesfire/tags/1.0.8/src/Tracking.php
r2772098 r3238062 27 27 $this->base_tag(); 28 28 $this->add_salesfire_settings(); 29 $this->set_sfcuid(); 29 30 30 31 if (class_exists( 'WooCommerce' )) { … … 35 36 add_action( 'woocommerce_before_thankyou', array( $this, 'order_event' ), 10, 1 ); 36 37 } 38 39 add_action('wp_enqueue_scripts', array($this, 'load_scripts')); 40 add_action('rest_api_init', array($this, 'register_rest_api')); 37 41 38 42 // Print to head. … … 47 51 ); 48 52 } 53 } 54 55 public function register_rest_api() 56 { 57 register_rest_route('salesfire/v1', '/sfgetid', array( 58 'methods' => 'GET', 59 'callback' => array($this, 'get_sfcuid'), 60 )); 61 } 62 63 // Set sf custom user identifier 64 private function set_sfcuid() 65 { 66 $cuid = bin2hex(random_bytes(16)); 67 68 if (!isset($_COOKIE['sf_cuid'])) { 69 setcookie('sf_cuid', $cuid, time() + 63072000); // expires in 2 years 70 } 71 } 72 73 public function get_sfcuid() 74 { 75 if(!isset($_COOKIE['sf_cuid'])) { 76 $this->set_sfcuid(); 77 } 78 79 return $_COOKIE['sf_cuid']; 80 } 81 82 public function load_scripts() 83 { 84 wp_enqueue_script( 85 'sf-cuid-script', 86 plugin_dir_url(__FILE__) . 'js/sfgetid.js', 87 array(), 88 '1.0.8' // Version 89 ); 90 91 // Pass PHP variables to the script 92 wp_localize_script('sf-cuid-script', 'sfTracking', array( 93 'nonce' => wp_create_nonce('wp_rest'), 94 'restUrl' => rest_url('salesfire/v1/sfgetid'), 95 )); 49 96 } 50 97 -
salesfire/trunk/SUBMITTING.TXT
r2690944 r3238062 1 Ensure you have bumped the version inside of readme.txt and salesfire.php, and added an entry to Changelog within the readme.txt. 1 Ensure you have bumped the version inside of readme.txt, salesfire.php and tracking.php (load_scripts func), and added an entry to Changelog within the readme.txt. 2 3 # Install SVN using 4 ``` 5 brew install subversion 6 ``` 2 7 3 8 # Cloning SVN … … 13 18 You can create another folder called working-env with a installation of WordPress. Inside the plugins you can clone the `salesfire` plugin from GitHub. 14 19 20 # Change branch 21 ``` 22 svn checkout --depth immediates https://plugins.svn.wordpress.org/salesfire svn 23 ``` 24 25 # Go to svn folder in terminal 26 27 Find the svg folder on your computer and cd into it using terminal 28 29 # Pull down changes 30 ``` 31 svn update --set-depth=infinity 32 ``` 33 34 # Set up branches 35 ``` 36 svn up assets branches trunk 37 ``` 38 15 39 # Updating SVN 16 40 17 41 You will need to copy the working plugin into the trunk/ within /svn, e.g. 42 The path below should match going from the svn folder on your computer to the wordpress installation you have set up with the plugin. 18 43 19 44 ``` … … 22 47 23 48 (You will also need to copy across .wordpress-org folder if necessary.) 49 50 51 # Check changes have been made 52 ``` 53 svn status 54 ``` 24 55 25 56 Run following: … … 34 65 35 66 You then need to copy the trunk to the new version: 36 67 (Where 1.0.1 is below it should be the version you have bumped in the plugin) 37 68 ``` 38 69 svn cp "trunk" "tags/1.0.1" … … 45 76 ``` 46 77 78 When running the above command you will be asked for the username and password for wordpress.org which can be found in 1password. 79 47 80 You will then see the updated version here: https://wordpress.org/plugins/salesfire/. 48 81 -
salesfire/trunk/readme.txt
r3218915 r3238062 4 4 Tags: cro, ecommerce, recommendations, popups, search, email, prompts, messenger, chat, conversions 5 5 Tested up to: 6.7 6 Stable tag: 1.0. 76 Stable tag: 1.0.8 7 7 License: GNU General Public License v3.0 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 23 23 24 24 == Changelog == 25 26 = 1.0.8 - 2025-01-23 = 27 - Add deterministic tracking 28 - Tested compatibility with WordPress 6.7. 25 29 26 30 = 1.0.7 - 2025-01-08 = -
salesfire/trunk/salesfire.php
r3218915 r3238062 5 5 * Plugin URI: https://www.salesfire.co.uk 6 6 * Description: Boost conversions with Salesfire CRO. Integrates with WooCommerce. 7 * Version: 1.0. 77 * Version: 1.0.8 8 8 * Developer: Salesfire 9 9 * Developer URI: https://www.salesfire.co.uk -
salesfire/trunk/src/Tracking.php
r2772098 r3238062 27 27 $this->base_tag(); 28 28 $this->add_salesfire_settings(); 29 $this->set_sfcuid(); 29 30 30 31 if (class_exists( 'WooCommerce' )) { … … 35 36 add_action( 'woocommerce_before_thankyou', array( $this, 'order_event' ), 10, 1 ); 36 37 } 38 39 add_action('wp_enqueue_scripts', array($this, 'load_scripts')); 40 add_action('rest_api_init', array($this, 'register_rest_api')); 37 41 38 42 // Print to head. … … 47 51 ); 48 52 } 53 } 54 55 public function register_rest_api() 56 { 57 register_rest_route('salesfire/v1', '/sfgetid', array( 58 'methods' => 'GET', 59 'callback' => array($this, 'get_sfcuid'), 60 )); 61 } 62 63 // Set sf custom user identifier 64 private function set_sfcuid() 65 { 66 $cuid = bin2hex(random_bytes(16)); 67 68 if (!isset($_COOKIE['sf_cuid'])) { 69 setcookie('sf_cuid', $cuid, time() + 63072000); // expires in 2 years 70 } 71 } 72 73 public function get_sfcuid() 74 { 75 if(!isset($_COOKIE['sf_cuid'])) { 76 $this->set_sfcuid(); 77 } 78 79 return $_COOKIE['sf_cuid']; 80 } 81 82 public function load_scripts() 83 { 84 wp_enqueue_script( 85 'sf-cuid-script', 86 plugin_dir_url(__FILE__) . 'js/sfgetid.js', 87 array(), 88 '1.0.8' // Version 89 ); 90 91 // Pass PHP variables to the script 92 wp_localize_script('sf-cuid-script', 'sfTracking', array( 93 'nonce' => wp_create_nonce('wp_rest'), 94 'restUrl' => rest_url('salesfire/v1/sfgetid'), 95 )); 49 96 } 50 97
Note: See TracChangeset
for help on using the changeset viewer.