Current File : /home/karenpetzb/application/modules/default/views/scripts/commande/validation.phtml

<div class="col-xs-12 caddy-header-box" style="padding-left: 0;">
	<div class="col-xs-10 col-xs-offset-1 caddy_flux" style="padding-left: 0;">
		<div class="caddy_flux_panier"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_id"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_livraison"></div>
		<div class="caddy_flux_separator"></div>
		<div class="caddy_flux_validation_over"></div>
	</div>
</div>
<?php 
$facture = $this->facture;
?>
<div style="float: left; margin: 0 0 0 150px">
	<span class="text3" >Avant de terminer votre commande, veuillez v�rifier l'exactitude de vos donn�es. </span>
</div>

 <?php echo $this->render("/commande/factureedit.phtml"); ?>

<div class="col-xs-6 col-xs-offset-6 text-right" >
  <div class="checkbox" style="width: 360px;">
	   <label class="link18">
          <input type="checkbox" name="isCGV" id="isCGV" > J'ai pris connaissance des <a href="<?php echo $this->baseUrl; ?>/info-3/conditions-generales-vente.html" target="_blank">Conditions G�n�rales de Vente</a>
	
        </label>
	</div>
  </div>
<div class="col-xs-12 noPadding" style="margin: 20px 0 70px 0;">

	<div  class="col-sm-3 col-xs-12 text-center noPadding" > 
		<a class="btn btn-primary btn-lg caddy-link" href="<?php echo $this->baseUrl; ?>/commande/devis" onclick="return checkCheckBoxes('isCGV');" >
			FAIRE UN DEVIS
		</a> 
	</div> 
	<?php if ($facture['PRIXTOTALTTC'] > 0 && $this->isCommandValid == true) { ?>
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<a onclick="return checkCheckBoxes('isCGV');"  href="<?php echo $this->baseUrl; ?>/commande/paiement/type/1" class="btn btn-primary caddy-link"   >
				PAYER PAR CHEQUE
			</a>
		</div>
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<a onclick="return checkCheckBoxes('isCGV');" href="<?php echo $this->baseUrl; ?>/commande/paiement/type/2" class="btn btn-primary caddy-link" >
				FAIRE UN VIREMENT
			</a>
		</div>
		
		<div class="col-sm-2 col-xs-12 text-center noPadding">
			<?php 
				$modepaiement = $facture['USER_MODEPAIEMENT'];
				$isCompte = false;  
				$modepaiement_imgTexte = '';
				if ($this->user['isrecepfacture'] == "Y" || $this->user['iscredit'] == 1) {
					switch ($modepaiement) {
						case 2 : 
							$modepaiement_texte = "Payer � r�ception de la facture";
							$modepaiement_img = "/business/image/inbox.png";
							$modepaiement_imgTexte = "Payer � r�ception de la facture";
							$isCompte = true;
							break;
						case 3 : 
							$modepaiement_texte = "Paiement diff�r� - 30 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 30 jours";
							$isCompte = true;
							break;
						case 4 : 
							$modepaiement_texte = "Paiement diff�r� - 45 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 45 jours";
							$isCompte = true;
							break;
						case 5 : 
							$modepaiement_texte = "Paiement diff�r� - 60 jours";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer par paiement diff�r� de 60 jours";
							$isCompte = true;
							break;
						case 6 : 
							$modepaiement_texte = "A r�ception de la facture";
							$modepaiement_img = "/business/image/delai_payment.png";
							$modepaiement_imgTexte = "Payer a r�ception de la facture";
							$isCompte = true;
							break;
						default :
							$isCompte = false;
							break;
					} 
				}   
				if ($isCompte) { 
			?>
			<a onclick="return checkCheckBoxes('isCGV');" title="<?php echo $modepaiement_imgTexte; ?>"  href="<?php echo $this->baseUrl; ?>/commande/paiement/type/3" data-placement="bottom" class="tooltips btn btn-danger btn-lg caddy-link" >
					EN COMPTE
				</a>
				<?php } ?>
		</div>
		<div class="col-sm-3 col-xs-12 text-center noPadding" >
				<?php $myDate = new Zend_Date(strtotime($facture['DATESTART'])); ?>
				
					<form action="https://securepayments.paypal.com/acquiringweb?cmd=_hosted-payment" method="post">
						<input type="hidden" name="cmd" value="_hosted-payment">
						<input type="hidden" name="business" value="<?php echo $this->paypal_business; ?>">
						<input type="hidden" name="item_name" value="<?php echo 'Total de la commande du '.$myDate->toString('dd/MM/YYYY').' (TTC)'; ?>" /> 
						<input type="hidden" name="item_number" value="<?php echo $facture['ID_COMMAND']; ?>" />
						<input type="hidden" name="custom" value="<?php echo $facture['ID_COMMAND']; ?>" />
						<input type="hidden" name="no_shipping" value="1">
						<input type="hidden" name="no_note" value="1">
						<input type="hidden" name="return" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/commande/paiement">
						<input type="hidden" name="cancel_return" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/commande/paiement">
						<input type="hidden" name="page_style" value="PayPalPerso">
						<input type="hidden" name="currency_code" value="EUR">
						
						<input type="hidden" name="subtotal" value="<?php echo $facture['PRIXTOTALTTC']; ?>"> 
						<input class="btn btn-success btn-lg caddy-link btn-paypal-only" data-placement="top" type="submit" name="PayPal2" value="PAYER VIA PAYPAL"  onclick="return checkCheckBoxes('isCGV');" >
						
						<input type="hidden" name="first_name" value="<?php echo utf8_encode($facture['LIV_RAISONSOCIAL']); ?>">
						<input type="hidden" name="address1" value="<?php echo utf8_encode($facture['FACT_ADRESSE']); ?>">
						<input type="hidden" name="city" value="<?php echo utf8_encode($facture['FACT_VILLE']); ?>">
						<input type="hidden" name="zip" value="<?php echo utf8_encode($facture['LIV_CP']); ?>">
						<input type="hidden" name="country" value="<?php echo utf8_encode($facture['LIV_PAYS']); ?>">
						<input type="hidden" name="billing_first_name" value="<?php echo utf8_encode($facture['USER_PRENOM']); ?>">
						<input type="hidden" name="billing_last_name" value="<?php echo utf8_encode($facture['USER_NOM']); ?>">
						<input type="hidden" name="billing_address1" value="<?php echo utf8_encode($facture['FACT_ADRESSE']); ?>">
						<input type="hidden" name="billing_city" value="<?php echo utf8_encode($facture['FACT_VILLE']); ?>">
						<input type="hidden" name="billing_zip" value="<?php echo utf8_encode($facture['FACT_CP']); ?>">
						<input type="hidden" name="billing_country" value="<?php echo utf8_encode($facture['FACT_PAYS']); ?>">
					
						<!-- PERSONNALISATION -->
						<input type="hidden" name="template" value="TemplateA">
						<input type="hidden" name="bodyBgColor" value="#A2A1A1">
						<input type="hidden" name="footerTextColor" value="#000000">
						<input type="hidden" name="headerBgColor" value="#ffffff">
						<input type="hidden" name="headerHeight" value="150">
						<input type="hidden" name="logoImage" value="<?php echo $this->baseUrl_SiteCommerceUrl; ?>/business/image/logo.png">
						<input type="hidden" name="orderSummaryBgColor" value="#D6D6D6">
						<input type="hidden" name="pageButtonBgColor" value="#68B777">
						<input type="hidden" name="pageButtonTextColor" value="#000000">
						
						<input type="hidden" name="pageTitleTextColor" value="#DE021B">
						<input type="hidden" name="sectionBorder" value="#DE021B">
						<input type="hidden" name="showCustomerName" value="true">
						<input type="hidden" name="showBillingAddress" value="true">
						<input type="hidden" name="showShippingAddress" value="true">
						
					</form>
			</div>
			<?php } ?>
	</div>	

	<input type="hidden" id="PRIXTOTALHT" value="<?php echo $facture['PRIXTOTALHT']; ?>">
	<input type="hidden" id="PRIXTOTALTTC" value="<?php echo $facture['PRIXTOTALTTC']; ?>">
	<input type="hidden" id="PRIXFRAISPORT" value="<?php echo $facture['PRIXFRAISPORT']; ?>">
	<input type="hidden" id="PRIXTAX" value="<?php echo $facture['PRIXTOTALTTC'] - $facture['PRIXTOTALHT'] ; ?>">
	<input type="hidden" id="REFERENCE" value="<?php echo $facture['REFERENCE']; ?>">
	<input type="hidden" id="IDUSER" value="<?php echo $facture['IDUSER']; ?>">
	<input type="hidden" id="USER_EMAIL" value="<?php echo $facture['USER_EMAIL']; ?>">
	<input type="hidden" id="USER_NOM" value="<?php echo utf8_encode($facture['USER_NOM']); ?>">
	<input type="hidden" id="USER_PRENOM" value="<?php echo utf8_encode($facture['USER_PRENOM']); ?>">
	<input type="hidden" id="LIV_VILLE" value="<?php echo utf8_encode($facture['LIV_VILLE']); ?>">
	<input type="hidden" id="LIV_PAYS" value="<?php echo utf8_encode($facture['LIV_PAYS']); ?>">
	<input type="hidden" id="USER_TYPE" value="<?php echo $facture['USER_TYPE']; ?>">
	<input type="hidden" id="USER_MODEPAIEMENT_LABEL" value="<?php echo $facture['USER_MODEPAIEMENT_LABEL']; ?>">