Hi,
I'm still not clear on what you want to do.
Here is what I understand ?
You have a product A and several other products B, C, D, etc.
You want that on the product page of the product A, display a table of the products B, C, D with the product code and some custom field values of these products.
In that case, you should have these B, C, D, ... products added related products of product A and have a products listing module created to display the related products of your product and have that module added as a "module under the product page".
The procedure is explained there:
www.hikashop.com/en/support/documentatio...ct-form.html#related
Then, all that's left is to customize the listing_table view file via the menu display->Views in order to display your products with there custom fields.
As you say, you use the same table view on the products listings so you will need to add some kind of condition to use one display for that module and the other in other cases.
The check is quite easy:
if(@$_GET=='product' && @$_GET=='show'){
//display on the product page
}else{
//display elsewhere
}
To display the value of a custom field of a product of your products listing module in the listing_table view it's quite easy too:
echo $this->row->CUSTOM_FIELD_COLUMN;