| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/pornic/components/com_djcatalog2/views/order/tmpl/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*/
defined ('_JEXEC') or die('Restricted access');
use Joomla\CMS\HTML\Helpers\Bootstrap;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Router\Route;
$user = Factory::getUser();
$salesman = $user->authorise('djcatalog2.salesman', 'com_djcatalog2') || $user->authorise('core.admin', 'com_djcatalog2');
$original_currency = $this->params->get('price_unit');
$currency = Djcatalog2HelperPrice::getCurrencyByCode($this->item->currency);
if ($currency) {
$this->params->set('price_unit', $currency->symbol);
$this->params->set('price_unit_fixed', $currency->symbol);
} else {
$this->params->set('price_unit', $this->item->currency);
$this->params->set('price_unit_fixed', $this->item->currency);
}
/*$statuses = array('N', 'A', 'P', 'C', 'R', 'W', 'F');
$status_options = array();
foreach($statuses as $status) {
$status_options[] = Joomla\CMS\HTML\HTMLHelper::_('select.option', $status, Text::_('COM_DJCATALOG2_ORDER_STATUS_'.$status));
}
*/
?>
<?php //if ($this->params->get( 'show_page_heading', 1)) { ?>
<h1 class="componentheading<?php echo $this->params->get( 'pageclass_sfx' ) ?>">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
<?php //} ?>
<div id="djcatalog" class="djc_order<?php echo $this->params->get( 'pageclass_sfx' ).' djc_theme_'.$this->params->get('theme','default') ?>">
<div class="djc_attributes">
<h2>
<?php if ($salesman && false /* TODO: add support for modal */) {?>
<a role="button" data-toggle="modal" data-target="#djc_orderform_modal" href="#djc_orderform_modal" class="btn btn-primary btn-mini pull-left djc_edit_button">
<?php echo Text::_('COM_DJCATALOG2_EDIT'); ?>
</a>
<?php /*?><a class="btn btn-primary btn-mini pull-left djc_edit_button" href="<?php echo Route::_('index.php?option=com_djcatalog2&task=orderform.edit&id='.$this->item->id); ?>"><?php echo Text::_('COM_DJCATALOG2_EDIT'); ?></a><?php */ ?>
<?php } ?>
<?php echo Text::_('COM_DJCATALOG2_ORDER_DETAILS'); ?>
</h2>
<table width="100%" cellpadding="0" cellspacing="0"
class="djc_order_details_table jlist-table table-condensed table"
id="djc_order_details_table">
<tr class="djc_attribute">
<td class="djc_label"><?php echo Text::_('COM_DJCATALOG2_ORDER_NUMBER'); ?>
</td>
<td class="djc_value"><?php echo str_pad($this->item->order_number, 5, '0', STR_PAD_LEFT); ?>
</td>
</tr>
<tr class="djc_attribute">
<td class="djc_label"><?php echo Text::_('COM_DJCATALOG2_ORDER_DATE'); ?>
</td>
<td class="djc_value"><?php echo Joomla\CMS\HTML\HTMLHelper::_('date', $this->item->created_date, $this->params->get('date_format_date', Text::_('DATE_FORMAT_LC3'))); ?>
</td>
</tr>
<tr class="djc_attribute">
<td class="djc_label"><?php echo Text::_('COM_DJCATALOG2_ORDER_STATUS'); ?>
</td>
<td class="djc_value">
<?php /*if ($salesman) {?>
<select name="status_change" onchange="return DJOrderChangeStatus(this, <?php echo $this->item->id;?>);" class="input-medium">
<?php
echo Joomla\CMS\HTML\HTMLHelper::_('select.options', $status_options, 'value', 'text', $this->item->status);
?>
</select>
<script type="text/javascript">
function DJOrderChangeStatus(select, id) {
window.location.href = "<?php echo Uri::base(false).'index.php?option=com_djcatalog2&task=cart.changeStatus&oid=';?>" + id + '&status=' + document.getElementById(select).value;
}
</script>
<?php } else {*/ ?>
<?php //echo Text::_('COM_DJCATALOG2_ORDER_STATUS_'.$this->item->status); ?>
<?php //} ?>
<p><strong><?php echo DJCatalog2HtmlHelper::getOrderStatusName($this->item->status); ?></strong></p>
<?php echo DJCatalog2HtmlHelper::getOrderStatusInfo($this->item->status, true); ?>
</td>
</tr>
<tr class="djc_attribute">
<td class="djc_label"><?php echo Text::_('COM_DJCATALOG2_ORDER_FINAL_PRICE'); ?>
</td>
<td class="djc_value"><?php echo DJCatalog2HtmlHelper::formatPrice($this->item->grand_total, $this->params); ?>
</td>
</tr>
<tr class="djc_attribute">
<td class="djc_label"><?php echo Text::_('COM_DJCATALOG2_ORDER_BUYER'); ?>
</td>
<td class="djc_value">
<?php if ($this->item->company) { ?>
<strong><?php echo $this->item->company?></strong><br />
<?php }?>
<?php
$name = array();
if ($this->item->firstname) {
$name[] = $this->item->firstname;
}
if ($this->item->lastname) {
$name[] = $this->item->lastname;
}
?>
<?php if (count($name)) { ?>
<strong><?php echo implode(' ', $name); ?></strong>
<?php } ?>
<a href="mailto:<?php echo $this->item->email; ?>"><?php echo $this->item->email; ?></a><br />
<?php
$address = array();
if ($this->item->address) {
$address[] = $this->item->address;
}
if ($this->item->postcode) {
$address[] = $this->item->postcode;
}
if ($this->item->city) {
$address[] = $this->item->city;
}
if ($this->item->state) {
$address[] = $this->item->state;
}
if ($this->item->country) {
$address[] = $this->item->country;
}
?>
<?php if (count($address)) {?>
<p><?php echo implode(', ', $address); ?></p>
<?php } ?>
<?php if ($this->item->vat_id) {?>
<p><?php echo Text::_('COM_DJCATALOG2_UP_VATID').': '.$this->item->vat_id; ?></p>
<?php } ?>
</td>
</tr>
<?php //if ($this->item->delivery_method && $this->delivery_method->shipping_details == 1) {?>
<?php if ($this->item->delivery_to_billing == 0) {?>
<tr class="djc_attribute">
<td class="djc_label"><?php echo Text::_('COM_DJCATALOG2_DELIVERY_DETAILS'); ?></td>
<td class="djc_value">
<?php if ($this->item->delivery_company) { ?>
<strong><?php echo $this->item->delivery_company?></strong><br />
<?php }?>
<?php
$name = array();
if ($this->item->delivery_firstname) {
$name[] = $this->item->delivery_firstname;
}
if ($this->item->delivery_lastname) {
$name[] = $this->item->delivery_lastname;
}
?>
<?php if (count($name)) { ?>
<strong><?php echo implode(' ', $name); ?></strong>
<?php } ?>
<?php
$address = array();
if ($this->item->delivery_address) {
$address[] = $this->item->delivery_address;
}
if ($this->item->delivery_postcode) {
$address[] = $this->item->delivery_postcode;
}
if ($this->item->delivery_city) {
$address[] = $this->item->delivery_city;
}
if ($this->item->delivery_state) {
$address[] = $this->item->delivery_state;
}
if ($this->item->delivery_country) {
$address[] = $this->item->delivery_country;
}
?>
<?php if (count($address)) {?>
<p><?php echo implode(', ', $address); ?></p>
<?php } ?>
</td>
</tr>
<?php } ?>
<?php if ($this->item->customer_note) {?>
<tr class="djc_attribute">
<td class="djc_label"><?php echo Text::_('COM_DJCATALOG2_MESSAGE'); ?>
</td>
<td class="djc_value"><?php echo nl2br($this->item->customer_note); ?>
</td>
</tr>
<?php } ?>
</table>
</div>
<div class="row row-fluid">
<?php if (!empty($this->payment_info)) {?>
<div class="col-md-6">
<h2><?php echo Text::_('COM_DJCATALOG2_ORDER_PAYMENT_HEADING'); ?></h2>
<?php if (!empty($this->item->transactions)) {?>
<h3><?php echo Text::_('COM_DJCATALOG2_ORDER_TRANSACTIONS'); ?></h3>
<p class="alert alert-info"><?php echo Text::_('COM_DJCATALOG2_ORDER_TRANSACTIONS_DESC'); ?></p>
<table class="table table-condensed">
<thead>
<tr>
<th>#</th>
<th><?php echo Text::_('JGLOBAL_FIELD_CREATED_LABEL');?></th>
<th><?php echo Text::_('COM_DJCATALOG2_IS_PAID'); ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($this->item->transactions as $pos => $transaction) {?>
<tr>
<td><?php echo $pos+1; ?></td>
<td><?php echo Joomla\CMS\HTML\HTMLHelper::date($transaction->created, 'Y-m-d H:i'); ?>
<td><?php echo $transaction->paid ? Text::_('JYES') : Text::_('JNO'); ?>
</tr>
<?php } ?>
</tbody>
</table>
<?php } ?>
<div class="djc_payment_info">
<?php echo $this->payment_info; ?>
</div>
</div>
<?php } ?>
<?php if (!empty($this->delivery_info)) {?>
<div class="col-md-6">
<h2><?php echo Text::_('COM_DJCATALOG2_ORDER_DELIVERY_HEADING'); ?></h2>
<div class="djc_delivery_info">
<?php echo $this->delivery_info; ?>
</div>
</div>
<?php } ?>
</div>
<h2><?php echo Text::_('COM_DJCATALOG2_ORDER_ITEMS'); ?></h2>
<div class="djc_order_items djc_clearfix">
<?php echo $this->loadTemplate('table'); ?>
</div>
<?php if (!empty($this->item->files)) {?>
<h2><?php echo Text::_('COM_DJCATALOG2_ORDER_FILES'); ?></h2>
<div class="djc_order_files djc_clearfix">
<?php echo $this->loadTemplate('files'); ?>
</div>
<?php } ?>
<?php if ($user->guest == false) {?>
<a role="button" class="button btn djc_back_to_orders_btn" href="<?php echo Route::_(DJCatalogHelperRoute::getOrdersRoute());?>"><span><?php echo Text::_('COM_DJCATALOG2_BACK_TO_ORDERS'); ?></span></a>
<?php } ?>
<?php
if ($this->params->get('show_footer')) echo DJCATFOOTER;
?>
</div>
<?php if ($salesman) {?>
<?php echo Bootstrap::renderModal('djc_orderform_modal', array('height' => '600px', 'url' => Route::_('index.php?option=com_djcatalog2&task=orderform.edit&id='.$this->item->id).'&tmpl=component', 'title'=> Text::_('COM_DJCATALOG2_ORDER_DETAILS'))); ?>
<?php } ?>
<?php $this->params->set('price_unit', $original_currency); ?>
<?php $this->params->set('price_unit_fixed', null); ?>