Show all purchased product list on client profile

hi,

is it possible to list all purchased product inside the client profile?

so far i’ve done:

Add new “Order List” toggle inside client profile submenu:

  1. C:\xampp\htdocs\ip\application\modules\clients\views\view.php
    add line 77
<li><a data-toggle="tab" href="#clientOrder"><?php _trans('Order List'); ?></a></li>

add line 367

<div id="clientOrder" class="tab-pane table-content">
<?php echo $purchase_table; ?>
</div>
  1. create new file “partial_purchased_list.php” on C:\xampp\htdocs\ip\application\modules\invoices\views

  2. add new array C:\xampp\htdocs\ip\application\modules\clients\controllers\Clients.php

line 226

array(
                  'purchase_table',
                    'invoices/partial_purchased_list'
                ),

But. i don’t know how to pull the data from mysql and edit “partial_purchased_list.php” to show all purchased product inside the client profile.

Thanks for your help.

Last Update: 2018-03-13