URL: http://www.uburst.com/cgi-bin/dcforum/dcboard.cgi
Forum: ushp_general_purpose
Thread Number: 259
[ Go back to previous page ]

Original Message
"Order reader"

Posted by marcel emmen [info@emmenmode.nl] on at 09:12 AM
Hi there,

If i read a order from with the order reader then after reading i want to go back to delete the order. Unfortunatally the page is always expired!

Is it not possible to open a new window when the order read or read all button is click?>

thanks

Marcel


Table of contents

Messages in this discussion
"Re: Order reader"
Posted by Joseph Pishgar [support@uburst.com] on at 11:01 AM
Hello Marcel,

The browser's "Back" button tends to mess things up a bit when logged into the control panel. The control panel's back buttons should be used to navigate, to prevent that "page expired" error. Currently you cannot access the order files outside of the Order Reader though. (outside of the actual order data files on your server).

Hope this helps.

Regards,
Joseph Pishgar
Microburst Technologies, Inc.


"RE: Order reader"
Posted by Bill Weiner on at 10:41 PM
That "Page has expired" message is related to some setting on your browser. Unfortunately, I do not know which one... but I can say that if you get the error message, then you'll get it when you use your browser's "Back" button on any secure CGI generated HTML page (ie. it's not uShop specific). The recommended thing to do here... as Joseph mentioned ... is to just use the control panel's Back button.

"back button"
Posted by Ron Stewart [ron@beerisgoodforyou.com] on at 10:22 PM
Bill,
I, too get annoyed at this. Sometimes it happens and sometimes it doesn't. You say to use the control panel's back button, but there is no back button if you are reading orders. Only on the order reader page. Can a back button be put on the page that actually displays the order(s)?

Thanks,

Ron


"RE: back button"
Posted by Bill Weiner on at 11:14 PM
The reason a "Back" button wasn't added to the actual order reader output page... was because we didn't want the button to be printed when printing out the order.

The easiest thing to do is to just figure out what setting on your browser controls how long "https" pages stay in you're browser's cache, but if you really want to add the back button, here's some instructions:

STEP 1: Make a backup of your current ushop-lib.pl script.

STEP 2: Open your ushop-lib.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line in order to get to the start of the subroutine that displays the order files:

sub display_order_file

STEP 4: Near the bottom of that subroutine... directly after the line:

$order_footer = &get_cart_html();

Add the following lines:

$order_footer .= "XBRY";
$order_footer .= "XFORM ACTION=\"" . $secure_script_url . "\" METHOD=\"POST\"Y";
$order_footer .= "XINPUT TYPE=\"hidden\" NAME=\"command\" VALUE=\"cp_order_reader\"Y";
$order_footer .= "XINPUT TYPE=\"hidden\" NAME=\"password\" VALUE=\"$password\"Y";
$order_footer .= "XINPUT TYPE=\"submit\" VALUE=\"$lang_back\" WIDTH=150 HEIGHT=30Y";
$order_footer .= "X/FORMY";

NOTE THAT in the above code, I had to replace all less than signs with capital X and all greater than signs with capital Y. I did this because this forum doesn't allow you to enter greater-than and less than signs. So just replace those when you add the code.

STEP 5: Save the file (as TEXT if your editor asks) ... and try it out!