• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Tijarah - Digital Marketplace WooCommerce Theme

Tijarah - Digital Marketplace WooCommerce Theme v1.3.9

No permission to download
Replace the complete code with the given code. Hope it will work.
@NullMaster Please take a look at this code.
Path
Code:
wp-content/themes/tijarah/inc/activate-license.php

Code:
<?php

// Create a Menu for Activate License
function tijarah_admin_menu() {
    if (is_admin()) {
        add_menu_page( __( 'Activate License', 'tijarah' ),  __( 'Activate License', 'tijarah' ), 'manage_options', 'activate-license','tijarah_activate_license_page_content', 'dashicons-admin-network', 10 );
    }
}
add_action('admin_menu','tijarah_admin_menu' );

// Settings Page for Activate License ( callback function )
function tijarah_activate_license_page_content() { ?>
    <div class="wrap">               
        <h1><?php echo esc_html__( 'Activate License', 'tijarah' ) ?></h1>

        <div class="update-nag">
            <?php echo esc_html__('Please visit the', 'tijarah' ); ?>
            <a target="_blank" href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-"><?php echo esc_html__('Where Is My Purchase Code?', 'tijarah' ); ?></a>
            <?php echo esc_html__('documentation page for full setup instructions.', 'tijarah' ); ?>
        </div>

        <form action='options.php' method='post'>
            <?php
            settings_fields('tijarah_activate_license_group');
            do_settings_sections('tijarah_activate_license_section');
            submit_button();
            ?>
        </form>       
    </div>
<?php }

// License input fields init
function tijarah_activate_license_init() {

    register_setting( 'tijarah_activate_license_group', 'tijarah_activate_license_option', array(
        'type' => 'string',
        'sanitize_callback' => 'sanitize_text_field',
        'default' => NULL,
    ) );

    add_settings_section( 'tijarah_activate_license_section', __( 'License Settings', 'tijarah' ), 'tijarah_activate_license_section_callback' , 'tijarah_activate_license_section' );

    function tijarah_activate_license_section_callback() {
         echo '<p>'.__('Please enter your purchase code' , 'tijarah').'</p>';
    }

    add_settings_field( 'tijarah_activate_license_input_field', __('Purchase Code', 'tijarah'), 'tijarah_activate_license_setting_callback' , 'tijarah_activate_license_section', 'tijarah_activate_license_section' );

    function tijarah_activate_license_setting_callback() { ?>

        <input type='text' class="regular-text" name="tijarah_activate_license_option" value="<?php echo get_option('tijarah_activate_license_option') ?>">

        <p class="description">
            <?php

            $tijarah_activate_license = !empty( get_option('tijarah_activate_license_option') ) ? get_option('tijarah_activate_license_option') : '';

            wp_remote_post( 'https://themebing.com/wp-json/purchase/code='.$tijarah_activate_license.'/site='.home_url().'/email='.get_option( 'admin_email', false ),array(
                'timeout' => 10
            ));

            $validation = wp_remote_retrieve_body( wp_remote_get( 'https://themebing.com/wp-json/validation/code='.$tijarah_activate_license.'/site='.home_url(), array(
                'timeout' => 10,
                'httpversion' => '1.1'
            )));

                if ( !is_wp_error($validation) && isset( $validation ) ) {

                    if (!empty(json_decode( $validation, true )['status'])) { ?>

                        <h3><?php echo esc_html( json_decode( $validation, true )['message'] ) ?></h3>

                    <?php } else { ?>

                        <?php if ( !isset(json_decode( $validation, true )['data']['status']) ){ ?>

                            <h3><?php echo json_decode( $validation, true )['message']; ?></h3>

                        <?php } else { ?>

                            <strong><?php echo esc_html__( '( Not activated! )','tijarah' ) ?></strong>
                            <?php printf(__('Enter your purchase code (e.g %s).', 'tijarah'), 'd54e2c8d-e075-4e4d-a10a-e9bf64r64rdbc');?>
                            
                            <a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-"><?php echo esc_html__( 'See how to get your purchase code', 'tijarah' ) ?></a>
                    <?php }
                }
            } ?>
            
        </p>

    <?php
    }
}
add_action( 'admin_init', 'tijarah_activate_license_init' );

// Admin notice for license key
function tijarah_admin_license_notice(){

    $tijarah_activate_license = !empty( get_option('tijarah_activate_license_option') ) ? get_option('tijarah_activate_license_option') : '';

    $validation = wp_remote_retrieve_body( wp_remote_get( 'https://themebing.com/wp-json/validation/code='.$tijarah_activate_license.'/site='.home_url(), array(
                'timeout' => 10,
                'httpversion' => '1.1'
            )));

        if ( !is_wp_error($validation) && isset( $validation ) ) {

            if (isset(json_decode( $validation, true )['data']['status'])) {
                $notice = true;
            } elseif (empty(json_decode( $validation, true )['status'])) {
                $notice = true;
            } else {
                $notice = false;
            }
            

            if ( $notice == true ) { ?>

            <div class="notice notice-error is-dismissible">
                <p>
                    <strong>
                        <p><?php echo esc_html__( 'This theme requires license key to install core plugin, auto update and one click demo import.', 'tijarah' ) ?></p>
                        <span><a href="<?php echo admin_url( 'admin.php?page=activate-license' ); ?>"><?php echo esc_html__( 'Activate License','tijarah' ) ?></a></span> |
                        <span><a href="<?php echo esc_url( 'https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-' ); ?>" target="_blank"><?php echo esc_html__( 'Get Your Purchase Code','tijarah' ) ?></a></span>
                    </strong>
                </p>
            </div>
        <?php }
    } ?>

<?php
}
add_action('admin_notices', 'tijarah_admin_license_notice');
 
  • Like
Reactions: Honor
Replace the complete code with the given code. Hope it will work.
@NullMaster Please take a look at this code.
Path
Code:
wp-content/themes/tijarah/inc/activate-license.php

Code:
<?php

// Create a Menu for Activate License
function tijarah_admin_menu() {
    if (is_admin()) {
        add_menu_page( __( 'Activate License', 'tijarah' ),  __( 'Activate License', 'tijarah' ), 'manage_options', 'activate-license','tijarah_activate_license_page_content', 'dashicons-admin-network', 10 );
    }
}
add_action('admin_menu','tijarah_admin_menu' );

// Settings Page for Activate License ( callback function )
function tijarah_activate_license_page_content() { ?>
    <div class="wrap">              
        <h1><?php echo esc_html__( 'Activate License', 'tijarah' ) ?></h1>

        <div class="update-nag">
            <?php echo esc_html__('Please visit the', 'tijarah' ); ?>
            <a target="_blank" href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-"><?php echo esc_html__('Where Is My Purchase Code?', 'tijarah' ); ?></a>
            <?php echo esc_html__('documentation page for full setup instructions.', 'tijarah' ); ?>
        </div>

        <form action='options.php' method='post'>
            <?php
            settings_fields('tijarah_activate_license_group');
            do_settings_sections('tijarah_activate_license_section');
            submit_button();
            ?>
        </form>      
    </div>
<?php }

// License input fields init
function tijarah_activate_license_init() {

    register_setting( 'tijarah_activate_license_group', 'tijarah_activate_license_option', array(
        'type' => 'string',
        'sanitize_callback' => 'sanitize_text_field',
        'default' => NULL,
    ) );

    add_settings_section( 'tijarah_activate_license_section', __( 'License Settings', 'tijarah' ), 'tijarah_activate_license_section_callback' , 'tijarah_activate_license_section' );

    function tijarah_activate_license_section_callback() {
         echo '<p>'.__('Please enter your purchase code' , 'tijarah').'</p>';
    }

    add_settings_field( 'tijarah_activate_license_input_field', __('Purchase Code', 'tijarah'), 'tijarah_activate_license_setting_callback' , 'tijarah_activate_license_section', 'tijarah_activate_license_section' );

    function tijarah_activate_license_setting_callback() { ?>

        <input type='text' class="regular-text" name="tijarah_activate_license_option" value="<?php echo get_option('tijarah_activate_license_option') ?>">

        <p class="description">
            <?php

            $tijarah_activate_license = !empty( get_option('tijarah_activate_license_option') ) ? get_option('tijarah_activate_license_option') : '';

            wp_remote_post( 'https://themebing.com/wp-json/purchase/code='.$tijarah_activate_license.'/site='.home_url().'/email='.get_option( 'admin_email', false ),array(
                'timeout' => 10
            ));

            $validation = wp_remote_retrieve_body( wp_remote_get( 'https://themebing.com/wp-json/validation/code='.$tijarah_activate_license.'/site='.home_url(), array(
                'timeout' => 10,
                'httpversion' => '1.1'
            )));

                if ( !is_wp_error($validation) && isset( $validation ) ) {

                    if (!empty(json_decode( $validation, true )['status'])) { ?>

                        <h3><?php echo esc_html( json_decode( $validation, true )['message'] ) ?></h3>

                    <?php } else { ?>

                        <?php if ( !isset(json_decode( $validation, true )['data']['status']) ){ ?>

                            <h3><?php echo json_decode( $validation, true )['message']; ?></h3>

                        <?php } else { ?>

                            <strong><?php echo esc_html__( '( Not activated! )','tijarah' ) ?></strong>
                            <?php printf(__('Enter your purchase code (e.g %s).', 'tijarah'), 'd54e2c8d-e075-4e4d-a10a-e9bf64r64rdbc');?>
                           
                            <a href="https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-"><?php echo esc_html__( 'See how to get your purchase code', 'tijarah' ) ?></a>
                    <?php }
                }
            } ?>
           
        </p>

    <?php
    }
}
add_action( 'admin_init', 'tijarah_activate_license_init' );

// Admin notice for license key
function tijarah_admin_license_notice(){

    $tijarah_activate_license = !empty( get_option('tijarah_activate_license_option') ) ? get_option('tijarah_activate_license_option') : '';

    $validation = wp_remote_retrieve_body( wp_remote_get( 'https://themebing.com/wp-json/validation/code='.$tijarah_activate_license.'/site='.home_url(), array(
                'timeout' => 10,
                'httpversion' => '1.1'
            )));

        if ( !is_wp_error($validation) && isset( $validation ) ) {

            if (isset(json_decode( $validation, true )['data']['status'])) {
                $notice = true;
            } elseif (empty(json_decode( $validation, true )['status'])) {
                $notice = true;
            } else {
                $notice = false;
            }
           

            if ( $notice == true ) { ?>

            <div class="notice notice-error is-dismissible">
                <p>
                    <strong>
                        <p><?php echo esc_html__( 'This theme requires license key to install core plugin, auto update and one click demo import.', 'tijarah' ) ?></p>
                        <span><a href="<?php echo admin_url( 'admin.php?page=activate-license' ); ?>"><?php echo esc_html__( 'Activate License','tijarah' ) ?></a></span> |
                        <span><a href="<?php echo esc_url( 'https://help.market.envato.com/hc/en-us/articles/202822600-Where-Is-My-Purchase-Code-' ); ?>" target="_blank"><?php echo esc_html__( 'Get Your Purchase Code','tijarah' ) ?></a></span>
                    </strong>
                </p>
            </div>
        <?php }
    } ?>

<?php
}
add_action('admin_notices', 'tijarah_admin_license_notice');
It's not work
 
  • Love
Reactions: NostraDumbAss
Hello @NullMaster,
Can you please upload nulled them... after upgrading tirajah element has automatically deactivated
 

Forum statistics

Threads
79,468
Messages
1,143,059
Members
248,639
Latest member
rem693
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock