Paging feature Issue in store

This topic contains 7 reply and 2 voices, and was last updated by towhid 9 years, 5 months ago
Viewing 7 Posts - 1 through 7 (of 7 total)
Author Posts
June 9, 2015 at 1:30 pm 51546
towhid 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.
June 9, 2015 at 3:15 pm 51572
towhid towhid

Hello Jintae,

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

Thanks

June 10, 2015 at 8:39 am 51642
Jintae Jintae

Link on the page that errors occur : https://www.dropbox.com/s/kwvg99cinip0agd/store%20review%20page%20link.png?dl=0
when I click page 1 : https://www.dropbox.com/s/b28zjtt9ew24b27/page1.png?dl=0
when I click page 2 : https://www.dropbox.com/s/gp8zf47e7ndnlzb/page2.png?dl=0

June 10, 2015 at 1:29 pm 51665
towhid towhid

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

June 17, 2015 at 12:16 pm 52230
Jintae Jintae

Hi towhid

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

June 17, 2015 at 2:16 pm 52250
Jintae Jintae

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 );

June 17, 2015 at 2:25 pm 52260
Jintae Jintae

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

June 17, 2015 at 4:56 pm 52287
towhid towhid

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 7 Posts - 1 through 7 (of 7 total)