Jump to content

 

1inplus

Member Since 25 Apr 2017
Offline Last Active Apr 28 2017 04:47 AM
-----

Posts I've Made

In Topic: Changing Invoice Format

27 April 2017 - 11:36 AM

It's working with first code.

 

Thank you so much.

Best regards,

Andrei


In Topic: Changing Invoice Format

27 April 2017 - 05:43 AM

@Cart-Power

It's not working..

Code tested

{ $count = 0 }
            {foreach from=$order_info.products item="oi"}
            { $count = $count +1 }
            {$smarty.foreach.products.iteration}
            {hook name="orders:items_list_row"}
                {if !$oi.extra.parent}
                <tr>
                    <td style="padding: 5px 10px; background-color: #ffffff; font-size: 12px; font-family: Arial;">{$count}</td>

And the view I have:

tanana.PNG

 

@eComLabs

 

Honestly, I don't know how to use this.

{$smarty.foreach.products.iteration}

I'm new in Cs-Cart, and now I'm learning. Hope this is not a stupid message.


In Topic: Changing Invoice Format

25 April 2017 - 07:42 AM

Thank you for answer.

 

I know I should edit those files.

 

I already tried to edit them, but my question is how to make a counter in foreach loop.  If I make like this

<?php $count = 0; ?>

{ foreach ... }

<?php $count = $count +1; ?>

<?php echo $count; ?> 

Is not working.. And I don't know where should I use the code for counter and maybe for the code itself.

 

Best regards,

1inplus


In Topic: Changing Invoice Format

25 April 2017 - 05:20 AM

I'm using cs-cart 4.3.6