- Posts: 13
- Thank you received: 0
sho row number in order-->show
10 years 6 months ago #231580
by monaaa
sho row number in order-->show was created by monaaa
i want to add row number in order-->show (invoice) like attach file .
how i can ????
how i can ????
Please Log in or Create an account to join the conversation.
10 years 6 months ago #231582
by nicolas
Replied by nicolas on topic sho row number in order-->show
Hi,
You can add the code:
<th class="title titletoggle">#</th>
before the code:
<th class="hikashop_order_item_name_title title"><?php
echo JText::_('PRODUCT');
?></th>
and the code:
<td><?php echo ++@$i; ?></td>
before the code:
<td class="hikashop_order_item_name_value">
in the file "show" of the view "order" for your frontend template.
You can add the code:
<th class="title titletoggle">#</th>
before the code:
<th class="hikashop_order_item_name_title title"><?php
echo JText::_('PRODUCT');
?></th>
and the code:
<td><?php echo ++@$i; ?></td>
before the code:
<td class="hikashop_order_item_name_value">
in the file "show" of the view "order" for your frontend template.
Please Log in or Create an account to join the conversation.
10 years 6 months ago #231712
by monaaa
Replied by monaaa on topic sho row number in order-->show
thank's for quick answer . but it's true --> <td><?phpecho ++$i; ?></td>
and i have an other question
, i want add new culomns and i want show Discount and tax for product . like attach file .
how i can ???
and i have an other question
how i can ???
Please Log in or Create an account to join the conversation.
10 years 6 months ago #231729
by nicolas
Replied by nicolas on topic sho row number in order-->show
Hi,
The discount is not an information stored in the order. So you can't display it.
The tax can be displayed like that:
<?php echo $this->currencyHelper->format($product->order_product_tax,$this->order->order_currency_id); ?>
The discount is not an information stored in the order. So you can't display it.
The tax can be displayed like that:
<?php echo $this->currencyHelper->format($product->order_product_tax,$this->order->order_currency_id); ?>
Please Log in or Create an account to join the conversation.
Time to create page: 0.172 seconds