close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Redirect to Prouduct Detail Page after login

Thread began 8/29/2010 7:21 pm by siteontime | Last modified 8/30/2010 2:22 pm by Jason Byrnes | 1128 views | 3 replies |

siteontimeBeta Tester

Redirect to Prouduct Detail Page after login

I am adding a wishlist to the powerstore and have everything working except for the redirect. The user has to be logged in to add to the wishlist.

Here is the page URL that comes up on redirect from a successful login:

Products_Detail_new.php?accesscheck=%2FProducts_Detail_new.php

How do I change this to redirect to the correct Product Detail page.

Sign in to reply to this post

Jason ByrnesWebAssist

what is the correct product detail page name?


can you give some details on what is wrong with the redirect.

Sign in to reply to this post

siteontimeBeta Tester

The Products_Detail_new.php is listed twice in the url as you can see in the post above and it is not including the ProductID variable. So when it redirects it says no product found.

Hope that helps. Thanks for such a quick reply.

Sign in to reply to this post

Jason ByrnesWebAssist

the second listing of the details page in the URL is needed for the redirect to occur.


Security assist uses the access check querystring variable to know what the previous page was.


to get the product id in the querystring as well, you will need to edit the restrict access code.

edit the redirect:

php:
WA_Auth_RestrictAccess("Products_Detail_new.php");



to capture the product ID querystring. for example, if the querystring is named productID:
Products_Detail_new.php?productID=53

edit the redirect code to:

php:
WA_Auth_RestrictAccess("Products_Detail_new.php?productID".echo(isset($_GET['prodID'])?$_GET['prodID']:"")."");
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...