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

order detail page

Thread began 3/04/2010 9:43 am by tim.wolak331163 | Last modified 6/01/2010 3:36 pm by Jason Byrnes | 1148 views | 7 replies |

tim.wolak331163

order detail page

I need to create an order detail page that has all the customer info, i.e. order number what they purchased, shipping info etc. Since I'm using the sample database from WA, I need to combine the data in both the order and orderdetails tables. I have tried using a join statement and when I put it into a repeating region the mysql balks at the limit as it is limiting by 10 so I can page through the orders.

Please let me know how I can combine these tables to create and admin interface to manage my orders.

Thanks,
Tim

Sign in to reply to this post

Jason ByrnesWebAssist

your orders page should have a link to the order detail page that sends a querystring variable of the OrderID to show the details for.

OrderDetals.php?id=4

for example.


the recordset on the order details page should contain a where clause to filer the orderID column on the id querystring:

I am attaching screen shots to demonstrate how the recordset should be configured.


This is also covered in the "Creating an Order History page" tutorial on the eCart support page:
ecart/

Sign in to reply to this post

paul298707

Need help with customer order details page

My link to the customer order details page is working -- it's just nothing is showing up. This is what really confuses me ... much of your documentation does not match what you're saying.

I copies this right from your docs under 5. Customize Order Details:

Add another Variable (Parameter)

The final step in modifying the SQL statement is to add the Variable to be used by this recordset to work with our new SQL statement.
# Click Add (+) to create a new variable.
# In the name field enter paramUserID.
# In the Default value field, enter -1.
# In the Runtime value field, enter $_SESSION['UserID'].

But your example above show totatally different info. Which one is it?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

both variables are needed.

The recordset that is created by the DataAssist wizard should already contain parameter to filter the Order by the OrerID query string.

The section of the documentation you are quoting is titled "Add another Variable (Parameter)"

In addition to the Order ID query string variable, you need to filter on the logged in users ID value.

this is done to prevent users from viewing orders that do not belong to them.

Sign in to reply to this post

paul298707

Thanks Jason -- still having trouble though

Thanks for clarifying -- I'm a need to know why kinda guy (also known as a pain in the arse).

So I have this right, but I am not getting any "details" on my customer_order_details.php page after I click the link.

I've noticed in my orderdetails table that no "OrderDetailID" info is being saved, though other data is. I suspect without this info my "JOIN" is not joining, and therefore there is no info to display.

What do I need to do to fix this? Thanks again.

Sign in to reply to this post

Jason ByrnesWebAssist

Paul, you have multiple threads all asking the same question.


Please limit to one thread for the problem to cut down on confusion. See my reply here:
showthread.php?t=13349

in your other thread for details on correcting the problem.

Sign in to reply to this post

paul298707

Still working on my customer_order_details page -- it shows "no results."

When I test it in the wizard is show zero results.

Here's the sql:

SELECT orders.*, orderdetails.*
FROM orders INNER JOIN orderdetails ON orders.OrderID = orderdetails.DetailOrderID
WHERE orderdetails.DetailOrderID = WADAOrderID AND orders.OrderVisitorID = paramVisitorID

Do you see anything wrong with this?

Sign in to reply to this post

Jason ByrnesWebAssist

you posted in your other thread:
showthread.php?t=13349

that you have it working? is this correct?

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