0byt3m1n1-V2
Path:
/
home
/
a
/
c
/
a
/
academiac
/
www
/
[
Home
]
File: invoice.tar
tmpl/invoice.php 0000666 00000007305 15140422312 0007670 0 ustar 00 <?php /** * * Order detail view * * @package VirtueMart * @subpackage Orders * @author Max Milbers, Valerie Isaksen * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: details.php 5412 2012-02-09 19:27:55Z alatak $ */ //index.php?option=com_virtuemart&view=invoice&layout=invoice&format=pdf&tmpl=component&order_number=xx&order_pass=p_yy // // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); JHTML::stylesheet('vmpanels.css', JURI::root() . 'components/com_virtuemart/assets/css/'); if ($this->_layout == "invoice") { $document = JFactory::getDocument(); $document->setTitle(JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_NUMBER') . ' ' . $this->orderDetails['details']['BT']->order_number . ' ' . $this->vendor->vendor_store_name); //$document->setName( JText::_('COM_VIRTUEMART_ACC_ORDER_INFO').' '.$this->orderDetails['details']['BT']->order_number); //$document->setDescription( JText::_('COM_VIRTUEMART_ORDER_PRINT_PO_NUMBER').' '.$this->orderDetails['details']['BT']->order_number); } if ($this->headFooter) { ?> <style><?php echo $this->vendor->vendor_letter_css; ?></style> <div class="vendor-details-view"> <?php echo ($this->format=="html")?$this->replaceVendorFields($this->vendor->vendor_letter_header_html, $this->vendor):$this->vendor->vendor_letter_header_html; ?> </div> <div class="vendor-description"> <?php //echo $this->vendor->vendor_store_desc.'<br>'; /* foreach($this->vendorAddress as $userfields){ foreach($userfields['fields'] as $item){ if(!empty($item['value'])){ if($item['name']==='agreed'){ $item['value'] = ($item['value']===0) ? JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_NO'):JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_TOS_YES'); } ?><!-- span class="titles"><?php echo $item['title'] ?></span --> <span class="values vm2<?php echo '-'.$item['name'] ?>" ><?php echo $this->escape($item['value']) ?></span> <?php if ($item['name'] != 'title' and $item['name'] != 'first_name' and $item['name'] != 'middle_name' and $item['name'] != 'zip') { ?> <br class="clear" /> <?php } } } }*/ ?></div> <?php } if ($this->print) { ?> <body onload="javascript:print();"> <?php } ?> <div class='spaceStyle'> <?php echo $this->loadTemplate('order'); ?> </div> <div class='spaceStyle'> <?php if ($this->print) { echo $this->loadTemplate('items'); } else { // NOT in print mode, full HTML view for a browser: $tabarray = array('items'=>'COM_VIRTUEMART_ORDER_ITEM', 'history'=>'COM_VIRTUEMART_ORDER_HISTORY'); shopFunctionsF::buildTabs( $this, $tabarray); } ?> </div> <br clear="all"/><br/> <?php if ($this->headFooter) { echo ($this->format=="html")?$this->replaceVendorFields($this->vendor->vendor_letter_footer_html, $this->vendor):$this->vendor->vendor_letter_footer_html; } if ($this->vendor->vendor_letter_add_tos) {?> <div class="invoice_tos" <?php if ($this->vendor->vendor_letter_add_tos_newpage) { ?> style="page-break-before: always"<?php } ?>> <?php echo $this->vendor->vendor_terms_of_service; ?> </div> <?php } if ($this->print) { ?> </body> <?php } ?> tmpl/invoice_items.php 0000666 00000024205 15140422312 0011067 0 ustar 00 <?php /** * * Order items view * * @package VirtueMart * @subpackage Orders * @author Max Milbers, Valerie Isaksen * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * @version $Id: details_items.php 5432 2012-02-14 02:20:35Z Milbo $ */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); $colspan=8; if ($this->doctype != 'invoice') { $colspan -= 4; } elseif ( ! VmConfig::get('show_tax')) { $colspan -= 1; } ?> <table class="html-email" width="100%" cellspacing="0" cellpadding="0" border="0"> <tr align="left" class="sectiontableheader"> <td align="left" width="5%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SKU') ?></strong></td> <td align="left" colspan="2" width="38%" ><strong><?php echo JText::_('COM_VIRTUEMART_PRODUCT_NAME_TITLE') ?></strong></td> <td align="center" width="10%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_STATUS') ?></strong></td> <?php if ($this->doctype == 'invoice') { ?> <td align="right" width="10%" ><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRICE') ?></strong></td> <?php } ?> <td align="right" width="6%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_QTY') ?></strong></td> <?php if ($this->doctype == 'invoice') { ?> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right" width="10%" ><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_TAX') ?></strong></td> <?php } ?> <td align="right" width="11%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL_DISCOUNT_AMOUNT') ?></strong></td> <td align="right" width="11%"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?></strong></td> <?php } ?> </tr> <?php $menuItemID = shopFunctionsF::getMenuItemId($this->orderDetails['details']['BT']->order_language); foreach($this->orderDetails['items'] as $item) { $qtt = $item->product_quantity ; $product_link = JURI::root().'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id . '&virtuemart_product_id=' . $item->virtuemart_product_id . '&Itemid=' . $menuItemID; ?> <tr valign="top"> <td align="left"> <?php echo $item->order_item_sku; ?> </td> <td align="left" colspan="2" > <div float="right" ><a href="<?php echo $product_link; ?>"><?php echo $item->order_item_name; ?></a></div> <?php if (!empty($item->product_attribute)) { if(!class_exists('VirtueMartModelCustomfields'))require(JPATH_VM_ADMINISTRATOR.DS.'models'.DS.'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item,'FE'); echo $product_attribute; } ?> </td> <td align="center"> <?php echo $this->orderstatuses[$item->order_status]; ?> </td> <?php if ($this->doctype == 'invoice') { ?> <td align="right" class="priceCol" > <?php $item->product_discountedPriceWithoutTax = (float) $item->product_discountedPriceWithoutTax; if (!empty($item->product_priceWithoutTax) && $item->product_discountedPriceWithoutTax != $item->product_priceWithoutTax) { echo '<span class="line-through">'.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'</span><br />'; echo '<span >'.$this->currency->priceDisplay($item->product_discountedPriceWithoutTax, $this->currency) .'</span><br />'; } else { echo '<span >'.$this->currency->priceDisplay($item->product_item_price, $this->currency) .'</span><br />'; } ?> </td> <?php } ?> <td align="right" > <?php echo $qtt; ?> </td> <?php if ($this->doctype == 'invoice') { ?> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right" class="priceCol"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($item->product_tax ,$this->currency, $qtt)."</span>" ?></td> <?php } ?> <td align="right" class="priceCol" > <?php echo $this->currency->priceDisplay( $item->product_subtotal_discount, $this->currency ); //No quantity is already stored with it ?> </td> <td align="right" class="priceCol"> <?php $item->product_basePriceWithTax = (float) $item->product_basePriceWithTax; $class = ''; if(!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price ) { echo '<span class="line-through" >'.$this->currency->priceDisplay($item->product_basePriceWithTax,$this->currency,$qtt) .'</span><br />' ; } elseif (empty($item->product_basePriceWithTax) && $item->product_item_price != $item->product_final_price) { echo '<span class="line-through">' . $this->currency->priceDisplay($item->product_item_price,$this->currency,$qtt) . '</span><br />'; } echo $this->currency->priceDisplay( $item->product_subtotal_with_tax ,$this->currency); //No quantity or you must use product_final_price ?> </td> <?php } ?> </tr> <?php } ?> <?php if ($this->doctype == 'invoice') { ?> <tr><td colspan="<?php echo $colspan ?>"></td></tr> <tr class="sectiontableentry1"> <td colspan="6" align="right"><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_PRICES_TOTAL'); ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_tax, $this->currency)."</span>" ?></td> <?php } ?> <td align="right"><?php echo "<span class='priceColor2'>".$this->currency->priceDisplay($this->orderDetails['details']['BT']->order_discountAmount, $this->currency)."</span>" ?></td> <td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_salesPrice, $this->currency) ?></td> </tr> <?php if ($this->orderDetails['details']['BT']->coupon_discount <> 0.00) { $coupon_code=$this->orderDetails['details']['BT']->coupon_code?' ('.$this->orderDetails['details']['BT']->coupon_code.')':''; ?> <tr> <td align="right" class="pricePad" colspan="6"><?php echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT').$coupon_code ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"> </td> <?php } ?> <td align="right"></td> <td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->coupon_discount, $this->currency); ?></td> </tr> <?php } ?> <?php foreach($this->orderDetails['calc_rules'] as $rule){ if ($rule->calc_kind== 'DBTaxRulesBill') { ?> <tr > <td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"> </td> <?php } ?> <td align="right"> <?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?></td> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td> </tr> <?php } elseif ($rule->calc_kind == 'taxRulesBill') { ?> <tr > <td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td> <?php } ?> <td align="right"><?php ?> </td> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td> </tr> <?php } elseif ($rule->calc_kind == 'DATaxRulesBill') { ?> <tr > <td colspan="6" align="right" class="pricePad"><?php echo $rule->calc_rule_name ?> </td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"> </td> <?php } ?> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td> <td align="right"><?php echo $this->currency->priceDisplay($rule->calc_amount, $this->currency); ?> </td> </tr> <?php } } ?> <tr> <td align="right" class="pricePad" colspan="6"><?php echo $this->orderDetails['shipmentName'] ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment_tax, $this->currency) ?></span> </td> <?php } ?> <td align="right"></td> <td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment + $this->orderDetails['details']['BT']->order_shipment_tax, $this->currency); ?></td> </tr> <tr> <td align="right" class="pricePad" colspan="6"><?php echo $this->orderDetails['paymentName'] ?></td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment_tax, $this->currency) ?></span> </td> <?php } ?> <td align="right"></td> <td align="right"><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment + $this->orderDetails['details']['BT']->order_payment_tax, $this->currency); ?></td> </tr> <tr> <td align="right" class="pricePad" colspan="6"><strong><?php echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') ?></strong></td> <?php if ( VmConfig::get('show_tax')) { ?> <td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_billTaxAmount, $this->currency); ?></span></td> <?php } ?> <td align="right"><span class='priceColor2'><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_billDiscountAmount, $this->currency); ?></span></td> <td align="right"><strong><?php echo $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total, $this->currency); ?></strong></td> </tr> <?php } ?> </table> tmpl/mail_raw_shopper.php 0000666 00000006074 15140422312 0011571 0 ustar 00 <?php /** * * Layout for the shopper mail, when he confirmed an ordner * * The addresses are reachable with $this->BTaddress, take a look for an exampel at shopperadresses.php * * With $this->cartData->paymentName or shipmentName, you get the name of the used paymentmethod/shippmentmethod * * In the array order you have details and items ($this->orderDetails['details']), the items gather the products, but that is done directly from the cart data * * $this->orderDetails['details'] contains the raw address data (use the formatted ones, like BTaddress). Interesting informatin here is, * order_number ($this->orderDetails['details']['BT']->order_number), order_pass, coupon_code, order_status, order_status_name, * user_currency_rate, created_on, customer_note, ip_address * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); echo strip_tags(JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER')) . "\n" . "\n"; echo strip_tags(JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_SUMMARY', $this->vendor->vendor_store_name)) . "\n" . "\n"; echo JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_CONTENT', $this->shopperName, $this->vendor->vendor_store_name, $this->orderDetails['details']['BT']->order_total, $this->orderDetails['details']['BT']->order_number, $this->orderDetails['details']['BT']->order_pass, $this->orderDetails['details']['BT']->created_on) . "\n" . "\n"; echo "\n" . strip_tags(JText::sprintf('COM_VIRTUEMART_MAIL_ORDER_STATUS', $this->orderDetails['details']['BT']->order_status_name)); echo "\n\n"; $nb = count($this->orderDetails['history']); if ($this->orderDetails['history'][$nb - 1]->customer_notified && !(empty($this->orderDetails['history'][$nb - 1]->comments))) { echo $this->orderDetails['history'][$nb - 1]->comments; } echo "\n\n"; echo "\n\n"; echo JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER_LINK') . ' : ' . JURI::root() . 'index.php?option=com_virtuemart&view=orders&layout=details&order_number=' . $this->orderDetails['details']['BT']->order_number . '&order_pass=' . $this->orderDetails['details']['BT']->order_pass . "\n"; if (!empty($this->orderDetails['details']['BT']->customer_note)) { echo "\n" . strip_tags(JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_QUESTION', $this->orderDetails['details']['BT']->customer_note)); } echo "\n\n"; //TODO if silent registration logindata //TODO if Paymentmethod needs Bank account data of vendor //We may wish to integrate later a kind of signature tmpl/mail_raw_shopperaddresses.php 0000666 00000002544 15140422312 0013465 0 ustar 00 <?php /** * * Layout for the shopping cart and the mail * shows the chosen adresses of the shopper * taken from the cart in the session * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); echo "\n"; echo JText::_('COM_VIRTUEMART_USER_FORM_BILLTO_LBL'). "\n"; echo sprintf("%'-64.64s",''); echo "\n"; foreach ($this->userfields['fields'] as $field) { if(!empty($field['value'])){ echo $field['title'].': '.$this->escape($field['value'])."\n"; } } echo "\n"; echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'). "\n"; echo sprintf("%'-64.64s",''); echo "\n"; foreach ($this->shipmentfields['fields'] as $field) { if(!empty($field['value'])){ echo $field['title'].': '.$this->escape($field['value'])."\n"; } } echo "\n"; tmpl/mail_html_header.php 0000666 00000004055 15140422312 0011511 0 ustar 00 <?php /** * * Define here the Header for order mail success ! * * @package VirtueMart * @subpackage Cart * @author Kohl Patrick * @author Valérie Isaksen * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ // Check to ensure this file is included in Joomla! defined ('_JEXEC') or die('Restricted access'); ?> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="html-email"> <?php if ($this->vendor->vendor_letter_header>0) { ?> <tr> <?php if ($this->vendor->vendor_letter_header_image>0) { ?> <td class="vmdoc-header-image"><img src="<?php echo JURI::root () . $this->vendor->images[0]->file_url ?>" style="width: <?php echo $this->vendor->vendor_letter_header_imagesize; ?>mm;" /></td> <td colspan=1 class="vmdoc-header-vendor"> <?php } else { // no image ?> <td colspan=2 width="100%" class="vmdoc-header-vendor"> <?php } ?> <div id="vmdoc-header" class="vmdoc-header" style="font-size: <?php echo $this->vendor->vendor_letter_header_font_size; ?>pt;"> <?php echo VirtuemartViewInvoice::replaceVendorFields ($this->vendor->vendor_letter_header_html, $this->vendor); ?> </div> </td> </tr> <?php if ($this->vendor->vendor_letter_header_line == 1) { ?> <tr><td colspan=2 width="100%" class="vmdoc-header-separator"><hr/></td></tr> <?php } // END if header_line ?> <?php } // END if header ?> <tr> <td colspan="2"> <strong><?php echo JText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME', $this->civility . ' ' . $this->orderDetails['details']['BT']->first_name . ' ' . $this->orderDetails['details']['BT']->last_name); ?></strong><br/> </td> </tr> </table> tmpl/mail_raw_footer.php 0000666 00000003026 15140422312 0011401 0 ustar 00 <?php /** * * Layout for the shopping cart, look in mailshopper for more details * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2012 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); /* TODO Chnage the footer place in helper or assets ???*/ if (empty($this->vendor)) { $vendorModel = VmModel::getModel('vendor'); $this->vendor = $vendorModel->getVendor(); } $link = JURI::root(). 'index.php?option=com_virtuemart' ; echo "\n\n"; $link= JHTML::_('link', $link, $this->vendor->vendor_name) ; // echo JText::_('COM_VIRTUEMART_MAIL_VENDOR_TITLE').$this->vendor->vendor_name.'<br/>'; /* GENERAL FOOTER FOR ALL MAILS */ echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . $link; echo "\n"; echo $this->vendor->vendor_name ."\n".$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name ."\n".strip_tags($this->vendor->vendor_store_desc)."\n".strip_tags(str_replace('<br />',"\n",$this->replaceVendorFields($this->vendor->vendor_letter_footer_html, $this->vendor))); tmpl/mail_raw_pricelist.php 0000666 00000012760 15140422312 0012106 0 ustar 00 <?php defined('_JEXEC') or die('Restricted access'); /** * * Layout for the shopping cart * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ // Plain text formating // echo sprintf("[%s]\n", $s); // affichage d'une chaîne standard // echo sprintf("[%10s]\n", $s); // justification à droite avec des espaces // echo sprintf("[%-10s]\n", $s); // justification à gauche avec des espaces // echo sprintf("[%010s]\n", $s); // l'espacement nul fonctionne aussi sur les cha�nes // echo sprintf("[%'#10s]\n", $s); // utilisation du caractère personnalis� de s�paration '#' // echo sprintf("[%10.10s]\n", $t); // justification � gauche mais avec une coupure � 10 caract�res // $s = 'monkey'; // [monkey] // [ monkey] // [monkey ] // [0000monkey] // [####monkey] // [many monke] // Check to ensure this file is included in Joomla! // jimport( 'joomla.application.component.view'); // $viewEscape = new JView(); // $viewEscape->setEscape('htmlspecialchars'); // TODO Temp fix !!!!! *********************************>>> //$skuPrint = echo sprintf( "%64.64s",strtoupper (JText::_('COM_VIRTUEMART_SKU') ) ) ; // Head of table echo strip_tags(JText::sprintf('COM_VIRTUEMART_ORDER_PRINT_TOTAL', $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total,$this->currency))) . "\n"; echo sprintf("%'-64.64s", '') . "\n"; echo JText::_('COM_VIRTUEMART_ORDER_ITEM') . "\n"; foreach ($this->orderDetails['items'] as $item) { echo "\n"; echo $item->product_quantity . ' X ' . $item->order_item_name . ' (' . strtoupper(JText::_('COM_VIRTUEMART_SKU')) . $item->order_item_sku . ')' . "\n"; if (!empty($item->product_attribute)) { if (!class_exists('VirtueMartModelCustomfields')) require(JPATH_VM_ADMINISTRATOR . DS . 'models' . DS . 'customfields.php'); $product_attribute = VirtueMartModelCustomfields::CustomsFieldOrderDisplay($item, 'FE'); echo "\n" . $product_attribute . "\n"; } if (!empty($item->product_basePriceWithTax) && $item->product_basePriceWithTax != $item->product_final_price) { echo $item->product_basePriceWithTax . "\n"; } echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') . $item->product_final_price; if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_PRODUCT_TAX') . ':' . $this->currency->priceDisplay($item->product_tax,$this->currency) . ')' . "\n"; } echo "\n"; } echo sprintf("%'-64.64s", ''); echo "\n"; // Coupon if (!empty($this->orderDetails['details']['BT']->coupon_code)) { echo JText::_('COM_VIRTUEMART_COUPON_DISCOUNT') . ':' . $this->orderDetails['details']['BT']->coupon_code . ' ' . JText::_('COM_VIRTUEMART_PRICE') . ':' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->coupon_discount,$this->currency); echo "\n"; } foreach ($this->orderDetails['calc_rules'] as $rule) { if ($rule->calc_kind == 'DBTaxRulesBill') { echo $rule->calc_rule_name . $this->currency->priceDisplay($rule->calc_amount, $this->currency) . "\n"; } elseif ($rule->calc_kind == 'taxRulesBill') { echo $rule->calc_rule_name . ' ' . $this->currency->priceDisplay($rule->calc_amount,$this->currency) . "\n"; } elseif ($rule->calc_kind == 'DATaxRulesBill') { echo $rule->calc_rule_name . ' ' . $this->currency->priceDisplay($rule->calc_amount,$this->currency) . "\n"; } } echo strtoupper(JText::_('COM_VIRTUEMART_ORDER_PRINT_SHIPPING')) . ' (' . strip_tags(str_replace("<br />", "\n", $this->orderDetails['shipmentName'])) . ' ) ' . "\n"; echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment,$this->currency); if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_TAX') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_shipment_tax,$this->currency) . ')'; } echo "\n"; echo strtoupper(JText::_('COM_VIRTUEMART_ORDER_PRINT_PAYMENT')) . ' (' . strip_tags(str_replace("<br />", "\n", $this->orderDetails['paymentName'])) . ' ) ' . "\n"; echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL') . ':' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment,$this->currency); if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_TAX') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_payment_tax,$this->currency) . ')'; } echo "\n"; echo sprintf("%'-64.64s", '') . "\n"; // total order echo JText::_('COM_VIRTUEMART_MAIL_SUBTOTAL_DISCOUNT_AMOUNT') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_billDiscountAmount,$this->currency) . "\n"; echo strtoupper(JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL')) . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total,$this->currency) . "\n"; if (VmConfig::get('show_tax')) { echo ' (' . JText::_('COM_VIRTUEMART_ORDER_PRINT_TAX') . ' : ' . $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_billTaxAmount,$this->currency) . ')' . "\n"; } echo "\n"; tmpl/mail_raw_vendor.php 0000666 00000002006 15140422312 0011375 0 ustar 00 <?php /** * * Layout for the shopping cart, look in mailshopper for more details * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); echo JText::sprintf('COM_VIRTUEMART_CART_NOTIFY_MAIL_RAW', $this->productName,$this->url); if(!empty($this->orderDetails['details']['BT']->customer_note)) { echo "\n" . JText::sprintf('COM_VIRTUEMART_CART_MAIL_VENDOR_SHOPPER_QUESTION', $this->orderDetails['details']['BT']->customer_note); } echo "\n"; tmpl/mail_html_pricelist.php 0000666 00000001524 15140422312 0012255 0 ustar 00 <?php /** * * Layout for the shopping cart * * @package VirtueMart * @subpackage Cart * @author Max Milbers, Valerie Isaksen * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); $oldlayout=$this->getLayout(); $this->setLayout('invoice'); echo $this->loadTemplate('items'); $this->setLayout($oldlayout); tmpl/mail_html_vendor_more.php 0000666 00000001245 15140422312 0012576 0 ustar 00 <?php defined('_JEXEC') or die(''); /** * * Template for the order email * * @package VirtueMart * @subpackage Order * @author Max Milbers * * @link http://www.virtuemart.net * @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved. * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php * VirtueMart is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. */ ?> <?php //echo JText::_('COM_VIRTUEMART_VENDOR_MORE'); ?>