Example #1
0

   <table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
	   <td class="main" width="<?php 
echo ONEPAGE_ADDR_LAYOUT == 'vertical' ? '100%' : '50%';
?>
" valign="top"><?php 
$header = TABLE_HEADING_BILLING_ADDRESS;
ob_start();
include DIR_WS_INCLUDES . 'checkout/billing_address.php';
$billingAddress = ob_get_contents();
ob_end_clean();
$billingAddress = '<table border="0" width="100%" cellspacing="0" cellpadding="2">
		 <tr id="logInRow"' . (isset($_SESSION['customer_id']) ? ' style="display:none"' : '') . '>
		  <td class="main"> ' . TEXT_EXISTING_CUSTOMER_LOGIN . ' <a href="' . fixSeoLink(tep_href_link(FILENAME_LOGIN)) . '" id="loginButton">' . tep_image_button('button_login.gif', IMAGE_LOGIN) . '</a></td>
		 </tr>
		</table>' . $billingAddress;
buildInfobox($header, $billingAddress);
?>
<table id="changeBillingAddressTable" border="0" width="100%" cellspacing="0" cellpadding="2"<?php 
echo isset($_SESSION['customer_id']) ? '' : ' style="display:none"';
?>
>
    		<tr>
    		 <td class="main" align="right"><a id="changeBillingAddress" href="<?php 
echo tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', $request_type);
?>
"><?php 
echo tep_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS);
?>
Example #2
0
  onePage.pointsInstalled = <?php 
echo USE_POINTS_SYSTEM == 'true' && USE_REDEEM_SYSTEM == 'true' ? 'true' : 'false';
?>
;
  //EOF POINTS
  onePage.shippingEnabled = <?php 
echo $onepage['shippingEnabled'] === true ? 'true' : 'false';
?>
;
  onePage.pageLinks = {
	  checkout: '<?php 
echo fixSeoLink(tep_href_link(FILENAME_CHECKOUT, session_name() . '=' . session_id() . '&rType=ajax', $request_type));
?>
',
	  shoppingCart: '<?php 
echo fixSeoLink(tep_href_link(FILENAME_SHOPPING_CART));
?>
'
  }

  function getFieldErrorCheck($element){
	  var rObj = {};
	  switch($element.attr('name')){
		  case 'billing_firstname':
		  case 'shipping_firstname':
			  rObj.minLength = <?php 
echo addslashes(ENTRY_FIRST_NAME_MIN_LENGTH);
?>
;
			  rObj.errMsg = '<?php 
echo addslashes(ENTRY_FIRST_NAME_ERROR);