Plugin Directory

Changeset 3087549


Ignore:
Timestamp:
05/16/2024 08:38:26 AM (23 months ago)
Author:
momothemes
Message:

v2.2.0

Location:
wsw-import-export-ecommerce-integration
Files:
375 added
35 edited

Legend:

Unmodified
Added
Removed
  • wsw-import-export-ecommerce-integration/trunk/assets/css/momo_wsw_admin.css

    r3061683 r3087549  
    878878.momowsw-pagination {
    879879    padding: 16px;
    880 }
    881 .momowsw-pagination span.momowsw-pagination-link{
     880    display: inline-flex;
     881}
     882.momowsw-pagination span.momowsw-pagination-link,
     883.momowsw-pagination span.momowsw-pagination-link-product{
    882884    margin-right: 12px;
    883885    cursor: pointer;
     
    885887    color: #FFF;
    886888    padding: 8px 14px;
    887     display: inline-flex;
     889    display: flex;
    888890    border-radius: 8px;
    889891}
    890 .momowsw-pagination span.momowsw-pagination-link i{
     892.momowsw-pagination span.momowsw-pagination-link i
     893.momowsw-pagination span.momowsw-pagination-link-product i{
    891894    font-weight: 600;
    892895}
  • wsw-import-export-ecommerce-integration/trunk/assets/js/momo_wsw_admin.js

    r3061683 r3087549  
    143143        if ('product_id' === selectVal) {
    144144            var $block = $form.find('#momo-by-product-id.momo-be-option-block');
    145             var productID = $block.find('input[name="shopify_product_id"]').val();
     145            var productID = $block.find('input[name="item_id"]').val();
    146146            if ('' === productID) {
    147147                $form.find('input[name="shopify_product_id"]').focus();
     
    161161            ajaxdata.current_page = 1;
    162162        }
     163        console.log(ajaxdata);
    163164        $.ajax({
    164165            beforeSend: function () {
     
    435436     * On pagination click
    436437     */
    437     /*  $('body').on('click', '.momowsw-pagination-link', function (e) {
     438    $('body').on('click', '.momowsw-pagination-link-product', function (e) {
    438439        var caller = $(this).data('caller');
    439440        var $form = $(this).closest('#momo-be-import-momo-wsw');
     
    513514            }
    514515        });
    515     }); */
     516    });
    516517    /**
    517518     * On pagination click
     
    535536        ajaxdata.caller = caller;
    536537        ajaxdata.pagination = 'yes';
     538        selectVal = 'all_items';
    537539        ajaxdata.rel = rel;
    538540        ajaxdata.pageinfo = page_info;
  • wsw-import-export-ecommerce-integration/trunk/class-momo-wsw-import-export.php

    r3080173 r3087549  
    77 * Domain Path: /languages
    88 * Author: MoMo Themes
    9  * Version: 2.1.0
     9 * Version: 2.2.0
    1010 * Requires PHP: 7.0
    1111 * Author URI: http://www.momothemes.com/
    1212 * Requires at least: 5.7
    13  * Tested up to: 6.5.2
     13 * Tested up to: 6.4.1
    1414 */
    1515add_action( 'plugins_loaded', 'momowsw_check_woocommerce', 50 );
     
    1717 * Check if WooCommerce is installed.
    1818 */
    19 function momowsw_check_woocommerce()
    20 {
    21    
     19function momowsw_check_woocommerce() {
    2220    if ( !class_exists( 'WooCommerce' ) ) {
    2321        add_action( 'admin_notices', 'momowsw_woocommerce_not_installed_notice' );
    2422        return;
    2523    } else {
    26        
    2724        if ( !function_exists( 'momowsw_fs' ) ) {
    2825            /**
    2926             * Create a helper function for easy SDK access.
    3027             */
    31             function momowsw_fs()
    32             {
    33                 global  $momowsw_fs ;
    34                
     28            function momowsw_fs() {
     29                global $momowsw_fs;
    3530                if ( !isset( $momowsw_fs ) ) {
    3631                    // Include Freemius SDK.
     
    4641                        'has_paid_plans' => true,
    4742                        'menu'           => array(
    48                         'slug'       => 'momowsw',
    49                         'first-path' => 'admin.php?page=momowsw-getting-started',
    50                         'account'    => false,
    51                     ),
     43                            'slug'       => 'momowsw',
     44                            'first-path' => 'admin.php?page=momowsw-getting-started',
     45                            'account'    => true,
     46                        ),
    5247                        'is_live'        => true,
    5348                    ) );
    5449                }
    55                
    5650                return $momowsw_fs;
    5751            }
    58            
     52
    5953            // Init Freemius.
    6054            momowsw_fs();
     
    6256            do_action( 'momowsw_fs_loaded' );
    6357        }
    64    
    65     }
    66 
     58    }
    6759}
    6860
     
    7062 * Display admin notice if WooCommerce is not installed.
    7163 */
    72 function momowsw_woocommerce_not_installed_notice()
    73 {
     64function momowsw_woocommerce_not_installed_notice() {
    7465    ?>
    7566    <div class="notice notice-error">
     
    8475 * Main Plugin Class
    8576 */
    86 class MoMo_WSW_Import_Export
    87 {
     77class MoMo_WSW_Import_Export {
    8878    /**
    8979     * Plugin Version
     
    9181     * @var string
    9282     */
    93     public  $version = '2.0.0' ;
     83    public $version = '2.1.0';
     84
    9485    /**
    9586     * Plugin URL
     
    9788     * @var string
    9889     */
    99     public  $plugin_url ;
     90    public $plugin_url;
     91
    10092    /**
    10193     * Plugin Path
     
    10395     * @var string
    10496     */
    105     public  $plugin_path ;
     97    public $plugin_path;
     98
    10699    /**
    107100     * Plugin Function
     
    109102     * @var MoMo_WSW_Functions
    110103     */
    111     public  $fn ;
     104    public $fn;
     105
    112106    /**
    113107     * Plugin Export Functions
     
    115109     * @var MoMo_WSW_Export_Functions
    116110     */
    117     public  $efn ;
     111    public $efn;
     112
    118113    /**
    119114     * Plugin Export Functions
     
    121116     * @var MoMo_WSW_Premium_Init
    122117     */
    123     public  $premium ;
     118    public $premium;
     119
    124120    /**
    125121     * MoMo_WSW_Logs instance
     
    127123     * @var MoMo_WSW_Logs
    128124     */
    129     public  $logs ;
     125    public $logs;
     126
    130127    /**
    131128     * Export Others Functions
     
    133130     * @var MoMo_WSW_Export_Others_Functions
    134131     */
    135     public  $eofn ;
     132    public $eofn;
     133
    136134    /**
    137135     * Plugin URL
     
    139137     * @var string
    140138     */
    141     public  $momowsw_url ;
     139    public $momowsw_url;
     140
    142141    /**
    143142     * Plugin Assets
     
    145144     * @var string
    146145     */
    147     public  $momowsw_assets ;
     146    public $momowsw_assets;
     147
    148148    /**
    149149     * Constructor
    150150     */
    151     public function __construct()
    152     {
    153         add_action( 'plugins_loaded', array( $this, 'momowsw_plugin_loaded' ), 200 );
    154     }
    155    
     151    public function __construct() {
     152        add_action( 'plugins_loaded', array($this, 'momowsw_plugin_loaded'), 200 );
     153    }
     154
    156155    /**
    157156     * Plugin Loaded
    158157     */
    159     public function momowsw_plugin_loaded()
    160     {
     158    public function momowsw_plugin_loaded() {
    161159        $this->plugin_url = plugin_dir_url( __FILE__ );
    162160        $this->plugin_path = dirname( __FILE__ ) . '/';
    163161        $this->momowsw_url = path_join( plugins_url(), basename( dirname( __FILE__ ) ) );
    164         $this->momowsw_assets = str_replace( array( 'http:', 'https:' ), '', $this->momowsw_url ) . '/assets/';
    165         add_action( 'init', array( $this, 'momowsw_plugin_init' ), 0 );
    166     }
    167    
     162        $this->momowsw_assets = str_replace( array('http:', 'https:'), '', $this->momowsw_url ) . '/assets/';
     163        add_action( 'init', array($this, 'momowsw_plugin_init'), 0 );
     164    }
     165
    168166    /**
    169167     * Plugin Init
     
    171169     * @return void
    172170     */
    173     public function momowsw_plugin_init()
    174     {
    175        
     171    public function momowsw_plugin_init() {
    176172        if ( !class_exists( 'WooCommerce' ) ) {
    177             add_action( 'admin_notices', array( $this, 'momo_wsw_no_wc_notice' ) );
     173            add_action( 'admin_notices', array($this, 'momo_wsw_no_wc_notice') );
    178174        } else {
    179175            include_once 'includes/class-momo-wsw-functions.php';
     
    188184            include_once 'includes/class-momo-wsw-export-others-functions.php';
    189185            $this->eofn = new MoMo_WSW_Export_Others_Functions();
    190            
    191186            if ( is_admin() ) {
    192187                include_once 'includes/admin/class-momo-wsw-admin-init.php';
    193188                include_once 'includes/admin/class-momo-wsw-admin-ajax.php';
    194189            }
    195            
    196190            // Introducing Freemius with Premium.
    197191            include_once 'premium/class-momo-wsw-premium-init.php';
    198192            $this->premium = new MoMo_WSW_Premium_Init();
    199193            if ( is_admin() ) {
    200                 add_action( 'admin_menu', array( $this, 'momowsw_set_getting_started_menu' ), 20 );
     194                add_action( 'admin_menu', array($this, 'momowsw_set_getting_started_menu'), 20 );
    201195            }
    202196        }
    203    
    204     }
    205    
     197    }
     198
    206199    /**
    207200     * Get getting started menu
     
    209202     * @return void
    210203     */
    211     public function momowsw_set_getting_started_menu()
    212     {
     204    public function momowsw_set_getting_started_menu() {
    213205        add_submenu_page(
    214206            'momowsw',
     
    217209            'manage_options',
    218210            'momowsw-getting-started',
    219             array( $this, 'momowsw_render_getting_started_page' ),
     211            array($this, 'momowsw_render_getting_started_page'),
    220212            11
    221213        );
    222214    }
    223    
     215
    224216    /**
    225217     * Render getting started page
    226218     */
    227     public function momowsw_render_getting_started_page()
    228     {
    229         global  $momowsw ;
     219    public function momowsw_render_getting_started_page() {
     220        global $momowsw;
    230221        require_once $momowsw->plugin_path . 'includes/admin/pages/page-momo-wsw-getting-started.php';
    231222    }
    232    
     223
    233224    /**
    234225     * Notify if WooCommerce is not there
    235226     */
    236     public function momo_wsw_no_wc_notice()
    237     {
     227    public function momo_wsw_no_wc_notice() {
    238228        ?>
    239229        <div class="message error">
     
    248238
    249239}
     240
    250241$GLOBALS['momowsw'] = new MoMo_WSW_Import_Export();
  • wsw-import-export-ecommerce-integration/trunk/includes/admin/class-momo-wsw-admin-ajax.php

    r2796856 r3087549  
    251251        }
    252252        $header     = wp_remote_retrieve_headers( $response );
    253         $pagination = $momowsw->fn->momo_generate_pagination_row( $header->getAll(), $limit );
     253        $pagination = $momowsw->fn->momo_generate_pagination_row( $header->getAll(), $limit, 'product' );
    254254        if ( isset( $details->errors ) ) {
    255255            $msg = '';
  • wsw-import-export-ecommerce-integration/trunk/includes/class-momo-wsw-functions.php

    r3061683 r3087549  
    616616        $shopify_settings = get_option( 'momo_wsw_settings' );
    617617        $ignore_cache     = $momowsw->fn->momowsw_disable_cache_is_enabled();
     618        $ignore_cache     = true;
    618619
    619620        $access_token = isset( $shopify_settings['access_token'] ) ? $shopify_settings['access_token'] : '';
     
    680681     * Generate Pagination
    681682     *
    682      * @param array $header Response header.
    683      * @param array $limit Page limit.
    684      */
    685     public function momo_generate_pagination_row( $header, $limit ) {
     683     * @param array  $header Response header.
     684     * @param array  $limit Page limit.
     685     * @param string $caller Shopify Caller.
     686     */
     687    public function momo_generate_pagination_row( $header, $limit, $caller = 'order' ) {
    686688        $header_link = isset( $header['link'] ) ? $header['link'] : '';
    687689        $link_array  = explode( ',', $header_link );
     
    734736        ob_start();
    735737        if ( ! empty( $prev_link ) ) :
     738            $class = 'momowsw-pagination-link';
     739            if ( 'product' === $caller ) {
     740                $class .= '-product';
     741            }
    736742            ?>
    737             <span class="momowsw-pagination-link prev-link" data-page_info="<?php echo esc_attr( $prev_link ); ?>" data-limit="<?php echo esc_attr( $limit ); ?>" data-caller="order" data-rel="previous">
     743            <span class="<?php echo esc_attr( $class ); ?> prev-link" data-page_info="<?php echo esc_attr( $prev_link ); ?>" data-limit="<?php echo esc_attr( $limit ); ?>" data-caller="<?php echo esc_attr( $caller ); ?>" data-rel="previous">
    738744            <i class='bx bx-chevron-left'></i><?php esc_html_e( 'Previous', 'momowsw' ); ?>
    739745            </span>
     
    741747        endif;
    742748        if ( ! empty( $next_link ) ) :
     749            $class = 'momowsw-pagination-link';
     750            if ( 'product' === $caller ) {
     751                $class .= '-product';
     752            }
    743753            ?>
    744             <span class="momowsw-pagination-link next-link" data-page_info="<?php echo esc_attr( $next_link ); ?>" data-limit="<?php echo esc_attr( $limit ); ?>" data-caller="order" data-rel="next">
     754            <span class="<?php echo esc_attr( $class ); ?> next-link" data-page_info="<?php echo esc_attr( $next_link ); ?>" data-limit="<?php echo esc_attr( $limit ); ?>" data-caller="<?php echo esc_attr( $caller ); ?>" data-rel="next">
    745755            <?php esc_html_e( 'Next', 'momowsw' ); ?><i class='bx bx-chevron-right'></i>
    746756            </span>
  • wsw-import-export-ecommerce-integration/trunk/premium/class-momo-wsw-functions-premium.php

    r3042927 r3087549  
    202202        $shopify_settings = get_option( 'momo_wsw_settings' );
    203203        $ignore_cache     = $momowsw->fn->momowsw_disable_cache_is_enabled();
     204        $ignore_cache     = true;
    204205
    205206        $access_token = $shopify_settings['access_token'];
  • wsw-import-export-ecommerce-integration/trunk/premium/class-momo-wsw-premium-init.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 class MoMo_WSW_Premium_Init
    11 {
     10class MoMo_WSW_Premium_Init {
    1211    /**
    1312     * MoMo_WSW_Multistore_Functions instance
     
    1514     * @var MoMo_WSW_Multistore_Functions
    1615     */
    17     public  $fpfn ;
     16    public $fpfn;
     17
    1818    /**
    1919     * MoMo_WSW_Multistore_Cron instance
     
    2121     * @var MoMo_WSW_Multistore_Cron
    2222     */
    23     public  $fpcron ;
     23    public $fpcron;
     24
    2425    /**
    2526     * MoMo_WSW_Multi_Store_Order_Auto_Sync instance
     
    2728     * @var MoMo_WSW_Multi_Store_Order_Auto_Sync
    2829     */
    29     public  $osync ;
     30    public $osync;
     31
    3032    /**
    3133     * MoMo_WSW_Multistore_Multi_Stores instance
     
    3335     * @var MoMo_WSW_Multistore_Multi_Stores
    3436     */
    35     public  $multi ;
     37    public $multi;
     38
    3639    /**
    3740     * Webhooks
     
    3942     * @var MoMo_WSW_Webhooks
    4043     */
    41     public  $webhooks ;
     44    public $webhooks;
     45
    4246    /**
    4347     * CWebhooks
     
    4549     * @var MoMo_WSW_Custom_Webhooks
    4650     */
    47     public  $cwebhooks ;
     51    public $cwebhooks;
     52
    4853    /**
    4954     * Webhooks Functions
     
    5156     * @var MoMo_WSW_Webhooks_Functions
    5257     */
    53     public  $whfn ;
     58    public $whfn;
     59
    5460    /**
    5561     * Premium Functions
     
    5763     * @var MoMo_WSW_Functions_Premium
    5864     */
    59     public  $fn ;
     65    public $fn;
     66
    6067    /**
    6168     * Feed Generation
     
    6370     * @var MoMo_WSW_Feed_Generation
    6471     */
    65     public  $feeds ;
     72    public $feeds;
     73
    6674    /**
    6775     * Product Feed Cron
     
    6977     * @var MoMo_WSW_PF_Cron
    7078     */
    71     public  $pfcron ;
     79    public $pfcron;
     80
    7281    /**
    7382     * Ebay API
     
    7584     * @var MoMo_WSW_Ebay_API
    7685     */
    77     public  $eapi ;
     86    public $eapi;
     87
    7888    /**
    7989     * Ebay Functions
     
    8191     * @var MoMo_WSW_Ebay_Functions
    8292     */
    83     public  $ebayfn ;
     93    public $ebayfn;
     94
    8495    /**
    8596     * Order Auto Sync
     
    8798     * @var MoMo_WSW_Order_Auto_Sync
    8899     */
    89     public  $synco ;
     100    public $synco;
     101
    90102    /**
    91103     * Order Cron
     
    93105     * @var MoMo_WSW_Order_Cron
    94106     */
    95     public  $ocron ;
     107    public $ocron;
     108
    96109    /**
    97110     * Other Cron
     
    99112     * @var MoMo_WSW_Other_Cron
    100113     */
    101     public  $othercron ;
     114    public $othercron;
     115
    102116    /**
    103117     * Other Auto Sync
     
    105119     * @var MoMo_WSW_Other_Auto_Sync
    106120     */
    107     public  $syncother ;
     121    public $syncother;
     122
    108123    /**
    109124     * Cron
     
    111126     * @var MoMo_WSW_Cron
    112127     */
    113     public  $cron ;
     128    public $cron;
     129
    114130    /**
    115131     * AutoSync
     
    117133     * @var MoMo_WSW_Auto_Sync
    118134     */
    119     public  $sync ;
     135    public $sync;
     136
    120137    /**
    121138     * Constructor
    122139     */
    123     public function __construct()
    124     {
    125         global  $momowsw ;
    126        
     140    public function __construct() {
     141        global $momowsw;
    127142        if ( is_admin() ) {
    128143            include_once 'main/admin/class-momo-wsw-export-init.php';
    129144            include_once 'main/admin/pages/class-momo-wsw-settings-premium.php';
    130145        }
    131        
    132146        if ( is_admin() ) {
    133147            include_once 'orders/admin/class-momo-wsw-admin-orders-init.php';
    134148        }
    135        
    136149        if ( is_admin() ) {
    137150            include_once 'webhooks/admin/class-momo-wsw-admin-webhooks.php';
    138151            include_once 'webhooks/admin/class-momo-wsw-webhooks-admin-ajax.php';
    139152        }
    140        
    141        
    142153        if ( is_admin() ) {
    143154            include_once 'multistore/admin/class-momo-wsw-admin-multistore.php';
    144155            include_once 'multistore/admin/class-momo-wsw-multistore-admin-ajax.php';
    145156        }
    146        
    147157        include_once 'othersync/admin/class-momo-wsw-auto-sync.php';
    148158        $this->sync = new MoMo_WSW_Auto_Sync();
     
    155165            include_once 'product-feed/admin/class-momo-wsw-admin-product-feed.php';
    156166        }
    157        
    158167        if ( is_admin() ) {
    159168            include_once 'ebay/admin/class-momo-wsw-admin-ebay-sync.php';
     
    161170            include_once 'ebay/admin/class-momo-wsw-ebay-admin-ajax.php';
    162171        }
    163    
    164172    }
    165173
  • wsw-import-export-ecommerce-integration/trunk/premium/ebay/admin/pages/momo-wsw-ebay-sync-settings.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111?>
    1212<div id="momo-be-form" class="momo-be-new">
     
    5252?>
    5353                                <?php
    54 
    5554if ( momowsw_fs()->is_premium() ) {
    5655    ?>
     
    5958                                <?php
    6059}
    61 
    6260?>
    6361                            </form>
     
    8078?>
    8179                                <?php
    82 
    8380if ( momowsw_fs()->is_premium() ) {
    8481    ?>
     
    8784                                <?php
    8885}
    89 
    9086?>
    9187                            </form>
     
    10399?>
    104100                                <?php
    105 
    106101if ( momowsw_fs()->is_premium() ) {
    107102    ?>
     
    110105                                <?php
    111106}
    112 
    113107?>
    114108                            </form>
  • wsw-import-export-ecommerce-integration/trunk/premium/ebay/admin/pages/page-momo-wsw-es-api.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$ebay_sync = get_option( 'momo_wsw_ebay_sync' );
    1212$enable_sandbox = $momowsw->fn->momo_wsw_return_check_option( $ebay_sync, 'enable_sandbox' );
     
    3636?>
    3737                <?php
    38 
    3938if ( !$is_premium ) {
    4039    ?>
     
    4443                    <?php
    4544}
    46 
    4745?>
    4846            </h2>
     
    5351?></label>
    5452                    <select class="block" name="momo_wsw_ebay_sync[marketplace_id]" <?php
    55 echo  esc_attr( $disabled ) ;
     53echo esc_attr( $disabled );
    5654?> >
    5755                        <?php
    58 
    59 if ( !empty($marketplace_list) ) {
     56if ( !empty( $marketplace_list ) ) {
    6057    ?>
    6158                            <?php
     
    6360        ?>
    6461                                <option value="<?php
    65         echo  esc_attr( $marketplace_id ) ;
     62        echo esc_attr( $marketplace_id );
    6663        ?>" <?php
    67         echo  esc_attr( ( $marketplace_id_s === $marketplace_id ? 'selected="selected"' : '' ) ) ;
     64        echo esc_attr( ( $marketplace_id_s === $marketplace_id ? 'selected="selected"' : '' ) );
    6865        ?>><?php
    69         echo  esc_html( $details['country'] ) ;
     66        echo esc_html( $details['country'] );
    7067        ?></option>
    7168                            <?php
     
    7471                        <?php
    7572}
    76 
    7773?>
    7874                    </select>
     
    8379?></label>
    8480                    <input type="text" class="block wide" name="momo_wsw_ebay_sync[client_id]" value="<?php
    85 echo  esc_attr( $client_id ) ;
     81echo esc_attr( $client_id );
    8682?>" <?php
    87 echo  esc_attr( $disabled ) ;
     83echo esc_attr( $disabled );
    8884?>/>
    8985                </div>
     
    9389?></label>
    9490                    <input type="text" class="block wide" name="momo_wsw_ebay_sync[client_secret]" value="<?php
    95 echo  esc_attr( $client_secret ) ;
     91echo esc_attr( $client_secret );
    9692?>" <?php
    97 echo  esc_attr( $disabled ) ;
     93echo esc_attr( $disabled );
    9894?>/>
    9995                </div>
     
    10399?></label>
    104100                    <input type="text" class="block wide" name="momo_wsw_ebay_sync[ru_name]" value="<?php
    105 echo  esc_attr( $ru_name ) ;
     101echo esc_attr( $ru_name );
    106102?>" <?php
    107 echo  esc_attr( $disabled ) ;
     103echo esc_attr( $disabled );
    108104?>/>
    109105                </div>
     
    114110                        <label class="switch">
    115111                            <input type="checkbox" class="switch-input" name="momo_wsw_ebay_sync[enable_sandbox]" autocomplete="off" <?php
    116 echo  esc_attr( $enable_sandbox ) ;
     112echo esc_attr( $enable_sandbox );
    117113?> <?php
    118 echo  esc_attr( $disabled ) ;
     114echo esc_attr( $disabled );
    119115?> >
    120116                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    135131?></label>
    136132                    <input type="text" class="block wide" name="momo_wsw_ebay_sync[authorization_code]" value="<?php
    137 echo  esc_attr( $authorization_code ) ;
     133echo esc_attr( $authorization_code );
    138134?>" <?php
    139 echo  esc_attr( $disabled ) ;
     135echo esc_attr( $disabled );
    140136?> />
    141137                </div>
  • wsw-import-export-ecommerce-integration/trunk/premium/ebay/admin/pages/page-momo-wsw-es-import.php

    r3061683 r3087549  
    1818?>
    1919        <?php
    20 
    2120if ( !$is_premium ) {
    2221    ?>
     
    2625            <?php
    2726}
    28 
    2927?>
    3028    </h3>
     
    3937                </label>
    4038                <select class="block" name="momowsw_import_by" autocomplete="off" <?php
    41 echo  esc_attr( $disabled ) ;
     39echo esc_attr( $disabled );
    4240?> >
    4341                    <option value="item_id"><?php
     
    5654?></label>
    5755                <input type="text" class="block" name="ebay_sku" <?php
    58 echo  esc_attr( $disabled ) ;
     56echo esc_attr( $disabled );
    5957?> />
    6058            </div>
     
    6866                </label>
    6967                <select class="block" name="momowsw_product_limit" autocomplete="off" <?php
    70 echo  esc_attr( $disabled ) ;
     68echo esc_attr( $disabled );
    7169?> >
    7270                    <option value="50"><?php
     
    104102            </div>
    105103            <?php
    106 
    107104if ( momowsw_fs()->is_premium() ) {
    108105    ?>
     
    111108            <?php
    112109}
    113 
    114110?>
    115111            <div class="momo-be-back-to-list-block">
  • wsw-import-export-ecommerce-integration/trunk/premium/main/admin/class-momo-wsw-admin-ajax-premium.php

    r3061683 r3087549  
    3030        $res              = check_ajax_referer( 'momowsw_security_key', 'security' );
    3131        $ignore_cache     = $momowsw->fn->momowsw_disable_cache_is_enabled();
     32        $ignore_cache     = true;
    3233        if ( isset( $_POST['action'] ) && 'momowsw_fetch_by_item_id' !== $_POST['action'] ) {
    3334            return;
     
    214215        $res              = check_ajax_referer( 'momowsw_security_key', 'security' );
    215216        $ignore_cache     = $momowsw->fn->momowsw_disable_cache_is_enabled();
     217        $ignore_cache     = true;
    216218        if ( isset( $_POST['action'] ) && 'momowsw_fetch_all_items' !== $_POST['action'] ) {
    217219            return;
     
    265267            case 'product':
    266268                $shopify_url = 'https://' . $shopify_settings['shop_url'] . '/admin/api/' . $api_version . '/products.json?limit=' . $limit;
     269                if ( 'yes' === $pagination && ! empty( $pageinfo ) ) {
     270                    $shopify_url  = 'https://' . $shopify_settings['shop_url'] . '/admin/api/' . $api_version . '/products.json?limit=' . $olimit;
     271                    $shopify_url .= '&page_info=' . $pageinfo . '; rel={' . $rel . '}';
     272                }
    267273                break;
    268274            case 'page':
     
    353359                if ( 'order' === $caller ) {
    354360                    $header     = wp_remote_retrieve_headers( $response );
    355                     $pagination = $momowsw->fn->momo_generate_pagination_row( $header->getAll(), $olimit );
     361                    $pagination = $momowsw->fn->momo_generate_pagination_row( $header->getAll(), $olimit, $caller );
    356362                }
    357363                echo wp_json_encode(
  • wsw-import-export-ecommerce-integration/trunk/premium/main/admin/pages/page-momo-wsw-blogs.php

    r3061683 r3087549  
    2828                </label>
    2929                <?php
    30 
    3130if ( !$is_premium ) {
    3231    ?>
     
    3635                    <?php
    3736}
    38 
    3937?>
    4038                <select class="block" name="momowsw_import_by" autocomplete="off" <?php
    41 echo  esc_attr( $disabled ) ;
     39echo esc_attr( $disabled );
    4240?> >
    4341                    <option value="item_id"><?php
     
    5654?></label>
    5755                <input type="text" class="block" name="shopify_item_id" <?php
    58 echo  esc_attr( $disabled ) ;
     56echo esc_attr( $disabled );
    5957?> />
    6058            </div>
     
    8179                    <label class="switch">
    8280                        <input type="checkbox" class="switch-input" name="momowsw_imported_donot_fetch" autocomplete="off" <?php
    83 echo  esc_attr( $disabled ) ;
     81echo esc_attr( $disabled );
    8482?> >
    8583                        <span class="switch-label" data-on="Yes" data-off="No"></span>
  • wsw-import-export-ecommerce-integration/trunk/premium/main/admin/pages/page-momo-wsw-customers.php

    r3061683 r3087549  
    2828                </label>
    2929                <?php
    30 
    3130if ( !$is_premium ) {
    3231    ?>
     
    3635                    <?php
    3736}
    38 
    3937?>
    4038                <select class="block" name="momowsw_import_by" autocomplete="off" <?php
    41 echo  esc_attr( $disabled ) ;
     39echo esc_attr( $disabled );
    4240?> >
    4341                    <option value="item_id"><?php
     
    5957?></label>
    6058                <input type="text" class="block" name="shopify_item_id" <?php
    61 echo  esc_attr( $disabled ) ;
     59echo esc_attr( $disabled );
    6260?> />
    6361            </div>
     
    9391                    <label class="switch">
    9492                        <input type="checkbox" class="switch-input" name="momowsw_imported_donot_fetch" autocomplete="off" <?php
    95 echo  esc_attr( $disabled ) ;
     93echo esc_attr( $disabled );
    9694?> >
    9795                        <span class="switch-label" data-on="Yes" data-off="No"></span>
  • wsw-import-export-ecommerce-integration/trunk/premium/main/admin/pages/page-momo-wsw-pages.php

    r3061683 r3087549  
    1111$is_premium = momowsw_fs()->is_premium();
    1212$disabled = ( !$is_premium ? 'disabled=disabled' : '' );
    13 global  $momowsw ;
     13global $momowsw;
    1414?>
    1515<div class="momo-admin-content-box">
     
    2929                </label>
    3030                <?php
    31 
    3231if ( !$is_premium ) {
    3332    ?>
     
    3736                    <?php
    3837}
    39 
    4038?>
    4139                <select class="block" name="momowsw_import_by" autocomplete="off" <?php
    42 echo  esc_attr( $disabled ) ;
     40echo esc_attr( $disabled );
    4341?> >
    4442                    <option value="item_id"><?php
     
    5755?></label>
    5856                <input type="text" class="block" name="shopify_item_id" <?php
    59 echo  esc_attr( $disabled ) ;
     57echo esc_attr( $disabled );
    6058?> />
    6159            </div>
  • wsw-import-export-ecommerce-integration/trunk/premium/multistore/admin/pages/momo-wsw-multistore-settings.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111?>
    1212<div id="momo-be-form" class="momo-be-new">
     
    8181?>
    8282                                <?php
    83 
    8483if ( momowsw_fs()->is_premium() ) {
    8584    ?>
     
    8887                                <?php
    8988}
    90 
    9189?>
    9290                            </form>
     
    109107?>
    110108                                <?php
    111 
    112109if ( momowsw_fs()->is_premium() ) {
    113110    ?>
     
    116113                                <?php
    117114}
    118 
    119115?>
    120116                            </form>
  • wsw-import-export-ecommerce-integration/trunk/premium/multistore/admin/pages/page-momo-wsw-import-orders.php

    r3061683 r3087549  
    88 * @since v1.4.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$shopify_settings = get_option( 'momo_wsw_settings' );
    1212$total_orders = MoMo_WSW_Orders::momowsw_get_total_number_of_orders();
     
    3535                </label>
    3636                <?php
    37 
    3837if ( !$is_premium ) {
    3938    ?>
     
    4342                    <?php
    4443}
    45 
    4644?>
    4745                <select class="block" name="momowsw_import_by" autocomplete="off" <?php
    48 echo  esc_attr( $disabled ) ;
     46echo esc_attr( $disabled );
    4947?> >
    5048                    <option value="item_id"><?php
     
    5856        </div>
    5957        <?php
    60 
    6158if ( 'on' === $enable_multiple_stores ) {
    6259    ?>
     
    6966                    </label>
    7067                    <select class="block" name="momowsw_shop_url" autocomplete="off" <?php
    71     echo  esc_attr( $disabled ) ;
     68    echo esc_attr( $disabled );
    7269    ?> >
    7370                        <?php
     
    8077            <?php
    8178}
    82 
    8379?>
    8480        <div class="momo-be-option-block show momo-wsw-by-item-id" data-by="order_id" id="momo-by-item-id">
     
    8884?></label>
    8985                <input type="text" class="block" name="shopify_item_id" <?php
    90 echo  esc_attr( $disabled ) ;
     86echo esc_attr( $disabled );
    9187?> />
    9288            </div>
     
    137133esc_html_e( 'Total number of orders: ', 'momowsw' );
    138134?><strong><i class="order-count"><?php
    139 echo  esc_html( $count ) ;
     135echo esc_html( $count );
    140136?></i></strong>
    141137                    <input type="hidden" name="momowsw_order_count" value="<?php
    142 echo  esc_html( $count ) ;
     138echo esc_html( $count );
    143139?>"/>
    144140                    <span class="momo-be-note">
     
    184180                    <label class="switch">
    185181                        <input type="checkbox" class="switch-input" name="momowsw_imported_donot_fetch" autocomplete="off" <?php
    186 echo  esc_attr( $disabled ) ;
     182echo esc_attr( $disabled );
    187183?> >
    188184                        <span class="switch-label" data-on="Yes" data-off="No"></span>
  • wsw-import-export-ecommerce-integration/trunk/premium/multistore/admin/pages/page-momo-wsw-import-products.php

    r3061683 r3087549  
    88 * @since v1.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$shopify_settings = get_option( 'momo_wsw_settings' );
    1212$multistore_multiple = get_option( 'momo_wsw_multistore_multiple_stores' );
     
    3131                </label>
    3232                <?php
    33 
    3433if ( !$is_premium ) {
    3534    ?>
     
    3938                    <?php
    4039}
    41 
    4240?>
    4341                <select class="block" name="momowsw_import_by" autocomplete="off" <?php
    44 echo  esc_attr( $disabled ) ;
     42echo esc_attr( $disabled );
    4543?> >
    4644                    <option value="item_id"><?php
     
    5452        </div>
    5553        <?php
    56 
    5754if ( 'on' === $enable_multiple_stores ) {
    5855    ?>
     
    6562                    </label>
    6663                    <select class="block" name="momowsw_shop_url" autocomplete="off" <?php
    67     echo  esc_attr( $disabled ) ;
     64    echo esc_attr( $disabled );
    6865    ?> >
    6966                        <?php
     
    7673        <?php
    7774}
    78 
    7975?>
    8076        <div class="momo-be-option-block show momo-wsw-by-item-id" data-by="product_id" id="momo-by-item-id">
     
    8480?></label>
    8581                <input type="text" class="block" name="shopify_item_id" <?php
    86 echo  esc_attr( $disabled ) ;
     82echo esc_attr( $disabled );
    8783?> />
    8884            </div>
     
    112108                </label>
    113109                <select class="block" name="momowsw_product_limit" autocomplete="off" <?php
    114 echo  esc_attr( $disabled ) ;
     110echo esc_attr( $disabled );
    115111?> >
    116112                    <option value="50"><?php
     
    137133                    <label class="switch">
    138134                        <input type="checkbox" class="switch-input" name="momowsw_imported_donot_fetch" autocomplete="off" <?php
    139 echo  esc_attr( $disabled ) ;
     135echo esc_attr( $disabled );
    140136?> >
    141137                        <span class="switch-label" data-on="Yes" data-off="No"></span>
  • wsw-import-export-ecommerce-integration/trunk/premium/multistore/admin/pages/page-momo-wsw-multistore-multiple-stores.php

    r3061683 r3087549  
    88 * @since v1.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$multistore_multiple = get_option( 'momo_wsw_multistore_multiple_stores' );
    1212$enable_multiple_stores = $momowsw->fn->momo_wsw_return_check_option( $multistore_multiple, 'enable_multiple_stores' );
     
    2929                        <label class="switch">
    3030                            <input type="checkbox" class="switch-input" name="momo_wsw_multistore_multiple_stores[enable_multiple_stores]" autocomplete="off" <?php
    31 echo  esc_attr( $enable_multiple_stores ) ;
     31echo esc_attr( $enable_multiple_stores );
    3232?>>
    3333                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    4141                    </span>
    4242                    <?php
    43 
    4443if ( !$is_premium ) {
    4544    ?>
     
    4948                        <?php
    5049}
    51 
    5250?>
    5351                    <div class="momo-be-tc-yes-container" id="enable_multiple_stores">
     
    7169                <div class="momo-be-block">
    7270                    <!-- <input type="hidden" id="multi_stores_data_hidden" name="momo_wsw_multistore_multiple_stores[multi_stores_data]" value="<?php
    73 echo  wp_json_encode( $multi_stores_data ) ;
     71echo wp_json_encode( $multi_stores_data );
    7472?>"/> -->
    7573                </div>
  • wsw-import-export-ecommerce-integration/trunk/premium/multistore/admin/pages/page-momo-wsw-multistore-order-sync.php

    r3061683 r3087549  
    88 * @since v1.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_order_settings = get_option( 'momo_wsw_multistore_order_sync' );
    1212$enable_as_import = $momowsw->fn->momo_wsw_return_check_option( $as_order_settings, 'enable_as_import' );
     
    3131    <div class="momo-ms-admin-content-main momowsw-as-import-main" id="momowsw-momo-wsw-as-import">
    3232        <div class="momo-be-msg-block <?php
    33 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
     33echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
    3434?>">
    3535            <?php
    36 echo  wp_kses_post( $msg ) ;
     36echo wp_kses_post( $msg );
    3737?>
    3838        </div>
    3939        <div class="momo-be-msg-block momo-mt-10 <?php
    40 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
     40echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
    4141?>">
    4242            <?php
    43 echo  wp_kses_post( $next ) ;
     43echo wp_kses_post( $next );
    4444?>
    4545        </div>
     
    5353                        <label class="switch">
    5454                            <input type="checkbox" class="switch-input" name="momo_wsw_multistore_order_sync[enable_as_import]" autocomplete="off" <?php
    55 echo  esc_attr( $enable_as_import ) ;
     55echo esc_attr( $enable_as_import );
    5656?> <?php
    57 echo  esc_attr( $disabled ) ;
     57echo esc_attr( $disabled );
    5858?> >
    5959                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    6767                    </span>
    6868                    <?php
    69 
    7069if ( !$is_premium ) {
    7170    ?>
     
    7574                        <?php
    7675}
    77 
    7876?>
    7977                    <div class="momo-be-tc-yes-container" id="enable_as_import">
     
    8785                                <span class="momo-input-group">
    8886                                    <input type="number" name="momo_wsw_multistore_order_sync[as_import_days]" class="momo-small inline" value="<?php
    89 echo  esc_attr( $as_import_days ) ;
     87echo esc_attr( $as_import_days );
    9088?>"/>
    9189                                    <span class="momo-input-group-append">
     
    108106                                <span class="momo-input-group">
    109107                                    <input type="number" name="momo_wsw_multistore_order_sync[as_import_hour]" class="momo-small inline" value="<?php
    110 echo  esc_attr( $as_import_hour ) ;
     108echo esc_attr( $as_import_hour );
    111109?>" max="24"/>
    112110                                    <span class="momo-input-group-append">
     
    120118                                <span class="momo-input-group">
    121119                                    <input type="number" name="momo_wsw_multistore_order_sync[as_import_minute]" class="momo-small inline" value="<?php
    122 echo  esc_attr( $as_import_minute ) ;
     120echo esc_attr( $as_import_minute );
    123121?>" max="60"/>
    124122                                    <span class="momo-input-group-append">
     
    145143                        <label class="switch">
    146144                            <input type="checkbox" class="switch-input" name="momo_wsw_multistore_order_sync[update_shopify_on_completed]" autocomplete="off" <?php
    147 echo  esc_attr( $update_shopify_on_completed ) ;
     145echo esc_attr( $update_shopify_on_completed );
    148146?> <?php
    149 echo  esc_attr( $disabled ) ;
     147echo esc_attr( $disabled );
    150148?> >
    151149                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    158156?>
    159157                        <?php
    160 
    161158if ( !$is_premium ) {
    162159    ?>
     
    166163                            <?php
    167164}
    168 
    169165?>
    170166                        <p class="momo-below-toggle"><i class="momo-highlight"><?php
     
    177173                                <label class="switch">
    178174                                    <input type="checkbox" class="switch-input" name="momo_wsw_multistore_order_sync[enable_tracking_information]" autocomplete="off" <?php
    179 echo  esc_attr( $enable_tracking_information ) ;
     175echo esc_attr( $enable_tracking_information );
    180176?>>
    181177                                    <span class="switch-label" data-on="Yes" data-off="No"></span>
  • wsw-import-export-ecommerce-integration/trunk/premium/orders/admin/pages/momo-wsw-orders-settings.php

    r3061683 r3087549  
    88 * @since v1.4.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111?>
    1212<div id="momo-be-form" class="momo-be-new">
  • wsw-import-export-ecommerce-integration/trunk/premium/orders/admin/pages/page-momo-wsw-as-order-export.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_order_export_settings = get_option( 'momo_wsw_as_order_export_settings' );
    1212$enable_as_order_export = $momowsw->fn->momo_wsw_return_check_option( $as_order_export_settings, 'enable_as_order_export' );
     
    2929    <div class="momo-ms-admin-content-main momowsw-as-export-main" id="momowsw-momo-wsw-as-export">
    3030        <div class="momo-be-msg-block <?php
    31 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
     31echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
    3232?>">
    3333            <?php
    34 echo  wp_kses_post( $msg ) ;
     34echo wp_kses_post( $msg );
    3535?>
    3636        </div>
    3737        <div class="momo-be-msg-block momo-mt-10 <?php
    38 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
     38echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
    3939?>">
    4040            <?php
    41 echo  wp_kses_post( $next ) ;
     41echo wp_kses_post( $next );
    4242?>
    4343        </div>
     
    4848?>
    4949                <?php
    50 
    5150if ( !$is_premium ) {
    5251    ?>
     
    5655                    <?php
    5756}
    58 
    5957?>
    6058            </h2>
     
    6462                        <label class="switch">
    6563                            <input type="checkbox" class="switch-input" name="momo_wsw_as_order_export_settings[enable_as_order_export]" autocomplete="off" <?php
    66 echo  esc_attr( $enable_as_order_export ) ;
     64echo esc_attr( $enable_as_order_export );
    6765?> >
    6866                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    8583                                <span class="momo-input-group">
    8684                                    <input type="number" name="momo_wsw_as_order_export_settings[as_order_export_days]" class="momo-small inline" value="<?php
    87 echo  esc_attr( $as_order_export_days ) ;
     85echo esc_attr( $as_order_export_days );
    8886?>" <?php
    89 echo  esc_attr( $disabled ) ;
     87echo esc_attr( $disabled );
    9088?> />
    9189                                    <span class="momo-input-group-append">
     
    108106                                <span class="momo-input-group">
    109107                                    <input type="number" name="momo_wsw_as_order_export_settings[as_order_export_hour]" class="momo-small inline" value="<?php
    110 echo  esc_attr( $as_order_export_hour ) ;
     108echo esc_attr( $as_order_export_hour );
    111109?>" max="24" <?php
    112 echo  esc_attr( $disabled ) ;
     110echo esc_attr( $disabled );
    113111?> />
    114112                                    <span class="momo-input-group-append">
     
    122120                                <span class="momo-input-group">
    123121                                    <input type="number" name="momo_wsw_as_order_export_settings[as_order_export_minute]" class="momo-small inline" value="<?php
    124 echo  esc_attr( $as_order_export_minute ) ;
     122echo esc_attr( $as_order_export_minute );
    125123?>" max="60" <?php
    126 echo  esc_attr( $disabled ) ;
     124echo esc_attr( $disabled );
    127125?> />
    128126                                    <span class="momo-input-group-append">
  • wsw-import-export-ecommerce-integration/trunk/premium/orders/admin/pages/page-momo-wsw-as-order-import.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_order_import_settings = get_option( 'momo_wsw_as_order_import_settings' );
    1212$enable_as_order_import = $momowsw->fn->momo_wsw_return_check_option( $as_order_import_settings, 'enable_as_order_import' );
     
    2929    <div class="momo-ms-admin-content-main momowsw-as-import-main" id="momowsw-momo-wsw-as-import">
    3030        <div class="momo-be-msg-block <?php
    31 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
     31echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
    3232?>">
    3333            <?php
    34 echo  wp_kses_post( $msg ) ;
     34echo wp_kses_post( $msg );
    3535?>
    3636        </div>
    3737        <div class="momo-be-msg-block momo-mt-10 <?php
    38 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
     38echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
    3939?>">
    4040            <?php
    41 echo  wp_kses_post( $next ) ;
     41echo wp_kses_post( $next );
    4242?>
    4343        </div>
     
    4747?>
    4848            <?php
    49 
    5049if ( !$is_premium ) {
    5150    ?>
     
    5554                <?php
    5655}
    57 
    5856?>
    5957            </h2>
     
    6361                        <label class="switch">
    6462                            <input type="checkbox" class="switch-input" name="momo_wsw_as_order_import_settings[enable_as_order_import]" autocomplete="off" <?php
    65 echo  esc_attr( $enable_as_order_import ) ;
     63echo esc_attr( $enable_as_order_import );
    6664?> >
    6765                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    8482                                <span class="momo-input-group">
    8583                                    <input type="number" name="momo_wsw_as_order_import_settings[as_order_import_days]" class="momo-small inline" value="<?php
    86 echo  esc_attr( $as_order_import_days ) ;
     84echo esc_attr( $as_order_import_days );
    8785?>" <?php
    88 echo  esc_attr( $disabled ) ;
     86echo esc_attr( $disabled );
    8987?> />
    9088                                    <span class="momo-input-group-append">
     
    107105                                <span class="momo-input-group">
    108106                                    <input type="number" name="momo_wsw_as_order_import_settings[as_order_import_hour]" class="momo-small inline" value="<?php
    109 echo  esc_attr( $as_order_import_hour ) ;
     107echo esc_attr( $as_order_import_hour );
    110108?>" max="24" <?php
    111 echo  esc_attr( $disabled ) ;
     109echo esc_attr( $disabled );
    112110?>/>
    113111                                    <span class="momo-input-group-append">
     
    121119                                <span class="momo-input-group">
    122120                                    <input type="number" name="momo_wsw_as_order_import_settings[as_order_import_minute]" class="momo-small inline" value="<?php
    123 echo  esc_attr( $as_order_import_minute ) ;
     121echo esc_attr( $as_order_import_minute );
    124122?>" max="60"<?php
    125 echo  esc_attr( $disabled ) ;
     123echo esc_attr( $disabled );
    126124?> />
    127125                                    <span class="momo-input-group-append">
  • wsw-import-export-ecommerce-integration/trunk/premium/orders/admin/pages/page-momo-wsw-import-orders.php

    r3061683 r3087549  
    1515$is_premium = momowsw_fs()->is_premium();
    1616$disabled = ( !$is_premium ? 'disabled=disabled' : '' );
    17 global  $momowsw ;
     17global $momowsw;
    1818?>
    1919<div class="momo-admin-content-box">
     
    3333                </label>
    3434                <?php
    35 
    3635if ( !$is_premium ) {
    3736    ?>
     
    4140                    <?php
    4241}
    43 
    4442?>
    4543                <select class="block" name="momowsw_import_by" autocomplete="off" <?php
    46 echo  esc_attr( $disabled ) ;
     44echo esc_attr( $disabled );
    4745?> >
    4846                    <option value="item_id"><?php
     
    6159?></label>
    6260                <input type="text" class="block" name="shopify_item_id" <?php
    63 echo  esc_attr( $disabled ) ;
     61echo esc_attr( $disabled );
    6462?> />
    6563            </div>
     
    110108esc_html_e( 'Total number of orders: ', 'momowsw' );
    111109?><strong><i class="order-count"><?php
    112 echo  esc_html( $count ) ;
     110echo esc_html( $count );
    113111?></i></strong>
    114112                    <input type="hidden" name="momowsw_order_count" value="<?php
    115 echo  esc_html( $count ) ;
     113echo esc_html( $count );
    116114?>"/>
    117115                    <span class="momo-be-note">
     
    157155                    <label class="switch">
    158156                        <input type="checkbox" class="switch-input" name="momowsw_imported_donot_fetch" autocomplete="off" <?php
    159 echo  esc_attr( $disabled ) ;
     157echo esc_attr( $disabled );
    160158?> >
    161159                        <span class="switch-label" data-on="Yes" data-off="No"></span>
  • wsw-import-export-ecommerce-integration/trunk/premium/othersync/admin/pages/momo-wsw-auto-sync-settings.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111?>
    1212<div id="momo-be-form" class="momo-be-new">
     
    5454?>
    5555                                <?php
    56 
    5756if ( momowsw_fs()->is_premium() ) {
    5857    ?>
     
    6160                                <?php
    6261}
    63 
    6462?>
    6563                            </form>
     
    7775?>
    7876                                <?php
    79 
    8077if ( momowsw_fs()->is_premium() ) {
    8178    ?>
     
    8481                                <?php
    8582}
    86 
    8783?>
    8884                            </form>
  • wsw-import-export-ecommerce-integration/trunk/premium/othersync/admin/pages/page-momo-wsw-as-article.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_import_settings = get_option( 'momo_wsw_as_article_import_settings' );
    1212$enable_as_article_import = $momowsw->fn->momo_wsw_return_check_option( $as_import_settings, 'enable_as_article_import' );
     
    3636        <div class="momo-ms-admin-content-main momowsw-as-import-main" id="momowsw-momo-wsw-as-import">
    3737            <div class="momo-be-msg-block <?php
    38 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
    39 ?>">
    40                 <?php
    41 echo  wp_kses_post( $msg ) ;
     38echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
     39?>">
     40                <?php
     41echo wp_kses_post( $msg );
    4242?>
    4343            </div>
    4444            <div class="momo-be-msg-block momo-mt-10 <?php
    45 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
    46 ?>">
    47                 <?php
    48 echo  wp_kses_post( $next ) ;
     45echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
     46?>">
     47                <?php
     48echo wp_kses_post( $next );
    4949?>
    5050            </div>
     
    5555                            <label class="switch">
    5656                                <input type="checkbox" class="switch-input" name="momo_wsw_as_article_import_settings[enable_as_article_import]" autocomplete="off" <?php
    57 echo  esc_attr( $enable_as_article_import ) ;
     57echo esc_attr( $enable_as_article_import );
    5858?>>
    5959                                <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    6767                        </span>
    6868                        <?php
    69 
    7069if ( !$is_premium ) {
    7170    ?>
     
    7574                            <?php
    7675}
    77 
    7876?>
    7977                        <div class="momo-be-tc-yes-container" id="enable_as_article_import">
     
    8785                                    <span class="momo-input-group">
    8886                                        <input type="number" name="momo_wsw_as_article_import_settings[as_import_days]" class="momo-small inline" value="<?php
    89 echo  esc_attr( $as_import_days ) ;
     87echo esc_attr( $as_import_days );
    9088?>" <?php
    91 echo  esc_attr( $disabled ) ;
     89echo esc_attr( $disabled );
    9290?>/>
    9391                                        <span class="momo-input-group-append">
     
    110108                                    <span class="momo-input-group">
    111109                                        <input type="number" name="momo_wsw_as_article_import_settings[as_import_hour]" class="momo-small inline" value="<?php
    112 echo  esc_attr( $as_import_hour ) ;
     110echo esc_attr( $as_import_hour );
    113111?>" max="24" <?php
    114 echo  esc_attr( $disabled ) ;
     112echo esc_attr( $disabled );
    115113?>/>
    116114                                        <span class="momo-input-group-append">
     
    124122                                    <span class="momo-input-group">
    125123                                        <input type="number" name="momo_wsw_as_article_import_settings[as_import_minute]" class="momo-small inline" value="<?php
    126 echo  esc_attr( $as_import_minute ) ;
     124echo esc_attr( $as_import_minute );
    127125?>" max="60" <?php
    128 echo  esc_attr( $disabled ) ;
     126echo esc_attr( $disabled );
    129127?>/>
    130128                                        <span class="momo-input-group-append">
     
    145143    </div>
    146144    <?php
    147 
    148145if ( momowsw_fs()->is_premium() ) {
    149146    ?>
     
    152149    <?php
    153150}
    154 
    155151?>
    156152</form>
     
    181177        <div class="momo-ms-admin-content-main momowsw-as-export-main" id="momowsw-momo-wsw-as-export">
    182178            <div class="momo-be-msg-block <?php
    183 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
    184 ?>">
    185                 <?php
    186 echo  wp_kses_post( $msg ) ;
     179echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
     180?>">
     181                <?php
     182echo wp_kses_post( $msg );
    187183?>
    188184            </div>
    189185            <div class="momo-be-msg-block momo-mt-10 <?php
    190 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
    191 ?>">
    192                 <?php
    193 echo  wp_kses_post( $next ) ;
     186echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
     187?>">
     188                <?php
     189echo wp_kses_post( $next );
    194190?>
    195191            </div>
     
    200196                            <label class="switch">
    201197                                <input type="checkbox" class="switch-input" name="momo_wsw_as_article_export_settings[enable_as_article_export]" autocomplete="off" <?php
    202 echo  esc_attr( $enable_as_article_export ) ;
     198echo esc_attr( $enable_as_article_export );
    203199?>>
    204200                                <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    212208                        </span>
    213209                        <?php
    214 
    215210if ( !$is_premium ) {
    216211    ?>
     
    220215                            <?php
    221216}
    222 
    223217?>
    224218                        <div class="momo-be-tc-yes-container" id="enable_as_article_export">
     
    232226                                    <span class="momo-input-group">
    233227                                        <input type="number" name="momo_wsw_as_article_export_settings[as_export_days]" class="momo-small inline" value="<?php
    234 echo  esc_attr( $as_export_days ) ;
     228echo esc_attr( $as_export_days );
    235229?>" <?php
    236 echo  esc_attr( $disabled ) ;
     230echo esc_attr( $disabled );
    237231?> />
    238232                                        <span class="momo-input-group-append">
     
    255249                                    <span class="momo-input-group">
    256250                                        <input type="number" name="momo_wsw_as_article_export_settings[as_export_hour]" class="momo-small inline" value="<?php
    257 echo  esc_attr( $as_export_hour ) ;
     251echo esc_attr( $as_export_hour );
    258252?>" max="24" <?php
    259 echo  esc_attr( $disabled ) ;
     253echo esc_attr( $disabled );
    260254?>/>
    261255                                        <span class="momo-input-group-append">
     
    269263                                    <span class="momo-input-group">
    270264                                        <input type="number" name="momo_wsw_as_article_export_settings[as_export_minute]" class="momo-small inline" value="<?php
    271 echo  esc_attr( $as_export_minute ) ;
     265echo esc_attr( $as_export_minute );
    272266?>" max="60" <?php
    273 echo  esc_attr( $disabled ) ;
     267echo esc_attr( $disabled );
    274268?>/>
    275269                                        <span class="momo-input-group-append">
     
    290284    </div>
    291285    <?php
    292 
    293286if ( momowsw_fs()->is_premium() ) {
    294287    ?>
     
    297290    <?php
    298291}
    299 
    300292?>
    301293</form>
  • wsw-import-export-ecommerce-integration/trunk/premium/othersync/admin/pages/page-momo-wsw-as-customer.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_import_settings = get_option( 'momo_wsw_as_customer_import_settings' );
    1212$enable_as_customer_import = $momowsw->fn->momo_wsw_return_check_option( $as_import_settings, 'enable_as_customer_import' );
     
    3636        <div class="momo-ms-admin-content-main momowsw-as-import-main" id="momowsw-momo-wsw-as-import">
    3737            <div class="momo-be-msg-block <?php
    38 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
    39 ?>">
    40                 <?php
    41 echo  wp_kses_post( $msg ) ;
     38echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
     39?>">
     40                <?php
     41echo wp_kses_post( $msg );
    4242?>
    4343            </div>
    4444            <div class="momo-be-msg-block momo-mt-10 <?php
    45 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
    46 ?>">
    47                 <?php
    48 echo  wp_kses_post( $next ) ;
     45echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
     46?>">
     47                <?php
     48echo wp_kses_post( $next );
    4949?>
    5050            </div>
     
    5555                            <label class="switch">
    5656                                <input type="checkbox" class="switch-input" name="momo_wsw_as_customer_import_settings[enable_as_customer_import]" autocomplete="off" <?php
    57 echo  esc_attr( $enable_as_customer_import ) ;
     57echo esc_attr( $enable_as_customer_import );
    5858?>>
    5959                                <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    6767                        </span>
    6868                        <?php
    69 
    7069if ( !$is_premium ) {
    7170    ?>
     
    7574                            <?php
    7675}
    77 
    7876?>
    7977                        <div class="momo-be-tc-yes-container" id="enable_as_customer_import">
     
    8785                                    <span class="momo-input-group">
    8886                                        <input type="number" name="momo_wsw_as_customer_import_settings[as_import_days]" class="momo-small inline" value="<?php
    89 echo  esc_attr( $as_import_days ) ;
     87echo esc_attr( $as_import_days );
    9088?>" <?php
    91 echo  esc_attr( $disabled ) ;
     89echo esc_attr( $disabled );
    9290?>/>
    9391                                        <span class="momo-input-group-append">
     
    110108                                    <span class="momo-input-group">
    111109                                        <input type="number" name="momo_wsw_as_customer_import_settings[as_import_hour]" class="momo-small inline" value="<?php
    112 echo  esc_attr( $as_import_hour ) ;
     110echo esc_attr( $as_import_hour );
    113111?>" max="24" <?php
    114 echo  esc_attr( $disabled ) ;
     112echo esc_attr( $disabled );
    115113?>/>
    116114                                        <span class="momo-input-group-append">
     
    124122                                    <span class="momo-input-group">
    125123                                        <input type="number" name="momo_wsw_as_customer_import_settings[as_import_minute]" class="momo-small inline" value="<?php
    126 echo  esc_attr( $as_import_minute ) ;
     124echo esc_attr( $as_import_minute );
    127125?>" max="60" <?php
    128 echo  esc_attr( $disabled ) ;
     126echo esc_attr( $disabled );
    129127?>/>
    130128                                        <span class="momo-input-group-append">
     
    145143    </div>
    146144    <?php
    147 
    148145if ( momowsw_fs()->is_premium() ) {
    149146    ?>
     
    152149    <?php
    153150}
    154 
    155151?>
    156152</form>
     
    181177        <div class="momo-ms-admin-content-main momowsw-as-export-main" id="momowsw-momo-wsw-as-export">
    182178            <div class="momo-be-msg-block <?php
    183 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
    184 ?>">
    185                 <?php
    186 echo  wp_kses_post( $msg ) ;
     179echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
     180?>">
     181                <?php
     182echo wp_kses_post( $msg );
    187183?>
    188184            </div>
    189185            <div class="momo-be-msg-block momo-mt-10 <?php
    190 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
    191 ?>">
    192                 <?php
    193 echo  wp_kses_post( $next ) ;
     186echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
     187?>">
     188                <?php
     189echo wp_kses_post( $next );
    194190?>
    195191            </div>
     
    200196                            <label class="switch">
    201197                                <input type="checkbox" class="switch-input" name="momo_wsw_as_customer_export_settings[enable_as_customer_export]" autocomplete="off" <?php
    202 echo  esc_attr( $enable_as_customer_export ) ;
     198echo esc_attr( $enable_as_customer_export );
    203199?>>
    204200                                <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    212208                        </span>
    213209                        <?php
    214 
    215210if ( !$is_premium ) {
    216211    ?>
     
    220215                            <?php
    221216}
    222 
    223217?>
    224218                        <div class="momo-be-tc-yes-container" id="enable_as_customer_export">
     
    232226                                    <span class="momo-input-group">
    233227                                        <input type="number" name="momo_wsw_as_customer_export_settings[as_export_days]" class="momo-small inline" value="<?php
    234 echo  esc_attr( $as_export_days ) ;
     228echo esc_attr( $as_export_days );
    235229?>" <?php
    236 echo  esc_attr( $disabled ) ;
     230echo esc_attr( $disabled );
    237231?>/>
    238232                                        <span class="momo-input-group-append">
     
    255249                                    <span class="momo-input-group">
    256250                                        <input type="number" name="momo_wsw_as_customer_export_settings[as_export_hour]" class="momo-small inline" value="<?php
    257 echo  esc_attr( $as_export_hour ) ;
     251echo esc_attr( $as_export_hour );
    258252?>" max="24" <?php
    259 echo  esc_attr( $disabled ) ;
     253echo esc_attr( $disabled );
    260254?>/>
    261255                                        <span class="momo-input-group-append">
     
    269263                                    <span class="momo-input-group">
    270264                                        <input type="number" name="momo_wsw_as_customer_export_settings[as_export_minute]" class="momo-small inline" value="<?php
    271 echo  esc_attr( $as_export_minute ) ;
     265echo esc_attr( $as_export_minute );
    272266?>" max="60" <?php
    273 echo  esc_attr( $disabled ) ;
     267echo esc_attr( $disabled );
    274268?>/>
    275269                                        <span class="momo-input-group-append">
     
    290284    </div>
    291285    <?php
    292 
    293286if ( momowsw_fs()->is_premium() ) {
    294287    ?>
     
    297290    <?php
    298291}
    299 
    300292?>
    301293</form>
  • wsw-import-export-ecommerce-integration/trunk/premium/othersync/admin/pages/page-momo-wsw-as-export.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_export_settings = get_option( 'momo_wsw_as_export_settings' );
    1212$enable_as_export = $momowsw->fn->momo_wsw_return_check_option( $as_export_settings, 'enable_as_export' );
     
    2929    <div class="momo-ms-admin-content-main momowsw-as-export-main" id="momowsw-momo-wsw-as-export">
    3030        <div class="momo-be-msg-block <?php
    31 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
     31echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
    3232?>">
    3333            <?php
    34 echo  wp_kses_post( $msg ) ;
     34echo wp_kses_post( $msg );
    3535?>
    3636        </div>
    3737        <div class="momo-be-msg-block momo-mt-10 <?php
    38 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
     38echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
    3939?>">
    4040            <?php
    41 echo  wp_kses_post( $next ) ;
     41echo wp_kses_post( $next );
    4242?>
    4343        </div>
     
    5151                        <label class="switch">
    5252                            <input type="checkbox" class="switch-input" name="momo_wsw_as_export_settings[enable_as_export]" autocomplete="off" <?php
    53 echo  esc_attr( $enable_as_export ) ;
     53echo esc_attr( $enable_as_export );
    5454?>>
    5555                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    6363                    </span>
    6464                    <?php
    65 
    6665if ( !$is_premium ) {
    6766    ?>
     
    7170                        <?php
    7271}
    73 
    7472?>
    7573                    <div class="momo-be-tc-yes-container" id="enable_as_export">
     
    8381                                <span class="momo-input-group">
    8482                                    <input type="number" name="momo_wsw_as_export_settings[as_export_days]" class="momo-small inline" value="<?php
    85 echo  esc_attr( $as_export_days ) ;
     83echo esc_attr( $as_export_days );
    8684?>" <?php
    87 echo  esc_attr( $disabled ) ;
     85echo esc_attr( $disabled );
    8886?>/>
    8987                                    <span class="momo-input-group-append">
     
    106104                                <span class="momo-input-group">
    107105                                    <input type="number" name="momo_wsw_as_export_settings[as_export_hour]" class="momo-small inline" value="<?php
    108 echo  esc_attr( $as_export_hour ) ;
     106echo esc_attr( $as_export_hour );
    109107?>" max="24" <?php
    110 echo  esc_attr( $disabled ) ;
     108echo esc_attr( $disabled );
    111109?>/>
    112110                                    <span class="momo-input-group-append">
     
    120118                                <span class="momo-input-group">
    121119                                    <input type="number" name="momo_wsw_as_export_settings[as_export_minute]" class="momo-small inline" value="<?php
    122 echo  esc_attr( $as_export_minute ) ;
     120echo esc_attr( $as_export_minute );
    123121?>" max="60" <?php
    124 echo  esc_attr( $disabled ) ;
     122echo esc_attr( $disabled );
    125123?>/>
    126124                                    <span class="momo-input-group-append">
  • wsw-import-export-ecommerce-integration/trunk/premium/othersync/admin/pages/page-momo-wsw-as-import.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_import_settings = get_option( 'momo_wsw_as_import_settings' );
    1212$enable_as_import = $momowsw->fn->momo_wsw_return_check_option( $as_import_settings, 'enable_as_import' );
     
    2929    <div class="momo-ms-admin-content-main momowsw-as-import-main" id="momowsw-momo-wsw-as-import">
    3030        <div class="momo-be-msg-block <?php
    31 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
     31echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
    3232?>">
    3333            <?php
    34 echo  wp_kses_post( $msg ) ;
     34echo wp_kses_post( $msg );
    3535?>
    3636        </div>
    3737        <div class="momo-be-msg-block momo-mt-10 <?php
    38 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
     38echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
    3939?>">
    4040            <?php
    41 echo  wp_kses_post( $next ) ;
     41echo wp_kses_post( $next );
    4242?>
    4343        </div>
     
    5151                        <label class="switch">
    5252                            <input type="checkbox" class="switch-input" name="momo_wsw_as_import_settings[enable_as_import]" autocomplete="off" <?php
    53 echo  esc_attr( $enable_as_import ) ;
     53echo esc_attr( $enable_as_import );
    5454?>>
    5555                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    6363                    </span>
    6464                    <?php
    65 
    6665if ( !$is_premium ) {
    6766    ?>
     
    7170                        <?php
    7271}
    73 
    7472?>
    7573                    <div class="momo-be-tc-yes-container" id="enable_as_import">
     
    8381                                <span class="momo-input-group">
    8482                                    <input type="number" name="momo_wsw_as_import_settings[as_import_days]" class="momo-small inline" value="<?php
    85 echo  esc_attr( $as_import_days ) ;
     83echo esc_attr( $as_import_days );
    8684?>" <?php
    87 echo  esc_attr( $disabled ) ;
     85echo esc_attr( $disabled );
    8886?>/>
    8987                                    <span class="momo-input-group-append">
     
    106104                                <span class="momo-input-group">
    107105                                    <input type="number" name="momo_wsw_as_import_settings[as_import_hour]" class="momo-small inline" value="<?php
    108 echo  esc_attr( $as_import_hour ) ;
     106echo esc_attr( $as_import_hour );
    109107?>" max="24" <?php
    110 echo  esc_attr( $disabled ) ;
     108echo esc_attr( $disabled );
    111109?>/>
    112110                                    <span class="momo-input-group-append">
     
    120118                                <span class="momo-input-group">
    121119                                    <input type="number" name="momo_wsw_as_import_settings[as_import_minute]" class="momo-small inline" value="<?php
    122 echo  esc_attr( $as_import_minute ) ;
     120echo esc_attr( $as_import_minute );
    123121?>" max="60" <?php
    124 echo  esc_attr( $disabled ) ;
     122echo esc_attr( $disabled );
    125123?>/>
    126124                                    <span class="momo-input-group-append">
  • wsw-import-export-ecommerce-integration/trunk/premium/othersync/admin/pages/page-momo-wsw-as-page.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$as_import_settings = get_option( 'momo_wsw_as_page_import_settings' );
    1212$enable_as_page_import = $momowsw->fn->momo_wsw_return_check_option( $as_import_settings, 'enable_as_page_import' );
     
    3636        <div class="momo-ms-admin-content-main momowsw-as-import-main" id="momowsw-momo-wsw-as-import">
    3737            <div class="momo-be-msg-block <?php
    38 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
    39 ?>">
    40                 <?php
    41 echo  wp_kses_post( $msg ) ;
     38echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
     39?>">
     40                <?php
     41echo wp_kses_post( $msg );
    4242?>
    4343            </div>
    4444            <div class="momo-be-msg-block momo-mt-10 <?php
    45 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
    46 ?>">
    47                 <?php
    48 echo  wp_kses_post( $next ) ;
     45echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
     46?>">
     47                <?php
     48echo wp_kses_post( $next );
    4949?>
    5050            </div>
     
    5555                            <label class="switch">
    5656                                <input type="checkbox" class="switch-input" name="momo_wsw_as_page_import_settings[enable_as_page_import]" autocomplete="off" <?php
    57 echo  esc_attr( $enable_as_page_import ) ;
     57echo esc_attr( $enable_as_page_import );
    5858?>>
    5959                                <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    6767                        </span>
    6868                        <?php
    69 
    7069if ( !$is_premium ) {
    7170    ?>
     
    7574                            <?php
    7675}
    77 
    7876?>
    7977                        <div class="momo-be-tc-yes-container" id="enable_as_page_import">
     
    8785                                    <span class="momo-input-group">
    8886                                        <input type="number" name="momo_wsw_as_page_import_settings[as_import_days]" class="momo-small inline" value="<?php
    89 echo  esc_attr( $as_import_days ) ;
     87echo esc_attr( $as_import_days );
    9088?>" <?php
    91 echo  esc_attr( $disabled ) ;
     89echo esc_attr( $disabled );
    9290?>/>
    9391                                        <span class="momo-input-group-append">
     
    110108                                    <span class="momo-input-group">
    111109                                        <input type="number" name="momo_wsw_as_page_import_settings[as_import_hour]" class="momo-small inline" value="<?php
    112 echo  esc_attr( $as_import_hour ) ;
     110echo esc_attr( $as_import_hour );
    113111?>" max="24" <?php
    114 echo  esc_attr( $disabled ) ;
     112echo esc_attr( $disabled );
    115113?>/>
    116114                                        <span class="momo-input-group-append">
     
    124122                                    <span class="momo-input-group">
    125123                                        <input type="number" name="momo_wsw_as_page_import_settings[as_import_minute]" class="momo-small inline" value="<?php
    126 echo  esc_attr( $as_import_minute ) ;
     124echo esc_attr( $as_import_minute );
    127125?>" max="60" <?php
    128 echo  esc_attr( $disabled ) ;
     126echo esc_attr( $disabled );
    129127?>/>
    130128                                        <span class="momo-input-group-append">
     
    145143    </div>
    146144    <?php
    147 
    148145if ( momowsw_fs()->is_premium() ) {
    149146    ?>
     
    152149    <?php
    153150}
    154 
    155151?>
    156152</form>
     
    181177        <div class="momo-ms-admin-content-main momowsw-as-export-main" id="momowsw-momo-wsw-as-export">
    182178            <div class="momo-be-msg-block <?php
    183 echo  esc_attr( ( !empty($msg) ? 'show info' : '' ) ) ;
    184 ?>">
    185                 <?php
    186 echo  wp_kses_post( $msg ) ;
     179echo esc_attr( ( !empty( $msg ) ? 'show info' : '' ) );
     180?>">
     181                <?php
     182echo wp_kses_post( $msg );
    187183?>
    188184            </div>
    189185            <div class="momo-be-msg-block momo-mt-10 <?php
    190 echo  esc_attr( ( !empty($next) ? 'show warning' : '' ) ) ;
    191 ?>">
    192                 <?php
    193 echo  wp_kses_post( $next ) ;
     186echo esc_attr( ( !empty( $next ) ? 'show warning' : '' ) );
     187?>">
     188                <?php
     189echo wp_kses_post( $next );
    194190?>
    195191            </div>
     
    200196                            <label class="switch">
    201197                                <input type="checkbox" class="switch-input" name="momo_wsw_as_page_export_settings[enable_as_page_export]" autocomplete="off" <?php
    202 echo  esc_attr( $enable_as_page_export ) ;
     198echo esc_attr( $enable_as_page_export );
    203199?>>
    204200                                <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    212208                        </span>
    213209                        <?php
    214 
    215210if ( !$is_premium ) {
    216211    ?>
     
    220215                            <?php
    221216}
    222 
    223217?>
    224218                        <div class="momo-be-tc-yes-container" id="enable_as_page_export">
     
    232226                                    <span class="momo-input-group">
    233227                                        <input type="number" name="momo_wsw_as_page_export_settings[as_export_days]" class="momo-small inline" value="<?php
    234 echo  esc_attr( $as_export_days ) ;
     228echo esc_attr( $as_export_days );
    235229?>" <?php
    236 echo  esc_attr( $disabled ) ;
     230echo esc_attr( $disabled );
    237231?>/>
    238232                                        <span class="momo-input-group-append">
     
    255249                                    <span class="momo-input-group">
    256250                                        <input type="number" name="momo_wsw_as_page_export_settings[as_export_hour]" class="momo-small inline" value="<?php
    257 echo  esc_attr( $as_export_hour ) ;
     251echo esc_attr( $as_export_hour );
    258252?>" max="24" <?php
    259 echo  esc_attr( $disabled ) ;
     253echo esc_attr( $disabled );
    260254?>/>
    261255                                        <span class="momo-input-group-append">
     
    269263                                    <span class="momo-input-group">
    270264                                        <input type="number" name="momo_wsw_as_page_export_settings[as_export_minute]" class="momo-small inline" value="<?php
    271 echo  esc_attr( $as_export_minute ) ;
     265echo esc_attr( $as_export_minute );
    272266?>" max="60" <?php
    273 echo  esc_attr( $disabled ) ;
     267echo esc_attr( $disabled );
    274268?>/>
    275269                                        <span class="momo-input-group-append">
     
    290284    </div>
    291285    <?php
    292 
    293286if ( momowsw_fs()->is_premium() ) {
    294287    ?>
     
    297290    <?php
    298291}
    299 
    300292?>
    301293</form>
  • wsw-import-export-ecommerce-integration/trunk/premium/product-feed/admin/pages/momo-wsw-product-feed-settings.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111?>
    1212<div id="momo-be-form" class="momo-be-new">
     
    4040?>
    4141                                <?php
    42 
    4342if ( momowsw_fs()->is_premium() ) {
    4443    ?>
     
    4746                                <?php
    4847}
    49 
    5048?>
    5149                            </form>
  • wsw-import-export-ecommerce-integration/trunk/premium/product-feed/admin/pages/page-momo-wsw-pf-feeds.php

    r3061683 r3087549  
    88 * @since v2.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$pf_product_feeds = get_option( 'momo_wsw_pf_product_feeds' );
    1212$enable_pf_feeds = $momowsw->fn->momo_wsw_return_check_option( $pf_product_feeds, 'enable_pf_feeds' );
     
    3838                        <label class="switch">
    3939                            <input type="checkbox" class="switch-input" name="momo_wsw_pf_product_feeds[enable_pf_feeds]" autocomplete="off" <?php
    40 echo  esc_attr( $enable_pf_feeds ) ;
     40echo esc_attr( $enable_pf_feeds );
    4141?>>
    4242                            <span class="switch-label" data-on="Yes" data-off="No"></span>
     
    5050                    </span>
    5151                    <?php
    52 
    5352if ( !$is_premium ) {
    5453    ?>
     
    5857                        <?php
    5958}
    60 
    6159?>
    6260                    <div class="momo-be-tc-yes-container" id="enable_pf_feeds">
     
    6664?></label>
    6765                            <input type="text" class="block" name="momo_wsw_pf_product_feeds[0][file_name]" value="<?php
    68 echo  esc_attr( $file_name_0 ) ;
     66echo esc_attr( $file_name_0 );
    6967?>" <?php
    70 echo  esc_attr( $disabled ) ;
     68echo esc_attr( $disabled );
    7169?> />
    7270                        </div>
     
    9391                                </label>
    9492                                <select class="block" name="momo_wsw_pf_product_feeds[0][target_country]" autocomplete="off" <?php
    95 echo  esc_attr( $disabled ) ;
     93echo esc_attr( $disabled );
    9694?> >
    9795                                    <option value=""><?php
     
    102100    ?>
    103101                                        <option value="<?php
    104     echo  esc_attr( $ccode ) ;
     102    echo esc_attr( $ccode );
    105103    ?>"
    106104                                        <?php
    107     echo  esc_attr( ( $ccode === $target_country_0 ? 'selected="selected"' : '' ) ) ;
     105    echo esc_attr( ( $ccode === $target_country_0 ? 'selected="selected"' : '' ) );
    108106    ?>
    109107                                        >
    110108                                        <?php
    111     echo  esc_html( $cname ) ;
     109    echo esc_html( $cname );
    112110    ?>
    113111                                        </option>
     
    119117                        </div>
    120118                        <?php
    121 
    122 if ( !empty($crons) ) {
     119if ( !empty( $crons ) ) {
    123120    ?>
    124121                            <div class="momo-be-msg-block momo-mt-10 <?php
    125     echo  esc_attr( ( 'on' === $pf_feeds_enabled ? 'show info' : '' ) ) ;
     122    echo esc_attr( ( 'on' === $pf_feeds_enabled ? 'show info' : '' ) );
    126123    ?>">
    127124                                <p>
     
    132129                                <p>
    133130                                    <?php
    134     echo  wp_kses_post( $msg ) ;
     131    echo wp_kses_post( $msg );
    135132    ?>
    136133                                </p>
    137134                                <p>
    138135                                    <?php
    139     echo  esc_html( $pfeedurl ) ;
     136    echo esc_html( $pfeedurl );
    140137    ?><a href="<?php
    141     echo  esc_url( $url ) ;
     138    echo esc_url( $url );
    142139    ?>" target="_blank"><?php
    143     echo  esc_url( $url ) ;
     140    echo esc_url( $url );
    144141    ?></a>
    145142                                </p>
     
    148145    esc_html_e( 'Generated at ', 'momowsw' );
    149146    ?></strong> : <i class="momowsw-generated-at-value"><?php
    150     echo  esc_html( $momowsw->premium->cron->momo_wsw_cron_timetostr( $generated_at_0 ) ) ;
     147    echo esc_html( $momowsw->premium->cron->momo_wsw_cron_timetostr( $generated_at_0 ) );
    151148    ?></i>
    152149                                </p>
     
    161158                        <?php
    162159}
    163 
    164160?>
    165161                    </div>
  • wsw-import-export-ecommerce-integration/trunk/premium/webhooks/admin/pages/momo-wsw-webhooks-settings.php

    r3061683 r3087549  
    88 * @since v1.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111?>
    1212<div id="momo-be-form" class="momo-be-new">
  • wsw-import-export-ecommerce-integration/trunk/premium/webhooks/admin/pages/page-momo-wsw-webhooks-settings.php

    r3061683 r3087549  
    88 * @since v1.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$webhooks_settings = get_option( 'momo_wsw_webhooks_settings' );
    1212$locations = array();
     
    2727?>
    2828        <?php
    29 
    3029if ( !$is_premium ) {
    3130    ?>
     
    3534            <?php
    3635}
    37 
    3836?>
    3937    </h2>
    4038    <div class="momo-ms-admin-content-main momowsw-cs-webhooks-settings" id="momowsw-momo-wsw-settings-webhooks">
    4139        <?php
    42 
    4340if ( !$momowsw->fn->momowsw_check_api_settings_saved() ) {
    4441    ?>
     
    5148                <p>
    5249                    <a href="<?php
    53     echo  esc_url( admin_url( 'admin.php?page=momowsw' ) ) ;
     50    echo esc_url( admin_url( 'admin.php?page=momowsw' ) );
    5451    ?>" class="momo-inside"><?php
    5552    esc_html_e( 'API Settings', 'momowsw' );
     
    5855            </div>
    5956        <?php
    60 } elseif ( !empty($locations) ) {
     57} elseif ( !empty( $locations ) ) {
    6158    ?>
    6259        <div class="momo-be-section">
     
    8077        ?>
    8178                        <option value="<?php
    82         echo  esc_attr( $location->id ) ;
     79        echo esc_attr( $location->id );
    8380        ?>"
    8481                        <?php
    85         echo  esc_attr( ( (int) $selected === $location->id ? 'selected="selected"' : '' ) ) ;
     82        echo esc_attr( ( (int) $selected === $location->id ? 'selected="selected"' : '' ) );
    8683        ?>
    8784                        >
    8885                        <?php
    89         echo  esc_html( $location->name ) ;
     86        echo esc_html( $location->name );
    9087        ?>
    9188                        </option>
     
    9895        <?php
    9996}
    100 
    10197?>
    10298    </div>
  • wsw-import-export-ecommerce-integration/trunk/premium/webhooks/admin/pages/page-momo-wsw-webhooks.php

    r3061683 r3087549  
    88 * @since v1.0.0
    99 */
    10 global  $momowsw ;
     10global $momowsw;
    1111$webhooks_ajax = get_option( 'momo_wsw_webhooks_ajax' );
    1212$lists = array();
     
    3535?>
    3636                <?php
    37 
    3837if ( !$is_premium ) {
    3938    ?>
     
    4342                    <?php
    4443}
    45 
    4644?>
    4745            </h2>
     
    6159                        <td class="momo-be-wh-actions">
    6260                            <?php
    63 
    6461if ( momowsw_fs()->is_premium() ) {
    6562    ?>
     
    6865                            <?php
    6966}
    70 
    7167?>
    7268                            <?php
    73 
    7469if ( !$is_premium ) {
    7570    ?>
     
    7974                                <?php
    8075}
    81 
    8276?>
    8377                        </td>
     
    10498                        <td class="momo-be-wh-actions">
    10599                            <?php
    106 
    107100if ( momowsw_fs()->is_premium() ) {
    108101    ?>
     
    111104                            <?php
    112105}
    113 
    114106?>
    115107                            <?php
    116 
    117108if ( !$is_premium ) {
    118109    ?>
     
    122113                                <?php
    123114}
    124 
    125115?>
    126116                        </td>
  • wsw-import-export-ecommerce-integration/trunk/readme.txt

    r3080173 r3087549  
    66Requires PHP: 7.0
    77Requires at least: 5.7
    8 Stable tag: 2.1.0
     8Stable tag: 2.2.0
    99License: GPLv2 or later
    1010
Note: See TracChangeset for help on using the changeset viewer.