Changeset 1918801
- Timestamp:
- 08/02/2018 12:58:04 PM (8 years ago)
- Location:
- woo-oscommerce-sync/trunk
- Files:
-
- 6 added
- 2 edited
-
languages (added)
-
languages/woocommerce-osc-sync-en_US.mo (added)
-
languages/woocommerce-osc-sync-en_US.po (added)
-
languages/woocommerce-osc-sync-es_ES.mo (added)
-
languages/woocommerce-osc-sync-es_ES.po (added)
-
languages/woocommerce-osc-sync.pot (added)
-
readme.txt (modified) (2 diffs)
-
woocommerce-osc-sync.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-oscommerce-sync/trunk/readme.txt
r1917009 r1918801 5 5 Requires at least: 3.5.1 6 6 Tested up to: 4.9.4–es_ES 7 Stable tag: 2.0. 77 Stable tag: 2.0.8 8 8 License: AGPLv3.0 or later 9 9 License URI: http://opensource.org/licenses/AGPL-3.0 … … 70 70 71 71 == Changelog == 72 = 2.0.8 = 73 * Add internationalization 74 72 75 = 2.0.7 = 73 76 * Include Bootstrap tabs and forms -
woo-oscommerce-sync/trunk/woocommerce-osc-sync.php
r1917009 r1918801 3 3 Plugin Name: Woocommerce osCommerce Sync 4 4 Plugin URI: http://aaranda.es/woocommerce-oscommerce-sync/ 5 Text Domain: woocommerce-osc-sync 6 Domain Path: /languages 5 7 Description: Import products, categories, customers and orders from osCommerce to Woocommerce 6 8 Author: Alejandro Aranda 7 Version: 2.0. 79 Version: 2.0.8 8 10 Author URI: http://www.aaranda.es 9 11 Original Author: David Barnes … … 25 27 if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins')))) { 26 28 29 27 30 function otw_submenu_page() { 28 31 add_submenu_page('woocommerce', 'osCommerce Sync', 'osCommerce Sync', 'manage_options', 'woocommerce-osc-sync', 'otw_submenu_page_callback'); … … 817 820 <ul class="nav nav-tabs" id="myTab" role="tablist"> 818 821 <li class="nav-item"> 819 <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true"> OsCommerce Database Conection</a>822 <a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true"><?php _e( 'OsCommerce Database Conection', 'woocommerce-osc-sync' ); ?></a> 820 823 </li> 821 824 <li class="nav-item"> 822 <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false"> Products Configuration</a>825 <a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false"><?php _e( 'Products Configuration', 'woocommerce-osc-sync' ); ?></a> 823 826 </li> 824 827 <li class="nav-item"> 825 <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"> Select Imports</a>828 <a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false"><?php _e( 'Select Imports', 'woocommerce-osc-sync' ); ?></a> 826 829 </li> 827 830 </ul> 828 831 <div class="tab-content" id="myTabContent"> 829 832 <div class="tab-pane fade show active modal-body bg-light" id="home" role="tabpanel" aria-labelledby="home-tab"> 830 <h4> Enter your oscommerce database information</h4>833 <h4><?php _e( 'Enter your oscommerce database information', 'woocommerce-osc-sync' ); ?> </h4> 831 834 <div class="alert alert-warning" role="alert"> 832 You will need remote access to your oscommerce database835 <?php _e( 'You will need remote access to your oscommerce database', 'woocommerce-osc-sync' ); ?> 833 836 </div> 834 837 <div class="row"> 835 838 <div class="col-md-6"> 836 839 <div class="form-group"> 837 <label > osCommerce store URL:</label>840 <label ><?php _e( 'osCommerce store URL: ', 'woocommerce-osc-sync' ); ?></label> 838 841 <input class="form-control" type="text" name="store_url" value="<?php echo sanitize_text_field($_POST['store_url']); ?>"> 839 <small> Example: https://www.[your site].com/</small>842 <small><?php _e( 'Example: https://www.yoursite.com/', 'woocommerce-osc-sync' ); ?></small> 840 843 </label> 841 844 </div> 842 <div class="form-group"><label > osCommerce Database Host:</label><input class="form-control" type="text" name="store_host" value="localhost"></div>843 <div class="form-group"><label > osCommerce Database Name:</label><input class="form-control" type="text" name="store_dbname" value="<?php echo sanitize_text_field($_POST['store_dbname']); ?>"></div>845 <div class="form-group"><label ><?php _e( 'osCommerce Database Host: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_host" value="localhost"></div> 846 <div class="form-group"><label ><?php _e( 'osCommerce Database Name: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_dbname" value="<?php echo sanitize_text_field($_POST['store_dbname']); ?>"></div> 844 847 </div> 845 848 <div class="col-md-6"> 846 849 <div class="form-group"> 847 <label > Images directory:</label>850 <label ><?php _e( 'Images directory: ', 'woocommerce-osc-sync' ); ?></label> 848 851 <input class="form-control" type="text" name="images_url" value="<?php echo sanitize_text_field($_POST['images_url']); ?>"> 849 <small> Empty directory as default "image"</small>852 <small><?php _e( 'Empty directory as default "image"', 'woocommerce-osc-sync' ); ?></small> 850 853 </div> 851 <div class="form-group"><label > osCommerce Database User:</label><input class="form-control" type="text" name="store_user" value="<?php echo sanitize_text_field($_POST['store_user']); ?>"></div>852 <div class="form-group"><label > osCommerce Database Password:</label><input class="form-control" type="text" name="store_pass" value="<?php echo sanitize_text_field($_POST['store_pass']); ?>"></div>854 <div class="form-group"><label ><?php _e( 'osCommerce Database User: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_user" value="<?php echo sanitize_text_field($_POST['store_user']); ?>"></div> 855 <div class="form-group"><label ><?php _e( 'osCommerce Database Password: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="store_pass" value="<?php echo sanitize_text_field($_POST['store_pass']); ?>"></div> 853 856 </div> 854 857 </div> 855 858 </div> 856 859 <div class="tab-pane fade modal-body bg-light" id="profile" role="tabpanel" aria-labelledby="profile-tab"> 857 <h3> Import data from osCommerce</h3>860 <h3><?php _e( 'Import data from osCommerce', 'woocommerce-osc-sync' ); ?></h3> 858 861 <div class="alert alert-info" role="alert"> 859 For big products database can import in steps (use fields Offset & Limit)862 <?php _e( 'For big products database can import in steps (use fields Offset & Limit)', 'woocommerce-osc-sync' ); ?> 860 863 </div> 861 864 <div class="col-md-12"> 862 <div class="form-group"><label > Language: </label><input class="form-control" type="text" name="lang" value="<?php echo sanitize_text_field($_POST['lang']); ?>"><small>Id from osCommerce lang table</small></div>863 <div class="form-group"><label > Offset: </label><input class="form-control" type="text" name="offset" value="<?php echo sanitize_text_field($_POST['offset']); ?>"><small>Last product imported</small></div>864 <div class="form-group"><label > Limit: </label><input class="form-control" type="text" name="limit" value="<?php echo sanitize_text_field($_POST['limit']); ?>"><small>how many products imported</small></div>865 <div class="form-group"><label ><?php _e( 'Language: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="lang" value="<?php echo sanitize_text_field($_POST['lang']); ?>"><small><?php _e( 'Id from osCommerce lang table', 'woocommerce-osc-sync' ); ?></small></div> 866 <div class="form-group"><label ><?php _e( 'Offset: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="offset" value="<?php echo sanitize_text_field($_POST['offset']); ?>"><small><?php _e( 'Last product imported', 'woocommerce-osc-sync' ); ?></small></div> 867 <div class="form-group"><label ><?php _e( 'Limit: ', 'woocommerce-osc-sync' ); ?></label><input class="form-control" type="text" name="limit" value="<?php echo sanitize_text_field($_POST['limit']); ?>"><small><?php _e( 'how many products imported', 'woocommerce-osc-sync' ); ?></small></div> 865 868 </div> 866 869 867 870 </div> 868 871 <div class="tab-pane fade modal-body bg-light" id="contact" role="tabpanel" aria-labelledby="contact-tab"> 869 <h3> Data to Import:</h3>872 <h3><?php _e( 'Data to Import:', 'woocommerce-osc-sync' ); ?></h3> 870 873 <div class="alert alert-warning" role="alert"> 871 It is recommended to follow the order of the list874 <?php _e( 'It is recommended to follow the order of the list', 'woocommerce-osc-sync' ); ?> 872 875 </div> 873 876 <div class="row"> … … 877 880 echo " checked "; 878 881 } 879 ?>> Customers (passwords will not be transferred)</label><br>882 ?>><?php _e( 'Customers (passwords will not be transferred)', 'woocommerce-osc-sync' ); ?></label><br> 880 883 881 884 <label ><input class="form-control" type="checkbox" name="dtype[categories]" value="1" <?php … … 883 886 echo " checked "; 884 887 } 885 ?>> Categories</label><br>888 ?>><?php _e( 'Categories', 'woocommerce-osc-sync' ); ?></label><br> 886 889 <!-- <label ><input class="form-control" type="checkbox" name="dtype[taxes]" value="1" <?php 887 890 if ((int) $_POST['dtype']['taxes']) { … … 893 896 echo " checked "; 894 897 } 895 ?>> Products</label><br>898 ?>><?php _e( 'Products', 'woocommerce-osc-sync' ); ?></label><br> 896 899 <label ><input class="form-control" type="checkbox" name="dtype[delete]" value="1" <?php 897 900 if ((int) $_POST['dtype']['delete']) { 898 901 echo " checked "; 899 902 } 900 ?>> Products delete images</label><br>903 ?>><?php _e( 'Products delete images', 'woocommerce-osc-sync' ); ?></label><br> 901 904 <label ><input class="form-control" type="checkbox" name="dtype[image]" value="1" <?php 902 905 if ((int) $_POST['dtype']['image']) { 903 906 echo " checked "; 904 907 } 905 ?>> Products Prefered image</label><br>908 ?>><?php _e( 'Products Prefered image', 'woocommerce-osc-sync' ); ?></label><br> 906 909 <label ><input class="form-control" type="checkbox" name="dtype[gallery]" value="1" <?php 907 910 if ((int) $_POST['dtype']['gallery']) { 908 911 echo " checked "; 909 912 } 910 ?>> Products gallery</label><br>913 ?>><?php _e( 'Products gallery', 'woocommerce-osc-sync' ); ?></label><br> 911 914 <label ><input class="form-control" type="checkbox" name="dtype[orders]" value="1" <?php 912 915 if ((int) $_POST['dtype']['orders']) { 913 916 echo " checked "; 914 917 } 915 ?>> Orders</label><br>918 ?>><?php _e( 'Orders', 'woocommerce-osc-sync' ); ?></label><br> 916 919 <label ><input class="form-control" type="checkbox" name="dtype[pages]" value="1" <?php 917 920 if ((int) $_POST['dtype']['pages']) { 918 921 echo " checked "; 919 922 } 920 ?>> Information Pages</label>923 ?>><?php _e( 'Information Pages', 'woocommerce-osc-sync' ); ?></label> 921 924 922 925 … … 931 934 } 932 935 ?>></label> 933 <small> (Display and save a log file in WordPress root folder)</small>934 <div class="form-group"><input type="submit" value=" Import Data" class="btn btn-primary btn-lg"></div>936 <small><?php _e( '(Display and save a log file in WordPress root folder)', 'woocommerce-osc-sync' ); ?></small> 937 <div class="form-group"><input type="submit" value="<?php _e( 'Import Data', 'woocommerce-osc-sync' ); ?>" class="btn btn-primary btn-lg"></div> 935 938 </div> 936 939 … … 962 965 } 963 966 } 967 968 load_plugin_textdomain( 'woocommerce-osc-sync', false, basename( dirname( __FILE__ ) ) . '/languages' ); 964 969 ?>
Note: See TracChangeset
for help on using the changeset viewer.