xyncro
-
Posts
198 -
Joined
-
Last visited
Posts posted by xyncro
-
-
hi...
when i did a test purchase i noticed that the product box moved around placing himself under the blue top box to the left...
normal or not..??? insect maybe (bug)..??
anyways here's an image about the incident...
-
...
hey... i stumbled into other things that wasn't translated either.. things that i could alter...
i had to do some changes to a couple of files...
these are hopefully correctly done.. feel free to check them before applying the changes... these changes works for me..
plz do a backup before..
...
*************************************/admin/settings/geo.php
* on line 163
-------------
<td align="center" class="tdTitle"><?php echo $lang['admin']['settings']['iso_name'];?></td>
* replace with
--------------
<td align="center" class="tdTitle"><?php echo $lang['admin']['settings']['iso'];?></td>
**************************************
/admin/products/options.php
* on line 331
-------------
<td class="<?php echo $cellColor; ?>"><a <?php if(permission("products","edit")==TRUE){ ?>href="?editOption=<?php echo $options[$i]['option_id'];?>&redir=<?php echo $currentPage; ?>"<?php } else { echo $link401; } ?> class="txtLink">Edit</a> | <a <?php if(permission("products","delete")==TRUE){ ?>href="java script:decision('<?php echo $lang['admin']['products']['warn_remove_opt'];?>','?delOption=<?php echo $options[$i]['option_id']; ?>&redir=<?php echo $currentPage; ?>');" class="txtLink"<?php } else { echo $link401; } ?>><?php echo $lang['admin']['delete'];?></a> </td>
* replace with
--------------
<td class="<?php echo $cellColor; ?>"><a <?php if(permission("products","edit")==TRUE){ ?>href="?editOption=<?php echo $options[$i]['option_id'];?>&redir=<?php echo $currentPage; ?>"<?php } else { echo $link401; } ?> class="txtLink"><?php echo $lang['admin']['edit'];?></a> | <a <?php if(permission("products","delete")==TRUE){ ?>href="java script:decision('<?php echo $lang['admin']['products']['warn_remove_opt'];?>','?delOption=<?php echo $options[$i]['option_id']; ?>&redir=<?php echo $currentPage; ?>');" class="txtLink"<?php } else { echo $link401; } ?>><?php echo $lang['admin']['delete'];?></a> </td>
**************************************
/admin/products/options.php
* lines 368 - 371
-----------------
<td class="tdTitle"><?php echo $lang['admin']['products']['opt_id'];?></td>
<td class="tdTitle"><?php echo $options[$i]['option_name']; ?></td>
<td class="tdTitle"><?php echo $options[$i]['option_attributes']; ?></td>
<td class="tdTitle"><?php echo $lang['admin']['products']['action'];?></td>
* replace with
--------------
<td class="tdTitle"><?php echo $lang['admin']['products']['opt_id'];?></td>
<td class="tdTitle"><?php echo $lang['admin']['products']['opt_name'];?></td>
<td class="tdTitle"><?php echo $lang['admin']['products']['option_attribute'];?></td>
<td class="tdTitle"><?php echo $lang['admin']['products']['action'];?></td>
**************************************
/admin/categories/index.php
* on line 280
-------------
<input type="submit" name="Submit" class="submit" value="<?php if($_GET["edit"]>0){ echo $modeTxt; } else { echo $modeTxt;Â } ?> Category"></td>
* replace with
--------------
<input type="submit" name="Submit" class="submit" value="<?php if($_GET["edit"]>0){ echo $modeTxt; } else { echo $modeTxt;Â } ?> "></td>
**************************************
/admin/customers/index.php
* on line 121
-------------
<p class="pageTitle">Customers</p>
* replace with
--------------
<p class="pageTitle"><?php echo $lang['admin']['customers']['clientes'];?></p>
* add to language file in $lang['admin']['customers'] section
-------------------------------------------------------------
'clientes' => "Customers",
*************************************
/admin/settings/index.php
* on line 160 - 161
-------------------
<option value="1" <?php if($config['ssl']==1) echo "selected='selected'"; ?>>Yes</option>
<option value="0" <?php if($config['ssl']==0) echo "selected='selected'"; ?>>No</option>
* replace with
--------------
<option value="1" <?php if($config['ssl']==1) echo "selected='selected'"; ?>><?php echo $lang['admin']['yes'];?></option>
<option value="0" <?php if($config['ssl']==0) echo "selected='selected'"; ?>><?php echo $lang['admin']['no'];?></option>
* on line 341 - 342
-------------------
<option value="1" <?php if($config['stockLevel']==1) echo "selected='selected'"; ?>>Yes</option>
<option value="0" <?php if($config['stockLevel']==0) echo "selected='selected'"; ?>>No</option>
* replace with
--------------
<option value="1" <?php if($config['stockLevel']==1) echo "selected='selected'"; ?>><?php echo $lang['admin']['yes'];?></option>
<option value="0" <?php if($config['stockLevel']==0) echo "selected='selected'"; ?>><?php echo $lang['admin']['no'];?></option>
* on line 350 - 351
-------------------
<option value="1" <?php if($config['outofstockPurchase']==1) echo "selected='selected'"; ?>>Yes</option>
<option value="0" <?php if($config['outofstockPurchase']==0) echo "selected='selected'"; ?>>No</option>
* replace with
--------------
<option value="1" <?php if($config['outofstockPurchase']==1) echo "selected='selected'"; ?>><?php echo $lang['admin']['yes'];?></option>
<option value="0" <?php if($config['outofstockPurchase']==0) echo "selected='selected'"; ?>><?php echo $lang['admin']['no'];?></option>
*************************************
-
... thx brooky..
this with the %s i know...
and i'm pretty sure i haven't added any quotes inside the text that need to be translated...
anyhow.. i'll make a check in case off...
i'll get back...
EDIT:... as you said... i found 2 of these '
...how sensitive it can be..
anyhow.. now it's fixed...
-
...
one year older and hopefully a little wiser...
Happy Birthday to ya..
take care..
-
...
i've got a finished version of the language file in swedish for cc3...
couldn't find any category in up/download section to submit it too..
where do i submit it..???
thx...
-
...
..oboy oboy oboy..
i finished a swedish translation of the language file and added it to the store...
then all kinds of sh*t turned up...
for example some buttons disapper (in admin/store config/taxes - 'Add' button)
also alot of those 'Action' links (edit, delete) disappears..
i've also noticed that some words can't be translated... (hard coded)
... :ph34r:
-
...
..got the 401 too..
..after the .htaccess it worked..
-
...
i don't know if this has been brought up yet but...
wouldn't it be a good or even a great idea to sort out CC2 and CC3 issues better in this forum..??
i mean.. it looks messy already after a few days in the search for solutions... and especially since the search function isn't the greatest here... (sorry)
an idea would be to make duplicate categories in this forum.. one for CC2 and the other for CC3...
this is only a suggestion.. maybe there are other plans for this forum... i don't know... but i think the changes need to be done quickly BEFORE the forum is overwelmed with posts from both versions... (more work later)
enough said... i'm back to my CC3 now...
thx...
-
...
i tryed to setup cc3 locally on my computer but i only managed to come to step 2 where it's asked about permissions on 2 folders and 1 file - global.inc.php
those 2 folders came out ok but...
how the heck do i change permission in windows on that file from 666 to 777..??
thx...
-
... good thing i didn't do it yet then..
... no worries twist i'm only using a couple of countries here in scandinavia..
i don't intend to sell to a god forsaken place located in the polynesia..
you're just great guys..
thx...
-------------
edit..
where do i reset the hit counter... i couldn't find it anywhere in the db..
thx..
-
...
thx Rob for helpin out.. ;)
-
...
..store is going live..
what tables could safely be cleaned out or reset from all stuff that has been used for testing..??
thx..
-
...
Happy Birthday Tony..
/Bertil
-
...
Happy Bday afksky..
..a quarter of a century..
all well to you..
/Bertil
-
...
hmm maybe he meant..
i thought he was refering to the end part...
anyway it's solved now thx to twisted, stijn and the final nail from joelene
thx..
-
...
wow..
thx that solved everything.. thx alot all involved..
echo"<a href =\"return.php\"></a><b>$la_dvdr</b></center><br><br>";function check_len(&$check, $field, $max, &$err_field, $err="", $min, $min_err="")
-
sorry for this hazzle here stijn
but i change some minor things on the form and now i got the right code...
it's pretty much the same code
but.. it simply won't work
damn s**t... pardon my very bad french...
sorry... new code below..
]<?php/*************************************************************************
*
*Â Â Â Â Â Â Â Â Â Â Â Â Return section
*
**************************************************************************
*
*Â Â Â Â Â File info : return.php
*Â Â Â Â Â Â Â Â Â Â Â add-on for cubecart
*
*Â Â Â Â Â Â Author : Bertil Wallman
*Â Â Â Â Â Â Â Â Â Â Â http://www.e-netton.net
*
*Â Â Â Â Last update : 2005-01-30
*
*
*
**************************************************************************/
session_start();
include("admin/config.php");
include( "admin/settings.inc.php");
include( "shoppingcart.php");
include( "header.inc.php");
$cart = new Cart;
include("subheader.inc.php");
// start border
sb("100%",$la_downloads,$colour_1,$bg_colour);
echo"<center><br><img border=\"0\" src=\"images/SOME.gif\"></p><br>$la_downloads_state<br><br><hr width=\"550\" size=\"1\">";
echo"<a href =\"return.php\"></a><b>$la_dvdr</b></center><br><br>
function check_len(&$check, $field, $max, &$err_field, $err="", $min, $min_err="")
{
 if (strlen($field) > $max)
 {
   if ($err == "")
   {
    $err = $msg->err_maxlen($max);
   }
   $err_field = $err;
   if ($check==true) $check = false;
 }
 if (strlen($field) < $min)
 {
   if ($min_err == "")
   {
    $min_err = $msg->err_minlen($min);
   }
   $err_field = $min_err;
   if ($check==true) $check = false;
 }
}
function check_mail(&$check, $fld, &$error_field, $invalidchars="", $blanks="")
{
  global $msg;
  $expr = "^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z][a-z]+\$";
  //echo "expr=" . $expr . "<br>";
  if ((!$fld) || ($fld=="") || (!eregi($expr,$fld)))
  {
   if ($invalidchars > "")
   {
   $error_field = $invalidchars . "<br>\n";
   } else {
   $error_field = "invalid characters<br>\n";
   }
   if ($check==true) $check =false;
  }
  if (strrpos($fld,' ') > 0)
  {
   if ($blanks > "")
   {
   $error_field = $blanks . "<br>\n";
   } else {
   $error_field = "blanks in e-mail<br>\n";
   }
   if ($check==true) $check =false;
  }
}
if (empty($HTTP_POST_VARS["ordernr"])) $HTTP_POST_VARS["ordernr"]="";
if (empty($err_ordernr)) $err_ordernr=" ";
if (empty($HTTP_POST_VARS["artnr"])) $HTTP_POST_VARS["artnr"]="";
if (empty($err_artnr)) $err_artnr=" ";
if (empty($HTTP_POST_VARS["firstname"])) $HTTP_POST_VARS["firstname"]="";
if (empty($err_firstname)) $err_firstname=" ";
if (empty($HTTP_POST_VARS["lastname"])) $HTTP_POST_VARS["lastname"]="";
if (empty($err_lastname)) $err_lastname=" ";
if (empty($HTTP_POST_VARS["street"])) $HTTP_POST_VARS["street"]="";
if (empty($err_street)) $err_street=" ";
if (empty($HTTP_POST_VARS["zipcity"])) $HTTP_POST_VARS["zipcity"]="";
if (empty($err_zipcity)) $err_zipcity=" ";
if (empty($HTTP_POST_VARS["state"])) $HTTP_POST_VARS["state"]="Blekinge, Dalarna, Gotland, Gävleborg, Halland, Jämtland, Jönköping, Kalmar, Kronoberg, Norbotten, Skåne, Stockholm, Södermanland, Uppsala, Värmland, Västerbotten, Västernorrland, Västmanland, Västra Götaland, Örebro, Östergötland";
if (empty($err_state)) $err_state=" ";
if (empty($HTTP_POST_VARS["country"])) $HTTP_POST_VARS["country"]="";
if (empty($err_country)) $err_country=" ";
if (empty($HTTP_POST_VARS["phone"])) $HTTP_POST_VARS["phone"]="";
if (empty($err_phone)) $err_phone=" ";
if (empty($HTTP_POST_VARS["e_mail"])) $HTTP_POST_VARS["e_mail"]="";
if (empty($err_e_mail)) $err_e_mail=" ";
if (empty($HTTP_POST_VARS["actions"])) $HTTP_POST_VARS["actions"]="Garanti, Reklamation, Återköp";
if (empty($err_actions)) $err_actions=" ";
if (empty($HTTP_POST_VARS["contact"])) $HTTP_POST_VARS["contact"]="";
if (empty($err_contact)) $err_contact=" ";
if (empty($HTTP_POST_VARS["measures"])) $HTTP_POST_VARS["measures"]="Byte mot likvärdig produkt, Pengar tillbaka, Tillgodokvitto";
if (empty($err_measures)) $err_measures=" ";
$checked = true;
if (isset($HTTP_POST_VARS["submit"]))
{
 check_len($checked, $HTTP_POST_VARS["ordernr"],18,$err_ordernr,"Field too long! Maximum:18",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["artnr"],80,$err_artnr,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["firstname"],80,$err_firstname,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["lastname"],80,$err_lastname,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["street"],80,$err_street,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["zipcity"],80,$err_zipcity,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["state"],80,$err_state,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["country"],80,$err_country,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["phone"],80,$err_phone,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["e_mail"],80,$err_e_mail,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["actions"],80,$err_actions,"Field too long! Maximum:80",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["contact"],5000,$err_contact,"Field too long! Maximum:5000",0,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["measures"],80,$err_measures,"Field too long! Maximum:80",0,"Field required! Minimum:1");
}
if ( empty($HTTP_POST_VARS["submit"]) or (!$checked) )
{
?>
<form action="<? echo $GLOBALS["PHP_SELF"] ?>" method="post"><table cellpadding="4" border="0">
<tr><td valign="top">Order nummer:</td><td>
<input type="text" name="ordernr" value="<? echo $HTTP_POST_VARS["ordernr"] ?>">
</td><td>
<? echo $err_ordernr ?>
</td></tr>
<tr><td valign="top">Artikel nummer:</td><td>
<input type="text" name="artnr" value="<? echo $HTTP_POST_VARS["artnr"] ?>">
</td><td>
<? echo $err_artnr ?>
</td></tr>
<tr><td valign="top">Förnamn:</td><td>
<input type="text" name="firstname" value="<? echo $HTTP_POST_VARS["firstname"] ?>">
</td><td>
<? echo $err_firstname ?>
</td></tr>
<tr><td valign="top">Efternamn:</td><td>
<input type="text" name="lastname" value="<? echo $HTTP_POST_VARS["lastname"] ?>">
</td><td>
<? echo $err_lastname ?>
</td></tr>
<tr><td valign="top">Gatuadress:</td><td>
<input type="text" name="street" value="<? echo $HTTP_POST_VARS["street"] ?>">
</td><td>
<? echo $err_street ?>
</td></tr>
<tr><td valign="top">Postnummer och Ort:</td><td>
<input type="text" name="zipcity" value="<? echo $HTTP_POST_VARS["zipcity"] ?>">
</td><td>
<? echo $err_zipcity ?>
</td></tr>
<tr><td valign="top">Län:</td><td>
<select size="1" name="state"><option value="Blekinge"<? if ($HTTP_POST_VARS["state"]== 'Blekinge') echo ' SELECTED="SELECTED"'?>>Blekinge</option>
<option value=" Dalarna"<? if ($HTTP_POST_VARS["state"]== ' Dalarna') echo ' SELECTED="SELECTED"'?>> Dalarna</option>
<option value=" Gotland"<? if ($HTTP_POST_VARS["state"]== ' Gotland') echo ' SELECTED="SELECTED"'?>> Gotland</option>
<option value=" Gävleborg"<? if ($HTTP_POST_VARS["state"]== ' Gävleborg') echo ' SELECTED="SELECTED"'?>> Gävleborg</option>
<option value=" Halland"<? if ($HTTP_POST_VARS["state"]== ' Halland') echo ' SELECTED="SELECTED"'?>> Halland</option>
<option value=" Jämtland"<? if ($HTTP_POST_VARS["state"]== ' Jämtland') echo ' SELECTED="SELECTED"'?>> Jämtland</option>
<option value=" Jönköping"<? if ($HTTP_POST_VARS["state"]== ' Jönköping') echo ' SELECTED="SELECTED"'?>> Jönköping</option>
<option value=" Kalmar"<? if ($HTTP_POST_VARS["state"]== ' Kalmar') echo ' SELECTED="SELECTED"'?>> Kalmar</option>
<option value=" Kronoberg"<? if ($HTTP_POST_VARS["state"]== ' Kronoberg') echo ' SELECTED="SELECTED"'?>> Kronoberg</option>
<option value=" Norbotten"<? if ($HTTP_POST_VARS["state"]== ' Norbotten') echo ' SELECTED="SELECTED"'?>> Norbotten</option>
<option value=" Skåne"<? if ($HTTP_POST_VARS["state"]== ' Skåne') echo ' SELECTED="SELECTED"'?>> Skåne</option>
<option value=" Stockholm"<? if ($HTTP_POST_VARS["state"]== ' Stockholm') echo ' SELECTED="SELECTED"'?>> Stockholm</option>
<option value=" Södermanland"<? if ($HTTP_POST_VARS["state"]== ' Södermanland') echo ' SELECTED="SELECTED"'?>> Södermanland</option>
<option value=" Uppsala"<? if ($HTTP_POST_VARS["state"]== ' Uppsala') echo ' SELECTED="SELECTED"'?>> Uppsala</option>
<option value=" Värmland"<? if ($HTTP_POST_VARS["state"]== ' Värmland') echo ' SELECTED="SELECTED"'?>> Värmland</option>
<option value=" Västerbotten"<? if ($HTTP_POST_VARS["state"]== ' Västerbotten') echo ' SELECTED="SELECTED"'?>> Västerbotten</option>
<option value=" Västernorrland"<? if ($HTTP_POST_VARS["state"]== ' Västernorrland') echo ' SELECTED="SELECTED"'?>> Västernorrland</option>
<option value=" Västmanland"<? if ($HTTP_POST_VARS["state"]== ' Västmanland') echo ' SELECTED="SELECTED"'?>> Västmanland</option>
<option value=" Västra Götaland"<? if ($HTTP_POST_VARS["state"]== ' Västra Götaland') echo ' SELECTED="SELECTED"'?>> Västra Götaland</option>
<option value=" Örebro"<? if ($HTTP_POST_VARS["state"]== ' Örebro') echo ' SELECTED="SELECTED"'?>> Örebro</option>
<option value=" Östergötland"<? if ($HTTP_POST_VARS["state"]== ' Östergötland') echo ' SELECTED="SELECTED"'?>> Östergötland</option>
</select>
</td><td>
<? echo $err_state ?>
</td></tr>
<tr><td valign="top">Land:</td><td>
<input type="text" name="country" value="<? echo $HTTP_POST_VARS["country"] ?>">
</td><td>
<? echo $err_country ?>
</td></tr>
<tr><td valign="top">Telefon:</td><td>
<input type="text" name="phone" value="<? echo $HTTP_POST_VARS["phone"] ?>">
</td><td>
<? echo $err_phone ?>
</td></tr>
<tr><td valign="top">E-mail:</td><td>
<input type="text" name="e_mail" value="<? echo $HTTP_POST_VARS["e_mail"] ?>">
</td><td>
<? echo $err_e_mail ?>
</td></tr>
<tr><td valign="top">Vad gäller ärendet?</td><td>
<select size="1" name="actions"><option value="Garanti"<? if ($HTTP_POST_VARS["actions"]== 'Garanti') echo ' SELECTED="SELECTED"'?>>Garanti</option>
<option value=" Reklamation"<? if ($HTTP_POST_VARS["actions"]== ' Reklamation') echo ' SELECTED="SELECTED"'?>> Reklamation</option>
<option value=" Återköp"<? if ($HTTP_POST_VARS["actions"]== ' Återköp') echo ' SELECTED="SELECTED"'?>> Återköp</option>
</select>
</td><td>
<? echo $err_actions ?>
</td></tr>
<tr><td valign="top">Beskrivning:</td><td>
<textarea name="contact"><? echo $HTTP_POST_VARS["contact"]?></textarea>
</td><td>
<? echo $err_contact ?>
</td></tr>
<tr><td valign="top">Önskad åtgärd:</td><td>
<select size="1" name="measures"><option value="Byte mot likvärdig produkt"<? if ($HTTP_POST_VARS["measures"]== 'Byte mot likvärdig produkt') echo ' SELECTED="SELECTED"'?>>Byte mot likvärdig produkt</option>
<option value=" Pengar tillbaka"<? if ($HTTP_POST_VARS["measures"]== ' Pengar tillbaka') echo ' SELECTED="SELECTED"'?>> Pengar tillbaka</option>
<option value=" Tillgodokvitto"<? if ($HTTP_POST_VARS["measures"]== ' Tillgodokvitto') echo ' SELECTED="SELECTED"'?>> Tillgodokvitto</option>
</select>
</td><td>
<? echo $err_measures ?>
</td></tr>
<tr><td> </td><td><input type="submit" name="submit" value="Send"></td></tr>
<tr><td colspan="2">
</td></tr>
</table></form>
<?
 }
if (isset($HTTP_POST_VARS["submit"]) and ($checked) ) {
 $msg = "You have mail ;-)\n";
 $msg .= "ordernr=".$HTTP_POST_VARS["ordernr"]."\n";
 $msg .= "artnr=".$HTTP_POST_VARS["artnr"]."\n";
 $msg .= "firstname=".$HTTP_POST_VARS["firstname"]."\n";
 $msg .= "lastname=".$HTTP_POST_VARS["lastname"]."\n";
 $msg .= "street=".$HTTP_POST_VARS["street"]."\n";
 $msg .= "zipcity=".$HTTP_POST_VARS["zipcity"]."\n";
 $msg .= "state=".$HTTP_POST_VARS["state"]."\n";
 $msg .= "country=".$HTTP_POST_VARS["country"]."\n";
 $msg .= "phone=".$HTTP_POST_VARS["phone"]."\n";
 $msg .= "e_mail=".$HTTP_POST_VARS["e_mail"]."\n";
 $msg .= "actions=".$HTTP_POST_VARS["actions"]."\n";
 $msg .= "contact=".$HTTP_POST_VARS["contact"]."\n";
 $msg .= "measures=".$HTTP_POST_VARS["measures"]."\n";
 mail("[email protected]","Message from your Formmailer",
$msg);
 echo "e-mail has been sent to: [email protected]<br>\n";
 echo nl2br($msg) . "<br>\n";
}
echo"<br><center>$la_report_broken<a href=\"contact_us.php\"><font color='990000'> $la_here</font><br><br></center><hr width=\"550\" size=\"1\"><br>";
// end border
eb($bg_colour,$colour_1);
include("subfooter.inc.php");
include("footer.inc.php");
?>
-
thx stijn..
now that i see it, i see it's wrong.. it's not what i want...
i'm generating a new code with dropdown menyes where all those small radio buttons are...
anyways..
i'll check your fix right away...
-
-
... hi stinj..
i added that ; myself.. and removed it now.. but..
naa.. it didn't move my way.. still the same.. :angry:
-
..hi and thx twisted..
here's the complete file... let's see if you can make something outta it..
<?php/*************************************************************************
*
*Â Â Â Â Â Â Â Â Â Â Â Â Return section
*
**************************************************************************
*
*Â Â Â Â File info : return.php
*Â Â Â Â Â Â Â Â Â Â add-on for cubecart
*
*Â Â Â Â Â Â Author : Bertil Wallman
*Â Â Â Â Â Â Â Â Â Â http://www.e-netton.net
*
*Â Â Â Last update : 2005-01-30
*
*
*
**************************************************************************/
session_start();
include("admin/config.php");
include( "admin/settings.inc.php");
include( "shoppingcart.php");
include( "header.inc.php");
$cart = new Cart;
include("subheader.inc.php");
// start border
sb("100%",$la_downloads,$colour_1,$bg_colour);
echo"<center><br><img border=\"0\" src=\"images/SOME.gif\"></p><br>$la_downloads_state<br><br><hr width=\"550\" size=\"1\">";
echo"<a href =\"return.php\"></a><b>$la_dvdr</b></center><br><br>
function check_len(&$check, $field, $max, &$err_field, $err="", $min, $min_err="");
{
 if (strlen($field) > $max)
 {
  if ($err == "")
  {
   $err = $msg->err_maxlen($max);
  }
  $err_field = $err;
  if ($check==true) $check = false;
 }
 if (strlen($field) < $min)
 {
  if ($min_err == "")
  {
   $min_err = $msg->err_minlen($min);
  }
  $err_field = $min_err;
  if ($check==true) $check = false;
 }
}
function check_mail(&$check, $fld, &$error_field, $invalidchars="", $blanks="")
{
 global $msg;
 $expr = "^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z][a-z]+\$";
 //echo "expr=" . $expr . "<br>";
 if ((!$fld) || ($fld=="") || (!eregi($expr,$fld)))
 {
  if ($invalidchars > "")
  {
   $error_field = $invalidchars . "<br>\n";
  } else {
   $error_field = "invalid characters<br>\n";
  }
  if ($check==true) $check =false;
 }
 if (strrpos($fld,' ') > 0)
 {
  if ($blanks > "")
  {
   $error_field = $blanks . "<br>\n";
  } else {
   $error_field = "blanks in e-mail<br>\n";
  }
  if ($check==true) $check =false;
 }
}
if (empty($HTTP_POST_VARS["ordernr"])) $HTTP_POST_VARS["ordernr"]="";
if (empty($err_ordernr)) $err_ordernr=" ";
if (empty($HTTP_POST_VARS["artnr"])) $HTTP_POST_VARS["artnr"]="";
if (empty($err_artnr)) $err_artnr=" ";
if (empty($HTTP_POST_VARS["firstname"])) $HTTP_POST_VARS["firstname"]="";
if (empty($err_firstname)) $err_firstname=" ";
if (empty($HTTP_POST_VARS["lastname"])) $HTTP_POST_VARS["lastname"]="";
if (empty($err_lastname)) $err_lastname=" ";
if (empty($HTTP_POST_VARS["street"])) $HTTP_POST_VARS["street"]="";
if (empty($err_street)) $err_street=" ";
if (empty($HTTP_POST_VARS["zipcity"])) $HTTP_POST_VARS["zipcity"]="";
if (empty($err_zipcity)) $err_zipcity=" ";
if (empty($HTTP_POST_VARS["state"])) $HTTP_POST_VARS["state"]="Blekinge, Dalarna, Gotland, Gävleborg, Halland, Jämtland, Jönköping, Kalmar, Kronoberg, Norbotten, Skåne, Stockholm, Södermanland, Uppsala, Värmland, Västerbotten, Västernorrland, Västmanland, Västra Götaland, Örebro, Östergötland";
if (empty($err_state)) $err_state=" ";
if (empty($HTTP_POST_VARS["country"])) $HTTP_POST_VARS["country"]="";
if (empty($err_country)) $err_country=" ";
if (empty($HTTP_POST_VARS["phone"])) $HTTP_POST_VARS["phone"]="";
if (empty($err_phone)) $err_phone=" ";
if (empty($HTTP_POST_VARS["e_mail"])) $HTTP_POST_VARS["e_mail"]="";
if (empty($err_e_mail)) $err_e_mail=" ";
if (empty($HTTP_POST_VARS["actions"])) $HTTP_POST_VARS["actions"]="Garanti, Reklamation, Återköp";
if (empty($err_actions)) $err_actions=" ";
if (empty($HTTP_POST_VARS["contact"])) $HTTP_POST_VARS["contact"]="";
if (empty($err_contact)) $err_contact=" ";
if (empty($HTTP_POST_VARS["measures"])) $HTTP_POST_VARS["measures"]="Byte mot likvärdig produkt, Pengar tillbaka, Tillgodokvitto";
if (empty($err_measures)) $err_measures=" ";
$checked = true;
if (isset($HTTP_POST_VARS["submit"]))
{
 check_len($checked, $HTTP_POST_VARS["ordernr"],18,$err_ordernr,"Field too long! Maximum:18",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["artnr"],15,$err_artnr,"Field too long! Maximum:15",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["firstname"],50,$err_firstname,"Field too long! Maximum:50",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["lastname"],50,$err_lastname,"Field too long! Maximum:50",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["street"],50,$err_street,"Field too long! Maximum:50",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["zipcity"],50,$err_zipcity,"Field too long! Maximum:50",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["state"],30,$err_state,"Field too long! Maximum:30",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["country"],30,$err_country,"Field too long! Maximum:30",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["phone"],30,$err_phone,"Field too long! Maximum:30",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["e_mail"],100,$err_e_mail,"Field too long! Maximum:100",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["actions"],300,$err_actions,"Field too long! Maximum:300",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["contact"],5000,$err_contact,"Field too long! Maximum:5000",1,"Field required! Minimum:1");
 check_len($checked, $HTTP_POST_VARS["measures"],300,$err_measures,"Field too long! Maximum:300",1,"Field required! Minimum:1");
}
if ( empty($HTTP_POST_VARS["submit"]) or (!$checked) )
{
?>
<form action="<? echo $GLOBALS["PHP_SELF"] ?>" method="post"><table cellpadding="4" border="0">
<tr><td valign="top">Order nummer:</td><td>
<input type="text" name="ordernr" value="<? echo $HTTP_POST_VARS["ordernr"] ?>">
</td><td>
<? echo $err_ordernr ?>
</td></tr>
<tr><td valign="top">Artikel nummer:</td><td>
<input type="text" name="artnr" value="<? echo $HTTP_POST_VARS["artnr"] ?>">
</td><td>
<? echo $err_artnr ?>
</td></tr>
<tr><td valign="top">Förnamn:</td><td>
<input type="text" name="firstname" value="<? echo $HTTP_POST_VARS["firstname"] ?>">
</td><td>
<? echo $err_firstname ?>
</td></tr>
<tr><td valign="top">Efternamn:</td><td>
<input type="text" name="lastname" value="<? echo $HTTP_POST_VARS["lastname"] ?>">
</td><td>
<? echo $err_lastname ?>
</td></tr>
<tr><td valign="top">Gatuadress:</td><td>
<input type="text" name="street" value="<? echo $HTTP_POST_VARS["street"] ?>">
</td><td>
<? echo $err_street ?>
</td></tr>
<tr><td valign="top">Postnummer och Ort:</td><td>
<input type="text" name="zipcity" value="<? echo $HTTP_POST_VARS["zipcity"] ?>">
</td><td>
<? echo $err_zipcity ?>
</td></tr>
<tr><td valign="top">Län:</td><td>
<input type="RADIO" name="state" value="Blekinge"<? if ($HTTP_POST_VARS["state"]== 'Blekinge') echo ' CHECKED="CHECKED"'?>>Blekinge<br>
<input type="RADIO" name="state" value=" Dalarna"<? if ($HTTP_POST_VARS["state"]== ' Dalarna') echo ' CHECKED="CHECKED"'?>> Dalarna<br>
<input type="RADIO" name="state" value=" Gotland"<? if ($HTTP_POST_VARS["state"]== ' Gotland') echo ' CHECKED="CHECKED"'?>> Gotland<br>
<input type="RADIO" name="state" value=" Gävleborg"<? if ($HTTP_POST_VARS["state"]== ' Gävleborg') echo ' CHECKED="CHECKED"'?>> Gävleborg<br>
<input type="RADIO" name="state" value=" Halland"<? if ($HTTP_POST_VARS["state"]== ' Halland') echo ' CHECKED="CHECKED"'?>> Halland<br>
<input type="RADIO" name="state" value=" Jämtland"<? if ($HTTP_POST_VARS["state"]== ' Jämtland') echo ' CHECKED="CHECKED"'?>> Jämtland<br>
<input type="RADIO" name="state" value=" Jönköping"<? if ($HTTP_POST_VARS["state"]== ' Jönköping') echo ' CHECKED="CHECKED"'?>> Jönköping<br>
<input type="RADIO" name="state" value=" Kalmar"<? if ($HTTP_POST_VARS["state"]== ' Kalmar') echo ' CHECKED="CHECKED"'?>> Kalmar<br>
<input type="RADIO" name="state" value=" Kronoberg"<? if ($HTTP_POST_VARS["state"]== ' Kronoberg') echo ' CHECKED="CHECKED"'?>> Kronoberg<br>
<input type="RADIO" name="state" value=" Norbotten"<? if ($HTTP_POST_VARS["state"]== ' Norbotten') echo ' CHECKED="CHECKED"'?>> Norbotten<br>
<input type="RADIO" name="state" value=" Skåne"<? if ($HTTP_POST_VARS["state"]== ' Skåne') echo ' CHECKED="CHECKED"'?>> Skåne<br>
<input type="RADIO" name="state" value=" Stockholm"<? if ($HTTP_POST_VARS["state"]== ' Stockholm') echo ' CHECKED="CHECKED"'?>> Stockholm<br>
<input type="RADIO" name="state" value=" Södermanland"<? if ($HTTP_POST_VARS["state"]== ' Södermanland') echo ' CHECKED="CHECKED"'?>> Södermanland<br>
<input type="RADIO" name="state" value=" Uppsala"<? if ($HTTP_POST_VARS["state"]== ' Uppsala') echo ' CHECKED="CHECKED"'?>> Uppsala<br>
<input type="RADIO" name="state" value=" Värmland"<? if ($HTTP_POST_VARS["state"]== ' Värmland') echo ' CHECKED="CHECKED"'?>> Värmland<br>
<input type="RADIO" name="state" value=" Västerbotten"<? if ($HTTP_POST_VARS["state"]== ' Västerbotten') echo ' CHECKED="CHECKED"'?>> Västerbotten<br>
<input type="RADIO" name="state" value=" Västernorrland"<? if ($HTTP_POST_VARS["state"]== ' Västernorrland') echo ' CHECKED="CHECKED"'?>> Västernorrland<br>
<input type="RADIO" name="state" value=" Västmanland"<? if ($HTTP_POST_VARS["state"]== ' Västmanland') echo ' CHECKED="CHECKED"'?>> Västmanland<br>
<input type="RADIO" name="state" value=" Västra Götaland"<? if ($HTTP_POST_VARS["state"]== ' Västra Götaland') echo ' CHECKED="CHECKED"'?>> Västra Götaland<br>
<input type="RADIO" name="state" value=" Örebro"<? if ($HTTP_POST_VARS["state"]== ' Örebro') echo ' CHECKED="CHECKED"'?>> Örebro<br>
<input type="RADIO" name="state" value=" Östergötland"<? if ($HTTP_POST_VARS["state"]== ' Östergötland') echo ' CHECKED="CHECKED"'?>> Östergötland<br>
</td><td>
<? echo $err_state ?>
</td></tr>
<tr><td valign="top">Land:</td><td>
<input type="text" name="country" value="<? echo $HTTP_POST_VARS["country"] ?>">
</td><td>
<? echo $err_country ?>
</td></tr>
<tr><td valign="top">Telefon:</td><td>
<input type="text" name="phone" value="<? echo $HTTP_POST_VARS["phone"] ?>">
</td><td>
<? echo $err_phone ?>
</td></tr>
<tr><td valign="top">E-mail:</td><td>
<input type="text" name="e_mail" value="<? echo $HTTP_POST_VARS["e_mail"] ?>">
</td><td>
<? echo $err_e_mail ?>
</td></tr>
<tr><td valign="top">Vad gäller ärendet?</td><td>
<input type="RADIO" name="actions" value="Garanti"<? if ($HTTP_POST_VARS["actions"]== 'Garanti') echo ' CHECKED="CHECKED"'?>>Garanti<br>
<input type="RADIO" name="actions" value=" Reklamation"<? if ($HTTP_POST_VARS["actions"]== ' Reklamation') echo ' CHECKED="CHECKED"'?>> Reklamation<br>
<input type="RADIO" name="actions" value=" Återköp"<? if ($HTTP_POST_VARS["actions"]== ' Återköp') echo ' CHECKED="CHECKED"'?>> Återköp<br>
</td><td>
<? echo $err_actions ?>
</td></tr>
<tr><td valign="top">Beskrivning:</td><td>
<textarea name="contact"><? echo $HTTP_POST_VARS["contact"]?></textarea>
</td><td>
<? echo $err_contact ?>
</td></tr>
<tr><td valign="top">Önskad åtgärd:</td><td>
<input type="RADIO" name="measures" value="Byte mot likvärdig produkt"<? if ($HTTP_POST_VARS["measures"]== 'Byte mot likvärdig produkt') echo ' CHECKED="CHECKED"'?>>Byte mot likvärdig produkt<br>
<input type="RADIO" name="measures" value=" Pengar tillbaka"<? if ($HTTP_POST_VARS["measures"]== ' Pengar tillbaka') echo ' CHECKED="CHECKED"'?>> Pengar tillbaka<br>
<input type="RADIO" name="measures" value=" Tillgodokvitto"<? if ($HTTP_POST_VARS["measures"]== ' Tillgodokvitto') echo ' CHECKED="CHECKED"'?>> Tillgodokvitto<br>
</td><td>
<? echo $err_measures ?>
</td></tr>
<tr><td> </td><td><input type="submit" name="submit" value="Send"></td></tr>
<tr><td colspan="2">
</td></tr>
</table></form>
<?
 }
if (isset($HTTP_POST_VARS["submit"]) and ($checked) ) {
 $msg = "You have mail ;-)\n";
 $msg .= "ordernr=".$HTTP_POST_VARS["ordernr"]."\n";
 $msg .= "artnr=".$HTTP_POST_VARS["artnr"]."\n";
 $msg .= "firstname=".$HTTP_POST_VARS["firstname"]."\n";
 $msg .= "lastname=".$HTTP_POST_VARS["lastname"]."\n";
 $msg .= "street=".$HTTP_POST_VARS["street"]."\n";
 $msg .= "zipcity=".$HTTP_POST_VARS["zipcity"]."\n";
 $msg .= "state=".$HTTP_POST_VARS["state"]."\n";
 $msg .= "country=".$HTTP_POST_VARS["country"]."\n";
 $msg .= "phone=".$HTTP_POST_VARS["phone"]."\n";
 $msg .= "e_mail=".$HTTP_POST_VARS["e_mail"]."\n";
 $msg .= "actions=".$HTTP_POST_VARS["actions"]."\n";
 $msg .= "contact=".$HTTP_POST_VARS["contact"]."\n";
 $msg .= "measures=".$HTTP_POST_VARS["measures"]."\n";
 mail("[email protected]","Message from your Formmailer",
$msg);
 echo "e-mail has been sent to: [email protected]<br>\n";
 echo nl2br($msg) . "<br>\n";
}
?>
<br><center>$la_report_broken<a href=\"contact_us.php\"><font color='990000'> $la_here</font><br><br></center><hr width=\"550\" size=\"1\"><br>";
// end border
eb($bg_colour,$colour_1);
include("subfooter.inc.php");
include("footer.inc.php");
?>
code i added is the one in black.... and the blue the cc frames and images around it..
and when i run this file, the only thing i got was this as i described
Parse error: parse error, unexpected '\"', expecting ',' or ';' in /home/e-netton/public_html/return.php on line 38i hope it makes any sence..
thx for taking a look at it..
-
hi guys..
i would like to have some help adding a form to my cc
i'm completely worthless at this..
what i've done so far is that i've generated a form and added it into a new file but when i'm trying to run the file i'm getting
Parse error: parse error, unexpected '\"', expecting ',' or ';' in /home/e-netton/public_html/return.php on line 38and that line 38 looks like this
function check_len(&$check, $field, $max, &$err_field, $err="", $min, $min_err="");{
any help appreciated...
thx..
-
-
Can't get passed..
in Install & Upgrade Support
Posted
...
1)
i'm not able to get passed step two when i'm trying to buy something..
i keep getting the 'Sorry - We cannot ship products over the total weight of your order.'
if this has to do with the settings.. then i'm lost... i can't find it..
=========================================
2)
when i'm trying to buy something which i added a product option to i get...
..after that i have a hard time coming back to the store... if i don't close the browser.. sorry just noticed... not even that worked... ;)