*** SOLVED see next post ***
Tony,
First, thank you for your quick reply. I created my new module (XLite\Module\Alinc\CustomTabs) with the following Main.php:
PHP Code:
<?php
/**
* X-Cart
*
* NOTICE OF LICENSE
*
* This source file is subject to the software license agreement
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://next.x-cart.com/software-license-agreement.html
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to licensing@x-cart.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not modify this file if you wish to upgrade X-Cart to newer versions
* in the future. If you wish to customize X-Cart for your needs please
* refer to http://www.x-cart.com/ for more information.
*
* PHP version 5.3.0
*
* @category X-Cart Next
* @author Mark Novick <mark@novickdesign.com>
* @copyright Copyright (c) 2014 Novick Design. All rights reserved
* @license http://next.x-cart.com/software-license-agreement.html X-Cart Next License Agreement
* @link http://www.novickdesign.com
*/
namespace XLite\Module\Alinc\CustomTabs;
/**
* Create Custom Tabs
*
*/
abstract class Main extends \XLite\Module\AModule
{
/**
* Author name
*
* @return string
*/
public static function getAuthorName()
{
return 'Mark Novick';
}
/**
* Module name
*
* @return string
*/
public static function getModuleName()
{
return 'Alinc CustomTabs';
}
/**
* Get module major version
*
* @return string
*/
public static function getMajorVersion()
{
return '5.0';
}
/**
* Module version
*
* @return string
*/
public static function getMinorVersion()
{
return 0;
}
/**
* Return link to the module author page
*
* @return string
*/
public static function getAuthorPageURL()
{
return 'www.novickdesign.com';
}
/**
* Module description
*
* @return string
*/
public static function getDescription()
{
return 'Alinc Custom Tabs';
}
}
And then per your directions in XLite\Module\Alinc\CustomTabs\View\Product\Details \Customer\Page made the following APage.php:
PHP Code:
<?php
namespace XLite\Module\Alinc\CustomTabs;
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['Extended Specifications'] = array(
'list' => 'product.details.page.tab.extended_spec',
);
$list['Where Used'] = array(
'list' => 'product.details.page.tab.where_used',
);
return $list;
}
}
That said, when I rebuild the cache I get this error:
Code:
Re-building cache [step 1 of 9], please wait...
Cleaning up the cache... [0.21sec, 2.6MB (497kB)]
Building classes tree...
Warning: file_get_contents(/home/alinc101/public_html/alincdev.com/var/run/classes/XLite/Module/Alinc/CustomTabs/APage.php) [function.file-get-contents]: failed to open stream: No such file or directory in /home/alinc101/public_html/alincdev.com/Includes/Decorator/Utils/Tokenizer.php on line 351
[1.13sec, 11.1MB (8.6MB)]
Run the "Doctrine_Plugin_Cache" plugin... [0.00sec, 11.3MB (179kB)]
Run the "Doctrine_Plugin_DocBlock_FakeEntities" plugin... [0.04sec, 21.3MB (10.0MB)]
The rebuild completes but the blank tabs do not show up. Did I do something wrong?