I have advanced with this problem, now i created a new file in "XLite\Module\DeveloperID\ModuleID\View\Product\De tails\Customer" called "Atribute.php"
have the following code:
Code:
<?php
// vim: set ts=4 sw=4 sts=4 et:
namespace XLite\Module\FactorInteractivo\FooterCasaJorge\View\Product\Details\Customer;
/**
* Product attributes
*/
abstract class Attributes extends \XLite\View\Product\Details\Customer\Attributes implements \XLite\Base\IDecorator
{
public static function getAttrBullet()
{
$attributes = parent::getAttrList();
$return= false;
foreach($attributes as $attr){
if(strtoupper($attr['name']) == "SALE" && $attr['value'] == '1'){
$return= true;
}
}
return $retorno;
}
}
In my file Price.php (XLite\Module\FactorInteractivo\FooterCasaJorge\Vi ew) I use this function and call it:
Code:
protected function participateSale()
{
$atr = Details\Customer\Attributes::getAttrBullet();
return $atr;
}
But this return an error related with the use of $this when is not a object.
¿They understand my objetive? I need a urgent answer
