Bonjour,
J'ai fait la modification, Voilà ce qu'il faut faire:
Dans le fichier form.php dans administrator/components/com_hikashop/views/report/tmpl remplacez ces lignes:
<tr id="orders_order_by">
<td class="key">
<?php echo JText::_( 'ORDERING' ); ?>
</td>
<td>
<div class="controls">
<fieldset class="radio btn-group">
<input <?php if(empty($this->element->widget_params->orders_order_by) || $this->element->widget_params->orders_order_by == 'last') echo 'checked="checked"'; ?> type="radio" value="last" name="data[widget][widget_params][orders_order_by]" id="orders_order_last"/><label for="orders_order_last"><?php echo JText::_( 'LAST' ); ?></label>
<input <?php if(!empty($this->element->widget_params->orders_order_by) && $this->element->widget_params->orders_order_by == 'best') echo 'checked="checked"'; ?> type="radio" value="best" name="data[widget][widget_params][orders_order_by]" id="orders_order_best"/><label for="orders_order_best"><?php echo JText::_( 'BEST' ); ?></label>
</fieldset>
</div>
</td>
</tr>
par celles ci:
<tr id="orders_order_by">
<td class="key">
<?php echo JText::_( 'ORDERING' ); ?>
</td>
<td>
<div class="controls">
<fieldset class="radio btn-group">
<input <?php if(empty($this->element->widget_params->orders_order_by) || $this->element->widget_params->orders_order_by == 'last') echo 'checked="checked"'; ?> type="radio" value="last" name="data[widget][widget_params][orders_order_by]" id="orders_order_last"/><label for="orders_order_last"><?php echo JText::_( 'LAST' ); ?></label>
<input <?php if(!empty($this->element->widget_params->orders_order_by) && $this->element->widget_params->orders_order_by == 'best') echo 'checked="checked"'; ?> type="radio" value="best" name="data[widget][widget_params][orders_order_by]" id="orders_order_best"/><label for="orders_order_best"><?php echo JText::_( 'BEST' ); ?></label>
</fieldset>
</div>
</td>
</tr>
<tr id="orders_total_calculation">
<td class="key">
<?php echo JText::_( 'INCLUDE_SHIPPING' ); ?>
</td>
<td>
<div class="controls">
<fieldset class="radio btn-group">
<input <?php if(empty($this->element->widget_params->orders_total_calculation) || $this->element->widget_params->orders_total_calculation == 'include_fees') echo 'checked="checked"'; ?> type="radio" value="include_fees" name="data[widget][widget_params][orders_total_calculation]" id="include_fees"/><label for="include_fees"><?php echo JText::_( 'YES' ); ?></label>
<input <?php if(!empty($this->element->widget_params->orders_total_calculation) && $this->element->widget_params->orders_total_calculation == 'exclude_fees') echo 'checked="checked"'; ?> type="radio" value="exclude_fees" name="data[widget][widget_params][orders_total_calculation]" id="exclude_fees"/><label for="exclude_fees"><?php echo JText::_( 'NO' ); ?></label>
</fieldset>
</div>
</td>
</tr>
suite, dans le fichier order.php dans le dossier administrator/components/com_hikashop/views/dashboard/tmpl, remplacez cette ligne:
echo $this->currencyHelper->format(($row->order_full_price-$row->order_shipping_price),$row->order_currency_id);
par celles ci:
if(isset($this->widget->widget_params->orders_total_calculation) && $this->widget->widget_params->orders_total_calculation=='include_fees'){
echo $this->currencyHelper->format($row->order_full_price,$row->order_currency_id);
}else{
echo $this->currencyHelper->format(($row->order_full_price-$row->order_shipping_price),$row->order_currency_id);
}
Cela devrait ajouter l'option et vous permettre de choisir entre inclure ou non les frais de port