Hallo,
ich habe die checkout.index vom VM 1.0.15 so umgeschrieben, das statt einer checkbox für die AGB´s, drei da sind, aber irgendwie wird nur eine gecheckt. Kann mir jemand helfen, das die zwei anderen Chackboxen auch abgefragt werden und der Kunde erst mit allen drei Zustimmungen weiterkommt?
DankePHP-Code:<div align="left">
<?php
if (PSHOP_AGREE_TO_TOS_ONORDER == '1') { ?>
<table border="0" style="margin-left: 10px;">
<tr>
<td width="600">
Ich bestätige, das mein Konto auf Schufeinträge geprüft werden darf!</td><td> <input type="checkbox" name="agreed1" value="1" class="inputbox" />
<td/>
</tr>
<tr>
<td>
Ich bestätige, die <a href="http://project.hardware-leasing.de/index.php?option=com_artforms&formid=1&Itemid=99999" target="_blank"> erweiterten Informationen </a>ausgefüllt zu haben!</td><td> <input type="checkbox" name="agreed2" value="1" class="inputbox" />
<td/>
</tr>
<tr>
<td>
Ich bestätige, die <a href="index.php?option=com_content&task=view&id=29&Itemid=%2051" target="_blank"> AGB inklusiv der Hinweise zum Widerrufsrecht </a>gelesen zu haben!</td><td> <input type="checkbox" name="agreed" value="1" class="inputbox" />
</td>
</tr>
</table>
<?php
echo '<br />';
}
?>
</div>
<div align="center">
<?php echo $VM_LANG->_PHPSHOP_CHECKOUT_CUSTOMER_NOTE ?>:<br />
<textarea title="<?php echo $VM_LANG->_PHPSHOP_CHECKOUT_CUSTOMER_NOTE ?>" cols="50" rows="5" name="customer_note"></textarea></div><br /><br />
<div align="center">
<input type="submit" onclick="return( submit_order( this.form ) );" class="button" name="submit" value="<?php echo $VM_LANG->_PHPSHOP_ORDER_CONFIRM_MNU ?>" />
</div>
<?php
}
elseif ($checkout_this_step != CHECK_OUT_GET_FINAL_CONFIRMATION) { ?>
<div align="center">
<input type="submit" class="button" name="submit" value="<?php echo $VM_LANG->_PHPSHOP_CHECKOUT_NEXT;?> >>" />
</div>
<?php
} ?>
</td>
</tr>
</table>
</form>
<!-- Body ends here -->
<?php
if ($checkout_this_step == CHECK_OUT_GET_FINAL_CONFIRMATION && PSHOP_AGREE_TO_TOS_ONORDER == '1') {
echo "<script type=\"text/javascript\"><!--
function submit_order( form ) {
if (!form.agreed.checked) {
alert( \"". $VM_LANG->_PHPSHOP_AGREE_TO_TOS ."\" );
return false;
}
else {
return true;
}
}
--></script>";
}
else {
echo "<script type=\"text/javascript\"><!--
function submit_order( form ) { return true; }
--></script>";
}
}
else {
if (!empty($my->id)) {
// USER IS LOGGED IN, BUT NO REGISTERED CUSTOMER
// WE NEED SOME ADDITIONAL INFORMATION HERE,
// SO REDIRECT HIM TO shop/shopper_add
?>
<table width="100%">
<tr ><th><?php echo $VM_LANG->_PHPSHOP_NO_CUSTOMER ?></th>
</tr>
</table>
<?php
include(PAGEPATH. 'checkout_register_form.php');
}
else { // user is not logged in
?>
<fieldset>
<legend><span ><?php echo $VM_LANG->_PHPSHOP_RETURN_LOGIN ?></span></legend>
<br />
<?php
include(PAGEPATH.'checkout.login_form.php');
?>
<br />
</fieldset><br />
<?php
?><br />
<div ><?php echo $VM_LANG->_PHPSHOP_NEW_CUSTOMER ?></div>
<br /><?php
include(PAGEPATH. 'checkout_register_form.php');
?>
<br />
<?php
}
}
}
else {
mosRedirect( $sess->url( 'index.php?page=shop.cart' ) );
}
?>


LinkBack URL
About LinkBacks
Zitieren
Lesezeichen