close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Order History & Detail Pages Not Working!

Thread began 6/06/2011 4:38 am by hbibizadeh396670 | Last modified 6/07/2011 12:06 pm by Jason Byrnes | 2515 views | 7 replies |

hbibizadeh396670

Order History & Detail Pages Not Working!

I need to make Order History & Detail Pages for my eCart.

Although I followed the instruction PDF available from your site, it does not work.

I have attached the pages, and would be most grateful for your help on this issue.

Also, Could you delete the files from this post when you have them

Thank you.

Sign in to reply to this post

hbibizadeh396670

Not sure why this is not working?

I think there must be something wrong with the code because the order details and summery is stored in my tables fine

Not sure why this is not working?

Sign in to reply to this post

Jason ByrnesWebAssist

can you provide more details than "it does not work"

does the order history page not show the order history? or is the problem on the order details page?

one problem I see right off is that the recordset on the order history page is set to filter on the UserID _Server_ variable, but it should be set tp use the userID _Session_ variable.

change:

php:
$WADAUserID_WADAsiteezyecorders = "-1";

if (isset($_SERVER['UserID'])) {
  $WADAUserID_WADAsiteezyecorders = (get_magic_quotes_gpc()) ? $_SERVER['UserID'] : addslashes($_SERVER['UserID']);
}



to:

php:
$WADAUserID_WADAsiteezyecorders = "-1";

if (isset($_SESSION['UserID'])) {
  $WADAUserID_WADAsiteezyecorders = (get_magic_quotes_gpc()) ? $_SESSION['UserID'] : addslashes($_SESSION['UserID']);
}
Sign in to reply to this post

hbibizadeh396670

Thank you for your reply

That fixed the Order History Page however my Order Detail is giving me this error:

Unknown column 'WADAOrderID' in 'where clause'

If you need any other information, just ask

Hope you can help.

Sign in to reply to this post

hbibizadeh396670

I know what the issue is.

I need to make the order detail page filter the OrderID from the URL Par. Currently it is looking at the recordset and pulling all the records in.

However I am not sure how to do this.

Here is my .sql

SELECT siteezyecorders.*, siteezyecorderdetails.*
FROM siteezyecorders INNER JOIN siteezyecorderdetails ON siteezyecorders.OrderID = siteezyecorderdetails.DetailOrderID
WHERE siteezyecorderdetails.DetailOrderID = WADAOrderID AND siteezyecorders.OrderUserID = paramUserID

Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

edit your recordset.

in the variables section, create a new variable:

name: WADAOrderID
type: number
Default Value: -1
Run Time Value: $_GET['OrderID']

Sign in to reply to this post

hbibizadeh396670

Yes it works

thank you

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