/** * @package J2Store * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org * @license GNU GPL v3 or later */ // No direct access to this file defined('_JEXEC') or die; ?> <h3 class="myprofile-address-list-heading"><?php echo JText::_('J2STORE_ADDRESS_LIST'); ?> </h3> <div class="myprofile-address-addnew"> <?php echo J2StorePopup::popupAdvanced('index.php?option=com_j2store&view=myprofile&task=editAddress&layout=address&tmpl=component&address_id=', JText::_('J2STORE_ADD'), array('update' => true, 'class' => 'btn btn-success', 'width' => 800, 'height' => 600)); ?> </div> <hr> <ul class="j2store-myprofile-address-list"> <?php if ($this->orderinfos && !empty($this->orderinfos)) { foreach ($this->orderinfos as $orderinfo) { ?> <?php $addressTable = F0FTable::getInstance('Address', 'J2StoreTable'); $addressTable->load($orderinfo->j2store_address_id); $fields = $this->fieldClass->getFields($addressTable->type, $addressTable, 'address'); ?> <li id="j2store-address-tr-<?php
echo $this->orderinfo->billing_company ? JText::_('J2STORE_ADDRESS_COMPANY_NAME') . ': ' . $this->orderinfo->billing_company . "</br>" : ""; echo $this->orderinfo->billing_tax_number ? JText::_('J2STORE_ADDRESS_TAX_NUMBER') . ': ' . $this->orderinfo->billing_tax_number . "</br>" : ""; ?> <?php echo J2Store::getSelectableBase()->getFormatedCustomFields($this->orderinfo, 'customfields', 'billing'); ?> </div> <div class="span5"> <div class="shipping-address"> <h4><?php echo JText::_('J2STORE_SHIPPING_ADDRESS'); ?> <?php echo J2StorePopup::popupAdvanced("index.php?option=com_j2store&view=orders&task=setOrderinfo&order_id=" . $this->item->order_id . "&address_type=shipping&layout=address&tmpl=component", '<i class="icon-pencil-2"></i>', array('update' => true, 'width' => 800, 'height' => 600)); ?> </h4> <?php echo '<strong>' . $this->orderinfo->shipping_first_name . " " . $this->orderinfo->shipping_last_name . "</strong><br/>"; echo $this->orderinfo->shipping_address_1; ?> <?php echo $this->orderinfo->shipping_address_2 ? "<br/>" . $this->orderinfo->shipping_address_2 : "<br/>"; echo $this->orderinfo->shipping_city . '<br/>'; echo $this->orderinfo->shipping_zone_name ? $this->orderinfo->shipping_zone_name . '<br/>' : ""; echo $this->orderinfo->shipping_zip . "<br/>"; echo $this->orderinfo->shipping_country_name . "<br/>"; echo JText::_('J2STORE_TELEPHONE') . ': '; echo $this->orderinfo->shipping_phone_1;
<h4><?php echo JText::_('J2STORE_GEOZONE_COUNTRIES_AND_ZONES'); ?> </h4> <?php if ($this->item->j2store_geozone_id) { ?> <div class="btn-toolbar"> <div class="btn-wrapper"> <?php echo J2StorePopup::popupAdvanced('index.php?option=com_j2store&view=countries&layout=modal&task=elements&tmpl=component&geozone_id=' . $this->item->j2store_geozone_id, '<i class="icon icon-download"></i> ' . JText::_('J2STORE_IMPORT_COUNTRIES'), array('class' => 'btn btn-small btn-success', 'width' => 800, 'height' => 600, 'update' => true)); ?> </div> <div class="btn-wrapper"> <?php echo J2StorePopup::popupAdvanced('index.php?option=com_j2store&view=zones&layout=modal&task=elements&tmpl=component&geozone_id=' . $this->item->j2store_geozone_id, '<i class="icon icon-download"></i> ' . JText::_('J2STORE_IMPORT_ZONES'), array('class' => 'btn btn-small btn-success', 'width' => 800, 'height' => 600, 'update' => true)); ?> </div> </div> <?php } ?> </div> </div> <div class="row-fluid"> <div class="span9"> <table id="geozone_rule_table" class="table table-stripped table-bordered"> <thead> <tr> <th><?php echo JText::_('J2STORE_COUNTRY');
echo J2StorePopup::popupAdvanced("index.php?option=com_j2store&view=orders&task=setOrderinfo&order_id=" . $this->item->order_id . "&address_type=billing&layout=address&tmpl=component", '', array('class' => 'fa fa-pencil', 'update' => true, 'width' => 700, 'height' => 600)); ?> </th> <th> <?php echo JText::_('J2STORE_SHIPPING_ADDRESS'); ?> <?php echo J2StorePopup::popupAdvanced("index.php?option=com_j2store&view=orders&task=setOrderinfo&order_id=" . $this->item->order_id . "&address_type=shipping&layout=address&tmpl=component", '', array('class' => 'fa fa-pencil', 'update' => true, 'width' => 800, 'height' => 600)); ?> <?php $url = JRoute::_("index.php?option=com_j2store&view=orders&task=printShipping&tmpl=component&order_id=" . $this->orderinfo->order_id); echo J2StorePopup::popupAdvanced($url, '', array('class' => 'fa fa-print', 'width' => 800, 'height' => 600)); ?> </th> </tr> <tr> <td> <?php echo '<strong>' . $this->orderinfo->billing_first_name . " " . $this->orderinfo->billing_last_name . "</strong>"; ?> <br/> <?php echo $this->orderinfo->billing_address_1; ?> <?php echo $this->orderinfo->billing_address_2 ? $this->orderinfo->billing_address_2 : "<br/>"; ?>