Add translations for cookie consent and footer links in multiple languages; update checkout consent messages
- Updated French, Italian, Dutch, and US English translations to include cookie consent messages and footer links. - Modified checkout consent messages to include privacy policy acceptance. - Added new pages for cookies, contact, returns, and complaints with appropriate styling and content. - Updated routing in index.php to include new pages. - Refactored image selection script to use click events instead of mouseover.
This commit is contained in:
16
checkout.php
16
checkout.php
@@ -368,6 +368,7 @@ if (isset($_POST['method'], $_POST['first_name'], $_POST['last_name'], $_POST['a
|
||||
//-------------------------------
|
||||
|
||||
$terms_link = url('index.php?page=termsandconditions');
|
||||
$privacy_link = url('index.php?page=privacy');
|
||||
|
||||
$view = template_header(($checkout_header ?? 'Checkout'),'');
|
||||
|
||||
@@ -395,13 +396,20 @@ $view .= '<p>'.$account_available.' <a href="'.url('index.php?page=myaccount').'
|
||||
|
||||
<div class="payment-methods">';
|
||||
if (mollie_enabled){
|
||||
$view .= ' <input id="mollie" type="radio" name="method" value="3" '. ((mollie_default)? 'checked':'') .'>
|
||||
<label for="mollie">
|
||||
$view .= ' <input id="mollie-ideal" type="radio" name="method" value="3" '. ((mollie_default)? 'checked':'') .'>
|
||||
<label for="mollie-ideal">
|
||||
<img src="./custom/assets/iDEAL.png" style="width: 50px;" alt="'.$payment_method_1.'">
|
||||
<img src="./custom/assets/bancontact.png" style="width: 50px;" alt="'.$payment_method_1.'">
|
||||
</label>';
|
||||
}
|
||||
|
||||
$view .= ' <input id="mollie-card" type="radio" name="method" value="3">
|
||||
<label for="mollie-card">
|
||||
<img src="./custom/assets/mastercard.png" style="width: 50px;" alt="'.$payment_method_1.'">
|
||||
<img src="./custom/assets/visa.png" style="width: 50px;" alt="'.$payment_method_1.'">
|
||||
</label>';
|
||||
|
||||
}
|
||||
|
||||
if (paypal_enabled){
|
||||
$view .= ' <input id="paypal" type="radio" name="method" value="1" '. ((paypal_default)? 'checked':'') .'>
|
||||
<label for="paypal"><img src="https://www.paypalobjects.com/webstatic/mktg/Logo/pp-logo-100px.png" alt="PayPal Logo"></label>';
|
||||
@@ -545,7 +553,7 @@ $view .= ' </div>
|
||||
</div>
|
||||
<div class="subtotal">
|
||||
<span>
|
||||
<input type="checkbox" id="consent" name="consent" value="1" required>'.$order_consent_2.' <a href="'.$terms_link.'" target="_blank">'.$order_consent_3.'</a>
|
||||
<input type="checkbox" id="consent" name="consent" value="1" required>'.$order_consent_2.' <a href="'.$terms_link.'" target="_blank">'.$order_consent_3.'</a> '.$order_consent_4.' <a href="'.$privacy_link.'" target="_blank">'.$order_consent_5.'</a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user