AAAAhome/academiac/www/administrator/components/com_virtuemart/views/orders/tmpl/order.php000060400000110040151400311720025531 0ustar00addScriptDeclaration ( " jQuery( function($) { $('.orderedit').hide(); $('.ordereditI').show(); $('.orderedit').css('backgroundColor', 'lightgray'); jQuery('.updateOrderItemStatus').click(function() { document.orderItemForm.task.value = 'updateOrderItemStatus'; document.orderItemForm.submit(); return false }); jQuery('select#virtuemart_paymentmethod_id').change(function(){ jQuery('span#delete_old_payment').show(); jQuery('input#delete_old_payment').attr('checked','checked'); }); }); function enableEdit(e) { jQuery('.orderedit').each( function() { var d = jQuery(this).css('visibility')=='visible'; jQuery(this).toggle(); jQuery('.orderedit').css('backgroundColor', d ? 'white' : 'lightgray'); jQuery('.orderedit').css('color', d ? 'blue' : 'black'); }); jQuery('.ordereditI').each( function() { jQuery(this).toggle(); }); e.preventDefault(); }; function addNewLine(e,i) { var row = jQuery('#itemTable').find('tbody tr:first').html(); var needle = 'item_id['+i+']'; //var needle = new RegExp('item_id['+i+']','igm'); while (row.contains(needle)){ row = row.replace(needle,'item_id[0]'); } //alert(needle); jQuery('#itemTable').find('tbody').prepend(''+row+''); e.preventDefault(); }; function cancelEdit(e) { jQuery('#orderItemForm').each(function(){ this.reset(); }); jQuery('.selectItemStatusCode') .find('option:selected').prop('selected', true) .end().trigger('liszt:updated'); jQuery('.orderedit').hide(); jQuery('.ordereditI').show(); e.preventDefault(); } function resetOrderHead(e) { jQuery('#orderForm').each(function(){ this.reset(); }); jQuery('select#virtuemart_paymentmethod_id') .find('option:selected').prop('selected', true) .end().trigger('liszt:updated'); jQuery('select#virtuemart_shipmentmethod_id') .find('option:selected').prop('selected', true) .end().trigger('liszt:updated'); e.preventDefault(); } "); ?>
  
orderbt->virtuemart_order_id . '&order_number=' .$this->orderbt->order_number. '&order_pass=' .$this->orderbt->order_pass; $print_link = ""; $print_link .= $this->orderbt->order_number . ' '; ?> orderbt->coupon_code) { ?> orderbt->invoiceNumber and !shopFunctions::InvoiceNumberReserved($this->orderbt->invoiceNumber) ) { $invoice_url = juri::root().'index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&virtuemart_order_id=' . $this->orderbt->virtuemart_order_id . '&order_number=' .$this->orderbt->order_number. '&order_pass=' .$this->orderbt->order_pass; $invoice_link = ""; $invoice_link .= $this->orderbt->invoiceNumber . '';?>
orderbt->order_pass;?>
orderbt->created_on,'LC2',true); ?>
orderstatuslist[$this->orderbt->order_status]; ?>
orderbt->company ? $this->orderbt->company." ":""; $username.=$this->orderbt->first_name." ".$this->orderbt->last_name." "; if ($this->orderbt->virtuemart_user_id) { $userlink = JROUTE::_ ('index.php?option=com_virtuemart&view=user&task=edit&virtuemart_user_id[]=' . $this->orderbt->virtuemart_user_id); echo JHTML::_ ('link', JRoute::_ ($userlink), $username, array('title' => JText::_ ('COM_VIRTUEMART_ORDER_EDIT_USER') . ' ' . $username)); } else { echo $this->orderbt->first_name.' '.$this->orderbt->last_name; } ?>
orderbt->ip_address; ?>
orderbt->coupon_code; ?>
orderdetails['history'] as $this->orderbt_event ) { echo ""; echo "\n"; if ($this->orderbt_event->customer_notified == 1) { echo ''; } else { echo ''; } if(!isset($this->orderstatuslist[$this->orderbt_event->order_status_code])){ if(empty($this->orderbt_event->order_status_code)){ $this->orderbt_event->order_status_code = 'unknown'; } $_orderStatusList[$this->orderbt_event->order_status_code] = JText::_('COM_VIRTUEMART_UNKNOWN_ORDER_STATUS'); } echo ''; echo "\n"; echo "\n"; } ?> trigger('plgVmOnUpdateOrderBEPayment',array($this->orderID)); $_returnValues2 = $_dispatcher->trigger('plgVmOnUpdateOrderBEShipment',array( $this->orderID)); $_returnValues = array_merge($_returnValues1, $_returnValues2); $_plg = ''; foreach ($_returnValues as $_returnValue) { if ($_returnValue !== null) { $_plg .= (' \n"); } } if ($_plg !== '') { echo "\n$_plg\n"; } ?>
". vmJsApi::date($this->orderbt_event->created_on,'LC2',true) ."'.JText::_('COM_VIRTUEMART_YES').''.JText::_('COM_VIRTUEMART_NO').''.$this->orderstatuslist[$this->orderbt_event->order_status_code].'".$this->orderbt_event->comments."
' . $_returnValue . "
orderbt->customer_note || true) { ?>
getPayments(); $model = VmModel::getModel('shipmentmethod'); $shipments = $model->getShipments(); ?>
virtuemart_paymentmethod_id == $this->orderbt->virtuemart_paymentmethod_id) echo $payment->payment_name; } ?>
virtuemart_shipmentmethod_id == $this->orderbt->virtuemart_shipmentmethod_id) echo $shipment->shipment_name; } ?>
 
userfields['fields'] as $_field ) { echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; //*/ /* $fn = $_field['name']; $fv = $_field['value']; $ft = $_field['title']; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n";*/ } ?>
'."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '.$_field['formcode']."\n"; echo '
'."\n"; echo ' '.$ft."\n"; echo ' '."\n"; echo " \n"; echo '
shipmentfields['fields'] as $_field ) { echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '."\n"; } ?>
'."\n"; echo ' '."\n"; echo ' '."\n"; echo ' '.$_field['formcode']."\n"; echo '
orderdetails['items'] as $item) { ?> virtuemart_order_item_id; ?>" data-itemid="virtuemart_order_item_id; ?>">*/ ?> orderbt->coupon_discount > 0 || $this->orderbt->coupon_discount < 0) { ?> orderdetails['calc_rules'] as $rule){ if ($rule->calc_kind == 'DBTaxRulesBill') { ?> calc_kind == 'taxRulesBill') { ?> calc_kind == 'DATaxRulesBill') { ?> orderbt->user_currency_rate != 1.0) { ?>
#
product_quantity; ?> order_item_name; ?> order_item_name; if (!empty($item->product_attribute)) { if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'BE'); echo '
'.$product_attribute.'
'; } $_dispatcher = JDispatcher::getInstance(); $_returnValues = $_dispatcher->trigger('plgVmOnShowOrderLineBEShipment',array( $this->orderID,$item->virtuemart_order_item_id)); $_plg = ''; foreach ($_returnValues as $_returnValue) { if ($_returnValue !== null) { $_plg .= $_returnValue; } } if ($_plg !== '') { echo '' . '' . '' // Indent . '' . '' . '
'.$_plg.'
'; } ?> virtuemart_product_id)) { ?> Product ID:
order_item_sku; ?> itemstatusupdatefields[$item->virtuemart_order_item_id]; ?> product_discountedPriceWithoutTax = (float) $item->product_discountedPriceWithoutTax; if (!empty($item->product_priceWithoutTax) && $item->product_discountedPriceWithoutTax != $item->product_priceWithoutTax) { echo ''.$this->currency->priceDisplay($item->product_item_price) .'
'; echo ''.$this->currency->priceDisplay($item->product_discountedPriceWithoutTax) .'
'; } else { echo ''.$this->currency->priceDisplay($item->product_item_price) .'
'; } ?>
currency->priceDisplay($item->product_basePriceWithTax); ?> currency->priceDisplay($item->product_final_price); ?> currency->priceDisplay( $item->product_tax); ?> currency->priceDisplay( $item->product_subtotal_discount); ?> product_basePriceWithTax = (float) $item->product_basePriceWithTax; if(!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price ) { echo ''.$this->currency->priceDisplay($item->product_basePriceWithTax,$this->currency,$item->product_quantity) .'
' ; } elseif (empty($item->product_basePriceWithTax) && $item->product_item_price != $item->product_final_price) { echo '' . $this->currency->priceDisplay($item->product_item_price,$this->currency,$item->product_quantity) . '
'; } echo $this->currency->priceDisplay($item->product_subtotal_with_tax); ?>
         orderStatSelect; ?>    
orderbt->virtuemart_order_id.'&orderLineId=0&tmpl=component&task=editOrderItem'); ?>
:
currency->priceDisplay($this->orderbt->order_subtotal); ?>     currency->priceDisplay($this->orderbt->order_tax); ?> currency->priceDisplay($this->orderbt->order_discountAmount); ?> currency->priceDisplay($this->orderbt->order_salesPrice); ?>
          currency->priceDisplay($this->orderbt->coupon_discount); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount); ?> currency->priceDisplay($rule->calc_amount);?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount); ?> currency->priceDisplay($rule->calc_amount); ?>
calc_rule_name ?> currency->priceDisplay($rule->calc_amount); ?> currency->priceDisplay($rule->calc_amount); ?>
: currency->priceDisplay($this->orderbt->order_shipment); ?>     currency->priceDisplay($this->orderbt->order_shipment_tax); ?>   currency->priceDisplay($this->orderbt->order_shipment+$this->orderbt->order_shipment_tax); ?>
: currency->priceDisplay($this->orderbt->order_payment); ?>     currency->priceDisplay($this->orderbt->order_payment_tax); ?>   currency->priceDisplay($this->orderbt->order_payment+$this->orderbt->order_payment_tax); ?>
:       currency->priceDisplay($this->orderbt->order_billTaxAmount); ?> currency->priceDisplay($this->orderbt->order_billDiscountAmount); ?> currency->priceDisplay($this->orderbt->order_total); ?>
:           orderbt->user_currency_rate ?>
 
trigger('plgVmOnShowOrderBEShipment',array( $this->orderID,$this->orderbt->virtuemart_shipmentmethod_id, $this->orderdetails)); foreach ($returnValues as $returnValue) { if ($returnValue !== null) { echo $returnValue; } } ?> trigger('plgVmOnShowOrderBEPayment',array( $this->orderID,$this->orderbt->virtuemart_paymentmethod_id, $this->orderdetails)); foreach ($_returnValues as $_returnValue) { if ($_returnValue !== null) { echo $_returnValue; } } ?>