sho row number in order-->show

  • Posts: 13
  • Thank you received: 0
8 years 8 months ago #231580

i want to add row number in order-->show (invoice) like attach file .
how i can ????

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 8 months ago #231582

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.

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
8 years 8 months ago #231712

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 ???

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 8 months ago #231729

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); ?>

Please Log in or Create an account to join the conversation.

Time to create page: 0.059 seconds
Powered by Kunena Forum