Plugin Directory

Changeset 1456871


Ignore:
Timestamp:
07/19/2016 10:55:05 AM (10 years ago)
Author:
webcomers
Message:

Fix issues with latest version of woocommerce

Location:
wc-pro-conversion-google-facebook-bing/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wc-pro-conversion-google-facebook-bing/trunk/readme.txt

    r1398115 r1456871  
    77Requires at least: 3.8
    88
    9 Tested up to: 4.4.2
     9Tested up to: 4.5.3
    1010
    1111Stable tag: 4.3
     
    8181== Changelog ==
    8282
     83= 1.4 =
     84* Latest updates : Fix issues with latest version of WC
     85
    8386= 1.3 =
    8487* Latest updates : Show conversion on woocommerce thank you page.
  • wc-pro-conversion-google-facebook-bing/trunk/wc-category-conversion-code.php

    r1398106 r1456871  
    99* Description: WC Pro Conversion allows you to add Facebook Pixel, Google Conversion and Bing Conversion code into your website for the whole shop, specific categories, or even upto the product level.
    1010
    11 * Version: 1.3
     11* Version: 1.4
    1212
    1313* Author: WebComers
     
    6868
    6969        // include style and script             
    70 
    7170        add_action( 'admin_enqueue_scripts', array($this, 'wc_admin_print_scripts' ) );
    7271
    7372        // add fields in add product category page
    74 
    7573        add_action( 'product_cat_add_form_fields', array($wc_cat_cn, 'wc_cat_cn_code_add_fields' ) );   
    7674
    7775        // save conversion codes fields
    78 
    7976        add_action( 'create_product_cat', array($wc_cat_cn, 'wc_cat_cn_code_save_fields' ) );
    8077
    8178        // edit conversion codes fields
    82 
    8379        add_action( 'edit_product_cat', array($wc_cat_cn, 'wc_cat_cn_code_save_fields' ) );
    8480
    8581        // add settings menu
    86 
    8782        add_action('admin_menu', array($this, 'register_cat_cn_code_settings_menu'), 99);
    8883
     84        // Edit conversion codes fields
     85        add_action( 'product_cat_edit_form_fields', array($wc_cat_cn, 'wc_cat_cn_code_edit_fields' ), 10,2 );
     86
    8987       
    9088
    91         // Edit conversion codes fields
    92 
    93         add_action( 'product_cat_edit_form_fields', array($wc_cat_cn, 'wc_cat_cn_code_edit_fields' ), 10,2 );
    94 
    95        
    96 
    9789        // activation hook
    98 
    9990        register_activation_hook( __FILE__, array($this, 'wc_cat_cn_activated') );
    10091
    10192        //uninstall hook / delete hook
    102 
    10393        register_uninstall_hook( __FILE__, array('Wc_Initialize_Conversion_Code', 'wc_cat_cn_uninstall') );
    10494
     
    10797        //add_filter( "plugin_action_links_".$this->plugin_name."", 'wc_cat_cn_code_add_settings_link' );           
    10898
    109 
    110 
    11199    }
    112100
     
    125113    public function wc_cat_cn_activated(){
    126114
    127 /*      $settings_options = array(
    128 
    129             '_product_cn_code'      => 1,
    130 
    131             '_cat_cn_code'      => 2,
    132 
    133             '_woocommerce_conversion_default_script'    => 3
    134 
    135         );
    136 
    137         update_option( '_woocommerce_coversion_code_priority', $settings_options );
    138 
    139 */ 
    140 
    141115       update_option( '_wc_conversion_code_diplay_option', 'header' );
    142116
     
    144118
    145119   
    146 
     120    /*
     121
     122    *   DELETE ALL PLUGIN DATA WHEN DELETING
     123
     124    */
    147125    public function wc_cat_cn_uninstall(){
    148126
     
    242220
    243221// initialize plugin
    244 
    245222$wc_initialize_cn_code  = new Wc_Initialize_Conversion_Code;
    246223
    247224// load conversion code field for specific products
    248 
    249225$wc_product_cn_code     = new Wc_Product_Conversion_Code;
    250226
Note: See TracChangeset for help on using the changeset viewer.