Hi Mark!
Thanks for asking!
So, let me first clarify what you want to achieve.
1) You want to create a new tab on product page
2) Populate it with some key/value pairs from attributes of this product
right?
If so, your plan would be like:
1) Create an empty module
2) Add the View/Product/Details/Customer/Page/APage.php script inside your module with the following content:
PHP Code:
<?php
your namespace;
abstract class APage extends \XLite\View\Product\Details\Customer\Page\APage implements \XLite\Base\IDecorator
{
/**
* Define tabs
*
* @return array
*/
protected function defineTabs()
{
$list = parent::defineTabs();
$list['Name of your tab'] = array(
'list' => 'product.details.page.tab.detailed_spec',
);
return $list;
}
}
Of course, you will have to adjust your namespace.
If you rebuild the cache after that, it will show you the new tab which will be empty.
After that you will be able to create the template in the skins/default/en/module/DEV-ID/MODULE-NAME/ folder with any name, specify the following comments there:
Code:
/**
* @ListChild(list="product.details.page.tab.detailed_spec")
*/
and its content will be displayed in this tab.
Please, try this out and let me know if it works for you.
Tony.