close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

product results doesn't show 2nd page correctly

Thread began 8/18/2015 7:57 am by Charles | Last modified 8/23/2015 8:19 pm by Ray Borduin | 897 views | 5 replies |

Charles

product results doesn't show 2nd page correctly

Pagination issue with products_results.php:
At first page 2 of the product results showed 'no results' when items were there.
Searched WA forums and found solution at http://www.webassist.com/forums/posts.php?id=36460 which had me move the <php? pagination code to after the recordset. This solution worked previously when I used it to correct the product_results for our products admin.

However, when we did same for the public products_results page, we get some funky code appearing on page 2 of the results('pageNum_WADAproducts=1') in the visible header - see http://outofchaos.net/gsc/www/products_results-p2test.php?pageNum_WADAproducts=1&totalRows_WADAproducts=24&Category_ID=29&Search=1

Whereas page 1 of the results is clean - http://outofchaos.net/gsc/www/products_results-p2test.php?Category_ID=29&Search=1
Would appreciate your help here. Copy of the file is attached.

Sign in to reply to this post

Ray BorduinWebAssist

On line 368 you have:

<div class="WADAResultThumbArea"><a href="products_detail.php?ID=<?php echo($row_WADAproducts['ID']); ?>" ><?php echo(isset($_GET["pageNum_WADAproducts"])?"&pageNum_WADAproducts=".intval($_GET["pageNum_WADAproducts"]):""); ?>



it should be:

<div class="WADAResultThumbArea"><a href="products_detail.php?ID=<?php echo($row_WADAproducts['ID']); ?><?php echo(isset($_GET["pageNum_WADAproducts"])?"&pageNum_WADAproducts=".intval($_GET["pageNum_WADAproducts"]):""); ?>" >
Sign in to reply to this post
Did this help? Tips are appreciated...

Charles

That did the trick! Thank you

Sign in to reply to this post

Charles

Oops! The above change seemed to work once we only had page 1 and page 2. Now we have a page 3 and '&PAGENUM_WADAPRODUCTS=1' is showing up visibly in each line of the displayed products on the 2nd and 3rd pages when you click either '>' or '>>' on page 1 to navigate to the next pages. You can see it at the URL below and the latest version of the file is attached

Sign in to reply to this post

Ray BorduinWebAssist

Update line 371 from:

php:
<div class="WADAResultTitle"><a href="products_detail.php?ID=<?php echo($row_WADAproducts['ID']); ?>" ><?php echo(isset($_GET["pageNum_WADAproducts"])?"&pageNum_WADAproducts=".intval($_GET["pageNum_WADAproducts"]):""); ?>



to:

php:
<div class="WADAResultTitle"><a href="products_detail.php?ID=<?php echo($row_WADAproducts['ID']); ?><?php echo(isset($_GET["pageNum_WADAproducts"])?"&pageNum_WADAproducts=".intval($_GET["pageNum_WADAproducts"]):""); ?>" >
Sign in to reply to this post
Did this help? Tips are appreciated...

Charles

That fixed it. Thank you

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...