Changeset 1498146
- Timestamp:
- 09/19/2016 01:46:33 PM (10 years ago)
- Location:
- woocommerce-piwik-integration/trunk
- Files:
-
- 4 edited
-
README.md (modified) (1 diff)
-
includes/class-wc-piwik.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
-
templates/admin-options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woocommerce-piwik-integration/trunk/README.md
r1330577 r1498146 7 7 # Changelog 8 8 9 * 2.1.3 - compatibility with new woocomerce 9 10 * 2.1.2 - Fixed bug with not tracking orders. 10 11 * 2.1.1 - Fixed bug with empty list of categories, list of contributors was updated -
woocommerce-piwik-integration/trunk/includes/class-wc-piwik.php
r1330565 r1498146 10 10 class WC_Piwik extends WC_Integration 11 11 { 12 const PIWIK_PRO_URL = 'p iwik.pro';12 const PIWIK_PRO_URL = 'panel.piwik.pro'; 13 13 14 14 public $id; … … 56 56 function init_form_fields() 57 57 { 58 $this-> form_text_fields = array(58 $this->selfHostedFields = array( 59 59 'piwik_idsite' => array( 60 60 'title' => __('Piwik site ID', 'woocommerce'), … … 69 69 ); 70 70 71 $this-> form_fields = array(71 $this->commonFields = array( 72 72 'piwik_standard_tracking_enabled' => array( 73 73 'title' => __('Tracking code', 'woocommerce'), … … 91 91 'checkboxgroup' => 'end', 92 92 'default' => 'yes' 93 ) ,93 ) 94 94 ); 95 96 $this->form_fields = array_merge($this->selfHostedFields, $this->commonFields); 95 97 } 96 98 … … 446 448 $this->setOption('piwik_idsite', $_GET['idsite']); 447 449 $this->setOption('piwik_domain_name', $_GET['piwikurl']); 450 451 $postData = [ 452 $this->get_field_key("piwik_domain_name") => $_GET['piwikurl'], 453 $this->get_field_key("piwik_idsite") => $_GET['idsite'] 454 ]; 455 456 $this->set_post_data($postData); 448 457 $this->process_admin_options(); 458 449 459 WC_Admin_Settings::add_message(__('Your site has been successfuly integrated with Piwik Cloud!', 450 460 'woocommerce')); … … 514 524 return $status; 515 525 } 516 517 526 protected function validateIntegrationValues() 518 527 { -
woocommerce-piwik-integration/trunk/readme.txt
r1330581 r1498146 31 31 == Changelog == 32 32 33 = 2.1.3 - 19/09/2016 = 34 * compatibility with new woocommerce 33 35 = 2.1.2 - 15/01/2016 = 34 36 * Fixed issue with not traked orders -
woocommerce-piwik-integration/trunk/templates/admin-options.php
r993101 r1498146 24 24 <h3 class="title title-custom">Self-hosted Piwik</h3> 25 25 <table class="form-table"> 26 <?php $this->generate_settings_html( $this-> form_text_fields ); ?>26 <?php $this->generate_settings_html( $this->selfHostedFields ); ?> 27 27 </table> 28 28 <?php … … 65 65 <hr> 66 66 <table class="form-table"> 67 <?php $this->generate_settings_html( ); ?>67 <?php $this->generate_settings_html( $this->commonFields ); ?> 68 68 </table> 69 69
Note: See TracChangeset
for help on using the changeset viewer.