Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

session variables help


neverfight

Recommended Posts

I am modifying the sales_report2 contribution to work on the catalog side. (I need a better customer history report.) The only problem I am having is that once you hit "send" for a new report, it looses all of the login info and therefore the customer_id which the report is based on. The first time it loads, everything is correct. All I need to have it do is add the sid. (When I add it manually it works as it should.)

 

If someone out there has this contribution and can tell me what to do to make it work, I would greatly appreciate it. I've been fighting with this for days... :'(

 

 

TIA,

Laurie

Link to comment
Share on other sites

After additional research into my problem I have determined that it is a form issue. If someone has a suggestion on how to get my form switched over to function on the catalog side with someone logged in, I would appreciate it.

I am posting what seems to be the relevant portions of my file.

 

 

 <form action="" method="get">	 

			 <table border="0" width="100%" cellspacing="0" cellpadding="0">
			<tr>
			  <td align="left" rowspan="2" class="menuBoxHeading">
				<input type="radio" name="report" value="1" <?php if ($srView == 1) echo "checked"; ?>><?php echo REPORT_TYPE_YEARLY; ?><br>
				<input type="radio" name="report" value="2" <?php if ($srView == 2) echo "checked"; ?>><?php echo REPORT_TYPE_MONTHLY; ?><br>

 

--snip--

 

 <option<?php if ($y == $i) echo " selected"; ?>><?php echo date("Y") - $i; ?></option>
<?php
}
?>
				</select>
			  </td>
			</tr>
			<tr>
			  <td colspan="4" class="menuBoxHeading" align="right">
  <input type="submit" value="<?php echo REPORT_SEND; ?>">

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...