Home Forums Theme Support Dokan Empty page dokan 1.2 and subscription

This topic is: resolved

This topic contains 14 replies, has 4 voices, and was last updated by  sophie 4 years, 4 months ago.

Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #29730

    sophie
    Member
    Post count: 20

    The template part of subscription plugin don't load.
    the probleme is on the dokan/classe/template-shortcode.php. you don't have rules for the subscription plugin. I add this line on number 90 :
    if ( isset( $wp->query_vars[‘subscription'] ) ) {
    return apply_filters( ‘dokan_dashboard_template_render', dokan_get_template_part( ‘dashboard' ) );

    }

    #29762

    towhid
    Participant
    Post count: 4505

    Hello Sophie,

    Please remove your code and go to dashboard->permalink->Save Changes. Hope that will solve your problem.

    If feel any difficulties please let me know.

    Thank You.

    #29795

    sophie
    Member
    Post count: 20

    Nop sorry, the problem is already on

    #29902

    towhid
    Participant
    Post count: 4505

    Hello Sophie,

    Please provide your login details by using this form – http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    Thank you ๐Ÿ™‚

    #29952

    stephane
    Member
    Post count: 22

    Hello towhid,
    same probleme for me !!!
    i saved the change on permalinks but still page not found result
    i provide you my login details on form -http://wedevs.com/provide-login-details/
    thanks for reply

    #30045

    towhid
    Participant
    Post count: 4505

    Hello Sophie,

    Please open wp-content/plugins/wedevs-dokan-subscription/dokan-product-subscription.php file and find add_action( 'dokan_get_template_part', array( $this, 'load_template_from_plugin'), 10, 3 ); this line and replace with add_action( 'dokan_load_custom_template', array( $this, 'load_template_from_plugin'), 10 ); also find this function

    function load_template_from_plugin( $template, $slug, $name ) {
            global $wp;
    
            if ( isset( $wp->query_vars['subscription'] ) ) {
                //var_dump( dokan_get_template_part( 'product_subscription_plugin' ) );
                $template = dirname(__FILE__).'/templates/product_subscription_plugin.php';
            }
    
            return $template;
        }

    replace with

    function load_template_from_plugin( $query_vars ) {
    
        if ( isset( $query_vars['subscription'] ) ) {
            $template = dirname(__FILE__).'/templates/product_subscription_plugin.php';
        }
    
        require_once $template;
    }

    and also, go to dashboard->permalink->Save Changes. Hope that will solve your problem.

    Hope this will solve your problem. If feel any difficulties please let me know.

    Thank You. ๐Ÿ™‚

    #30133

    Tomas
    Member
    Post count: 18

    It is working for me now. Thank you.

    #30174

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    The solutions I provided for @sophie also applicable for you.

    Please let me know if you feel any complexity.

    Thank You. ๐Ÿ™‚

    #30175

    towhid
    Participant
    Post count: 4505

    Hello Thomas,

    Very glad to know that the solution works for you.

    Thank You. ๐Ÿ™‚

    #30199

    stephane
    Member
    Post count: 22

    Hello towhid,
    the solutions your provided don't work for me !
    in dokan-product-subscription.php changed add_action in line 97 and also function in line 309
    and go to dashboard->permalink->Save Changes
    but still have a page not found issue !

    thanks

    #30205

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    Can you please upload the ‘dokan-product-subscription.php' anywhere in the web and give me a download link then I can check the file.

    Thank you ๐Ÿ™‚

    #30207

    stephane
    Member
    Post count: 22
    This reply has been marked as private.
    #30213

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    Yes, I need ftp login. Before give me ftp login detials please check you first.

    Also please provide your login details by using this form – http://wedevs.com/provide-login-details/. I will have a look what is going wrong.

    All of our developer team are busy at this moment. So its need time. Please have patience.

    Thank you ๐Ÿ™‚

    #30215

    stephane
    Member
    Post count: 22
    This reply has been marked as private.
    #30233

    sophie
    Member
    Post count: 20

    thanks

Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘Empty page dokan 1.2 and subscription’ is closed to new replies.