예제 #1
0
			<tr><td>{zip_lbl}</td><td>{zip}</td></tr>
			<tr><td>{country_lbl}</td><td>{country}</td></tr>
			<tr><td>{state_lbl}</td><td>{state}</td></tr>
			<tr><td>{phone_lbl}</td><td>{phone}</td></tr>{shipping_extrafield}
			</tbody></table> {shipping_address_end}';
echo $this->pane->startPane('stat-pane');
//Category Template Start
if ($this->detail->template_section == "category") {
    $title = JText::_('COM_REDSHOP_CATEGORY_FIELDS');
    echo $this->pane->startPanel($title, 'events');
    ?>
	<table class="adminlist">
		<tr>
			<td>
				<?php 
    $tags_front = $extra_field->getSectionFieldList(2, 1);
    $tags_admin = $extra_field->getSectionFieldList(2, 0);
    $tags = array_merge((array) $tags_admin, (array) $tags_front);
    //	$tags=$extra_field->getSectionFieldList(2,1);
    if (count($tags) == 0) {
        echo JText::_("COM_REDSHOP_NO_FIELDS_AVAILABLE");
    }
    for ($i = 0; $i < count($tags); $i++) {
        echo '<span style="margin-left:10px;">{' . $tags[$i]->field_name . '} -- ' . $tags[$i]->field_title . '</span>';
    }
    ?>
			</td>
		</tr>
		<tr>
			<td>
				<?php 
예제 #2
0
 public function manageQuotationUserfield($cart = array(), $quotation_item_id = 0, $section_id = 12)
 {
     $extra_field = new extra_field();
     $row_data = $extra_field->getSectionFieldList($section_id, 1);
     for ($i = 0; $i < count($row_data); $i++) {
         if (array_key_exists($row_data[$i]->field_name, $cart) && $cart[$row_data[$i]->field_name]) {
             $user_fields = $cart[$row_data[$i]->field_name];
             if ($user_fields != '') {
                 $this->insertQuotationUserfield($row_data[$i]->field_id, $quotation_item_id, $section_id, $user_fields);
             }
         }
     }
     return true;
 }
예제 #3
0
			<tr><td>{state_lbl}</td><td>{state}</td></tr>
			<tr><td>{phone_lbl}</td><td>{phone}</td></tr>{shipping_extrafield}
			</tbody></table> {shipping_address_end}';
echo $this->pane->startPanel($title, 'ordermail');
?>
<table class="adminlist">
	<tr>
		<td><?php 
echo JText::_('COM_REDSHOP_ORDER_MAIL_HINT');
?>
</td>
	</tr>
	<tr>
		<td>
			<?php 
$tags = $extra_field->getSectionFieldList(14, 1);
if (count($tags) == 0) {
    echo JText::_("COM_REDSHOP_NO_FIELDS_AVAILABLE");
} else {
    echo JText::_("COM_REDSHOP_CUSTOMER_SHIPPING_ADDRESS");
}
for ($i = 0; $i < count($tags); $i++) {
    echo '<span style="margin-left:10px;">{' . $tags[$i]->field_name . '} -- ' . $tags[$i]->field_title . '</span>';
}
?>
		</td>
	</tr>
	<tr>
		<td>
			<?php 
$tags = $extra_field->getSectionFieldList(15, 1);