Plugin Directory

Changeset 3393560


Ignore:
Timestamp:
11/11/2025 10:44:20 AM (5 weeks ago)
Author:
themeum
Message:

Update to version 2.4.1 from GitHub

Location:
tutor-lms-migration-tool
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • tutor-lms-migration-tool/tags/2.4.1/assets/js/admin.js

    r3378798 r3393560  
    234234    $(migrateStartBtn).on('click', function (event) {
    235235        event.preventDefault();
    236         $('#wc-sales-data-migration-form').submit();
    237236        if (totalItemsMigrateCounts > 0) {
    238237            migrationModal.removeClass('active');
     
    387386        },
    388387        SELECTORS: {
    389             migrationPage: '.tutor-migration-page',
    390             migrateBtn: '.migrate-now-btn',
     388            migrationPage: '.tutor-migration-page-wc',
     389            migrateBtn: '.migrate-now-btn-wc',
     390            migrationStartBtn: '#migration-start-btn-wc',
    391391            navLink: '.tutor-nav-link',
    392392            activeNavLink: '.tutor-nav-link.is-active',
     
    422422    const $wooCheckboxes = $wooMigrationPage.find(`#${WOO_CONFIG.TABS.CUSTOM} input[type="checkbox"]`);
    423423
     424    $wooMigrateBtn.on('click', function (event) {
     425        event.preventDefault();
     426
     427        migrationModal.addClass('active');
     428    });
     429
     430    $(WOO_CONFIG.SELECTORS.migrationStartBtn).on('click', function (event) {
     431        event.preventDefault();
     432
     433        migrationModal.removeClass('active');
     434        $(WOO_CONFIG.SELECTORS.form).submit();
     435    });
     436
     437
     438
    424439    // Store original checkbox state
    425440    let wooOriginalCheckboxes = [];
  • tutor-lms-migration-tool/tags/2.4.1/classes/Utils.php

    r3378798 r3393560  
    7676     */
    7777    public static function check_course_access() {
    78         if ( current_user_can( 'manage_options' ) || ! current_user_can( 'publish_tutor_courses' ) ) {
     78        if ( ! current_user_can( 'manage_options' ) && ! current_user_can( 'publish_tutor_courses' ) ) {
    7979            wp_send_json(
    8080                array(
  • tutor-lms-migration-tool/tags/2.4.1/readme.txt

    r3378798 r3393560  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 2.4.0
     8Stable tag: 2.4.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    135135
    136136== Changelog ==
     137
     138= 2.4.1 - 11 November, 2025 =
     139
     140Fix: LearnDash to Tutor migration fails due to permission issue.
    137141
    138142= 2.4.0 - 15 October, 2025 =
  • tutor-lms-migration-tool/tags/2.4.1/tutor-lms-migration-tool.php

    r3378798 r3393560  
    55 * Description: A migration toolkit that allows you to migrate data from other LMS platforms to Tutor LMS.
    66 * Author: Themeum
    7  * Version: 2.4.0
     7 * Version: 2.4.1
    88 * Author URI: http://themeum.com
    99 * Requires at least: 5.3
     
    3131 */
    3232
    33 define( 'TLMT_VERSION', '2.4.0' );
     33define( 'TLMT_VERSION', '2.4.1' );
    3434define( 'TLMT_FILE', __FILE__ );
    3535define( 'TLMT_PATH', plugin_dir_path( TLMT_FILE ) );
  • tutor-lms-migration-tool/tags/2.4.1/vendor/composer/installed.php

    r3378798 r3393560  
    22    'root' => array(
    33        'name' => 'themeum/tutor-lms-migration-tool',
    4         'pretty_version' => '2.4.0',
    5         'version' => '2.4.0.0',
    6         'reference' => 'e847c98a59425cbe1a0161a5e5b13c7086f4c85b',
     4        'pretty_version' => '2.4.1',
     5        'version' => '2.4.1.0',
     6        'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'themeum/tutor-lms-migration-tool' => array(
    14             'pretty_version' => '2.4.0',
    15             'version' => '2.4.0.0',
    16             'reference' => 'e847c98a59425cbe1a0161a5e5b13c7086f4c85b',
     14            'pretty_version' => '2.4.1',
     15            'version' => '2.4.1.0',
     16            'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • tutor-lms-migration-tool/tags/2.4.1/views/migration_ld.php

    r3378798 r3393560  
     1<?php
     2/**
     3 * Migration page
     4 *
     5 * @package TutorLMSMigrationTool\Views
     6 * @author Themeum <[email protected]>
     7 * @link https://themeum.com
     8 * @since 2.3.0
     9 */
     10
     11if ( ! defined( 'ABSPATH' ) ) {
     12    exit;
     13}
     14?>
    115<div class="tutor-migration-page">
     16    <?php
     17    global $wpdb;
     18
     19    $utils = new Utils();
     20
     21    $tutor_migration_history = $utils->fetch_history( 'ld' );
     22
     23    $courses_count = $utils->ld_course_count();
     24
     25    $orders_count = $utils->ld_orders_count();
     26
     27    $items_count = $courses_count + $orders_count;
     28    ?>
     29   
    230    <div id="tutor-migration-wrapper">
    331        <div class="tutor-migration-area">
    432            <div class="tutor-migration-top tutor-px-48 tutor-pt-32 tutor-pb-40">
    5                 <div class="">
     33                <div class=""> 
    634                    <div class="tutor-fs-3 tutor-fw-medium tutor-color-black tutor-course-content-title">
    7                         Migration
     35                        <?php esc_html_e( 'Migration', 'tutor-lms-migration-tool' ); ?>
    836                    </div>
    937                    <div class="tutor-migration-top-subtitle tutor-fs-6">
    10                         Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.
     38                        <?php esc_html_e( 'Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.', 'tutor-lms-migration-tool' ); ?>
    1139                    </div>
    1240                </div>
    1341                <div class="tutor-d-flex tutor-justify-end tutor-align-center">
    14                     <img src="assets/img/learndash.jpg" alt="import">
     42                    <img style src="<?php echo esc_url( TLMT_URL . 'assets/img/learndash.jpg' ); ?>" alt="import">
    1543                </div>
    1644            </div>
     
    2048                    <li class="tutor-nav-item">
    2149                        <a class="tutor-nav-link is-active" href="#" data-tutor-nav-target="tutor-auto-migrate-tab">
    22                             Auto Migrate
     50                            <?php esc_html_e( 'Auto Migrate', 'tutor-lms-migration-tool' ); ?>
    2351                        </a>
    2452                    </li>
    2553                    <li class="tutor-nav-item">
    2654                        <div class="tutor-d-flex tutor-align-center">
    27                             <a class="tutor-nav-link" style="cursor: default; padding-right: 8px;">
    28                                 Upload File
    29                             </a>
    30                             <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;">
    31                                 Coming soon
    32                             </span>
     55                        <a class="tutor-nav-link" data-tutor-nav-target="" style="cursor: default; padding-right: 8px;">
     56                            <?php esc_html_e( 'Upload File', 'tutor-lms-migration-tool' ); ?>
     57                        </a>
     58                        <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;">
     59                            <?php esc_html_e( 'Coming soon', 'tutor-lms-migration-tool' ); ?>
     60                        </span>
    3361                        </div>
    3462                    </li>
    3563                    <li class="tutor-nav-item tutor-nav-more tutor-d-none">
    3664                        <a class="tutor-nav-link tutor-nav-more-item" href="#">
    37                             <span class="tutor-mr-4">More</span>
     65                            <span class="tutor-mr-4"><?php esc_html_e( 'More', 'tutor-lms-migration-tool' ); ?></span>
    3866                            <span class="tutor-nav-more-icon tutor-icon-times"></span>
    3967                        </a>
     
    4674                <div id="tutor-auto-migrate-tab" class="tutor-tab-item is-active">
    4775                    <div class="tutor-tab-item-wrap tutor-pt-32 tutor-pb-40 tutor-p-48">
    48                         <form id="tlmt-lp-migrate-to-tutor-lms">
     76                        <form id="tlmt-lp-migrate-to-tutor-lms" action="ld_migrate_all_data_to_tutor" method="post">
     77                            <?php tutor_nonce_field(); ?>
    4978                            <div class="lp-migration-checkbox">
    5079                                <div id="sectionCourse">
    51                                     <label>
     80                                    <label for="courses">
    5281                                        <div class="lp-migration-singlebox">
    5382                                            <div class="lp-migration-singlebox-checkbox">
     
    5887                                                <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">Courses</div>
    5988                                                <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16">
    60                                                     Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.
     89                                                    <?php esc_html_e( 'Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.', 'tutor-lms-migration-tool' ); ?>
    6190                                                </div>
    6291                                                <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div>
     
    6695                                </div>
    6796                                <div id="sectionOrders" class="tutor-py-16">
    68                                     <label>
     97                                    <label for="sales-data">
    6998                                        <div class="lp-migration-singlebox">
    7099                                            <div class="lp-migration-singlebox-checkbox">
     
    73102                                            <div class="lp-migration-singlebox-desc">
    74103                                                <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">
    75                                                     Sales Data
     104                                                    <?php esc_html_e( 'Sales Data', 'tutor-lms-migration-tool' ); ?>
    76105                                                </div>
    77106                                                <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16">
    78                                                     Migrate revenue and sales data to Tutor LMS.
     107                                                    <?php esc_html_e( 'Migrate revenue and sales data to Tutor LMS.', 'tutor-lms-migration-tool' ); ?>
    79108                                                </div>
    80109                                                <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div>
     
    84113                                </div>
    85114                                <div id="sectionReviews" class="tutor-py-16">
    86                                     <label>
     115                                    <label for="reviews">
    87116                                        <div class="lp-migration-singlebox">
    88117                                            <div class="lp-migration-singlebox-checkbox">
     
    91120                                            <div class="lp-migration-singlebox-desc">
    92121                                                <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">
    93                                                     Reviews
     122                                                    <?php esc_html_e( 'Reviews', 'tutor-lms-migration-tool' ); ?>
    94123                                                </div>
    95124                                                <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16">
    96                                                     All of the course reviews will be carried over to Tutor LMS.
     125                                                    <?php esc_html_e( 'All of the course reviews will be carried over to Tutor LMS.', 'tutor-lms-migration-tool' ); ?>
    97126                                                </div>
    98127                                                <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div>
     
    106135                    </div>
    107136                    <div class="tutor-backup-area tutor-px-48 tutor-py-36 tutor-border-top">
    108                         <button class="tutor-btn tutor-btn-primary tutor-btn-lg">Migrate Now</button>
    109                     </div>
    110                 </div>
    111 
     137                        <?php require __DIR__ . '/components/migrate-now.php'; ?>
     138                    </div>
     139                </div>
    112140                <div id="tutor-manual-migrate-tab" class="tutor-tab-item">
    113141                    <div class="tutor-tab-item-wrap tutor-p-48">
     
    116144                                <span class="tutor-fs-3 tutor-fw-medium tutor-color-primary tutor-icon-import"></span>
    117145                            </div>
    118                             <form id="tutor-manual-migrate-form">
    119                                 <input type="file" id="tutor-migration-browse-file" hidden accept=".xml" required>
    120                                 <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium">
    121                                     <div class="tutor-color-black">Drag & Drop XML file here</div>
    122                                     or <a href="#" class="tutor-color-primary">Browse File</a>
    123                                 </div>
     146                            <form id="tutor-manual-migrate-form" method="post" enctype="multipart/form-data">
     147                                <?php tutor_nonce_field(); ?>
     148                                <input type="hidden" name="tutor_action" value="tutor_import_from_ld">
     149                                <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium">
     150                                    <div class="tutor-color-black"> <?php esc_html_e( 'Drag & Drop XML file here', 'tutor-lms-migration-tool' ); ?> </div>
     151                                    or <a href="" class="tutor-color-primary"> <?php esc_html_e( 'Browse File', 'tutor-lms-migration-tool' ); ?> </a>
     152                                </div>
     153                                <input id="tutor-migration-browse-file" name="tutor_import_file" hidden type="file" accept=".xml" required>
    124154                                <span class="file-info tutor-fw-medium backup-now-subtile tutor-fs-6"></span>
    125155                            </form>
     
    130160                        <div class="tutor-row tutor-align-center">
    131161                            <div class="tutor-col-md-8 tutor-d-flex tutor-flex-wrap">
    132                                 <span class="backup-now-subtile tutor-fs-7">Please take a complete backup for safety.</span>
    133                                 <button type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black">
    134                                     Backup Now
    135                                 </button>
     162                                <sapn class="backup-now-subtile tutor-fs-7"><?php esc_html_e( 'Please take a complete a backup for safety.', 'tutor-lms-migration-tool' ); ?></sapn>
     163                                <form id="tutor_migration_export_form" method="post">
     164                                    <?php tutor_nonce_field(); ?>
     165                                    <input type="hidden" id="tutor_migration_vendor" name="tutor_migration_vendor" value="ld">
     166                                    <input type="hidden" name="tutor_action" value="tutor_ld_export_xml">
     167                                    <button <?php echo ! $items_count ? 'disabled' : ''; ?> type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black">
     168                                        <?php esc_html_e( 'Backup Now', 'tutor-lms-migration-tool' ); ?>
     169                                    </button>
     170                                </form>
    136171                            </div>
    137172                            <div class="migrate-now-btn-wrapper tutor-col-md-4 tutor-d-flex tutor-justify-end">
    138173                                <button type="submit" id="manual-migrate-now-btn" class="tutor-btn tutor-btn-primary tutor-btn-lg" disabled>
    139                                     Migrate Now
     174                                    <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?>
    140175                                </button>
    141176                            </div>
     
    144179                </div>
    145180            </div>
     181            <!-- ./ tutor migration tab -->
    146182        </div>
    147183
    148184        <!-- migration history area -->
     185        <?php if ( count( $tutor_migration_history ) ) : ?>
    149186        <div class="tutor-migration-history">
    150187            <div class="tutor-migration-history-heading tutor-fs-5 tutor-color-subdued tutor-mt-24 tutor-mb-16">
    151                 Settings History
     188                <?php esc_html_e( 'Settings History', 'tutor-lms-migration-tool' ); ?>
    152189            </div>
    153190            <div class="tutor-table-responsive">
     
    155192                    <thead>
    156193                        <tr>
    157                             <th style="padding-left: 38px;">Date</th>
    158                             <th></th>
     194                            <th class="tutor-table-rows-sorting" style="padding-left: 38px;">
     195                                <?php esc_html_e( 'Date', 'tutor-lms-migration-tool' ); ?>
     196                            </th>
     197                            <th class="tutor-table-rows-sorting">
     198                            </th>
    159199                        </tr>
    160200                    </thead>
    161201                    <tbody>
     202                        <?php foreach ( $tutor_migration_history as $tutor_history ) : ?>
    162203                        <tr>
    163204                            <td>
    164205                                <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal">
    165                                     Sept 12, 2025, 03:15 PM
     206                                    <?php
     207                                        echo esc_html( tutor_get_formated_date( get_option( 'date_format' ), $tutor_history->created_at ) );
     208                                        echo ', ' . date( 'h:i A', strtotime( $tutor_history->created_at ) );
     209                                    ?>
     210                                     
    166211                                </div>
    167212                            </td>
    168213                            <td>
     214                                <?php
     215                                    $migration_type_class = '';
     216                                if ( $tutor_history->migration_type == 'Imported' ) {
     217                                    $migration_type_class = 'success';
     218                                } elseif ( $tutor_history->migration_type == 'Exported' ) {
     219                                    $migration_type_class = 'warning';
     220                                }
     221                                ?>
    169222                                <div class="tutor-d-flex tutor-justify-end tutor-pr-32">
    170                                     <span class="tutor-badge-label label-success">Imported</span>
     223                                    <span class="tutor-badge-label label-<?php echo esc_attr( $migration_type_class ); ?>">
     224                                        <?php echo esc_html( $tutor_history->migration_type ); ?>
     225                                    </span>
    171226                                </div>
    172227                            </td>
    173228                        </tr>
    174                         <tr>
    175                             <td>
    176                                 <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal">
    177                                     Sept 10, 2025, 11:45 AM
    178                                 </div>
    179                             </td>
    180                             <td>
    181                                 <div class="tutor-d-flex tutor-justify-end tutor-pr-32">
    182                                     <span class="tutor-badge-label label-warning">Exported</span>
    183                                 </div>
    184                             </td>
    185                         </tr>
     229                        <?php endforeach; ?>
    186230                    </tbody>
    187231                </table>
    188232            </div>
    189233        </div>
     234        <?php endif; ?>
     235        <!-- ./ tutor-migration-history -->
    190236    </div>
    191237</div>
    192238
    193 <!-- Modal: Confirmation -->
    194239<div class="lp-migration-modal-wrap">
    195240    <div class="lp-migration-modal">
    196241        <div class="lp-migration-alert lp-import flex-center tutor-flex-column tutor-py-60 tutor-text-center">
    197242            <div class="lp-migration-modal-icon">
    198                 <img src="assets/img/yes_no.svg" alt="export">
     243                <img src="<?php echo esc_url( TLMT_URL . 'assets/img/yes_no.svg' ); ?>" alt="export">
    199244            </div>
    200245            <div class="migration-modal-btn-group flex-center tutor-flex-column">
    201246                <div class="tutor-fs-5 tutor-fw-normal tutor-color-black tutor-mb-32 tutor-mt-16">
    202                     Are you sure you want to migrate from <br> LearnDash to Tutor LMS?
     247                    <?php esc_html_e( 'Are you sure you want to migrate from', 'tutor-lms-migration-tool' ); ?>
     248                    <br>
     249                    <?php esc_html_e( 'LearnDash to Tutor LMS?', 'tutor-lms-migration-tool' ); ?>
    203250                </div>
    204251                <div class="tutor-d-flex">
    205252                    <a href="#" class="migration-later-btn tutor-btn tutor-btn-outline-primary tutor-btn-lg tutor-mr-24">
    206                         <span>No, Maybe Later!</span>
     253                        <span> <?php esc_html_e( 'No, Maybe Later!', 'tutor-lms-migration-tool' ); ?></span>
    207254                    </a>
    208255                    <a href="#" class="migration-start-btn tutor-btn tutor-btn-primary tutor-btn-lg">
    209                         Yes, Let’s Start
     256                        <?php
     257                            esc_html_e( 'Yes, Let’s Start', 'tutor-lms-migration-tool' );
     258                        ?>
    210259                    </a>
    211260                </div>
     
    219268</div>
    220269
    221 <!-- Modal: Success -->
     270
    222271<div class="lp-success-modal-wrap">
    223272    <div class="lp-success-modal">
     
    233282                <span class="modal-close-line success-close-line-two"></span>
    234283            </div>
    235             <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28">
    236                 Migration Successful!
    237             </div>
    238             <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12">
    239                 Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.
    240             </div>
    241             <a href="#" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
    242                 Go to courses
     284            <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 
     285                <?php esc_html_e( 'Migration Successful!', 'tutor-lms-migration-tool' ); ?>
     286            </div>
     287            <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 
     288                <?php esc_html_e( 'Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.', 'tutor-lms-migration-tool' ); ?>
     289            </div>
     290            <a href="<?php echo esc_url( admin_url() ); ?>admin.php?page=tutor" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
     291                <?php esc_html_e( 'Go to courses', 'tutor-lms-migration-tool' ); ?>
    243292            </a>
    244293        </div>
     
    246295</div>
    247296
    248 <!-- Modal: Error -->
    249297<div class="lp-error-modal-wrap">
    250298    <div class="lp-error-modal">
    251299        <div class="lp-modal-alert tutor-p-40">
    252             <img class="tutor-mt-12" style="width: 80px; height: 80px;" src="assets/img/error-modal-icon.jpg" alt="error-midal-alert-icon">
     300            <img class="tutor-mt-12" style="width: 80px; height: 80px;" src="<?php echo esc_url( TLMT_URL . 'assets/img/error-modal-icon.jpg' ); ?>" alt="error-midal-alert-icon">
    253301            <div class="modal-close success-modal-close">
    254302                <span class="modal-close-line success-close-line-one"></span>
    255303                <span class="modal-close-line success-close-line-two"></span>
    256304            </div>
    257             <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28">
    258                 Migration Failed!
    259             </div>
    260             <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12">
    261                 Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.
    262             </div>
    263             <a href="#" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
    264                 Try Again
     305            <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 
     306                <?php esc_html_e( 'Migration Failed!', 'tutor-lms-migration-tool' ); ?>
     307            </div>
     308            <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 
     309                <?php esc_html_e( 'Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.', 'tutor-lms-migration-tool' ); ?>
     310            </div>
     311            <a href="" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
     312                <?php esc_html_e( 'Try Again', 'tutor-lms-migration-tool' ); ?>
    265313            </a>
    266314        </div>
  • tutor-lms-migration-tool/tags/2.4.1/views/migration_wc.php

    r3378798 r3393560  
    2020
    2121?>
    22 <div class="tutor-migration-page">
     22<div class="tutor-migration-page-wc">
    2323
    2424    <div id="tutor-migration-wrapper">
     
    185185                            </div>
    186186                            <div class="migrate-now-btn-wrapper tutor-col-md-3 tutor-d-flex tutor-justify-end">
    187                                 <span id="total_items_migrate_counts" class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span>
     187                                <span id="total_items_migrate_counts_wc" class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span>
    188188
    189189                                <!-- get active tab using php -->
    190                                 <button type="submit" class="migrate-now-btn tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>>
     190                                <button type="submit" class="migrate-now-btn-wc tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>>
    191191                                    <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?>
    192192                                </button>
     
    268268                        </span>
    269269                    </a>
    270                     <a href="#" class="migration-start-btn tutor-btn tutor-btn-primary tutor-btn-lg">
     270                    <a href="#" id="migration-start-btn-wc" class="migration-start-btn-wc tutor-btn tutor-btn-primary tutor-btn-lg">
    271271                        <?php esc_html_e( "Yes, Let's Start", 'tutor-lms-migration-tool' ); ?>
    272272                    </a>
  • tutor-lms-migration-tool/trunk/assets/js/admin.js

    r3378798 r3393560  
    234234    $(migrateStartBtn).on('click', function (event) {
    235235        event.preventDefault();
    236         $('#wc-sales-data-migration-form').submit();
    237236        if (totalItemsMigrateCounts > 0) {
    238237            migrationModal.removeClass('active');
     
    387386        },
    388387        SELECTORS: {
    389             migrationPage: '.tutor-migration-page',
    390             migrateBtn: '.migrate-now-btn',
     388            migrationPage: '.tutor-migration-page-wc',
     389            migrateBtn: '.migrate-now-btn-wc',
     390            migrationStartBtn: '#migration-start-btn-wc',
    391391            navLink: '.tutor-nav-link',
    392392            activeNavLink: '.tutor-nav-link.is-active',
     
    422422    const $wooCheckboxes = $wooMigrationPage.find(`#${WOO_CONFIG.TABS.CUSTOM} input[type="checkbox"]`);
    423423
     424    $wooMigrateBtn.on('click', function (event) {
     425        event.preventDefault();
     426
     427        migrationModal.addClass('active');
     428    });
     429
     430    $(WOO_CONFIG.SELECTORS.migrationStartBtn).on('click', function (event) {
     431        event.preventDefault();
     432
     433        migrationModal.removeClass('active');
     434        $(WOO_CONFIG.SELECTORS.form).submit();
     435    });
     436
     437
     438
    424439    // Store original checkbox state
    425440    let wooOriginalCheckboxes = [];
  • tutor-lms-migration-tool/trunk/classes/Utils.php

    r3378798 r3393560  
    7676     */
    7777    public static function check_course_access() {
    78         if ( current_user_can( 'manage_options' ) || ! current_user_can( 'publish_tutor_courses' ) ) {
     78        if ( ! current_user_can( 'manage_options' ) && ! current_user_can( 'publish_tutor_courses' ) ) {
    7979            wp_send_json(
    8080                array(
  • tutor-lms-migration-tool/trunk/readme.txt

    r3378798 r3393560  
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 2.4.0
     8Stable tag: 2.4.1
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    135135
    136136== Changelog ==
     137
     138= 2.4.1 - 11 November, 2025 =
     139
     140Fix: LearnDash to Tutor migration fails due to permission issue.
    137141
    138142= 2.4.0 - 15 October, 2025 =
  • tutor-lms-migration-tool/trunk/tutor-lms-migration-tool.php

    r3378798 r3393560  
    55 * Description: A migration toolkit that allows you to migrate data from other LMS platforms to Tutor LMS.
    66 * Author: Themeum
    7  * Version: 2.4.0
     7 * Version: 2.4.1
    88 * Author URI: http://themeum.com
    99 * Requires at least: 5.3
     
    3131 */
    3232
    33 define( 'TLMT_VERSION', '2.4.0' );
     33define( 'TLMT_VERSION', '2.4.1' );
    3434define( 'TLMT_FILE', __FILE__ );
    3535define( 'TLMT_PATH', plugin_dir_path( TLMT_FILE ) );
  • tutor-lms-migration-tool/trunk/vendor/composer/installed.php

    r3378798 r3393560  
    22    'root' => array(
    33        'name' => 'themeum/tutor-lms-migration-tool',
    4         'pretty_version' => '2.4.0',
    5         'version' => '2.4.0.0',
    6         'reference' => 'e847c98a59425cbe1a0161a5e5b13c7086f4c85b',
     4        'pretty_version' => '2.4.1',
     5        'version' => '2.4.1.0',
     6        'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e',
    77        'type' => 'library',
    88        'install_path' => __DIR__ . '/../../',
     
    1212    'versions' => array(
    1313        'themeum/tutor-lms-migration-tool' => array(
    14             'pretty_version' => '2.4.0',
    15             'version' => '2.4.0.0',
    16             'reference' => 'e847c98a59425cbe1a0161a5e5b13c7086f4c85b',
     14            'pretty_version' => '2.4.1',
     15            'version' => '2.4.1.0',
     16            'reference' => 'a59d9b8265f7b7efe342f5412061abb20540b17e',
    1717            'type' => 'library',
    1818            'install_path' => __DIR__ . '/../../',
  • tutor-lms-migration-tool/trunk/views/migration_ld.php

    r3378798 r3393560  
     1<?php
     2/**
     3 * Migration page
     4 *
     5 * @package TutorLMSMigrationTool\Views
     6 * @author Themeum <[email protected]>
     7 * @link https://themeum.com
     8 * @since 2.3.0
     9 */
     10
     11if ( ! defined( 'ABSPATH' ) ) {
     12    exit;
     13}
     14?>
    115<div class="tutor-migration-page">
     16    <?php
     17    global $wpdb;
     18
     19    $utils = new Utils();
     20
     21    $tutor_migration_history = $utils->fetch_history( 'ld' );
     22
     23    $courses_count = $utils->ld_course_count();
     24
     25    $orders_count = $utils->ld_orders_count();
     26
     27    $items_count = $courses_count + $orders_count;
     28    ?>
     29   
    230    <div id="tutor-migration-wrapper">
    331        <div class="tutor-migration-area">
    432            <div class="tutor-migration-top tutor-px-48 tutor-pt-32 tutor-pb-40">
    5                 <div class="">
     33                <div class=""> 
    634                    <div class="tutor-fs-3 tutor-fw-medium tutor-color-black tutor-course-content-title">
    7                         Migration
     35                        <?php esc_html_e( 'Migration', 'tutor-lms-migration-tool' ); ?>
    836                    </div>
    937                    <div class="tutor-migration-top-subtitle tutor-fs-6">
    10                         Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.
     38                        <?php esc_html_e( 'Seamlessly migrate your Learndash courses to Tutor LMS with the Tutor LMS Migration Tool.', 'tutor-lms-migration-tool' ); ?>
    1139                    </div>
    1240                </div>
    1341                <div class="tutor-d-flex tutor-justify-end tutor-align-center">
    14                     <img src="assets/img/learndash.jpg" alt="import">
     42                    <img style src="<?php echo esc_url( TLMT_URL . 'assets/img/learndash.jpg' ); ?>" alt="import">
    1543                </div>
    1644            </div>
     
    2048                    <li class="tutor-nav-item">
    2149                        <a class="tutor-nav-link is-active" href="#" data-tutor-nav-target="tutor-auto-migrate-tab">
    22                             Auto Migrate
     50                            <?php esc_html_e( 'Auto Migrate', 'tutor-lms-migration-tool' ); ?>
    2351                        </a>
    2452                    </li>
    2553                    <li class="tutor-nav-item">
    2654                        <div class="tutor-d-flex tutor-align-center">
    27                             <a class="tutor-nav-link" style="cursor: default; padding-right: 8px;">
    28                                 Upload File
    29                             </a>
    30                             <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;">
    31                                 Coming soon
    32                             </span>
     55                        <a class="tutor-nav-link" data-tutor-nav-target="" style="cursor: default; padding-right: 8px;">
     56                            <?php esc_html_e( 'Upload File', 'tutor-lms-migration-tool' ); ?>
     57                        </a>
     58                        <span class="tutor-rounded-pill tutor-border tutor-px-8" style="border-radius: 10px;">
     59                            <?php esc_html_e( 'Coming soon', 'tutor-lms-migration-tool' ); ?>
     60                        </span>
    3361                        </div>
    3462                    </li>
    3563                    <li class="tutor-nav-item tutor-nav-more tutor-d-none">
    3664                        <a class="tutor-nav-link tutor-nav-more-item" href="#">
    37                             <span class="tutor-mr-4">More</span>
     65                            <span class="tutor-mr-4"><?php esc_html_e( 'More', 'tutor-lms-migration-tool' ); ?></span>
    3866                            <span class="tutor-nav-more-icon tutor-icon-times"></span>
    3967                        </a>
     
    4674                <div id="tutor-auto-migrate-tab" class="tutor-tab-item is-active">
    4775                    <div class="tutor-tab-item-wrap tutor-pt-32 tutor-pb-40 tutor-p-48">
    48                         <form id="tlmt-lp-migrate-to-tutor-lms">
     76                        <form id="tlmt-lp-migrate-to-tutor-lms" action="ld_migrate_all_data_to_tutor" method="post">
     77                            <?php tutor_nonce_field(); ?>
    4978                            <div class="lp-migration-checkbox">
    5079                                <div id="sectionCourse">
    51                                     <label>
     80                                    <label for="courses">
    5281                                        <div class="lp-migration-singlebox">
    5382                                            <div class="lp-migration-singlebox-checkbox">
     
    5887                                                <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">Courses</div>
    5988                                                <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16">
    60                                                     Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.
     89                                                    <?php esc_html_e( 'Transfer courses, lessons, quizzes, assignments, etc to Tutor LMS.', 'tutor-lms-migration-tool' ); ?>
    6190                                                </div>
    6291                                                <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div>
     
    6695                                </div>
    6796                                <div id="sectionOrders" class="tutor-py-16">
    68                                     <label>
     97                                    <label for="sales-data">
    6998                                        <div class="lp-migration-singlebox">
    7099                                            <div class="lp-migration-singlebox-checkbox">
     
    73102                                            <div class="lp-migration-singlebox-desc">
    74103                                                <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">
    75                                                     Sales Data
     104                                                    <?php esc_html_e( 'Sales Data', 'tutor-lms-migration-tool' ); ?>
    76105                                                </div>
    77106                                                <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16">
    78                                                     Migrate revenue and sales data to Tutor LMS.
     107                                                    <?php esc_html_e( 'Migrate revenue and sales data to Tutor LMS.', 'tutor-lms-migration-tool' ); ?>
    79108                                                </div>
    80109                                                <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div>
     
    84113                                </div>
    85114                                <div id="sectionReviews" class="tutor-py-16">
    86                                     <label>
     115                                    <label for="reviews">
    87116                                        <div class="lp-migration-singlebox">
    88117                                            <div class="lp-migration-singlebox-checkbox">
     
    91120                                            <div class="lp-migration-singlebox-desc">
    92121                                                <div class="tutor-fs-6 tutor-fw-medium tutor-color-black tutor-mb-4 tutor-course-content-title">
    93                                                     Reviews
     122                                                    <?php esc_html_e( 'Reviews', 'tutor-lms-migration-tool' ); ?>
    94123                                                </div>
    95124                                                <div class="tutor-color-muted tutor-fs-6 tutor-fw-normal tutor-pb-16">
    96                                                     All of the course reviews will be carried over to Tutor LMS.
     125                                                    <?php esc_html_e( 'All of the course reviews will be carried over to Tutor LMS.', 'tutor-lms-migration-tool' ); ?>
    97126                                                </div>
    98127                                                <div class="tutor-progress tutor-mb-8" data-percent="0" style="--tutor-progress: 0%;"></div>
     
    106135                    </div>
    107136                    <div class="tutor-backup-area tutor-px-48 tutor-py-36 tutor-border-top">
    108                         <button class="tutor-btn tutor-btn-primary tutor-btn-lg">Migrate Now</button>
    109                     </div>
    110                 </div>
    111 
     137                        <?php require __DIR__ . '/components/migrate-now.php'; ?>
     138                    </div>
     139                </div>
    112140                <div id="tutor-manual-migrate-tab" class="tutor-tab-item">
    113141                    <div class="tutor-tab-item-wrap tutor-p-48">
     
    116144                                <span class="tutor-fs-3 tutor-fw-medium tutor-color-primary tutor-icon-import"></span>
    117145                            </div>
    118                             <form id="tutor-manual-migrate-form">
    119                                 <input type="file" id="tutor-migration-browse-file" hidden accept=".xml" required>
    120                                 <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium">
    121                                     <div class="tutor-color-black">Drag & Drop XML file here</div>
    122                                     or <a href="#" class="tutor-color-primary">Browse File</a>
    123                                 </div>
     146                            <form id="tutor-manual-migrate-form" method="post" enctype="multipart/form-data">
     147                                <?php tutor_nonce_field(); ?>
     148                                <input type="hidden" name="tutor_action" value="tutor_import_from_ld">
     149                                <div id="tutor-migration-browse-file-link" class="tutor-fs-5 tutor-fw-medium">
     150                                    <div class="tutor-color-black"> <?php esc_html_e( 'Drag & Drop XML file here', 'tutor-lms-migration-tool' ); ?> </div>
     151                                    or <a href="" class="tutor-color-primary"> <?php esc_html_e( 'Browse File', 'tutor-lms-migration-tool' ); ?> </a>
     152                                </div>
     153                                <input id="tutor-migration-browse-file" name="tutor_import_file" hidden type="file" accept=".xml" required>
    124154                                <span class="file-info tutor-fw-medium backup-now-subtile tutor-fs-6"></span>
    125155                            </form>
     
    130160                        <div class="tutor-row tutor-align-center">
    131161                            <div class="tutor-col-md-8 tutor-d-flex tutor-flex-wrap">
    132                                 <span class="backup-now-subtile tutor-fs-7">Please take a complete backup for safety.</span>
    133                                 <button type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black">
    134                                     Backup Now
    135                                 </button>
     162                                <sapn class="backup-now-subtile tutor-fs-7"><?php esc_html_e( 'Please take a complete a backup for safety.', 'tutor-lms-migration-tool' ); ?></sapn>
     163                                <form id="tutor_migration_export_form" method="post">
     164                                    <?php tutor_nonce_field(); ?>
     165                                    <input type="hidden" id="tutor_migration_vendor" name="tutor_migration_vendor" value="ld">
     166                                    <input type="hidden" name="tutor_action" value="tutor_ld_export_xml">
     167                                    <button <?php echo ! $items_count ? 'disabled' : ''; ?> type="submit" class="backup-now-btn tutor-fs-7 tutor-fw-medium tutor-color-black">
     168                                        <?php esc_html_e( 'Backup Now', 'tutor-lms-migration-tool' ); ?>
     169                                    </button>
     170                                </form>
    136171                            </div>
    137172                            <div class="migrate-now-btn-wrapper tutor-col-md-4 tutor-d-flex tutor-justify-end">
    138173                                <button type="submit" id="manual-migrate-now-btn" class="tutor-btn tutor-btn-primary tutor-btn-lg" disabled>
    139                                     Migrate Now
     174                                    <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?>
    140175                                </button>
    141176                            </div>
     
    144179                </div>
    145180            </div>
     181            <!-- ./ tutor migration tab -->
    146182        </div>
    147183
    148184        <!-- migration history area -->
     185        <?php if ( count( $tutor_migration_history ) ) : ?>
    149186        <div class="tutor-migration-history">
    150187            <div class="tutor-migration-history-heading tutor-fs-5 tutor-color-subdued tutor-mt-24 tutor-mb-16">
    151                 Settings History
     188                <?php esc_html_e( 'Settings History', 'tutor-lms-migration-tool' ); ?>
    152189            </div>
    153190            <div class="tutor-table-responsive">
     
    155192                    <thead>
    156193                        <tr>
    157                             <th style="padding-left: 38px;">Date</th>
    158                             <th></th>
     194                            <th class="tutor-table-rows-sorting" style="padding-left: 38px;">
     195                                <?php esc_html_e( 'Date', 'tutor-lms-migration-tool' ); ?>
     196                            </th>
     197                            <th class="tutor-table-rows-sorting">
     198                            </th>
    159199                        </tr>
    160200                    </thead>
    161201                    <tbody>
     202                        <?php foreach ( $tutor_migration_history as $tutor_history ) : ?>
    162203                        <tr>
    163204                            <td>
    164205                                <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal">
    165                                     Sept 12, 2025, 03:15 PM
     206                                    <?php
     207                                        echo esc_html( tutor_get_formated_date( get_option( 'date_format' ), $tutor_history->created_at ) );
     208                                        echo ', ' . date( 'h:i A', strtotime( $tutor_history->created_at ) );
     209                                    ?>
     210                                     
    166211                                </div>
    167212                            </td>
    168213                            <td>
     214                                <?php
     215                                    $migration_type_class = '';
     216                                if ( $tutor_history->migration_type == 'Imported' ) {
     217                                    $migration_type_class = 'success';
     218                                } elseif ( $tutor_history->migration_type == 'Exported' ) {
     219                                    $migration_type_class = 'warning';
     220                                }
     221                                ?>
    169222                                <div class="tutor-d-flex tutor-justify-end tutor-pr-32">
    170                                     <span class="tutor-badge-label label-success">Imported</span>
     223                                    <span class="tutor-badge-label label-<?php echo esc_attr( $migration_type_class ); ?>">
     224                                        <?php echo esc_html( $tutor_history->migration_type ); ?>
     225                                    </span>
    171226                                </div>
    172227                            </td>
    173228                        </tr>
    174                         <tr>
    175                             <td>
    176                                 <div class="tutor-migration-history-time tutor-fs-6 tutor-pl-24 tutor-fw-normal">
    177                                     Sept 10, 2025, 11:45 AM
    178                                 </div>
    179                             </td>
    180                             <td>
    181                                 <div class="tutor-d-flex tutor-justify-end tutor-pr-32">
    182                                     <span class="tutor-badge-label label-warning">Exported</span>
    183                                 </div>
    184                             </td>
    185                         </tr>
     229                        <?php endforeach; ?>
    186230                    </tbody>
    187231                </table>
    188232            </div>
    189233        </div>
     234        <?php endif; ?>
     235        <!-- ./ tutor-migration-history -->
    190236    </div>
    191237</div>
    192238
    193 <!-- Modal: Confirmation -->
    194239<div class="lp-migration-modal-wrap">
    195240    <div class="lp-migration-modal">
    196241        <div class="lp-migration-alert lp-import flex-center tutor-flex-column tutor-py-60 tutor-text-center">
    197242            <div class="lp-migration-modal-icon">
    198                 <img src="assets/img/yes_no.svg" alt="export">
     243                <img src="<?php echo esc_url( TLMT_URL . 'assets/img/yes_no.svg' ); ?>" alt="export">
    199244            </div>
    200245            <div class="migration-modal-btn-group flex-center tutor-flex-column">
    201246                <div class="tutor-fs-5 tutor-fw-normal tutor-color-black tutor-mb-32 tutor-mt-16">
    202                     Are you sure you want to migrate from <br> LearnDash to Tutor LMS?
     247                    <?php esc_html_e( 'Are you sure you want to migrate from', 'tutor-lms-migration-tool' ); ?>
     248                    <br>
     249                    <?php esc_html_e( 'LearnDash to Tutor LMS?', 'tutor-lms-migration-tool' ); ?>
    203250                </div>
    204251                <div class="tutor-d-flex">
    205252                    <a href="#" class="migration-later-btn tutor-btn tutor-btn-outline-primary tutor-btn-lg tutor-mr-24">
    206                         <span>No, Maybe Later!</span>
     253                        <span> <?php esc_html_e( 'No, Maybe Later!', 'tutor-lms-migration-tool' ); ?></span>
    207254                    </a>
    208255                    <a href="#" class="migration-start-btn tutor-btn tutor-btn-primary tutor-btn-lg">
    209                         Yes, Let’s Start
     256                        <?php
     257                            esc_html_e( 'Yes, Let’s Start', 'tutor-lms-migration-tool' );
     258                        ?>
    210259                    </a>
    211260                </div>
     
    219268</div>
    220269
    221 <!-- Modal: Success -->
     270
    222271<div class="lp-success-modal-wrap">
    223272    <div class="lp-success-modal">
     
    233282                <span class="modal-close-line success-close-line-two"></span>
    234283            </div>
    235             <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28">
    236                 Migration Successful!
    237             </div>
    238             <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12">
    239                 Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.
    240             </div>
    241             <a href="#" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
    242                 Go to courses
     284            <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 
     285                <?php esc_html_e( 'Migration Successful!', 'tutor-lms-migration-tool' ); ?>
     286            </div>
     287            <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 
     288                <?php esc_html_e( 'Migration from LearnDash to Tutor LMS has been completed. Please check your contents and ensure everything is working as expected.', 'tutor-lms-migration-tool' ); ?>
     289            </div>
     290            <a href="<?php echo esc_url( admin_url() ); ?>admin.php?page=tutor" class="migration-try-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
     291                <?php esc_html_e( 'Go to courses', 'tutor-lms-migration-tool' ); ?>
    243292            </a>
    244293        </div>
     
    246295</div>
    247296
    248 <!-- Modal: Error -->
    249297<div class="lp-error-modal-wrap">
    250298    <div class="lp-error-modal">
    251299        <div class="lp-modal-alert tutor-p-40">
    252             <img class="tutor-mt-12" style="width: 80px; height: 80px;" src="assets/img/error-modal-icon.jpg" alt="error-midal-alert-icon">
     300            <img class="tutor-mt-12" style="width: 80px; height: 80px;" src="<?php echo esc_url( TLMT_URL . 'assets/img/error-modal-icon.jpg' ); ?>" alt="error-midal-alert-icon">
    253301            <div class="modal-close success-modal-close">
    254302                <span class="modal-close-line success-close-line-one"></span>
    255303                <span class="modal-close-line success-close-line-two"></span>
    256304            </div>
    257             <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28">
    258                 Migration Failed!
    259             </div>
    260             <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12">
    261                 Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.
    262             </div>
    263             <a href="#" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
    264                 Try Again
     305            <div class="tutor-fs-3 tutor-fw-normal tutor-color-black tutor-mt-28"> 
     306                <?php esc_html_e( 'Migration Failed!', 'tutor-lms-migration-tool' ); ?>
     307            </div>
     308            <div class="tutor-fs-6 tutor-fw-normal tutor-color-black tutor-mt-16 tutor-px-12"> 
     309                <?php esc_html_e( 'Oops... The migration from LearnDash to Tutor LMS was unsuccessful. Please review everything and try again.', 'tutor-lms-migration-tool' ); ?>
     310            </div>
     311            <a href="" class="migration-try-again-btn migration-done-btn tutor-btn tutor-btn-primary tutor-btn-lg tutor-mt-44 tutor-mb-20">
     312                <?php esc_html_e( 'Try Again', 'tutor-lms-migration-tool' ); ?>
    265313            </a>
    266314        </div>
  • tutor-lms-migration-tool/trunk/views/migration_wc.php

    r3378798 r3393560  
    2020
    2121?>
    22 <div class="tutor-migration-page">
     22<div class="tutor-migration-page-wc">
    2323
    2424    <div id="tutor-migration-wrapper">
     
    185185                            </div>
    186186                            <div class="migrate-now-btn-wrapper tutor-col-md-3 tutor-d-flex tutor-justify-end">
    187                                 <span id="total_items_migrate_counts" class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span>
     187                                <span id="total_items_migrate_counts_wc" class="tutor-d-none" data-count="<?php echo esc_attr( $items_count ); ?>"> </span>
    188188
    189189                                <!-- get active tab using php -->
    190                                 <button type="submit" class="migrate-now-btn tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>>
     190                                <button type="submit" class="migrate-now-btn-wc tutor-btn tutor-btn-primary" <?php echo esc_attr( $items_count <= 0 ? 'disabled' : '' ); ?>>
    191191                                    <?php esc_html_e( 'Migrate Now', 'tutor-lms-migration-tool' ); ?>
    192192                                </button>
     
    268268                        </span>
    269269                    </a>
    270                     <a href="#" class="migration-start-btn tutor-btn tutor-btn-primary tutor-btn-lg">
     270                    <a href="#" id="migration-start-btn-wc" class="migration-start-btn-wc tutor-btn tutor-btn-primary tutor-btn-lg">
    271271                        <?php esc_html_e( "Yes, Let's Start", 'tutor-lms-migration-tool' ); ?>
    272272                    </a>
Note: See TracChangeset for help on using the changeset viewer.