Home Forums Theme Support Dokan Paging feature Issue in store

This topic is: not resolved

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

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #51546

    Jintae
    Member
    Post count: 36

    I found the issue during the test.


    Link on the page that errors occur

    when I click page 1

    when I click page 2

    “Paging” It does not operate normally. in seller review page
    Calling the second page, the first page is outputted.
    please ask for a quick fix.

    #51572

    towhid
    Participant
    Post count: 4505

    Hello Jintae,

    I can not see any image you have posted in this topic. Can you please try once again.

    Thanks

    #51642

    Jintae
    Member
    Post count: 36
    #51665

    towhid
    Participant
    Post count: 4505

    Hello Jintae,

    I have tried to reproduce this issue but failed. If the issue still persists then check for your theme or plugin conflicts. You can disable all your plugins except Dokan and switch to a default theme of WordPress like – Twenty Twelve, Twenty Thirteen, Twenty Fourteen and let me know the results.

    Thanks

    #52230

    Jintae
    Member
    Post count: 36

    Hi towhid

    Please wait
    I am now debugging of this issue
    and I will tell find what the problem is.

    #52250

    Jintae
    Member
    Post count: 36

    Hi towhid
    I found the cause of the problem.

    URL When calling page 1 is : [server domain]/store/seller2/reviews
    URL When calling page 2 is : [server domain]/store/seller2/reviews/page/2

    and then
    Call the following function in wp-content\themes\dokan\dokan\store-reviews.php
    $comments = $dokan_template_reviews->comment_query( $id, $post_type, $limit, $status );

    The code below is a problem

    $page_number = isset( $_GET['pagenum'] ) ? $_GET['pagenum'] : 0 ;
    $pagenum     = max( 1, $page_number );

    In this case, the value of $ page_number is always 0

    Make changes to the code as follows:
    $pagenum = max( get_query_var( 'paged' ), 1 );

    #52260

    Jintae
    Member
    Post count: 36

    I am being used to Permalink. As follow
    Common Settings is Post name
    Product permalink base is Custom Base

    I think there is a problem with your response.
    I am extremely dissatisfied For two counts request ( this post & Posts related tab )
    I wonder what you think about this.

    If possible, I do not want to modify the Dokan Core Source.
    Please answer me soon

    #52287

    towhid
    Participant
    Post count: 4505

    Hello Jintae,

    I am sorry for the inconvenience. Actually I have to reply all the queries in this forum and somehow it is taking a little bit time to response.

    I did not get find the code you have provided to me on that store-reviews.php.

    Thanks

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

The topic ‘Paging feature Issue in store’ is closed to new replies.