Skip to main content

sho row number in order-->show

More
10 years 6 months ago #231580 by monaaa
i want to add row number in order-->show (invoice) like attach file .
how i can ????

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

More
10 years 6 months ago #231582 by nicolas
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.

More
10 years 6 months ago #231712 by monaaa
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 ???

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

More
10 years 6 months ago #231729 by nicolas
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.172 seconds
Powered by Kunena Forum