Hallo zusammen,
ich bin dabei die store_details datei zu bearbeiten und irgendwie Berechnet er denn Preis nicht.
und wenn man auf weiter Klickt macht er auch nichts.
Hier der Link zur seite http://your-save.de/modules.php?name=shop&op=details&ids=1
Wenn ich die alte store_details_1.tpl einschalte dann geht alles wunderbar.
Hier die Datei die ich bearbeitet habe.
Aber nicht erschrecken bin noch nicht fertig :-D, würde nur gerne wissen was da nicht in ordnung ist oder was ich eventuell vergessen habe.
PHP
<table width="900" border="0" class="wrapper_content">
<tbody>
<tr>
<td><?php for ($i=0; $i<count($box_prodvarcategory); $i++) {
if ($box_prodvaronetime[$i] == 'no') {
echo '<tr><td>'.$box_prodvarcategory[$i].'</td><td>';
$box_select = '<select name="varid[]" id="'.$box_prodvarcatid[$i].'" class="selectfield" onChange="createprice()">';
$box_selectcount=0;
$box_selectcurrent=0;
for ($j=0; $j<count($box_prodvarid); $j++) {
if ($box_prodvarcheck[$j] == $box_prodvarcatid[$i]) {
$box_select.= '<option value="'.$box_prodvarid[$j].'">'.$box_prodvariation[$j].' ('.$box_prodvarmonper[$j].''.$box_prodvarstatus[$j].')</option>';
$box_selectcount++;
$box_selectcurrent = $j;
}
}
if ($box_selectcount == 1) {
echo '<input type="hidden" name="varid[]" id="'.$box_prodvarcatid[$i].'" value="'.$box_prodvarid[$box_selectcurrent].'"><input type="text name="free[]" class="inputfield" value="'.$box_prodvariation[$box_selectcurrent].'" readonly>';
}else{
echo ''.$box_select.'
</select>';
}
echo '</td></tr>';
}
}
for ($i=0; $i<count($box_prodvarcategory); $i++) {
if ($i == 0) {
echo '<tr><td colspan="2"> </td></tr>';
}
if ($box_prodvaronetime[$i] == 'yes') {
echo '<tr><td>'.$box_prodvarcategory[$i].'</td><td>';
$box_select = '<select name="varid[]" id="'.$box_prodvarcatid[$i].'" class="selectfield" onChange="createonetime()">';
$box_selectcount=0;
$box_selectcurrent=0;
for ($j=0; $j<count($box_prodvarid); $j++) {
if ($box_prodvarcheck[$j] == $box_prodvarcatid[$i]) {
$box_select.= '<option value="'.$box_prodvarid[$j].'">'.$box_prodvariation[$j].' ('.$box_prodvarmonper[$j].''.$box_prodvarstatus[$j].')</option>';
$box_selectcount++;
$box_selectcurrent = $j;
}
}
if ($box_selectcount == 1) {
echo '<input type="hidden" name="varid[]" id="'.$box_prodvarcatid[$i].'" value="'.$box_prodvarid[$box_selectcurrent].'"><input type="text name="free[]" class="inputfield" value="'.$box_prodvariation[$box_selectcurrent].'" readonly>';
}else{
echo ''.$box_select.'
</select>';
}
echo '</td></tr>';
}
}?></td>
<td style="text-align:right;"></td>
<td style="text-align:right;"></td>
</tr>
<tr>
<td></td>
<td style="text-align:right;"><?php echo '[b]'.$box_prodjava.'
'._SHOPALLPRICE.'[/b]<input type="text" name="moneytotal" style="text-align:right; font-weight:bold; color:red; border:0px solid;background:none;width:200px;" value="'.$box_prodallprice.' '._TAX.'" readonly>';?></td>
<td><?php echo '[img]images/shop/picture/[/img]<div class="productinfo"><div class="title">'.$box_prodtitle.'';
if ($box_prodshort) {
echo ''.$box_prodshort.'<br>';
}?></td>
</tr>
<tr>
<td><?php if ($box_proddomain == 1) {
echo '
'._SHOPDOMAIN.' <input type="text" name="domain" maxlength="255" style="width:150px;" value="">.<select name="shortcut" style="width:55px;">
'.$box_proddomainselect.'
</select>
<br>
'._SHOPISMYDOMAIN.'<input type="checkbox" name="mydomain" value="1">';
}?></td>
<td style="text-align:right;"><?php if ($box_prodonetime == 1) {
echo '[b]'._SHOPONETIMEPRICE.'[/b]<input type="text" name="moneyonetime" style="text-align:right; font-weight:bold; color:red; border:0px solid;background:none;width:200px;" value="'.$box_prodallonetime.' '._TAX.'" readonly>';
}?></td>
</tr>
<tr>
<td> </td>
<td style="text-align:right;"><?php ?></td>
<td style="text-align:right;"> </td>
</tr>
<tr>
<td> </td>
<td style="text-align:right;"> </td>
<td style="text-align:right;"><?php if ($name == "shop") {
echo '<div class="buttoncalc">';
if (file_exists("themes/$sitetheme/images/$language/button-next.png")) {
echo '<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/'.$language.'/button-next.png" type="image">';
}elseif (file_exists("themes/$sitetheme/images/button-next.png")) {
echo '<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/button-next.png" type="image">';
}else{
echo '<a id="shopbutton" href="javascript:document.cprice.submit();" class="button_form">'._NEXT.'</a>';
}
}else{
echo '<div class="buttonadd">';
if (file_exists("themes/$sitetheme/images/$language/button-add.png")) {
echo '<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/'.$language.'/button-add.png" type="image">';
}elseif (file_exists("themes/$sitetheme/images/button-add.png")) {
echo '<input id="shopbutton" class="'.$box_buttonstatus.'" src="themes/'.$sitetheme.'/images/button-add.png" type="image">';
}else{
echo '<a id="shopbutton" href="javascript:document.cprice.submit();" class="button_form">'._ADDTOBASKET.'</a>';
}
}?></td>
</tr>
</tbody>
</table>
<?php echo '</table>
</td></tr>
</table>
<div class="dataspace">';
echo '
<input type="hidden" name="op" value="add"><input type="hidden" name="ids" value="'.$box_prodid.'">
</form>';
if ($box_prodtext) {
echo '<div class="dataspace">
<div class="dataspace_line">
'.$box_prodtext.'';
}?>
Alles anzeigen