close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

next product button for product detail?

Thread began 8/20/2014 5:14 pm by vered435903 | Last modified 8/21/2014 12:20 pm by Jason Byrnes | 492 views | 3 replies |

vered435903

next product button for product detail?

Hello~

I hope you're having a good week.

I'm wondering if you have a tutorial to add a 'next product' button on the product detail page so our visitors won't need to return to the products results page to view the next product in their search?

Sign in to reply to this post

Jason ByrnesWebAssist

we dont have a tutorial for this no.

when you go to the detail page, make not of the address in the address bar, it will contain a URL variable that passes the product id, for example:

details.php?productID=3

in this example, the product id is passed by a URL variable named:
productID

you will need to create a recordset that filter the productID column on the product ID URL variable, for example. using the advanced recordset interface, set the recordset select statement as:

SELECT productID FROM products WHERE productID > paramID ORDER BY productID ASC LIMIT 1

in the variables section, create a new variable as:
Name: paramID
Data Type: integer
Default Value: -1
Runtime value: $_GET['productID']


then create the next link using the recordset productID binding for the value of the URL variable:

<a href="details.php?productID=<?php echo $row_recordsetName['productID']">Next</a>


you will want to use the Show Region behavior to only show the link if the recordset is not empty.

Sign in to reply to this post

vered435903

Terrific! Thanks so much!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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...