Changeset 2687812
- Timestamp:
- 03/02/2022 09:12:18 PM (4 years ago)
- Location:
- order-postback-woo/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (3 diffs)
-
admin/partials/order-postback-woo-admin-posts.php (modified) (1 diff)
-
includes/class-order-postback-woo-links.php (modified) (1 diff)
-
includes/class-order-postback-woo.php (modified) (1 diff)
-
order-postback-woo.php (modified) (3 diffs)
-
public/class-order-postback-woo-public.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
order-postback-woo/trunk/README.txt
r2587358 r2687812 4 4 Tags: affiliate pixel tracking, pixel tracking, woocommerce, order postback, affiliates 5 5 Requires at least: 3.1 6 Tested up to: 5. 87 Stable tag: 1. 0.96 Tested up to: 5.9.1 7 Stable tag: 1.1.0 8 8 Requires PHP: 5.6 or above 9 9 License: GPLv2 or later … … 44 44 45 45 46 If you need to post/get more than 1 urlcheck out the Pro version.46 If you need to post/get more than more than 5 url, check out the Pro version. 47 47 48 48 Features of the Pro Version: … … 84 84 85 85 == Changelog == 86 = 1.1.0 = 87 tested woo 6.2.1, wordpress 5.9.1 88 Added check to not fire if already fired 89 Allowing 5 links on the free version 90 86 91 = 1.0.9 = 87 92 fixed issue adding more than 10 key value pairs to the postback -
order-postback-woo/trunk/admin/partials/order-postback-woo-admin-posts.php
r2587358 r2687812 38 38 $args = [ 39 39 'label' => 'Postback Links', 40 'default' => 1,40 'default' => 5, 41 41 'option' => 'links_per_page' 42 42 ]; -
order-postback-woo/trunk/includes/class-order-postback-woo-links.php
r2442010 r2687812 23 23 global $wpdb; 24 24 25 $sql = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}posts WHERE post_type=%s LIMIT 1",array($this->post_type_slug));25 $sql = $wpdb->prepare("SELECT * FROM {$wpdb->prefix}posts WHERE post_type=%s LIMIT 5",array($this->post_type_slug)); 26 26 27 27 $results = $wpdb->get_results( $sql, 'ARRAY_A' ); -
order-postback-woo/trunk/includes/class-order-postback-woo.php
r2587340 r2687812 71 71 $this->version = ORDER_POSTBACK_WOO_VERSION; 72 72 } else { 73 $this->version = '1. 0.8';73 $this->version = '1.1.0'; 74 74 } 75 75 $this->plugin_name = $this->order_postback_woo = 'order-postback-woo'; -
order-postback-woo/trunk/order-postback-woo.php
r2587358 r2687812 17 17 * Plugin URI: https://www.wpconcierges.com/plugins/order_postback_woo/ 18 18 * Description: This plugin sends your order information from your Woocomerce store as a key/value pair to any url of your choice, using either a POST or GET. This is useful if you would like to store your orders or process orders outside of your Woocommerce store. 19 * Version: 1. 0.919 * Version: 1.1.0 20 20 * Author: WpConcierges 21 21 * Author URI: https://www.wpconcierges.com/ … … 25 25 * Domain Path: /languages 26 26 * WC requires at least: 3.0 27 * WC tested up to: 5.6.027 * WC tested up to: 6.2.1 28 28 */ 29 29 … … 38 38 * Rename this for your plugin and update it as you release new versions. 39 39 */ 40 define( 'ORDER_POSTBACK_WOO_VERSION', '1. 0.9' );40 define( 'ORDER_POSTBACK_WOO_VERSION', '1.1.0' ); 41 41 42 42 /** -
order-postback-woo/trunk/public/class-order-postback-woo-public.php
r2587340 r2687812 290 290 291 291 $links = $this->get_all_links(); 292 292 $host = parse_url(get_option('siteurl'), PHP_URL_HOST); 293 293 294 foreach($links as $link){ 294 295 $click_id = get_post_meta($link['ID'],'opw_incoming_click_id',true); … … 300 301 if(strlen($click_id) && strlen($get_click_id)){ 301 302 $expiry = strtotime('+1 month'); 302 setcookie($click_id,$get_click_id,$expiry, COOKIEPATH,COOKIE_DOMAIN);303 setcookie($click_id,$get_click_id,$expiry,"/",$host); 303 304 } 304 305 } … … 309 310 310 311 private function can_fire_check($params){ 312 313 if(isset($_COOKIE['wpc_opwf'])){ 314 $this->can_fire = false; 315 return; 316 } 317 311 318 if($params['opw_fire']=="no"){ 312 319 $this->can_fire = true; … … 335 342 } 336 343 337 338 339 340 344 341 345 private function get_postback_link_fields($link){ … … 426 430 427 431 $this->postback_params = $this->get_postback_params($opw); 428 429 432 $host = parse_url(get_option('siteurl'), PHP_URL_HOST); 433 434 setcookie("wpc_opwf",1,0,"/",$host); 435 430 436 431 437 $args = array();
Note: See TracChangeset
for help on using the changeset viewer.