close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

PS3 Admin Orders Detail Page

Thread began 2/04/2011 12:00 pm by carlene | Last modified 2/04/2011 1:26 pm by Jason Byrnes | 1783 views | 5 replies |

carleneBeta Tester

PS3 Admin Orders Detail Page

Hello!

On my Orders Detail page in the Admin section of my PS 3 store it only shows 5 rows of items on that page from the customer's order. I want it to show ALL items ordered on the orders_detail.php page.

I see that there is this code:
<?php
$maxRows_WADAorderdetails = 5;
$pageNum_WADAorderdetails = 0;

I'm guessing that's where I change the 5 to something else. What should I change it to so that it will always display ALL of the items from the order on this one page? (I need this because we've created a printable version of this page and we need that record.)

Thanks!

Carlene

Sign in to reply to this post

Jason ByrnesWebAssist

change:

php:
$WADAorderdetails = mysql_query($query_limit_WADAorderdetails, $PowerStoreConnection) or die(mysql_error());





to:

php:
$WADAorderdetails = mysql_query($query_WADAorderdetails, $PowerStoreConnection) or die(mysql_error());
Sign in to reply to this post

carleneBeta Tester

Hey Jason,

Thanks so much for replying so quickly! I'm running PowerStore 3. I can't find that exact code that you mentioned to change on my orders_Detail.php page. Or even on the site.

Here's the code that sort of contains what you're talking about. I just don't want to limit the maxRows that are displayed on that page.


<?php
$maxRows_WADAorderdetails = 5;
$pageNum_WADAorderdetails = 0;
if (isset($_GET['pageNum_WADAorderdetails'])) {
$pageNum_WADAorderdetails = $_GET['pageNum_WADAorderdetails'];
}
$startRow_WADAorderdetails = $pageNum_WADAorderdetails * $maxRows_WADAorderdetails;

$colname_WADAorderdetails = "-1";
if (isset($_GET['OrderID'])) {
$colname_WADAorderdetails = (get_magic_quotes_gpc()) ? $_GET['OrderID'] : addslashes($_GET['OrderID']);
}
mysql_select_db($database_PowerStoreConnection, $PowerStoreConnection);
$query_WADAorderdetails = sprintf("SELECT DetailID, DetailProductID, DetailName, DetailPrice, DetailSKU, DetailQuantity, DetailDiscount FROM ps3_orderdetails WHERE DetailOrderID = %s", GetSQLValueString($colname_WADAorderdetails, "int"));
$query_limit_WADAorderdetails = sprintf("%s LIMIT %d, %d", $query_WADAorderdetails, $startRow_WADAorderdetails, $maxRows_WADAorderdetails);
$WADAorderdetails = mysql_query($query_limit_WADAorderdetails, $PowerStoreConnection) or die(mysql_error());
$row_WADAorderdetails = mysql_fetch_assoc($WADAorderdetails);

if (isset($_GET['totalRows_WADAorderdetails'])) {
$totalRows_WADAorderdetails = $_GET['totalRows_WADAorderdetails'];
} else {
$all_WADAorderdetails = mysql_query($query_WADAorderdetails);
$totalRows_WADAorderdetails = mysql_num_rows($all_WADAorderdetails);
}
$totalPages_WADAorderdetails = ceil($totalRows_WADAorderdetails/$maxRows_WADAorderdetails)-1;
?>



I really appreciate the help!

Carlene :)

Sign in to reply to this post

Jason ByrnesWebAssist

the line to edit is the middle line of these three:

php:
$query_limit_WADAorderdetails = sprintf("%s LIMIT %d, %d", $query_WADAorderdetails, $startRow_WADAorderdetails, $maxRows_WADAorderdetails);

$WADAorderdetails = mysql_query($query_limit_WADAorderdetails, $PowerStoreConnection) or die(mysql_error());
$row_WADAorderdetails = mysql_fetch_assoc($WADAorderdetails);




you are changing the part that says:
mysql_query($query_limit_WADAorderdetails,


to:
mysql_query($query_WADAorderdetails,

php:
$query_limit_WADAorderdetails = sprintf("%s LIMIT %d, %d", $query_WADAorderdetails, $startRow_WADAorderdetails, $maxRows_WADAorderdetails);

$WADAorderdetails = mysql_query($query_WADAorderdetails, $PowerStoreConnection) or die(mysql_error());
$row_WADAorderdetails = mysql_fetch_assoc($WADAorderdetails);
Sign in to reply to this post

carleneBeta Tester

Fixed! Due to the fabulous WebAssist Customer Support!~

Thank you so much Jason! :D

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working.

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