Home Forums Theme Support Dokan Dokan subscription plugin template part don’t load.

This topic is: resolved

This topic contains 12 replies, has 2 voices, and was last updated by  towhid 4 years, 7 months ago.

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #30287

    stephane
    Member
    Post count: 22

    Hello,
    i open this topic next to “Empty page dokan 1.2 and subscription” because that is not resolved for my case !

    i used dokan as plugin with WC theme …
    subscription addon installation is running up but there is a issue with the template part loading (404 issue)

    The solutions provided by support team:
    ———————————————————————————————————-

    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.

    ————————————————————————————–

    But still have an no page found issue

    Thanks

    #30288

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

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    I have already forwarded this issue to our developer team. But all of our developer team are busy at this moment. So its need time. We will be right back as soon as possible. Please have patience.

    Thank You. 🙂

    #30459

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    The login details you provide is ‘seller'. But to work I need ‘Super Admin' login details. Otherwise it will not be easy to manage.

    Again, 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 🙂

    #30460

    stephane
    Member
    Post count: 22

    Hello towhid,

    Ok i uptade login details on my wp-admin

    #30627

    stephane
    Member
    Post count: 22

    Hello towhid,

    still waiting for a fix !
    i see 2 days ago that your testing my wp template dokan plugin
    did you find something ?

    thanks

    Stéphane

    #30665

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    The developer I have assign the issue is in vacation. He will be back Friday. After then he will check this issue. So please have patience.

    Thank You. 🙂

    #30862

    stephane
    Member
    Post count: 22

    Hello,
    i an waiting for developper issue that your assign …
    if it help him : i have the same probleme than oloff customer on topic “Dokan Subscription addon – Page not found..” = subsbcrition choice missing on setting dokan subscription tab

    thanks
    stéphane

    #30912

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    They are working very hard about this issue. Please allow couple of days. Hope it will solve very soon.

    Thank You. 🙂

    #30916

    stephane
    Member
    Post count: 22

    Hello towhid
    Ok i'm sure that you do the best !

    so i have a question about dokan category widget ( on seller store )may be you can help me !
    i have some category who are hidden and unfortunetly there appeare on seller store widget

    i try this function on includes/theme-function.php
    but no results any idea to fix it

    /*————————————————————————————————–
    Don't show Catagories – ads category
    ————————————————————————————————–*/
    add_filter( ‘get_terms', ‘dokan_get_subcategory_terms', 10, 3 );
    function dokan_get_subcategory_terms( $terms, $taxonomies, $args ) {
    $new_terms = array();
    // if a product category and on the shop page
    if ( in_array( ‘product_cat', $taxonomies ) && ! is_admin() ) {
    foreach ( $terms as $key => $term ) {
    if ( ! in_array( $term->slug, array( ‘adshome' ) ) )
    if ( ! in_array( $term->slug, array( ‘adscat' ) ) )
    if ( ! in_array( $term->slug, array( ‘adsdog' ) ) )
    if ( ! in_array( $term->slug, array( ‘adsslpet' ) ) )
    if ( ! in_array( $term->slug, array( ‘adslifestyle' ) ) )
    {
    $new_terms[] = $term;
    }
    }
    $terms = $new_terms;
    }
    return $terms;
    }

    #30976

    stephane
    Member
    Post count: 22

    hello,
    i tested like seakander told me to uptade the dokan pluggin v1.2 and subscrition addon
    but still have the issue
    subsription template don't load

    #30996

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    I have tried first to delete Dokan Plugin then update but noticed I have no delete permission. We have release Dokan Plugin 1.3 and Subscription addon 1.0. Please update and let me know.

    Thank You. 🙂

    #31373

    towhid
    Participant
    Post count: 4505

    Hello Stephane,

    Would you please let me Dokan Plugin and Subscription Addon activation process work for you?

    Thank You 🙂

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

The topic ‘Dokan subscription plugin template part don’t load.’ is closed to new replies.