Stumped on this one!
Ok so I create a skin module and replicate the directory structure. In this case mine becomes
CorbyWebWorx/CwwSkin/ProductOptions/View
as I want to override the product_options.css
So I create Product.php too look like this
Code:
namespace XLite\Module\CorbyWebWorx\CwwSkin\ProductOptions\View;
/**
* Product widget
*
*/
abstract class Product extends \XLite\View\Product\Details\Customer\ACustomer implements \XLite\Base\IDecorator
{
/**
* Register CSS files
*
* @return array
*/
public function getCSSFiles()
{
$list = parent::getCSSFiles();
$list[] = 'modules/CorbyWebWorx/ProductOptions/cww_product_details.css';
return $list;
}
}
Then add the css file as per the $list variable.
The css file is then called BUT the CDev module css still takes precedence over the overiding css. It doesn't matter whether the css file is named identically you still get the same result. Of course you could edit the css file directly, but thats wrong. There is obviously a simple solution to this, but I can't see it.
Any ideas?