Plugin Directory

Changeset 2065093


Ignore:
Timestamp:
04/08/2019 02:11:26 PM (7 years ago)
Author:
clabsvishnuprasad
Message:

seprate woocommerce settings in different tab

Location:
customerlabs-actionrecorder/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • customerlabs-actionrecorder/trunk/ActionRecorder.php

    r2065074 r2065093  
    320320                        'title'           => __( 'CustomerLabs App ID', 'cltracker' ),
    321321                        'callback'        => array( 'CLTracker_Settings', 'app_id_callback' ),
    322                     ),                       
     322                    ),
     323                    array(
     324                        'name'            => 'track_logins',
     325                        'title'           => '',
     326                        'callback'        => array( 'CLTracker_Settings', 'track_logins_callback' ),
     327                    ),
     328                )
     329            ),
     330            'woocommerce_settings' => array(
     331                'title'    => __( 'WooCommerce Settings', 'cltracker' ),
     332                'callback' => array( 'CLTracker_Settings', 'general_section_callback_empty' ),
     333                'fields'   => array(
    323334                    array(
    324335                        'name'            => 'track_add_to_cart',
     
    346357                        'callback'        => array( 'CLTracker_Settings', 'track_purchased_callback' ),
    347358                    ),
    348                     array(
    349                         'name'            => 'track_logins',
    350                         'title'           => '',
    351                         'callback'        => array( 'CLTracker_Settings', 'track_logins_callback' ),
    352                     ),
    353359                )
    354             ),
     360            )
    355361        ));
    356362    }
  • customerlabs-actionrecorder/trunk/class.cltracker-settings.php

    r2065074 r2065093  
    1212    public static function general_section_callback() {
    1313        ?>
    14         <p style="max-width: 49em"><?php _e( 'Once you&rsquo;ve saved your App Id, You can able to send ecommerce events to customerlabs Action Recorder', 'cltracker' ); ?></p>
     14        <p style="max-width: 49em"><?php _e( 'Once you&rsquo;ve save your App ID, we&rsquo;ll install the code and start tracking events.', 'cltracker' ); ?></p>
    1515        <?php
    1616    }
    17    
     17    public static function general_section_callback_empty() {
     18        ?>
     19        <p style="max-width: 49em"><?php _e( 'We&rsquo;ll automatically track the following events if you&rsquo;ve enabled WooCommerce.', 'cltracker' ); ?></p>
     20       
     21        <?php
     22    }
    1823    public static function app_id_callback() {
    1924
     
    4247            <?php _e( 'Automatically track events when your users click "Add to cart" button.', 'cltracker' ); ?>
    4348        </label>
    44         <p class="description"><?php _e( 'This setting will turn on off the "Add to cart" event.', 'cltracker' ); ?></p>
     49        <p class="description"><?php _e( 'This setting will turn on & off the "Add to cart" event.', 'cltracker' ); ?></p>
    4550
    4651    <?php
     
    5762            <?php _e( 'Automatically track events when your users click "Remove from cart" button.', 'cltracker' ); ?>
    5863        </label>
    59         <p class="description"><?php _e( 'This setting will turn on off the "Remove from cart" event.', 'cltracker' ); ?></p>
     64        <p class="description"><?php _e( 'This setting will turn on & off the "Remove from cart" event.', 'cltracker' ); ?></p>
    6065
    6166    <?php
     
    7075        <label for="track_product_viewed">
    7176            <input name="<?php echo esc_attr( $name ); ?>" type="checkbox" id="track_product_viewed" value="1" <?php checked( 1, $settings['track_product_viewed'] ); ?> />
    72             <?php _e( 'Automatically track events when your users click "Product viewed" button.', 'cltracker' ); ?>
     77            <?php _e( 'Automatically track events when your users visits the product page.', 'cltracker' ); ?>
    7378        </label>
    74         <p class="description"><?php _e( 'This setting will turn on off the "Product viewed" event.', 'cltracker' ); ?></p>
     79        <p class="description"><?php _e( 'This setting will turn on & off the "Product viewed" event.', 'cltracker' ); ?></p>
    7580
    7681    <?php
Note: See TracChangeset for help on using the changeset viewer.