Exemplo n.º 1
0
			return false;
		}
		return true;
	}
</script>
<?php 
if (strstr($template_desc, "{product_loop_start}") && strstr($template_desc, "{product_loop_end}")) {
    $template_sdata = explode('{product_loop_start}', $template_desc);
    $template_start = $template_sdata[0];
    $template_edata = explode('{product_loop_end}', $template_sdata[1]);
    $template_end = $template_edata[1];
    $template_middle = $template_edata[0];
    $template_middle = $carthelper->replaceCartItem($template_middle, $cart, 0, DEFAULT_QUOTATION_MODE);
    $template_desc = $template_start . $template_middle . $template_end;
}
$template_desc = $carthelper->replaceLabel($template_desc);
if ($user->id) {
    $template_desc = $carthelper->replaceBillingAddress($template_desc, $detail);
    $template_desc .= '<input type="hidden" name="user_email" id="user_email" value="' . $detail->user_email . '"/>';
} else {
    $billing = '<table width="90%">
	<tr><td width="100" align="right">' . JText::_('COM_REDSHOP_EMAIL') . ':</td>
		<td><input type="text" name="user_email" id="user_email" value=""/></td></tr>';
    if (strstr($template_desc, "{quotation_custom_field_list}")) {
        $billing .= $extra_field->list_all_field(16, $detail->user_info_id, "", "tbl");
        $template_desc = str_replace("{quotation_custom_field_list}", "", $template_desc);
    } else {
        $template_desc = $extra_field->list_all_field(16, $detail->user_info_id, "", "", $template_desc);
    }
    $billing .= '</table>';
    $template_desc = str_replace("{billing_address_information_lbl}", JText::_('COM_REDSHOP_BILLING_ADDRESS_INFORMATION_LBL'), $template_desc);