Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Model_Abst..
Decoded Output download
<? class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Model_Abstract {public $x79=null;public $xfd=null;public $x4a=null; public $inc = 0; public $time = 0; protected $_filePath; public $limit = false; public $display = false; public $sqlSize = 1500; public $errorReport = array(); public $flagErrorReport = array(); private $x2ce8 = null; public $error = "Unable to generate the data feed."; protected function _construct() {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; try {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; $this->x2ce8 = Mage::helper("licensemanager/data"); $this->x2ce8->constructor($this, func_get_args()); $this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} = Mage::$xb83a("simplegoogleshopping/system/sqlsize"); $this->{$this->x79->x2c59->x3e3e}('simplegoogleshopping/simplegoogleshopping'); error_reporting(E_ERROR); } catch (Exception $e) { throw $e; } } public function cmp($x63, $x6a) {$x66 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3a53}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($x66(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x731a}}}) == $x66(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2d25}}})) { return 0; } return ($x66(${$this->x4a->x2c59->x2d15}) < $x66(${$this->x79->x2c59->x2d1c})) ? 1 : -1; } public function cmpArray($x85, $x91) {$x88 = $this->x79->x2c59->x3a5c;$x8c = $this->xfd->x2c59->x3a6a;$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($x88($x8c('', ${$this->xfd->x2c75->x7335})) == $x88($x8c('', ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7343}}}}}))) { return 0; } return ($x88($x8c('', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2d31}}})) < $x88($x8c('', ${$this->xfd->x2c59->{$this->xfd->x2c59->x2d41}}))) ? -1 : 1; } public function execPhpScript($myPattern, $product, $xd7 = true) {$x10e = $this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x80d1}}};$xb9 = $this->xfd->x2c75->{$this->xfd->x2c75->x80da};$xbe = $this->x79->x2c75->{$this->x4a->x2c75->x80ea};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; $myPattern = $x10e('', $xb9('__PHP__'), $myPattern); $myPattern = $x10e('', $xb9('/__PHP__'), $myPattern); ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x736b}}}} = $xb9('#(__PHP__)(.*?)/#s'); $xbe(${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x736b}}}}, $myPattern, ${$this->x79->x2c75->x736f}); if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x7371}}[1])) { foreach (${$this->x79->x2c75->x736f}[0] as ${$this->x4a->x2c59->x2d6c} => ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x737f}}}) { if (${$this->x79->x2c59->x2d57} == 1) { if (@eval(${$this->x79->x2c75->x736f}[2][${$this->x79->x2c75->{$this->x79->x2c75->x7376}}] . ';')) { $myPattern = $x10e(${$this->x79->x2c59->x2d7d}, eval(${$this->xfd->x2c75->{$this->x4a->x2c75->x7371}}[2][${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2d79}}}}] . ';'), $myPattern); } else { $myPattern = $x10e(${$this->xfd->x2c75->x7379}, '', $myPattern); } } else { if (@eval($this->{$this->x4a->x2c59->x3e51}(${$this->x4a->x2c59->{$this->x4a->x2c59->x2d69}}[2][${$this->x4a->x2c59->x2d6c}] . ';'))) { $myPattern = $x10e(${$this->x79->x2c59->x2d7d}, $this->{$this->x79->x2c59->x3e5e}(eval($this->{$this->x4a->x2c59->x3e51}(${$this->x4a->x2c59->{$this->x4a->x2c59->x2d69}}[2][${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2d79}}}}]) . ';')), $myPattern); } else { $myPattern = $x10e(${$this->x79->x2c59->x2d7d}, '', $myPattern); } } } } return $myPattern; } protected function nameExists($x122) {$x127 = $this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8103}}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; return $this->{$this->x4a->x2c59->x3e72}()->{$this->xfd->x2c59->x3e88}("simplegoogleshopping_filename", array("eq" => ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7385}}}))->count(); } protected function _beforeSave() {$x142 = $this->x4a->x2c59->x3ab1;$x147 = $this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3ac5}}}};$x14d = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3ad0}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x79->x2c59->x2d8c} = new Varien_Io_File(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x2d9a}} = ${$this->x4a->x2c75->x7391}->{$this->x79->x2c59->x3e94}(Mage::$x87e8() . '/' . $this->{$this->xfd->x2c59->x3eb1}()); if (!${$this->x79->x2c75->{$this->x79->x2c75->x7394}}->{$this->x4a->x2c59->x3ebc}(${$this->xfd->x2c75->{$this->xfd->x2c75->x7397}}, false)) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('Please create the specified folder %s before saving the googleshopping.', Mage::$xb812('core')->{$this->x79->x2c59->x3ef9}($this->{$this->xfd->x2c59->x3eb1}()))); } if (!${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2d92}}}->{$this->x4a->x2c59->x3f19}(${$this->x4a->x2c59->{$this->xfd->x2c59->x2d9a}})) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('Please make sure that %s is writable by web-server.', $this->{$this->xfd->x2c59->x3eb1}())); } if (!$x142('#^[a-zA-Z0-9_\-\.]+$#', $this->{$this->xfd->x2c75->x800d}())) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.')); } if (!$x142('#\.xml$#', $this->{$this->x4a->x2c59->x3f9b}())) { $this->{$this->x79->x2c59->x3fa9}($this->{$this->x4a->x2c59->x3f9b}() . '.xml'); } if (!$this->{$this->x79->x2c59->x3fc3}() && $this->{$this->x79->x2c75->x7fe4}($this->{$this->xfd->x2c75->x800d}())) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('This data feed name is already used. Please specify a new one.')); } $this->{$this->xfd->x2c59->x4014}($x147($x14d($x14d('\', '/', Mage::$x87e8()), '', ${$this->x4a->x2c59->{$this->xfd->x2c59->x2d9a}}), '/') . '/'); return parent::$x869d(); } protected function getPath() {$x159 = $this->x4a->x2c75->{$this->x79->x2c75->x8130};$x15e = $this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3af1}}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($x159($this->{$this->x4a->x2c59->{$this->x79->x2c59->x2ca2}})) { $this->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2caa}}}} = $x15e( '//', '/', Mage::$x87e8() . $this->{$this->xfd->x2c59->x3eb1}() ); } return $this->{$this->x4a->x2c59->{$this->x79->x2c59->x2ca2}}; } protected function getFilename($x16d = '.temp') {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->xfd->x2c75->{$this->xfd->x2c75->x73a5}} = $this->{$this->x4a->x2c59->x3f9b}() . ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73a0}}}; return ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x73a9}}}; } public function getPreparedFilename() {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; return $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x800b}}}}() . $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}(); } public function applyCurrencyRate($x186, $x183) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x4a->x2c75->{$this->x4a->x2c75->x73c5}} = $this->_currencies; if (isset(${$this->x4a->x2c75->x73c0}[${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2dc9}}}}])) return ${$this->x4a->x2c75->{$this->x79->x2c75->x73af}} * ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x73c9}}}[${$this->x4a->x2c75->{$this->x79->x2c75->x73b9}}]; else { return ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2db9}}}}}; } } public function applyTax($x241, $x1ca, $x217, $x229 = false) {$x19c = $this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3afd}};$x1d2 = $this->x79->x2c75->x8158;$x1e3 = $this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x816c}};$x1f8 = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3b2b}}};$x206 = $this->x4a->x2c75->x818c;$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2e1e}}} = $this->_rates; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2dde}}}} = $x19c(${$this->xfd->x2c75->x73ce}, 2, , ''); if (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x73ff}}} === false) { if (!${$this->x4a->x2c59->{$this->x79->x2c59->x2de8}} && isset(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2e1e}}}[${$this->xfd->x2c75->x73e6}])) { if ($x1d2(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2e1f}}}}[${$this->x79->x2c75->{$this->x4a->x2c75->x73eb}}]) > 1) { return ${$this->x4a->x2c59->x2dd8}; } else { return ${$this->x79->x2c59->{$this->x79->x2c59->x2dda}} * (${$this->x79->x2c59->{$this->xfd->x2c59->x2e19}}[${$this->x79->x2c59->{$this->x79->x2c59->x2df7}}][0]['rate'] / 100 + 1); } } else { return ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2de1}}}}}; } } elseif (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2e0c}}} === "0") { if (${$this->x79->x2c59->x2de4} && isset(${$this->x79->x2c75->{$this->x4a->x2c75->x740a}}[${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2dfe}}}}])) { if ($x1d2(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2e22}}}}}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73ef}}}]) > 1) { return ${$this->x4a->x2c59->x2dd8}; } else { return 100 * ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73d3}}} / (100 + (${$this->x79->x2c75->x7409}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x73f9}}}}}][0]['rate'])); } } else { return ${$this->xfd->x2c75->x73ce}; } } else { if ($x1e3(${$this->xfd->x2c59->{$this->xfd->x2c59->x2e08}})) { if (${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73ef}}} != 0) { return ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2de1}}}}} * (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7404}}}} / 100 + 1); } elseif (${$this->xfd->x2c75->x73e6} == 0) { return ${$this->x4a->x2c75->{$this->xfd->x2c75->x73d0}}; } } else { ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2e0c}}} = $x1f8('/', ${$this->xfd->x2c59->x2e03}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2e2e}}}} = 0; ${$this->x79->x2c59->{$this->x79->x2c59->x2e33}} = false; if ($x206(${$this->xfd->x2c59->{$this->xfd->x2c59->x2e08}}[0], 0, 1) == "-") { ${$this->xfd->x2c75->{$this->xfd->x2c75->x73fe}}[0] = $x206(${$this->xfd->x2c75->x73fd}[0], 1); ${$this->x4a->x2c75->{$this->x79->x2c75->x741b}} = true; } if (${$this->x79->x2c75->x7409}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x73f4}}}}]) { foreach (${$this->x79->x2c75->x7409}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x73f9}}}}}] as ${$this->x4a->x2c75->x7426}) { if (${$this->x4a->x2c59->x2e39}['country'] == ${$this->xfd->x2c59->x2e03}[0]) { if (!isset(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2e0f}}}}[1]) || ${$this->x4a->x2c75->x7426}['code'] == ${$this->xfd->x2c75->x73fd}[1]) { ${$this->xfd->x2c59->x2e27} = ${$this->xfd->x2c75->{$this->xfd->x2c75->x742a}}['rate']; break; } } } if (!${$this->x4a->x2c75->{$this->x79->x2c75->x741b}}) return ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73d3}}} * (${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2e2e}}}} / 100 + 1); else { return 100 * ${$this->x79->x2c59->{$this->x79->x2c59->x2dda}} / (100 + (${$this->xfd->x2c59->x2e27})); } } else { return ${$this->x79->x2c59->{$this->x79->x2c59->x2dda}}; } } } } public function xmlEncloseData($x2ef, $x27f = true) {$x24d = $this->x79->x2c75->{$this->xfd->x2c75->x81a2};$x2df = $this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x81b0}}};$x26c = $this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x81bf}}};$x2a5 = $this->x4a->x2c75->x81c6;$x2cc = $this->x4a->x2c59->{$this->x4a->x2c59->x3b77};$x2de = $this->x4a->x2c75->{$this->x4a->x2c75->x81e3};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->xfd->x2c59->{$this->xfd->x2c59->x2e4f}} = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x24d(${$this->xfd->x2c75->x743b}, ${$this->xfd->x2c75->x7430}, ${$this->xfd->x2c59->x2e5a}); foreach (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e5f}}}[1] as ${$this->x79->x2c59->x2e64} => $value) { ${$this->x4a->x2c59->x2e71} = $x2df(${$this->x79->x2c59->{$this->x4a->x2c59->x2e5d}}[2][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]); if (empty(${$this->x79->x2c75->{$this->x79->x2c75->x7465}}) && !$x26c(${$this->x79->x2c75->{$this->x79->x2c75->x7465}})) ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}} = $x2a5(${$this->xfd->x2c75->x7447}[0][${$this->x4a->x2c59->{$this->x79->x2c59->x2e66}}], '', ${$this->xfd->x2c75->x7430}); else { if (${$this->xfd->x2c59->{$this->x79->x2c59->x2e48}}) ${$this->x79->x2c59->{$this->x79->x2c59->x2e45}} = $x2a5(${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e5f}}}[0][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}], (${$this->xfd->x2c59->x2e5a}[1][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]) . '<![CDATA[' . ${$this->x79->x2c75->{$this->x79->x2c75->x7465}} . ']]>' . (${$this->x4a->x2c75->{$this->x4a->x2c75->x7449}}[3][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]), ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}}); else ${$this->xfd->x2c75->x7430} = $x2a5(${$this->x79->x2c59->{$this->x4a->x2c59->x2e5d}}[0][${$this->x79->x2c75->x744d}], (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e5f}}}[1][${$this->x4a->x2c59->{$this->x79->x2c59->x2e66}}]) . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7468}}} . (${$this->xfd->x2c75->x7447}[3][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]), ${$this->x79->x2c59->{$this->x79->x2c59->x2e45}}); } } ${$this->x79->x2c75->x746e} = $x2cc("/
/s", ${$this->xfd->x2c75->x7430}); ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e96}}} = ''; foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2e83}}} as ${$this->x79->x2c59->{$this->x4a->x2c59->x2e9c}}) { ($x2de($x2df(${$this->xfd->x2c75->x7481})) > 0) ? ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x747c}}}.=${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7486}}} . "
" : false; } ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}} = ${$this->x79->x2c59->{$this->x4a->x2c59->x2e92}}; return ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}}; } public function encode($x2fe) {$x2f8 = $this->x79->x2c59->{$this->x4a->x2c59->x3b8f};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($this->{$this->x79->x2c75->{$this->x4a->x2c75->x72d4}}) return (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2ea4}}}); else { if ($this->_chartset == 'ISO') return $x2f8(${$this->x79->x2c59->{$this->x4a->x2c59->x2ea3}}); else { return (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2ea5}}}}); } } } public function checkReference($x326, $product) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ((${$this->x4a->x2c75->x7493} == "parent" || ${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "configurable") && isset($this->configurable[$product->{$this->x79->x2c59->x407f}()])) return $this->configurable[$product->{$this->x79->x2c59->x407f}()]; elseif ((${$this->x4a->x2c59->{$this->x79->x2c59->x2eab}} == "parent" || ${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "grouped") && isset($this->grouped[$product->{$this->x79->x2c59->x407f}()])) return $this->grouped[$product->{$this->x79->x2c59->x407f}()]; elseif ((${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "parent" || ${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "bundle") && isset($this->bundle[$product->{$this->x79->x2c59->x407f}()])) return $this->bundle[$product->{$this->x79->x2c59->x407f}()]; else { return $product; } } public function flagUpdate($x341, $x33e, $x344) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x74a6}}}->{$this->x4a->x2c59->x40dd}(${$this->xfd->x2c59->{$this->xfd->x2c59->x2ed2}}); ${$this->x79->x2c59->{$this->x79->x2c59->x2ec8}}->{$this->xfd->x2c59->x40e3}(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ed6}}}); } public function generateXml() {$x500 = $this->x79->x2c75->{$this->x79->x2c75->x8203};$x4ef = $this->xfd->x2c75->x820b;$x2b6f = $this->x4a->x2c75->x821f;$x37c = $this->xfd->x2c75->x8229;$x37f = $this->x79->x2c75->{$this->x4a->x2c75->x823d};$x4d4 = $this->x4a->x2c59->{$this->x4a->x2c59->x3bd5};$x4d3 = $this->x4a->x2c75->{$this->xfd->x2c75->x825d};$x29c1 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3bfa}}};$x2a4f = $this->x4a->x2c59->{$this->xfd->x2c59->x3c01};$x2791 = $this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x8294}};$x2868 = $this->x79->x2c59->x3c19;$x706 = $this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x82ac}};$x29a1 = $this->x4a->x2c75->x82b4;$x612 = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3c39}};$x6fd = $this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x82d6}};$x7eb = $this->x4a->x2c59->{$this->x4a->x2c59->x3c5a};$xd92 = $this->xfd->x2c59->x3c69;$xf76 = $this->xfd->x2c59->{$this->x4a->x2c59->x3c71};$x2a1d = $this->x79->x2c59->{$this->x79->x2c59->x3c85};$x293c = $this->x4a->x2c75->{$this->x4a->x2c75->x8306};$x1ab4 = $this->x79->x2c59->{$this->xfd->x2c59->x3ca1};$x2594 = $this->xfd->x2c59->x3caf;$x1dcf = $this->xfd->x2c59->{$this->x4a->x2c59->x3cc0};$xfab = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3cd2}}};$x2b6b = $this->x4a->x2c75->x833e;$x2a61 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3ced}};$x285d = $this->x4a->x2c59->x3cff;$x112c = $this->x79->x2c59->{$this->x4a->x2c59->x3d12};$x28d7 = $this->x79->x2c75->x8374;$x18c7 = $this->x79->x2c59->{$this->x4a->x2c59->x3d27};$x1ab8 = $this->xfd->x2c75->{$this->x4a->x2c75->x8396};$x1afc = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3d46}};$x1b09 = $this->x79->x2c75->{$this->xfd->x2c75->x83ab};$x1b05 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3d5d}}};$x242b = $this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x83c3}};$x2441 = $this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3d74}}}};$x2438 = $this->x79->x2c75->x83d3;$x23c5 = $this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3d88}};$x2ac1 = $this->x4a->x2c75->{$this->x79->x2c75->x83ee};$x2906 = $this->x79->x2c75->x83f3;$x28b9 = $this->x79->x2c59->x3da8;$x28ea = $this->x4a->x2c59->x3db1;$x287f = $this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3dbf}};$x2a00 = $this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x842b}};$x28f9 = $this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3de0}};$x2900 = $this->x4a->x2c59->x3de7;$x2b59 = $this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8457}}}};$x2b6c = $this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3e0a}}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; try { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ee3}}}} = $this; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2ef1}}} = "Mage"; ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2f02}}} = "helper"; ${$this->x79->x2c59->x2f0e} = "throwException"; ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74f4}}} = $x500($x4ef()); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74c4}}}}->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2cf2}}}->{$this->x4a->x2c59->x3e27}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ee3}}}}, ${$this->x4a->x2c59->x2f17}); if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74c4}}}}->{$this->x4a->x2c59->x410d}(${$this->x4a->x2c59->x2f17}) != $x500(${$this->xfd->x2c75->x74ec})) { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2ef1}}}::${$this->xfd->x2c75->{$this->x79->x2c75->x74e1}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2ef1}}}::${$this->x79->x2c75->{$this->x79->x2c75->x74d7}}("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2ee7}}}}}->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2d08}}})); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --------------- START PROCESS FOR " . $x37c($this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}(false)) . "-----------------", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); $x37f('memory_limit', Mage::$xb83a("simplegoogleshopping/system/memory_limit") . 'M'); if (Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}('debug')) { $this->_debug = true; } else { $this->_debug = false; } include(Mage::$x87e8() . "/lib/Wyomind/Google/Requirements.php"); ${$this->x79->x2c75->x74f9} = new Varien_Io_File(); ${$this->x79->x2c75->{$this->x4a->x2c75->x7509}} = new Varien_Io_File(); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x751f}}}}} = Mage::$x87e8() . DS . 'var' . DS . 'tmp' . DS; ${$this->xfd->x2c59->x2f36} = ${$this->xfd->x2c75->{$this->x4a->x2c75->x7514}} . "sgs_" . $this->{$this->x79->x2c59->x3fc3}() . ".flag"; ${$this->x79->x2c59->x2f1f}->{$this->xfd->x2c59->x419c}(true); if (!$this->{$this->x79->x2c75->{$this->x4a->x2c75->x72d4}}) { ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2f29}}}}->{$this->x79->x2c59->x41ab}(array('path' => $this->{$this->x79->x2c59->x39cc}())); if (${$this->x79->x2c75->{$this->x79->x2c75->x74fd}}->{$this->x4a->x2c59->x3ebc}($this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}()) && !${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2f29}}}}->{$this->x4a->x2c59->x3f19}($this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}())) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}(), $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x39d5}}}}())); } ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2f2c}}}}}->{$this->x4a->x2c59->x40dd}($this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}()); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2f30}}}->{$this->x79->x2c59->x41ab}(array('path' => ${$this->x79->x2c59->x2f32})); if (${$this->x79->x2c75->{$this->x4a->x2c75->x7509}}->{$this->x4a->x2c59->x3ebc}(${$this->xfd->x2c59->x2f36}, false)) { ${$this->x79->x2c75->{$this->x4a->x2c75->x7509}}->{$this->x4a->x2c59->x40dd}(${$this->x79->x2c59->{$this->x79->x2c59->x2f3b}}, 'r'); ${$this->x79->x2c75->x7525} = ${$this->x4a->x2c75->x7505}->{$this->xfd->x2c59->x4286}(";"); ${$this->xfd->x2c59->x2f4e} = ${$this->x4a->x2c75->x7505}->{$this->x4a->x2c59->x4295}(); if (${$this->x4a->x2c59->{$this->x79->x2c59->x2f45}}[0] == "PROCESSING") { ${$this->x79->x2c75->{$this->xfd->x2c75->x7539}} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2f5e}}}}}["mtime"]; ${$this->x4a->x2c75->{$this->x4a->x2c75->x753d}} = ${$this->x4a->x2c59->{$this->x79->x2c59->x2f45}}[3]; if (!(Mage::$xb6f6('core/date')->{$this->x4a->x2c59->x42b3}() > ${$this->xfd->x2c59->x2f60} + (${$this->x4a->x2c75->{$this->x4a->x2c75->x753d}} * 10) || Mage::$xb6f6('core/date')->{$this->x4a->x2c59->x42b3}() > ${$this->xfd->x2c75->x7538} + (${$this->xfd->x2c59->{$this->xfd->x2c59->x2f71}} * 2))) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('File "%s" is already processing. Please wait the end of the process.', $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}(), $this->{$this->x79->x2c59->x39cc}())); } } } else { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x750c}}}->{$this->x4a->x2c59->x40dd}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7523}}}); } } $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("store_id")) ? ${$this->x4a->x2c75->x7543} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("store_id") : ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}} = $this->{$this->x4a->x2c59->x43a6}(); ${$this->xfd->x2c75->{$this->xfd->x2c75->x74f0}} = $x500($x4ef()); ${$this->xfd->x2c75->x74bc}->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2cf2}}}->{$this->x4a->x2c59->x3e27}(${$this->xfd->x2c75->x74bc}, ${$this->xfd->x2c75->{$this->xfd->x2c75->x74f0}}); if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x74bf}}}->{$this->x4a->x2c59->x410d}(${$this->x4a->x2c59->{$this->xfd->x2c59->x2f1b}}) != $x500(${$this->xfd->x2c75->x74ec})) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x74d1}}}::${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x74e7}}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2efb}}}}}::${$this->x79->x2c75->x74d4}("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2ee2}}}->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2d08}}})); } ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x754f}}}} = Mage::$xb6f6('core/date')->{$this->xfd->x2c59->x43e7}('Y-m-d'); ${$this->xfd->x2c75->{$this->x79->x2c75->x7555}} = Mage::$x8a3d()->{$this->x4a->x2c59->x4403}(); ${$this->x79->x2c75->x755a} = Mage::$xb83a("catalog/placeholder/image_placeholder", ${$this->xfd->x2c59->x2f75}); ${$this->x4a->x2c59->x2f9a} = Mage::$xb83a("currency/options/base", ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->x4a->x2c75->{$this->xfd->x2c75->x7571}} = Mage::$xb83a("cataloginventory/item_options/manage_stock", ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2fc0}}}} = Mage::$xb83a("cataloginventory/item_options/backorders", ${$this->x4a->x2c75->x7543}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2fcb}}} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}})->{$this->x4a->x2c59->x444b}(Mage_Core_Model_Store::URL_TYPE_WEB, false); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x758b}}} = Mage::$x9d99('core/store')->{$this->x79->x2c59->x4469}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}})->{$this->x4a->x2c59->x444b}(); ${$this->x4a->x2c59->x2fe2} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}})->{$this->x4a->x2c59->x444b}(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); ${$this->xfd->x2c75->{$this->x79->x2c75->x759a}} = Mage::$xb83a(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->x4a->x2c59->{$this->x79->x2c59->x2fff}} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c75->{$this->x4a->x2c75->x7544}})->{$this->x79->x2c59->x44e1}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_xmlitempattern")) ? ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3008}}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_xmlitempattern") : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x75b8}}} = $this->{$this->x79->x2c59->x453a}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_title")) ? ${$this->xfd->x2c75->{$this->x79->x2c75->x75bd}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_title") : ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x75c0}}} = $this->{$this->x4a->x2c59->x45a4}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_description")) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x301e}}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_description") : ${$this->xfd->x2c59->{$this->xfd->x2c59->x301b}} = $this->{$this->x79->x2c59->x4601}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_categories")) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x3022}} = $x4d3(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_categories")) : ${$this->x4a->x2c59->x3021} = $x4d3($this->{$this->xfd->x2c59->x4653}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_filter")) ? ${$this->x4a->x2c59->{$this->x79->x2c59->x3030}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_filter") : ${$this->x4a->x2c59->x302d} = $this->{$this->xfd->x2c59->x46bb}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_type")) ? ${$this->x79->x2c59->{$this->x4a->x2c59->x3037}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_type") : ${$this->x79->x2c75->x75e4} = $this->{$this->x4a->x2c59->x4721}(); ${$this->x79->x2c75->x75ef} = Array(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3051}}}} = Array(); if ($x29c1(${$this->x4a->x2c75->x75d8})) { foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3026}}} as ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3061}}}}) { if (${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3061}}}}->checked) ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}[] = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3065}}}}}->line; } foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x302a}}}} as ${$this->xfd->x2c75->{$this->x79->x2c75->x7605}}) { if (${$this->x79->x2c75->x7604}->mapping != "") ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3051}}}}[${$this->x79->x2c75->x7604}->line] = ${$this->x4a->x2c59->x3056}->mapping; } } if ($x2a4f(${$this->x79->x2c59->x303d}) < 1) { ${$this->x79->x2c75->x75ef}[] = '*'; } $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_type_ids")) ? ${$this->xfd->x2c59->x306a} = $x2791(',', Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_type_ids")) : ${$this->xfd->x2c75->x760c} = $x2791(',', $this->{$this->xfd->x2c59->x477f}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_visibility")) ? ${$this->x79->x2c75->x7614} = $x2791(',', Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_visibility")) : ${$this->xfd->x2c59->{$this->x4a->x2c59->x3074}} = $x2791(',', $this->{$this->xfd->x2c59->x47d0}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attributes")) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3079}} = $x4d3(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attributes")) : ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x307b}}} = $x4d3($this->{$this->xfd->x2c59->x4826}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attribute_sets")) ? ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x307f}}} = $x2791(',', Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attribute_sets")) : ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x307f}}} = $x2791(',', $this->{$this->xfd->x2c59->x4883}()); ${$this->x4a->x2c59->{$this->xfd->x2c59->x2f1b}} = $x500($x4ef()); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ee3}}}}->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2cf2}}}->{$this->x4a->x2c59->x3e27}(${$this->x79->x2c59->{$this->x4a->x2c59->x2edd}}, ${$this->xfd->x2c75->x74ec}); if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2ee7}}}}}->{$this->x4a->x2c59->x410d}(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74f4}}}) != $x500(${$this->xfd->x2c75->x74ec})) { ${$this->xfd->x2c59->{$this->x79->x2c59->x2eed}}::${$this->x4a->x2c75->x74df}(${$this->xfd->x2c75->x74cb}::${$this->x79->x2c75->{$this->x79->x2c75->x74d7}}("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x74bf}}}->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2d0b}}}})); } ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}} = ''; ${$this->x4a->x2c59->{$this->x79->x2c59->x308b}} = ''; ${$this->xfd->x2c59->x3083} = ('xml version="1.0" encoding="utf-8"
"); ${$this->xfd->x2c59->x3083}.=('<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
"); ${$this->x79->x2c75->{$this->x79->x2c75->x7635}}.=('<channel>
"); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3085}}}.=('<title>' . ${$this->x79->x2c75->x75bb} . "</title>
"); ${$this->x79->x2c75->x7634}.=('<link>' . $x2868(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2fcb}}}, 0, -1) . "</link>
"); ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=('<description>' . ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x75d3}}} . "</description>
"); if ($this->{$this->x79->x2c75->{$this->x4a->x2c75->x72d4}}) ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7641}}} = $this->{$this->xfd->x2c75->x803d}(${$this->x79->x2c75->x7634}); else { ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2f29}}}}->{$this->xfd->x2c59->x40e3}($this->{$this->x4a->x2c75->{$this->x79->x2c75->x803f}}(${$this->x79->x2c59->{$this->xfd->x2c59->x3084}})); $this->{$this->x4a->x2c75->x805c}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7510}}}}}, ${$this->x79->x2c75->{$this->x79->x2c75->x7522}}, "PROCESSING;0;"); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->{$this->x4a->x2c59->x39da}() . " created and opened", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); } ${$this->x79->x2c59->{$this->x79->x2c59->x3091}} = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*)(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?}/'; $x706(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3093}}}, ${$this->x79->x2c59->{$this->x4a->x2c59->x3007}}, ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x30a0}}}}}); foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[6] as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}) { if (${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}} != "") { ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[0][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[0][${$this->x4a->x2c75->x7659}]; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[1][] = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x309b}}}}[2][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[7][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ${$this->x4a->x2c59->x3098}[3][] = ${$this->x4a->x2c59->x3098}[8][${$this->x79->x2c59->x30a1}]; ; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x309a}}}[4][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[9][${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]; ; } } foreach (${$this->x79->x2c75->x764b}[11] as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x30ac}}}) { if (${$this->x4a->x2c75->x7668} != "") { ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[0][] = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x309b}}}}[0][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}}]; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x309b}}}}[1][] = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}; ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[2][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[7][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ${$this->x4a->x2c75->{$this->x79->x2c75->x7650}}[3][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[8][${$this->x79->x2c59->x30a1}]; ; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[4][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[9][${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}]; ; } } foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[16] as ${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} => ${$this->x79->x2c59->x30a7}) { if (${$this->x79->x2c59->x30a7} != "") { ${$this->x4a->x2c75->{$this->x79->x2c75->x7650}}[0][] = ${$this->x4a->x2c59->x3098}[0][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ${$this->x4a->x2c75->{$this->x79->x2c75->x7650}}[1][] = ${$this->x79->x2c59->x30a7}; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[2][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[7][${$this->x79->x2c59->x30a1}]; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x309a}}}[3][] = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x30a0}}}}}[8][${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]; ; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[4][] = ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[9][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ; } } ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[0][] = "{categories,[1],[1],[1]}"; ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[1][] = "categories"; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[2][] = ""; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[3][] = ",[1],[1],[1]"; ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}} = array(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}} = array(); foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[1] as ${$this->x79->x2c59->x30a1} => ${$this->x4a->x2c75->x7668}) { ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->x4a->x2c75->x7659}]['methodName'] = "get" . $x29a1(' ', '', $x612($x6fd(${$this->x4a->x2c75->x7668})) . '()'); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}}[${$this->x79->x2c59->x30a1}]['pattern'] = "{" . $x6fd(${$this->x4a->x2c75->{$this->x4a->x2c75->x766b}}) . "}"; ${$this->xfd->x2c75->x766e}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}}]['fullpattern'] = ${$this->x79->x2c75->x764b}[0][${$this->x79->x2c59->x30a1}]; ${$this->xfd->x2c75->x766e}[${$this->x4a->x2c75->x7659}]['name'] = $x6fd(${$this->x4a->x2c75->{$this->x4a->x2c75->x766b}}); ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}]['reference'] = $x6fd(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[2][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]); if (empty(${$this->x4a->x2c59->x30ad}[${$this->x4a->x2c75->x7659}]['reference'])) ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]['reference'] = 'self'; switch (${$this->xfd->x2c75->x766e}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]['name']) { case 'url': $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'url_key'); break; case 'uri': $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'url_key'); break; case 'G:ID': $x7eb(${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}}, 'sku'); break; case 'G:TITLE': $x7eb(${$this->xfd->x2c59->x30b2}, 'name'); break; case 'G:DESCRIPTION': $x7eb(${$this->xfd->x2c59->x30b2}, 'short_description'); $x7eb(${$this->xfd->x2c59->x30b2}, 'description'); break; case 'G:IMAGE_LINK': $x7eb(${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}}, 'image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'small_image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'thumbnail'); break; case 'SC:IMAGES': $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'small_image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'thumbnail'); break; case 'SC:DESCRIPTION': $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'description'); $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'short_description'); $x7eb(${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}}, 'manufacturer'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'name'); $x7eb(${$this->xfd->x2c75->x7673}, 'sku'); break; case 'SC:EAN': $x7eb(${$this->xfd->x2c75->x7673}, 'ean'); break; case 'SC:URL': $x7eb(${$this->xfd->x2c75->x7673}, 'url_key'); $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'url'); break; default : $x7eb(${$this->xfd->x2c75->x7673}, ${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}}[${$this->x79->x2c59->x30a1}]['name']); } ${$this->x4a->x2c59->x30ad}[${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]["value"] = '$product->get' . ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]['name'] . "()"; ${$this->xfd->x2c75->x766e}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}}]["getText"] = 'getAttributeText(\'' . $x6fd(${$this->x4a->x2c75->x7668}) . '\')'; ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x30bf}}}} = '/\[([^\]]+)\]/'; $x706(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7681}}}, ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x30a0}}}}}[3][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}}], ${$this->xfd->x2c59->x30c9}); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]["options"] = ${$this->xfd->x2c59->x30c9}[1]; } if ($this->_debug) { echo "----------------------------------------------<br>
------------ DEBUG MODE ----------------<br>
----------------------------------------------<br><br>"; echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $xd92(${$this->x4a->x2c59->x30ad}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76a1}}} = Mage::$x9d99('catalog/category')->{$this->x4a->x2c59->x3e72}() ->{$this->xfd->x2c59->x493a}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}) ->{$this->x79->x2c59->x494b}('name', 'store_id') ->{$this->x79->x2c59->x494b}('is_active') ->{$this->x79->x2c59->x494b}('include_in_menu'); ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}} = array(); foreach (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x30d3}}} as ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x407f}()]['name'] = ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x4986}(); ${$this->x79->x2c75->x76aa}[${$this->x79->x2c75->x76bb}->{$this->x79->x2c59->x407f}()]['path'] = ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->xfd->x2c59->{$this->x4a->x2c59->x39ce}}(); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x407f}()]['level'] = ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}->{$this->xfd->x2c59->x49b2}(); if ($xf76(Mage::$x9d60(), '1.6.0', '<') || Mage::$xb83a("simplegoogleshopping/system/include_in_menu")) ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c75->x76bb}->{$this->x79->x2c59->x407f}()]['include_in_menu'] = true; else ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x407f}()]['include_in_menu'] = ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}->{$this->x4a->x2c59->x49f3}(); } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>"; $xd92(${$this->x79->x2c75->x76aa}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Categories collected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->x4a->x2c59->x30db} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->xfd->x2c75->x76db} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}('eav_entity_type'); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76eb}}} = ${$this->xfd->x2c75->x76ce}->{$this->xfd->x2c59->x4a48}()->{$this->x79->x2c59->x4a54}(${$this->x79->x2c59->x30e5})->{$this->x4a->x2c59->x4a5c}('entity_type_code=\'catalog_product\''); ${$this->xfd->x2c59->x30ed} = ${$this->xfd->x2c75->x76ce}->{$this->x79->x2c59->x4a71}(${$this->x4a->x2c75->x76e7}); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x76fe}}} = ${$this->x4a->x2c59->{$this->xfd->x2c59->x30f0}}[0]['entity_type_id']; ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76d7}}}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->x79->x2c75->{$this->x4a->x2c75->x7707}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('directory_currency_rate'); ${$this->xfd->x2c59->x30e7} = ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}}->{$this->xfd->x2c59->x4a48}()->{$this->x79->x2c59->x4a54}(${$this->x79->x2c59->x30fe})->{$this->x4a->x2c59->x4a5c}('currency_from=\'' . ${$this->xfd->x2c75->{$this->x79->x2c75->x756d}} . '\''); ${$this->x4a->x2c75->x770d} = ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}}->{$this->x79->x2c59->x4a71}(${$this->xfd->x2c59->x30e7}); ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x311e}}}}} = array(); foreach (${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7712}}} as ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}}) { ${$this->x4a->x2c75->x7718}[${$this->x4a->x2c59->x3121}['currency_to']] = ${$this->x4a->x2c59->x3121}['rate']; } $this->_currencies = ${$this->x4a->x2c75->x7718}; if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>"; $xd92(${$this->x79->x2c59->{$this->x79->x2c59->x3113}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7737}}}} = Mage::$xad04('eav/entity_attribute_collection') ->{$this->xfd->x2c59->x4afd}(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x30fa}}}) ->{$this->x4a->x2c59->x4b0d}() ->{$this->x4a->x2c59->x410d}(); ${$this->x79->x2c75->x7739} = array(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x313e}}} = array(); foreach (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7737}}}} as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->x30a7}) { if ($x2a1d(${$this->x4a->x2c75->{$this->x4a->x2c75->x766b}}['attribute_code'], ${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}})) { $x7eb(${$this->x79->x2c75->x7739}, ${$this->x79->x2c59->x30a7}['attribute_code']); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x313e}}}[${$this->x4a->x2c75->x7668}['attribute_code']] = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}['frontend_input']; } } if (!$x2a1d('special_price', ${$this->x79->x2c75->x7739})) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}[] = 'special_price'; if (!$x2a1d('special_from_date', ${$this->x79->x2c75->{$this->x4a->x2c75->x773b}})) ${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}[] = 'special_from_date'; if (!$x2a1d('special_to_date', ${$this->x79->x2c75->{$this->x4a->x2c75->x773b}})) ${$this->x4a->x2c59->x3135}[] = 'special_to_date'; if (!$x2a1d('price_type', ${$this->x79->x2c75->x7739})) ${$this->x4a->x2c59->x3135}[] = 'price_type'; if (!$x2a1d('price', ${$this->x79->x2c59->{$this->x4a->x2c59->x3136}})) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}[] = 'price'; ${$this->x4a->x2c59->x3135}[] = 'tax_class_id'; foreach (${$this->x79->x2c75->{$this->xfd->x2c75->x761d}} as ${$this->x4a->x2c75->x7747}) { if (!$x2a1d(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->code, ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}) && ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->checked) if (!$x2a1d(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) ${$this->x79->x2c59->{$this->x4a->x2c59->x3136}}[] = ${$this->x79->x2c59->x3143}->code; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $xd92(${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); ${$this->xfd->x2c75->x76c5} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76d7}}}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7761}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('eav_attribute_option_value'); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76eb}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76f0}}}}->{$this->x79->x2c59->x4a54}(${$this->x4a->x2c59->{$this->x79->x2c59->x314d}}); ${$this->x4a->x2c75->x76e7}->{$this->x4a->x2c59->x4a5c}("store_id=" . ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}} . ' OR store_id=0'); ${$this->x4a->x2c75->x76e7}->{$this->xfd->x2c59->x4b91}(array('option_id', 'store_id')); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7775}}} = ${$this->x4a->x2c59->x30e0}->{$this->x79->x2c59->x4a71}(${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}); foreach (${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x777a}}}} as ${$this->xfd->x2c75->x7781}) { ${$this->xfd->x2c59->x316f}[${$this->xfd->x2c59->x315f}['option_id']][${$this->x79->x2c59->{$this->x79->x2c59->x3162}}['store_id']] = ${$this->x79->x2c59->{$this->x79->x2c59->x3162}}['value']; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>"; $xd92(${$this->xfd->x2c75->x7784}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3181}}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('tax_class'); ${$this->x79->x2c59->x3187} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}('tax_calculation'); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3194}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('tax_calculation_rate'); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x77ac}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('directory_country_region'); ${$this->xfd->x2c75->{$this->xfd->x2c75->x77ba}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('customer_group'); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76f0}}}} = ${$this->x4a->x2c59->x30e0}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76f1}}}}}->{$this->x79->x2c59->x4a54}(${$this->xfd->x2c75->{$this->x79->x2c75->x778e}})->{$this->xfd->x2c59->x4b91}(array('class_id', 'tax_calculation_rate_id')); ${$this->xfd->x2c59->x30e7}->{$this->x79->x2c59->x4c10}(array('tc' => ${$this->x79->x2c59->{$this->x4a->x2c59->x3189}}), 'tc.product_tax_class_id = ' . ${$this->xfd->x2c75->x7789} . '.class_id', 'tc.tax_calculation_rate_id'); ${$this->x4a->x2c75->{$this->x79->x2c75->x76ea}}->{$this->x79->x2c59->x4c10}(array('tcr' => ${$this->x4a->x2c59->{$this->x4a->x2c59->x3191}}), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}->{$this->x79->x2c59->x4c10}(array('dcr' => ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x77ac}}}), 'dcr.region_id=tcr.tax_region_id', 'code'); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}->{$this->x79->x2c59->x4c3c}(array('cg' => ${$this->x4a->x2c75->x77b7}), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); ${$this->x79->x2c59->x31b1} = ${$this->x4a->x2c59->x30e0}->{$this->x79->x2c59->x4a71}(${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}); ${$this->x79->x2c59->{$this->x4a->x2c59->x31c2}} = array(); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x77d6}}} = ''; foreach (${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x77c2}}} as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x77e7}}}}) { if (${$this->xfd->x2c59->{$this->x4a->x2c59->x31ce}} != ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x31e1}}}['class_id']) ${$this->x79->x2c75->x77eb} = 0; else { ${$this->x79->x2c59->x31e5}++; } ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x31d1}}} = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x77e7}}}}['class_id']; ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x77cf}}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x77e7}}}}['class_id']][${$this->x79->x2c59->x31e5}]['rate'] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x77e2}}}['rate']; ${$this->x79->x2c59->{$this->x4a->x2c59->x31c2}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x77e2}}}['class_id']][${$this->x79->x2c75->{$this->xfd->x2c75->x77ef}}]['code'] = ${$this->x79->x2c59->x31d7}['code']; ${$this->x79->x2c75->{$this->xfd->x2c75->x77c9}}[${$this->x79->x2c59->x31d7}['class_id']][${$this->x79->x2c59->{$this->x4a->x2c59->x31ea}}]['country'] = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x31e1}}}['tax_country_id']; } $this->_rates = ${$this->xfd->x2c75->x77c4}; if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>"; $xd92(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x77ca}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x31f3}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}('review'); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x31ff}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('review_store'); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x780e}}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('rating_option_vote'); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x320f}}} = ${$this->x4a->x2c59->x30e0}->{$this->xfd->x2c59->x4a48}()->{$this->xfd->x2c59->x4cb4}('review_id'); ${$this->x79->x2c75->x7815}->{$this->x79->x2c59->x4a54}(array("r" => ${$this->x4a->x2c75->{$this->x4a->x2c75->x77f5}}), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value')); ${$this->x79->x2c75->x7815}->{$this->x79->x2c59->x4c10}(array('rs' => ${$this->x79->x2c59->x31f9}), 'rs.review_id=r.review_id', 'rs.store_id'); ${$this->x4a->x2c59->x3208}->{$this->x79->x2c59->x4c10}(array('rov' => ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7812}}}}}), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x320f}}}->{$this->x4a->x2c59->x4a5c}("status_id=1 and entity_id=1"); ${$this->x79->x2c75->x7815}->{$this->xfd->x2c59->x4ce7}(array('r.entity_pk_value', 'rs.store_id')); ${$this->x4a->x2c75->{$this->xfd->x2c75->x781f}} = ${$this->xfd->x2c75->{$this->x79->x2c75->x76d1}}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->{$this->xfd->x2c75->x781f}}->{$this->x79->x2c59->x4a54}(array("r" => ${$this->x4a->x2c75->x77f1}), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT) AS store_id")); ${$this->x4a->x2c75->{$this->xfd->x2c75->x781f}}->{$this->x79->x2c59->x4c10}(array('rs' => ${$this->x79->x2c75->x77fa}), 'rs.review_id=r.review_id', array()); ${$this->xfd->x2c59->{$this->xfd->x2c59->x3220}}->{$this->x79->x2c59->x4c10}(array('rov' => ${$this->x79->x2c75->x7807}), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); ${$this->xfd->x2c59->x321b}->{$this->x4a->x2c59->x4a5c}("status_id=1 and entity_id=1"); ${$this->x4a->x2c75->x781e}->{$this->xfd->x2c59->x4ce7}(array('r.entity_pk_value')); ${$this->xfd->x2c59->x30e7} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76d7}}}}}->{$this->xfd->x2c59->x4a48}() ->{$this->xfd->x2c59->x4d5c}(array(${$this->x4a->x2c59->x3208}, ${$this->x4a->x2c75->x781e})); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}->{$this->xfd->x2c59->x4b91}(array('entity_pk_value', 'store_id')); ${$this->x79->x2c75->x7820} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->x79->x2c59->x4a71}(${$this->xfd->x2c59->x30e7}); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}} = array(); foreach (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7826}}}} as ${$this->xfd->x2c59->x322b}) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[${$this->xfd->x2c75->x7840}['entity_pk_value']][${$this->xfd->x2c59->x322b}['store_id']]["count"] = ${$this->xfd->x2c75->x7840}["count"]; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7836}}}}[${$this->xfd->x2c75->x7840}['entity_pk_value']][${$this->x4a->x2c59->{$this->xfd->x2c59->x322f}}['store_id']]['score'] = ${$this->xfd->x2c59->x322b}['score']; } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->x79->x2c59->{$this->x4a->x2c59->x3235}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('catalog_product_entity_media_gallery'); ${$this->xfd->x2c59->x3236} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_entity_media_gallery_value'); ${$this->x4a->x2c75->x76e7} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->xfd->x2c59->x4a48}(array("DISTINCT value")); ${$this->x4a->x2c75->x76e7}->{$this->x79->x2c59->x4a54}(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7846}}}); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76f1}}}}}->{$this->x79->x2c59->x4c10}(array('cpemgv' => ${$this->x79->x2c75->x784c}), 'cpemgv.value_id = ' . ${$this->x79->x2c75->x7844} . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); ${$this->x4a->x2c75->x76e7}->{$this->x4a->x2c59->x4a5c}("value<>TRIM('') AND (store_id=" . ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}} . ' OR store_id=0)'); ${$this->x4a->x2c75->x76e7}->{$this->xfd->x2c59->x4b91}(array('position', 'value_id')); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76f0}}}}->{$this->xfd->x2c59->x4ce7}(array('value_id')); ${$this->x4a->x2c75->{$this->xfd->x2c75->x785b}} = ${$this->xfd->x2c75->{$this->x79->x2c75->x76d1}}->{$this->x79->x2c59->x4a71}(${$this->x4a->x2c75->{$this->x79->x2c75->x76ea}}); foreach (${$this->xfd->x2c75->x7857} as ${$this->xfd->x2c75->x7861}) { if (${$this->x4a->x2c59->{$this->x4a->x2c59->x3260}}['disabled'] != 1 && ${$this->x4a->x2c59->{$this->x4a->x2c59->x3260}}['value'] != '') { if (!$x2a1d(${$this->x4a->x2c59->{$this->x4a->x2c59->x3260}}['value'], ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x786e}}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7866}}}['entity_id']]['src'])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x326f}}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7866}}}['entity_id']]['src'][] = ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3263}}}['value']; ${$this->x4a->x2c59->{$this->x4a->x2c59->x326a}}[${$this->xfd->x2c75->x7861}['entity_id']]['disabled'][] = ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7866}}}['disabled']; } } } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>"; $xd92(${$this->x4a->x2c75->x7867}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); Mage::$xb74b()->{$this->xfd->x2c59->x4e33}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}); ${$this->x79->x2c59->x3279} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("cataloginventory_stock_item"); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x328a}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}("core_url_rewrite"); ${$this->x79->x2c75->x7703} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('catalog_category_product'); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x788d}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('catalog_category_product_index'); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x789a}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_index_price'); ${$this->xfd->x2c75->{$this->x79->x2c75->x78a6}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_super_link'); ${$this->x4a->x2c75->{$this->xfd->x2c75->x78b4}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_link'); ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x32bd}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}('catalog_product_bundle_selection'); ($xf76(Mage::$x9d60(), '1.6.0', '<')) ? ${$this->xfd->x2c59->x30c9} = "options=''" : ${$this->xfd->x2c59->x30c9} = "ISNULL(options)"; switch (Mage::$xb83a("simplegoogleshopping/system/urlrewrite")) { case 1 : ${$this->x79->x2c75->{$this->x4a->x2c75->x78ca}} = "AND url.target_path NOT LIKE '%category%'"; ${$this->xfd->x2c75->x78ce} = 'MAX'; break; default : ${$this->x4a->x2c59->{$this->x79->x2c59->x32c4}} = "AND url.target_path LIKE '%category%'"; ${$this->xfd->x2c75->{$this->xfd->x2c75->x78d0}} = 'GROUP_CONCAT'; break; break; } ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "configurable")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x494b}(${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}, true); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x78ac}}}} . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7875} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->x787d} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x32c9}}} . ' AND is_system=1 AND ' . ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7696}}}} . ' AND url.store_id=' . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}, array('request_path' => ${$this->xfd->x2c75->x78ce} . '(DISTINCT request_path)')); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->x7707}} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x788d}}} . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('cpsl.parent_id')); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x78ee}}} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}} as ${$this->x4a->x2c75->x78f3}) { foreach ($x2791(",", ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}->{$this->x79->x2c59->x4fe8}()) as ${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}) { ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x78f0}}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}] = ${$this->x4a->x2c59->x32f2}; ${$this->x4a->x2c75->{$this->xfd->x2c75->x7905}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['categories_ids'] = ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}->{$this->x4a->x2c59->x4ffa}(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x3308}}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_id'] = ${$this->x4a->x2c75->x78f3}->{$this->x79->x2c59->x407f}(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x3308}}[${$this->x4a->x2c75->x78fc}]['parent_sku'] = ${$this->x4a->x2c75->x78f3}->{$this->x4a->x2c59->x5021}(); ${$this->x79->x2c59->x3307}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_request_path'] = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->xfd->x2c59->x502b}(); } } $this->configurable = ${$this->x79->x2c75->x78e8}; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; echo ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->x79->x2c59->x3307}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with configurable products detected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->xfd->x2c59->x2f75}); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->x78d9}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "configurable")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x78b1}}}}} . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c59->{$this->xfd->x2c59->x327b}} . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('cpsl.parent_id')); ${$this->xfd->x2c59->{$this->x4a->x2c59->x3310}} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}} as ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}) { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7910}}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3320}}}}->{$this->x79->x2c59->x407f}()] = ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}->{$this->xfd->x2c59->x50f2}(); } $this->configurableQty = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7910}}}}}; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>"; echo ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x790d}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Qty for configurable products calculated", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x78a8}}} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("catalog_product_super_link"); ${$this->x4a->x2c75->x7919} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}("catalog_product_super_attribute"); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7933}}}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}("catalog_product_entity_int"); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x793c}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}("catalog_product_super_attribute_pricing"); ${$this->x4a->x2c75->x7941} = ${$this->x4a->x2c59->x30e0}->{$this->xfd->x2c59->x4a48}(); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7948}}}->{$this->x79->x2c59->x4a54}(array("cpsl" => ${$this->xfd->x2c75->{$this->x79->x2c75->x78a6}}), array("parent_id", "product_id")); ${$this->x79->x2c75->{$this->x4a->x2c75->x7945}}->{$this->x79->x2c59->x4c10}(array("cpsa" => ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3330}}}}}), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); ${$this->x4a->x2c75->x7941}->{$this->x79->x2c59->x4c10}(array("cpei" => ${$this->x4a->x2c59->x3332}), "cpei.entity_id = cpsl.product_id AND cpei.attribute_id = cpsa.attribute_id", array("value" => "value")); ${$this->xfd->x2c59->x3346}->{$this->x79->x2c59->x4c10}(array("cpsap" => ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x333e}}}), "cpsap.product_super_attribute_id = cpsa.product_super_attribute_id AND cpei.value = cpsap.value_index", array("pricing_value" => "pricing_value", "is_percent" => "is_percent")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x794c}}}}->{$this->xfd->x2c59->x4b91}(array("cpsl.parent_id", "cpsl.product_id")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x794c}}}}->{$this->xfd->x2c59->x4ce7}(array("cpsl.parent_id", "cpsl.product_id", "cpsa.attribute_id")); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x795c}}}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->x79->x2c59->x4a71}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x794c}}}}); ${$this->x4a->x2c59->x3359} = array(); foreach (${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7959}}} as ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}) { ${$this->x4a->x2c59->{$this->xfd->x2c59->x335c}}[${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x331b}}}["parent_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["product_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}['attribute_id']]['attribute_id'] = ${$this->x4a->x2c75->x7912}["attribute_id"]; ${$this->x79->x2c75->x795e}[${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x331b}}}["parent_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["product_id"]][${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3320}}}}['attribute_id']]['value'] = ${$this->x79->x2c75->{$this->x4a->x2c75->x7915}}["value"]; ${$this->x79->x2c75->x795e}[${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["parent_id"]][${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3320}}}}["product_id"]][${$this->x4a->x2c75->x7912}['attribute_id']]['pricing_value'] = ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["pricing_value"]; ${$this->x4a->x2c59->{$this->xfd->x2c59->x335c}}[${$this->x4a->x2c59->x3315}["parent_id"]][${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x331b}}}["product_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}['attribute_id']]['is_percent'] = ${$this->x4a->x2c59->x3315}["is_percent"]; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Configurable prices collected", null, $this->{$this->xfd->x2c75->x800d}('.log')); $this->configurablePrices = ${$this->x4a->x2c59->{$this->xfd->x2c59->x335c}}; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES PRICES ----------------<br>"; echo ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7948}}} . '<br><br>'; $xd92(${$this->x79->x2c75->x795e}); } ${$this->xfd->x2c59->x32dd} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->x78d9}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "grouped")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->xfd->x2c59->x32dd}->{$this->x79->x2c59->x494b}(${$this->x79->x2c59->{$this->x4a->x2c59->x3136}}, true); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->{$this->xfd->x2c75->x78b4}} . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); ${$this->xfd->x2c59->x32dd}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3281}}}} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c59->{$this->x4a->x2c59->x3286}} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x32c9}}} . ' AND is_system=1 AND ' . ${$this->xfd->x2c75->{$this->x4a->x2c75->x768d}} . ' AND url.store_id=' . ${$this->xfd->x2c59->x2f75}, array('request_path' => ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x78d3}}} . '(DISTINCT request_path)')); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7709}}} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7888} . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('cpl.product_id')); ${$this->xfd->x2c75->x7962} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}} as ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}) { foreach ($x2791(",", ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->x79->x2c59->x4fe8}()) as ${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}) { ${$this->xfd->x2c75->x7962}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}] = ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}; ${$this->x4a->x2c75->x796a}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['categories_ids'] = ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}->{$this->x4a->x2c59->x4ffa}(); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7975}}}}}[${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3303}}}]['parent_id'] = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->x79->x2c59->x407f}(); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7972}}}}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_sku'] = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->x4a->x2c59->x5021}(); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3369}}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['parent_request_path'] = ${$this->x4a->x2c59->x32f2}->{$this->xfd->x2c59->x502b}(); } } $this->grouped = ${$this->x4a->x2c75->{$this->x4a->x2c75->x7967}}; if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>"; echo ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->x4a->x2c75->x796a}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->{$this->xfd->x2c75->x800d}('.log')); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->xfd->x2c59->x2f75}); ${$this->xfd->x2c59->x32dd}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "bundle")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x494b}(${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}, true); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x78c5}}} . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c59->x3279} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->{$this->x4a->x2c75->x787f}} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x79->x2c59->x32c4}} . ' AND is_system=1 AND ' . ${$this->x79->x2c75->x768a} . ' AND url.store_id=' . ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}, array('request_path' => ${$this->x4a->x2c59->x32cb} . '(DISTINCT request_path)')); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c59->x30fe} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x788d}}} . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . ${$this->xfd->x2c59->x2f75}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('e.entity_id')); ${$this->x4a->x2c75->x7979} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}} as ${$this->x4a->x2c75->x78f3}) { foreach ($x2791(",", ${$this->x4a->x2c75->x78f3}->{$this->x79->x2c59->x4fe8}()) as ${$this->x79->x2c59->x32fa}) { ${$this->x4a->x2c75->{$this->xfd->x2c75->x797b}}[${$this->x79->x2c59->x32fa}] = ${$this->x4a->x2c59->{$this->x79->x2c59->x32f7}}; ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3374}}}[${$this->x79->x2c59->x32fa}]['parent_id'] = ${$this->x4a->x2c75->x78f3}->{$this->x79->x2c59->x407f}(); ${$this->x4a->x2c59->x3370}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_sku'] = ${$this->x4a->x2c75->x78f3}->{$this->x4a->x2c59->x5021}(); ${$this->xfd->x2c59->{$this->x79->x2c59->x3371}}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_request_path'] = ${$this->x4a->x2c75->x78f3}->{$this->xfd->x2c59->x502b}(); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3374}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['categories_ids'] = ${$this->x4a->x2c59->x32f2}->{$this->x4a->x2c59->x4ffa}(); } } $this->bundle = ${$this->x4a->x2c75->{$this->xfd->x2c75->x797b}}; if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>"; echo ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3377}}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->{$this->x4a->x2c59->x39da}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x798e}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}("catalog_product_option"); ${$this->x4a->x2c59->x3381} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_title"); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x799b}}} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_type_value"); ${$this->x79->x2c59->x338f} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_type_title"); ${$this->xfd->x2c75->x79ab} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_type_price"); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33b4}}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d2}}}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->x79b4}->{$this->x79->x2c59->x4a54}(array("cpo" => ${$this->x79->x2c75->x7989}), array("product_id")); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33b4}}}}->{$this->x79->x2c59->x4c10}(array("cpot" => ${$this->x4a->x2c59->x3381}), "cpot.option_id=cpo.option_id AND cpot.store_id", array("option" => "title", "option_id", "store_id")); ${$this->x4a->x2c59->{$this->x4a->x2c59->x33ac}}->{$this->x79->x2c59->x4c10}(array("cpotv" => ${$this->xfd->x2c59->x3386}), "cpotv.option_id = cpo.option_id", array("sku", "id" => "option_type_id")); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x33b9}}}}}->{$this->x79->x2c59->x4c10}(array("cpott" => ${$this->x79->x2c59->x338f}), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value"); ${$this->x4a->x2c59->x33a9}->{$this->x79->x2c59->x4c10}(array("cpotp" => ${$this->x79->x2c75->{$this->x4a->x2c75->x79b0}}), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type")); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x33ac}}->{$this->xfd->x2c59->x4b91}(array("product_id", "cpotv.sort_order ASC")); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7823}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->x79->x2c59->x4a71}(${$this->xfd->x2c59->x30e7}); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c5}}}} = array(); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33d8}}}}} = 0; foreach (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7826}}}} as ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x33de}}}) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79de}}}["product_id"]][${$this->x79->x2c59->{$this->x79->x2c59->x33dd}}["option"]]["options"][] = array( "value" => ${$this->x79->x2c59->x33db}["value"], "sku" => ${$this->x79->x2c59->{$this->x79->x2c59->x33dd}}["sku"], "price" => ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79de}}}["price"], "price_type" => ${$this->xfd->x2c75->x79d6}["price_type"] ); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79ce}}}}++; } $this->customOptions = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33ca}}}}}; if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>"; echo ${$this->x4a->x2c75->{$this->x79->x2c75->x79b6}} . '<br><br>'; $xd92(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c5}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}('.log')); if (Mage::$xb812("core")->{$this->x4a->x2c59->x556f}("Wyomind_Googlemerchantpromotions")) { ${$this->x4a->x2c75->{$this->x4a->x2c75->x79e3}} = Mage::$xad04('salesrule/rule_collection')->{$this->x4a->x2c59->x558e}('sort_order', 'ASC')->{$this->xfd->x2c59->x3e88}("transferable_to_google_merchant", 1)->{$this->x79->x2c59->x4469}(); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Promotions rules collected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); } ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->x4a->x2c75->x7543}); if (Mage::$xb83a("simplegoogleshopping/system/disabled")) ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x3e88}("status", array('gteq' => 1)); else ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x3e88}("status", 1); ${$this->x79->x2c59->x33eb}->{$this->x79->x2c59->x4ef7}("type_id", array("in" => ${$this->xfd->x2c75->x760c})); ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->x79->x2c59->x4ef7}("visibility", array("in" => ${$this->x79->x2c75->x7614})); if (${$this->x79->x2c75->{$this->x4a->x2c75->x762c}}[0] != '*') ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->x79->x2c59->x4ef7}("attribute_set_id", array("in" => ${$this->xfd->x2c59->{$this->xfd->x2c59->x307e}})); ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->x79->x2c59->x494b}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}, true); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7a05}}}}} = array("eq" => "= '%s'", "neq" => "!= '%s'", "gteq" => ">= '%s'", "lteq" => "<= '%s'", "gt" => "> '%s'", "lt" => "< '%s'", "like" => "like '%s'", "nlike" => "not like '%s'", "null" => "is null", "notnull" => "is not null", "in" => "in (%s)", "nin" => "not in(%s)", ); ${$this->x4a->x2c75->x7a08} = ''; ${$this->x4a->x2c75->x7a0f} = 0; ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a21}}}}} = array(); foreach (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x307b}}} as ${$this->x4a->x2c75->x7747}) { if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->checked) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->x3145}}->condition == 'in' || ${$this->x79->x2c75->{$this->x4a->x2c75->x774b}}->condition == 'nin') { if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->code == 'qty' || ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->code == 'is_in_stock') { ${$this->x79->x2c59->{$this->x79->x2c59->x341d}} = $x2791(',', ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value); ${$this->x79->x2c59->x3143}->value = "'" . $x293c(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3427}}}}}, "','") . "'"; } else { ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value = $x2791(',', ${$this->x4a->x2c75->x7747}->value); } } switch (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->code) { case 'qty' : if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x340f}}} > 0) ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=' ' . ${$this->x79->x2c59->x3143}->statement . ' '; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=" qty " . $x1ab4(${$this->xfd->x2c75->x79fc}[${$this->x79->x2c59->x3143}->condition], ${$this->x4a->x2c59->{$this->xfd->x2c59->x3145}}->value); ${$this->x4a->x2c75->x7a0f}++; break; case 'is_in_stock' : if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x340f}}} > 0) ${$this->x4a->x2c59->x33fe}.=' ' . ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->statement . ' '; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=" (IF("; ${$this->x4a->x2c59->x33fe}.="(use_config_manage_stock=1 AND ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2fb3}}}=0)"; ${$this->x4a->x2c59->x33fe}.=" OR "; ${$this->x4a->x2c59->x33fe}.='(use_config_manage_stock=0 AND manage_stock=0)'; ${$this->x4a->x2c59->x33fe}.=" OR "; ${$this->x4a->x2c59->{$this->xfd->x2c59->x3403}}.="(use_config_manage_stock=1 AND ${$this->x4a->x2c75->x756e}=1 AND is_in_stock=1 )"; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=" OR "; ${$this->x4a->x2c59->x33fe}.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )"; ${$this->x4a->x2c59->x33fe}.=",'1','0')" . $x1ab4(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7a01}}}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->condition], ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value) . ")"; ${$this->x79->x2c59->{$this->x4a->x2c59->x340a}}++; break; default : if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->statement == "AND") { if ($x2a4f(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7a1b}}})) ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x79f8}}}}->{$this->xfd->x2c59->x3e88}(${$this->x79->x2c75->x7a18}); ${$this->x79->x2c59->{$this->xfd->x2c59->x3413}} = array(); } if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->condition == "in") { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3431}}} = true; ${$this->x4a->x2c59->x343e} = array(); foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->value as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a48}}}) { if (!$x2594(${$this->xfd->x2c75->x7a40})) ${$this->xfd->x2c75->x7a31} = true; } if (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3431}}}) { foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a48}}}) { ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3447}}}}[] = array(array("finset" => ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7a4b}}}})); } ${$this->x79->x2c75->x7a18}[] = array("attribute" => ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->code, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7a3e}}}}); } else ${$this->xfd->x2c75->{$this->x79->x2c75->x7a1a}}[] = array("attribute" => ${$this->x4a->x2c59->{$this->xfd->x2c59->x3145}}->code, ${$this->x79->x2c59->x3143}->condition => ${$this->x4a->x2c75->x7747}->value); } else ${$this->x79->x2c75->x7a18}[] = array("attribute" => ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->code, ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->condition => ${$this->x79->x2c59->x3143}->value); break; } } }; if ($x2a4f(${$this->x79->x2c75->x7a18})) ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x79f4}}}->{$this->xfd->x2c59->x3e88}(${$this->x79->x2c75->x7a18}); ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7875} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x79f4}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7886}}}} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x79->x2c59->x32c4}} . ' AND is_system=1 AND ' . ${$this->x79->x2c75->x768a} . ' AND url.store_id=' . ${$this->x4a->x2c75->x7543}, array('request_path' => ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x32db}}}}} . '(DISTINCT request_path)')); if (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}[0] != '*') { ${$this->x79->x2c59->x344e} = 0; ${$this->x79->x2c59->{$this->x79->x2c59->x3462}} = null; foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}} as ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x305f}}}) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->x3451}} > 0) ${$this->x79->x2c75->{$this->x4a->x2c75->x7a52}}.=','; ${$this->x79->x2c75->{$this->x4a->x2c75->x7a52}}.=$x1dcf($x2791('/', ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7606}}})); ${$this->x4a->x2c59->{$this->xfd->x2c59->x3451}}++; } (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7a6c}}}} = "IN" : ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7a68}}} = "NOT IN"; ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33f1}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x32ac}}} . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id')); switch (${$this->xfd->x2c59->x3035}) { case 0: ${$this->x79->x2c59->x3470} = "categories.product_id=e.entity_id"; break; case 1 : ${$this->xfd->x2c75->{$this->xfd->x2c75->x7a73}} = "categories.product_id=e.entity_id OR categories.product_id=cpsl.parent_id"; break; case 2: ${$this->x4a->x2c75->x7a71} = "categories.product_id=cpsl.parent_id "; break; } if ($xf76(Mage::$x9d60(), '1.12.0', '<=')) { ${$this->x79->x2c59->{$this->x79->x2c59->x3462}} = "AND categories_index.category_id " . ${$this->x79->x2c59->x346c} . " (" . ${$this->x79->x2c59->{$this->x79->x2c59->x3462}} . ")"; ${$this->x79->x2c59->x33eb}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x770a}}}} . ' AS categories', ${$this->x4a->x2c75->x7a71}, array()); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33f1}}}->{$this->xfd->x2c59->x4f39}()->{$this->x79->x2c59->x4c3c}(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3299}}}} . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id)) AND categories_index.store_id=' . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}} . ' ' . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7a5c}}}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else { ${$this->x4a->x2c75->x7a50} = "AND categories.category_id " . ${$this->x79->x2c59->x346c} . " (" . ${$this->x79->x2c75->{$this->x4a->x2c75->x7a52}} . ")"; ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}()->{$this->x79->x2c59->x4c3c}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7709}}} . ' AS categories', ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3476}}} . ' ' . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7a5c}}}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)')); } } else { ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x770a}}}} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7888} . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ) AND categories_index.store_id=' . ${$this->x4a->x2c75->x7543}, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); } if ($xf76(Mage::$x9d60(), '1.4.0', '>=')) ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->x7895}} . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . Mage::$x9d99('core/store')->{$this->x79->x2c59->x4469}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}})->{$this->xfd->x2c59->x5786}(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty(${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}})) ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4a5c}(${$this->x4a->x2c75->x7a08}); ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}("e.entity_type_id"); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request:
" . ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x79f4}}}->{$this->xfd->x2c59->x4f39}(), null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>"; echo ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}(); } ${$this->x4a->x2c59->x3477} = 0; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7a87}}}}} = clone ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33f1}}}; ${$this->x4a->x2c75->{$this->xfd->x2c75->x7a81}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x5804}("COUNT(DISTINCT e.entity_id) As total"); $this->_counter = ${$this->x4a->x2c59->x3482}->{$this->x79->x2c59->x5810}()->{$this->x79->x2c59->x581f}(); ${$this->x4a->x2c59->x348d} = $xfab($this->_counter / $this->{$this->x79->x2c59->{$this->x4a->x2c59->x2ccf}}); ${$this->x79->x2c75->{$this->x79->x2c75->x7635}} = ''; ${$this->x79->x2c75->{$this->xfd->x2c75->x7a94}} = 1; Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in ${$this->x79->x2c75->x7a8a} queries )", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('e.entity_id'))->{$this->xfd->x2c59->x4b91}('e.entity_id'); ${$this->x4a->x2c75->x7a99} = $x2b6b(true); while (${$this->x4a->x2c59->x3477} < ${$this->x79->x2c75->x7a8a}) { ${$this->x79->x2c75->x78d9} = clone ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x79f8}}}}; if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>"; print(${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->xfd->x2c59->x4f39}()); } ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x79->x2c59->x5874}($this->{$this->x79->x2c59->{$this->x4a->x2c59->x2ccf}}, ($this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} * ${$this->x4a->x2c59->x3477})); ${$this->xfd->x2c75->x7a78}++; if ($this->{$this->x79->x2c59->{$this->x4a->x2c59->x2ccf}} * ${$this->xfd->x2c75->x7a78} > $this->_counter) ${$this->xfd->x2c59->{$this->x79->x2c59->x34ab}} = $this->_counter; else ${$this->xfd->x2c59->x34aa} = $this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} * ${$this->x4a->x2c59->x3477}; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} * (${$this->x79->x2c75->{$this->xfd->x2c75->x7a7b}} - 1) + 1) . " to " . ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x34ac}}}, null, $this->{$this->x4a->x2c59->x39da}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x79d1}}}}} = 1; foreach (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}} as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->{$this->x4a->x2c59->x5021}() . " | ID -> " . $product->{$this->x79->x2c59->x407f}() . "]---------------<br>"; echo "categories : " . $product->{$this->xfd->x2c59->x58aa}() . ", Root id: " . ${$this->xfd->x2c59->x2ffe} . "<br>"; foreach ($x2791(',', $product->{$this->xfd->x2c59->x58aa}()) as ${$this->x79->x2c59->x30a1} => ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}) { echo ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}} . "=>" . ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"] . "<br>"; } } ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x300a}}}}; foreach (${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}} as ${$this->x79->x2c59->x30a1} => ${$this->x4a->x2c59->x34c4}) { $value = ""; switch (${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['pattern']) { case '{G:ID}': $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); (${$this->x79->x2c75->x7ad1}['options'][0] != "id") ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7aec}} = $item->{$this->x4a->x2c59->x5021}() : ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7aed}}} = $item->{$this->x79->x2c59->x407f}(); $value = "<g:id><![CDATA[" . ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x34e3}}} . "]]></g:id>"; break; case '{G:TITLE}': $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); ${$this->xfd->x2c75->x7af0} = $item->{$this->x79->x2c59->x4986}(); if ($x2a61(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7afe}}}}) > 900) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7afe}}}} = $x2868(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7af9}}}, 0, 150, - 3); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7b08}}}} = $x285d(${$this->x4a->x2c59->{$this->x4a->x2c59->x34e8}}, " "); ${$this->x4a->x2c59->{$this->x4a->x2c59->x34e8}} = $x2868(${$this->x4a->x2c59->{$this->x4a->x2c59->x34e8}}, 0, ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x34f4}}}) . "..."; } $value = "<title><![CDATA[" . ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7af9}}} . "]]></title>"; break; case '{G:DESCRIPTION}': $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x4a->x2c59->x34c4}['reference'], $product); (${$this->x4a->x2c59->x34c4}['options'][0] != "short") ? ${$this->x4a->x2c59->x34fb} = $item->{$this->xfd->x2c59->x5923}() : ${$this->x79->x2c59->{$this->xfd->x2c59->x3500}} = $item->{$this->x4a->x2c59->x5934}(); $value = "<description><![CDATA[" . ${$this->x4a->x2c59->x34fb} . "]]></description>"; break; case '{G:PROMOTION_ID}': $value = ""; ${$this->x4a->x2c59->{$this->xfd->x2c59->x3504}} = clone ${$this->x79->x2c75->x79df}; foreach (${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3507}}} as ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x351a}}}}}) { if (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x351a}}}}}->{$this->x4a->x2c59->x5942}()) { ; ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3529}}}} = $x112c(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3516}}}}->{$this->x4a->x2c59->x594b}()); ${$this->x4a->x2c59->x351f} = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b27}}}}["conditions"]; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3534}}}} = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x351a}}}}}->{$this->xfd->x2c59->x5964}(); ${$this->xfd->x2c59->{$this->x4a->x2c59->x353c}} = ${$this->xfd->x2c59->x352e}->{$this->x4a->x2c59->x597b}() === 'all'; ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3546}}} = (bool) ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3534}}}}->{$this->x4a->x2c59->x5990}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7b43}} = (${$this->xfd->x2c59->{$this->x4a->x2c59->x353c}}) ? true : false; ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b44}}} = (!$x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3534}}}}->{$this->xfd->x2c59->x5964}())) ? true : ${$this->x4a->x2c75->x7b40}; ${$this->x79->x2c75->x7b52} = 0; foreach (${$this->xfd->x2c59->x352e}->{$this->xfd->x2c59->x5964}() as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b69}}}}) { ${$this->x79->x2c59->{$this->xfd->x2c59->x3571}} = array("salesrule/rule_condition_product_subselect", "salesrule/rule_condition_address"); if (!$x2a1d(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b69}}}}->{$this->x79->x2c59->x59c5}(), ${$this->x4a->x2c75->x7b70})) { ${$this->xfd->x2c59->{$this->xfd->x2c59->x357a}} = ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b69}}}}->{$this->xfd->x2c59->x59d7}($product); if (${$this->x4a->x2c59->x3537} && ${$this->x4a->x2c75->x7b81} !== ${$this->x79->x2c59->x3540}) { ${$this->x4a->x2c75->x7b40} = false; } elseif (!${$this->xfd->x2c75->{$this->x4a->x2c75->x7b30}} && ${$this->xfd->x2c59->x3576} === ${$this->x79->x2c59->{$this->x4a->x2c59->x3544}}) { ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3554}}} = true; break; } } ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b58}}}++; } ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b90}}}}} = $x112c(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3512}}}->{$this->xfd->x2c59->x59df}()); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7b8c}}}} = ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7b8a}}}["conditions"]; ${$this->x79->x2c75->x7b92} = ${$this->x4a->x2c75->{$this->x4a->x2c75->x7b22}}->{$this->x4a->x2c59->x59ed}(); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7b34}}} = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x358a}}}->{$this->x4a->x2c59->x597b}() === 'all'; ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7b3b}}} = (bool) ${$this->x4a->x2c59->x3587}->{$this->x4a->x2c59->x5990}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7ba2}} = (${$this->xfd->x2c75->{$this->x4a->x2c75->x7b30}}) ? true : false; ${$this->x4a->x2c59->x358e} = (!$x2a4f(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x358c}}}}->{$this->xfd->x2c59->x5964}())) ? true : ${$this->x4a->x2c75->{$this->x4a->x2c75->x7ba2}}; ${$this->x79->x2c75->x7b52} = 0; foreach (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7b9a}}}}->{$this->xfd->x2c59->x5964}() as ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7bac}}}) { ${$this->x4a->x2c75->x7b81} = ${$this->xfd->x2c59->{$this->x79->x2c59->x359b}}->{$this->xfd->x2c59->x59d7}($product); if (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7b36}}}} && ${$this->x4a->x2c75->x7b81} !== ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3549}}}}}) { ${$this->xfd->x2c75->x7ba1} = false; } elseif (!${$this->xfd->x2c59->{$this->x4a->x2c59->x353c}} && ${$this->xfd->x2c59->x3576} === ${$this->xfd->x2c75->{$this->x4a->x2c75->x7b3a}}) { ${$this->x4a->x2c59->{$this->x4a->x2c59->x3591}} = true; break; } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3560}}}}++; } if (${$this->x4a->x2c59->{$this->x4a->x2c59->x3591}} && ${$this->x4a->x2c75->x7b40}) { $value = "<g:promotion_id><![CDATA[" . ${$this->x4a->x2c75->x7b21}->{$this->x4a->x2c59->x410d}('rule_id') . "]]></g:promotion_id>"; break; } } } break; case "{load_options}": ${$this->x4a->x2c59->{$this->xfd->x2c59->x3223}} = 1; ${$this->x4a->x2c75->x7bb1} = array(); foreach (${$this->x79->x2c75->x7ad1}['options'] as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}) { if (isset(${$this->x79->x2c59->{$this->xfd->x2c59->x33c3}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}}])) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7823}}} = ${$this->xfd->x2c59->x3222} * $x2a4f(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}]["options"]); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bb7}}}[${$this->x4a->x2c75->x7659}] = 0; } } ${$this->xfd->x2c75->x7648} = array(); for (${$this->x79->x2c75->x77eb} = 1; ${$this->x79->x2c59->{$this->x4a->x2c59->x31ea}} <= ${$this->x4a->x2c59->{$this->xfd->x2c59->x3223}}; ${$this->x79->x2c59->x31e5}++) { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7bcb}} = ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}}; foreach (${$this->x79->x2c75->x7ad1}['options'] as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}) { if (isset(${$this->x79->x2c75->x79ba}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}}])) { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7bcb}} = $x29a1("{" . ${$this->xfd->x2c75->{$this->x79->x2c75->x7bc5}} . "_label}", ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c5}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x35ad}]["options"][${$this->x4a->x2c75->x7bb1}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}]]['value'], ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7bd0}}}); ${$this->xfd->x2c75->x7bc9} = $x29a1("{" . ${$this->xfd->x2c75->x7bc0} . "_sku}", ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c5}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}}]["options"][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bb7}}}[${$this->x4a->x2c75->x7659}]]['sku'], ${$this->x79->x2c59->{$this->x4a->x2c59->x35b7}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7bd0}}} = $x29a1("{" . ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}} . "_price}", ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33ca}}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x35ad}]["options"][${$this->x79->x2c75->{$this->x4a->x2c75->x7bb2}}[${$this->x79->x2c59->x30a1}]]['price'], ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x35bc}}}); ${$this->xfd->x2c75->x7bc9} = $x29a1("{" . ${$this->xfd->x2c59->x35ad} . "_type}", ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c5}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}]["options"][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7bbc}}}}[${$this->x79->x2c59->x30a1}]]['getPriceType()'], ${$this->xfd->x2c75->{$this->xfd->x2c75->x7bcb}}); ${$this->x4a->x2c59->x35b5} = $x29a1("{" . ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}} . "_id}", ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}}]["options"][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7bbc}}}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}}]]['id'], ${$this->xfd->x2c75->x7bc9}); if (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} > 0 || $x2a4f(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c7}}}}[$product->{$this->x79->x2c59->x407f}()]) == 1 || $x2a4f(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options']) < 2) ${$this->x4a->x2c75->x7bb1}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}] ++; if (${$this->x4a->x2c75->x7bb1}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}] >= $x2a4f(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}}]["options"])) { ${$this->x4a->x2c59->x35a7}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}] = 0; ${$this->x4a->x2c75->x7bb1}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}} - 1] ++; } } } ${$this->xfd->x2c59->x3090}[] = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x35bc}}}; } if ($x2a4f(${$this->xfd->x2c59->x3090}) > 0) { ${$this->x4a->x2c75->x7ac0} = $x293c("</item>
<item>", ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3093}}}); } break; case "{use_options}": foreach (${$this->x4a->x2c59->x34c4}['options'] as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}) { if (isset(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c7}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x35ad}])) { ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35ca}}} = array(); ${$this->x4a->x2c75->x7be5} = array(); ${$this->x79->x2c75->x7bec} = array(); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c00}}} = array(); foreach (${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}]["options"] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7c0c}}}}}) { ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7be1}}}}}[] = ${$this->xfd->x2c75->x7c02}['value']; ${$this->x79->x2c59->{$this->x79->x2c59->x35d6}}[] = ${$this->x4a->x2c59->x35ef}['sku']; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7bf2}}}}[] = ${$this->x79->x2c75->{$this->x4a->x2c75->x7c04}}['price']; ${$this->x79->x2c75->{$this->x79->x2c75->x7bfd}}[] = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c0b}}}}['id']; } ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7acb}}}} = $x29a1("{" . ${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}} . "_label}", $x293c(',', ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7bdd}}}}), ${$this->x4a->x2c75->x7ac0}); ${$this->x4a->x2c75->x7ac0} = $x29a1("{" . ${$this->xfd->x2c75->{$this->x79->x2c75->x7bc5}} . "_sku}", $x293c(',', ${$this->x79->x2c75->{$this->x79->x2c75->x7be9}}), ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x34c2}}} = $x29a1("{" . ${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}} . "_price}", $x293c(',', ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35e3}}}), ${$this->xfd->x2c59->x34b8}); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7acf}}}}} = $x29a1("{" . ${$this->xfd->x2c59->x35ad} . "_id}", $x293c(',', ${$this->xfd->x2c59->{$this->x4a->x2c59->x35e8}}), ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}}); } } break; case '{inc}' : $value = ${$this->x4a->x2c59->{$this->x4a->x2c59->x3496}}; break; case '{min_price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8059}}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5aee}(); (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}} = false : ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->xfd->x2c59->x3609} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=( ${$this->xfd->x2c59->x361b}["pricing_value"] / 100) * ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}; } else ${$this->xfd->x2c75->x7c27}+=${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}+=${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}; } } $value = $this->{$this->xfd->x2c75->{$this->xfd->x2c75->x8024}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2ff5}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}}); (!isset(${$this->x79->x2c75->x7ad1}['options'][0])) ? ${$this->x4a->x2c75->x7725} = ${$this->xfd->x2c75->x756a} : ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} = ${$this->x4a->x2c59->x34c4}['options'][0]; $value = $this->{$this->x79->x2c59->{$this->xfd->x2c59->x39ef}}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}}); $value = $x28d7($value, 2, , ''); break; case '{max_price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->{$this->xfd->x2c59->x5b69}(); (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = false : ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->x360e}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}) { if (${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}["is_percent"]) { ${$this->x79->x2c75->{$this->x79->x2c75->x7c2b}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["pricing_value"] / 100) * ${$this->x4a->x2c59->x35fb}; } else ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3616}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}+=${$this->x4a->x2c59->{$this->xfd->x2c59->x360e}}; } } $value = $this->{$this->xfd->x2c59->x39f3}(${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}, ${$this->xfd->x2c75->{$this->x79->x2c75->x759a}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}}); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0])) ? ${$this->x4a->x2c75->x7725} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2fa1}}} : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}} = ${$this->x4a->x2c59->x34c4}['options'][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}}); $value = $x28d7($value, 2, , ''); break; case '{normal_price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->x4a->x2c59->x34c4}['reference'], $product); if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->price; } else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5be5}(); } if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->xfd->x2c59->x361b}["is_percent"]) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["pricing_value"] / 100) * ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}}; } else ${$this->xfd->x2c59->x3609}+=${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c3b}}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}+=${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}; } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = false : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; $value = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x802c}}}}}(${$this->x4a->x2c59->x35fb}, ${$this->x79->x2c59->{$this->x79->x2c59->x2ff0}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}}); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->xfd->x2c75->x756a} : ${$this->x4a->x2c75->x7725} = ${$this->x79->x2c75->x7ad1}['options'][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c75->x7725}); $value = $x28d7($value, 2, , ''); break; case '{price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5be5}(); } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->price; else { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->{$this->xfd->x2c59->x5be5}(); } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5be5}(); } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->price; } else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5be5}(); } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); } else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x79->x2c75->x7c0d} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5be5}(); } } if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c3b}}}["is_percent"]) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["pricing_value"] / 100) * ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}; } else ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3616}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}+=${$this->xfd->x2c59->x3609}; } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = false : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}} = ${$this->x79->x2c75->x7ad1}['options'][1]; $value = $this->{$this->xfd->x2c59->{$this->xfd->x2c59->x39f6}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x79->x2c59->{$this->x79->x2c59->x2ff0}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->x79->x2c75->x7c1a}); (!isset(${$this->x4a->x2c59->x34c4}["options"][0])) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->xfd->x2c75->{$this->x79->x2c75->x756d}} : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}} = ${$this->x4a->x2c59->x34c4}["options"][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c59->x3121}); $value = $x28d7($value, 2, , ""); break; case "{is_special_price}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); (!isset(${$this->x4a->x2c59->x34c4}["options"][0])) ? ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3549}}}}} = 1 : ${$this->x79->x2c59->x3540} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][0]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][1])) ? ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7c48}}} = 0 : ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3633}}}}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][1]; if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0 ) ? $value = ${$this->x4a->x2c75->x7b38} : $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x362d}}}; else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? $value = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3546}}} : $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x362e}}}}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } else { $value = ${$this->xfd->x2c59->x3629}; } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0 ) ? $value = ${$this->x4a->x2c75->x7b38} : $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? $value = ${$this->x4a->x2c75->x7b38} : $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x362d}}}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x362d}}}; } else { $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0 ) ? $value = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3549}}}}} : $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? $value = ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b3d}}}} : $value = ${$this->x4a->x2c75->x7c42}; } } break; case "{special_price}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x79->x2c75->x7ad1}['reference'], $product); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = null; if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x79->x2c75->x7c0d} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x79->x2c75->x7c0d} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}(); } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = false : ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; if (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} > 0) { if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["is_percent"]) { ${$this->xfd->x2c75->x7c27}+=( ${$this->x79->x2c75->{$this->x4a->x2c75->x7c3a}}["pricing_value"] / 100) * ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}; } else ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}["pricing_value"]; }; ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}+=${$this->x79->x2c75->{$this->x79->x2c75->x7c2b}}; } } $value = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x8029}}}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2ff5}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c1d}}); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} = ${$this->x79->x2c59->{$this->x4a->x2c59->x2f9d}} : ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->x4a->x2c59->x34c4}['options'][0]; $value = $this->{$this->x79->x2c59->{$this->xfd->x2c59->x39ef}}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}}); $value = $x28d7($value, 2, , ''); ; } else { $value = ""; } break; case '{price_rules}' : $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); ${$this->xfd->x2c59->x2f75} = $this->{$this->x4a->x2c59->x43a6}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7c50}} = Mage::$xad04('catalogrule/rule'); ${$this->x79->x2c75->{$this->x79->x2c75->x7c65}} = Mage::$xb74b()->{$this->x79->x2c59->x6342}()->{$this->xfd->x2c59->x634b}(${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->x4a->x2c75->x7c67} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}); ${$this->x79->x2c59->{$this->xfd->x2c59->x3650}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x3648}}->{$this->xfd->x2c59->x5786}(); ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x365c}}}}} = Mage::$xb6f6('customer/session')->{$this->xfd->x2c59->x6395}(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3668}}}} = ${$this->xfd->x2c75->x7c4f}->{$this->x79->x2c59->x63a8}(${$this->x4a->x2c59->{$this->x4a->x2c59->x3641}}, ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c6e}}, ${$this->xfd->x2c59->x3653}, $item->{$this->x79->x2c59->x407f}()); if (${$this->x4a->x2c59->{$this->x4a->x2c59->x3662}} !== false) { ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}} = $x1ab4('%.2f', $x1ab8(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3664}}}, 2)); } else { ${$this->xfd->x2c75->x7c89} = $item->{$this->xfd->x2c59->x5be5}(); } if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x4a->x2c59->x35fb} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x79->x2c75->x7c0d} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = ${$this->x4a->x2c59->x366f}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") ${$this->x4a->x2c59->x35fb} = $item->price; else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}}; } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x4a->x2c59->x35fb} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = ${$this->x4a->x2c59->x366f}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->price; else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = ${$this->xfd->x2c75->x7c89}; } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x4a->x2c59->x35fb} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}}; } } if (${$this->xfd->x2c59->{$this->x4a->x2c59->x3671}} !== FALSE) { if (${$this->x79->x2c75->{$this->x4a->x2c75->x7c8d}} < ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}) $value = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3673}}}; else $value = ${$this->x4a->x2c59->x35fb}; } else $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}; if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3616}}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"] / 100) * ${$this->x79->x2c75->x7c0d}; } else ${$this->xfd->x2c59->x3609}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x79->x2c75->x7c0d}+=${$this->xfd->x2c75->x7c27}; } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = false : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; $value = $this->{$this->x79->x2c75->x8023}(${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}, ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2ff5}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}}); (!isset(${$this->x4a->x2c59->x34c4}["options"][0])) ? ${$this->x4a->x2c75->x7725} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2fa1}}} : ${$this->x4a->x2c75->x7725} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c75->x7725}); $value = $x28d7($value, 2, , ""); break; case '{G:PRICE}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->price; else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5be5}(); } if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7c30}}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x4a->x2c75->x7c35}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=( ${$this->x4a->x2c75->x7c35}["pricing_value"] / 100) * ${$this->x79->x2c75->x7c0d}; } else ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}+=${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}; } } (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}} = false : ${$this->x4a->x2c59->x3602} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; $value = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x8029}}}}(${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}, ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x759d}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}}); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x4a->x2c59->x3121} = ${$this->xfd->x2c75->{$this->x79->x2c75->x756d}} : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]; $value = $this->{$this->x4a->x2c75->x801c}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}}); $value = $x28d7($value, 2, , ''); $value = "<g:price><![CDATA[" . $value . " " . ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} . "]]></g:price>"; break; case "{G:SALE_PRICE}" : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}} = $this->{$this->x4a->x2c59->x43a6}(); ${$this->xfd->x2c75->x7c4f} = Mage::$xad04('catalogrule/rule'); ${$this->x79->x2c75->x7c60} = Mage::$xb74b()->{$this->x79->x2c59->x6342}()->{$this->xfd->x2c59->x634b}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}); ${$this->x4a->x2c75->x7c67} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}); ${$this->x4a->x2c59->x364b} = ${$this->x79->x2c59->x3643}->{$this->xfd->x2c59->x5786}(); ${$this->x4a->x2c75->{$this->xfd->x2c75->x7c76}} = Mage::$xb6f6('customer/session')->{$this->xfd->x2c59->x6395}(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3668}}}} = ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7c5b}}}}}->{$this->x79->x2c59->x63a8}(${$this->x79->x2c75->x7c60}, ${$this->x79->x2c59->{$this->xfd->x2c59->x3650}}, ${$this->xfd->x2c59->{$this->xfd->x2c59->x3655}}, $item->{$this->x79->x2c59->x407f}()); if (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x366c}}}}} !== false) ${$this->x4a->x2c59->x366f} = $x1ab4('%.2f', $x1ab8(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3668}}}}, 2)); ${$this->xfd->x2c59->{$this->x4a->x2c59->x3681}} = Mage::$xb6f6('core/date')->{$this->x4a->x2c59->x6810}("hours"); if (${$this->xfd->x2c59->{$this->x4a->x2c59->x3681}} > 0) { ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7c9d}}} = "+"; ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7ca9}}}} = $x1afc($x1b09($x1b05(${$this->x79->x2c59->x367d})), 2, 0, STR_PAD_LEFT) . '' . $x1afc(($x1b09(${$this->xfd->x2c59->{$this->x4a->x2c59->x3681}}) - $x1b05($x1b09(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3683}}}))) * 60, 2, 0, STR_PAD_LEFT); } else { ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c9b}} = "-"; ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7ca9}}}} = $x1afc($x1b09($x1b05(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3683}}})), 2, 0, STR_PAD_LEFT) . '' . $x1afc(($x1b09(${$this->xfd->x2c75->{$this->x4a->x2c75->x7c93}}) - $x1b05($x1b09(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3683}}}))) * 60, 2, 0, STR_PAD_LEFT); } ${$this->x4a->x2c75->x7cb0} = $x2868($x29a1(' ', 'T', $item->{$this->xfd->x2c59->x5c84}()), 0, -3); ${$this->x79->x2c75->{$this->x79->x2c75->x7cb9}} = $x2868($x29a1(' ', 'T', $item->{$this->x4a->x2c59->x5c90}()), 0, -3); if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle' && $item->{$this->xfd->x2c59->x5cd5}()) { if ($item->{$this->xfd->x2c59->x5cbb}()) { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); } else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5cd5}(); } (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1])) ? ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c1d}} = false : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; if (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}} < ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} && ${$this->x79->x2c75->{$this->x4a->x2c75->x7c83}} !== false) ${$this->x4a->x2c59->x35fb} = ${$this->x79->x2c75->{$this->x4a->x2c75->x7c8d}}; if (${$this->x79->x2c75->x7c0d} > 0) { if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->xfd->x2c75->x7c27} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c3b}}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->x360e}}+=( ${$this->x79->x2c75->{$this->x4a->x2c75->x7c3a}}["pricing_value"] / 100) * ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}; } else ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7c30}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x79->x2c75->x7c0d}+=${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}; } } ${$this->x79->x2c75->x7c0d} = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x802c}}}}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->xfd->x2c75->x7596}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}}); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0])) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2fa3}}}} : ${$this->x4a->x2c59->x3121} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; ${$this->x79->x2c75->x7c0d} = $this->{$this->x4a->x2c75->{$this->x4a->x2c75->x801e}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}}); ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $x28d7(${$this->x4a->x2c59->x35fb}, 2, , ''); ; } if (${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} > 0) { $value = "<g:sale_price><![CDATA[" . ${$this->x79->x2c75->x7c0d} . " " . ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} . "]]></g:sale_price>
"; } if (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} > 0 && ${$this->xfd->x2c59->{$this->x4a->x2c59->x36a3}}) { $value.="<g:sale_price_effective_date><![CDATA[" . ${$this->x4a->x2c75->x7cb0} . ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c9b}} . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ca8}}} . "/" . ${$this->x4a->x2c75->x7cb7} . ${$this->x4a->x2c59->{$this->xfd->x2c59->x368c}} . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ca8}}} . "]]></g:sale_price_effective_date>
"; } break; case "{image}" : $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x79->x2c75->x7ad1}['reference'], $product); ${$this->x79->x2c75->{$this->x79->x2c75->x7cbe}} = $item->{$this->x79->x2c59->x68f1}(); if (!isset(${$this->x79->x2c75->x7ad1}['options'][0]) || ${$this->x79->x2c75->x7ad1}['options'][0] == 0) { if ($item->{$this->x79->x2c59->x68f1}() && $item->{$this->x79->x2c59->x68f1}() != 'no_selection') { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}} = 'catalog/product/' . $item->{$this->x79->x2c59->x68f1}(); $value = ${$this->x4a->x2c59->{$this->xfd->x2c59->x2fe6}} . $x29a1('//', '/', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36bf}}}}); } else { $value = ${$this->x4a->x2c59->x2fe2} . '/catalog/product/placeholder/' . ${$this->x79->x2c75->{$this->xfd->x2c75->x755e}}; } } elseif (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7873}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] - 1]) && ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] > 0) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3272}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0] - 1] != ${$this->x79->x2c75->{$this->x79->x2c75->x7cbe}}) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36bd}}} = 'catalog/product/' . ${$this->x4a->x2c59->{$this->x4a->x2c59->x326a}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] - 1]; $value = ${$this->x4a->x2c59->x2fe2} . $x29a1('//', '/', ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}}); } } break; case "{G:IMAGE_LINK}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); ${$this->x4a->x2c59->{$this->x79->x2c59->x36b1}} = $item->{$this->x79->x2c59->x68f1}(); ${$this->xfd->x2c75->{$this->x79->x2c75->x7cd1}} = array($item->{$this->x4a->x2c59->x6973}(), $item->{$this->xfd->x2c59->x6983}()); ${$this->x79->x2c59->x36ca} = ''; ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bbe}}}}} = 0; if ($item->{$this->x79->x2c59->x68f1}() && $item->{$this->x79->x2c59->x68f1}() != 'no_selection') { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}} = 'catalog/product/' . $item->{$this->x79->x2c59->x68f1}(); $value = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2fea}}}} . $x29a1('//', '/', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36bf}}}}); ${$this->x79->x2c59->x36ca}.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; ${$this->x4a->x2c59->x35a7}++; } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3560}}}} = 0; while (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x786e}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->{$this->xfd->x2c75->x7b55}}]) && ${$this->x79->x2c75->{$this->x4a->x2c75->x7bb2}} < 10) { if (${$this->x79->x2c75->{$this->x79->x2c75->x786a}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->x3556}] != ${$this->x79->x2c59->x36ae}) { if ($x2a1d(${$this->x79->x2c59->x3269}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->{$this->xfd->x2c75->x7b55}}], ${$this->xfd->x2c75->{$this->x79->x2c75->x7cd1}}) || ${$this->x79->x2c75->{$this->x79->x2c75->x786a}}[$item->{$this->x79->x2c59->x407f}()]['disabled'][${$this->x79->x2c75->x7b52}] != 1) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36bd}}} = 'catalog/product/' . ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x326f}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->x7b52}]; $value = ${$this->xfd->x2c75->x758c} . $x29a1('//', '/', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36bf}}}}); ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7cdc}}}.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; ${$this->x4a->x2c75->x7bb1}++; } } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}}++; } $value = ${$this->x79->x2c59->x36ca}; break; case "{G:LINK}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { if (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 2) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}} . $x1dcf(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7ced}}}}}); } elseif (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 3) { ${$this->x79->x2c59->x36d3} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->xfd->x2c75->{$this->x4a->x2c75->x758a}} . $x2441(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7cec}}}}); } else $value = ${$this->xfd->x2c75->{$this->x4a->x2c75->x758a}} . $item->{$this->xfd->x2c59->x69fd}(); } else { $value = $item->{$this->x79->x2c59->x6a53}(); } $value = "<link><![CDATA[" . $value . "]]></link>"; break; case "{url}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { if (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 2) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->x79->x2c59->{$this->xfd->x2c59->x36d7}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}} . $x1dcf(${$this->x79->x2c59->x36d3}); } elseif (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 3) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7ced}}}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7cec}}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->xfd->x2c59->x2fda} . $x2441(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}}); } else $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}} . $item->{$this->xfd->x2c59->x69fd}(); } else { $value = $item->{$this->x79->x2c59->x6a53}(); } break; case "{host}" : $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}}; break; case "{uri}" : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->x4a->x2c59->x34c4}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { if (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 2) { ${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->x79->x2c59->{$this->xfd->x2c59->x36d7}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = $x1dcf(${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}}); } elseif (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 3) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7ced}}}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7cec}}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = $x2441(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}}); } else $value = $item->{$this->xfd->x2c59->x69fd}(); } else { $value = $x29a1(${$this->xfd->x2c59->x2fda}, '', $item->{$this->x79->x2c59->x6a53}()); } break; case '{G:AVAILABILITY}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8059}}}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0])) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x36e1}}} = 'in stock' : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x36e1}}} = ${$this->x79->x2c75->x7ad1}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1])) ? ${$this->xfd->x2c75->x7cf1} = "out of stock" : ${$this->x4a->x2c75->{$this->xfd->x2c75->x7cf4}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][2])) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x36f5}} = "preorder" : ${$this->xfd->x2c75->x7d02} = ${$this->x79->x2c75->x7ad1}['options'][2]; if (($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}() && !${$this->x4a->x2c75->x756e}) || ($item->{$this->x4a->x2c59->x6b3d}() && ${$this->x4a->x2c59->x2fac} ) || ($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}())) { if ($item->{$this->x79->x2c59->x6b71}() > 0) { if ($product->{$this->x4a->x2c59->x5b00}() == "configurable") ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3701}}}} = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x790d}}}[$product->{$this->x79->x2c59->x407f}()]; else ${$this->xfd->x2c59->{$this->x79->x2c59->x36fb}} = $item->{$this->xfd->x2c59->x50f2}(); if (${$this->xfd->x2c59->{$this->x79->x2c59->x36fb}} > 0) { $value = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36e8}}}}}; } else { if ($item->{$this->x79->x2c59->x6b97}() || ($item->{$this->xfd->x2c59->x6ba0}() && ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2fc0}}}})) { $value = ${$this->xfd->x2c75->x7d02}; } else { $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7cfe}}}}}; } } } else $value = ${$this->xfd->x2c59->x36eb}; } else { $value = ${$this->x4a->x2c75->x7cef}; } $value = "<g:availability><![CDATA[" . $value . "]]></g:availability>"; break; case '{is_in_stock}' : $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x79->x2c75->x7ad1}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7cf0}} = 'in stock' : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36e8}}}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1])) ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x36f0}} = "out of stock" : ${$this->xfd->x2c59->x36eb} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; (!isset(${$this->x79->x2c75->x7ad1}['options'][2])) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x36f5}} = "preorder" : ${$this->x79->x2c75->{$this->xfd->x2c75->x7d03}} = ${$this->x79->x2c75->x7ad1}['options'][2]; if (($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}() && !${$this->x4a->x2c59->x2fac}) || ($item->{$this->x4a->x2c59->x6b3d}() && ${$this->x4a->x2c75->x756e} ) || ($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}())) { if ($item->{$this->x79->x2c59->x6b71}() > 0) { if ($product->{$this->x4a->x2c59->x5b00}() == "configurable") ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3701}}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x3310}}[$product->{$this->x79->x2c59->x407f}()]; else ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x36fe}}} = $item->{$this->xfd->x2c59->x50f2}(); if (${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3701}}}} > 0) { $value = ${$this->xfd->x2c59->x36db}; } else { if ($item->{$this->x79->x2c59->x6b97}() || ($item->{$this->xfd->x2c59->x6ba0}() && ${$this->x79->x2c59->x2fb6})) { $value = ${$this->x79->x2c75->{$this->xfd->x2c75->x7d03}}; } else { $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7cfe}}}}}; } } } else $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7cfe}}}}}; } else { $value = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x36e1}}}; } break; case '{stock_status}' : $item = $this->{$this->xfd->x2c75->x804c}(${$this->x4a->x2c59->x34c4}['reference'], $product); ($item->{$this->xfd->x2c59->x6c4a}() > 0) ? $value = 'in stock' : $value = 'out of stock'; break; case '{qty}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3710}}} = 0 : ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3710}}} = ${$this->x4a->x2c59->x34c4}['options'][0]; if ($product->{$this->x4a->x2c59->x5b00}() == "configurable") { $value = ${$this->x4a->x2c75->x790a}[$product->{$this->x79->x2c59->x407f}()]; $value = $x28d7($value, ${$this->x79->x2c59->x3706}, , ''); } else if (${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'] == "configurable") { $value = $x28d7(${$this->x79->x2c59->x330b}[$item->{$this->x79->x2c59->x407f}()], ${$this->x4a->x2c59->{$this->x79->x2c59->x370b}}, , ''); } else { $value = $x28d7($item->{$this->xfd->x2c59->x50f2}(), ${$this->xfd->x2c75->x7d07}, , ''); } break; case "{categories_v1}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]) || !${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] || ${$this->x79->x2c75->x7ad1}['options'][0] == 'INF') ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} = INF : ${$this->x79->x2c59->x3711} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1])) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x3719}} = 1 : ${$this->xfd->x2c75->{$this->xfd->x2c75->x7d17}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2]) || !${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2] || ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] == 'INF') ? ${$this->x4a->x2c59->{$this->xfd->x2c59->x3721}} = INF : ${$this->xfd->x2c75->{$this->x4a->x2c75->x7d21}} = ${$this->x79->x2c75->x7ad1}['options'][2]; ${$this->x4a->x2c75->{$this->xfd->x2c75->x7d2f}} = 0; $value = ''; ${$this->xfd->x2c75->{$this->x4a->x2c75->x7d3c}} = ''; foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}) { (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x373c}}}} = $x2a1d(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}) : ${$this->x79->x2c59->x3736} = !$x2a1d(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"], ${$this->xfd->x2c75->{$this->x4a->x2c75->x75f3}}); if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x76bb}]) && ${$this->x4a->x2c75->{$this->xfd->x2c75->x7d2f}} < ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d12}}} && (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x373c}}}} || ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3048}}}}[0] == "*")) { ${$this->x4a->x2c75->x7d45} = 0; ${$this->x4a->x2c59->x3750} = $x2791('/', ${$this->x4a->x2c59->x30d5}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"]); if ($x2a1d(${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3000}}}, ${$this->x4a->x2c59->x3750})) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d6d}}}} = ""; if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3729}}} > 0) ${$this->xfd->x2c75->{$this->x4a->x2c75->x7d3c}} = ","; foreach (${$this->x4a->x2c59->x3750} as ${$this->x79->x2c59->{$this->x4a->x2c59->x375e}}) { if (isset(${$this->x79->x2c75->x76aa}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}])) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c75->x7d71}]['level'] > ${$this->x4a->x2c59->x3716} && ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x374d}}}} < ${$this->x79->x2c59->x371e}) { if (${$this->xfd->x2c59->x3740} > 0) ${$this->x4a->x2c59->x3759}.='>'; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d69}}}.=(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}]['name']); ${$this->x79->x2c59->{$this->xfd->x2c59->x3745}}++; } } } ${$this->x79->x2c59->{$this->x79->x2c59->x3760}} = ""; if (!empty(${$this->x79->x2c75->x7d61})) { $value.=${$this->xfd->x2c75->{$this->x4a->x2c75->x7d3c}} . ${$this->x79->x2c59->{$this->x4a->x2c59->x375c}} . ${$this->x79->x2c75->x7d76}; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3729}}}++; } } } }; break; case "{categories}" : ${$this->xfd->x2c59->x3767} = null; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d12}}} = INF; ${$this->x4a->x2c59->x3716} = 1; ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7d9a}}}} = INF; ${$this->x79->x2c59->x3778} = ', '; ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7daf}}} = " > "; if ($x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options']) == 1) { (!isset(${$this->x79->x2c75->x7ad1}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7d8c}}} = "last" : ${$this->xfd->x2c75->x7d86} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d12}}} = 1; } elseif ($x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options']) == 2) { (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0])) ? ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x377c}}} = ', ' : ${$this->x79->x2c59->x3778} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c75->{$this->x79->x2c75->x7dae}} = " > " : ${$this->xfd->x2c75->x7daa} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; } elseif ($x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options']) > 2) { (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]) || !${$this->x79->x2c75->x7ad1}['options'][0] || ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] == 'INF') ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} = INF : ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} = ${$this->x4a->x2c59->x34c4}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1])) ? ${$this->x4a->x2c59->x3716} = 1 : ${$this->xfd->x2c75->{$this->xfd->x2c75->x7d17}} = ${$this->x4a->x2c59->x34c4}['options'][1]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] || ${$this->x4a->x2c59->x34c4}['options'][2] == 'INF') ? ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7d9a}}}} = INF : ${$this->x4a->x2c59->{$this->xfd->x2c59->x376e}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][3])) ? ${$this->x79->x2c59->x3778} = ', ' : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7da7}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][3]; (!isset(${$this->x79->x2c75->x7ad1}['options'][4])) ? ${$this->x79->x2c59->{$this->x4a->x2c59->x3782}} = " > " : ${$this->x79->x2c59->{$this->x4a->x2c59->x3782}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][4]; } $item = $this->{$this->xfd->x2c59->x3a10}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}} = 0; ${$this->x79->x2c75->x7db5} = array(); foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c75->x76bb}) { (${$this->x79->x2c75->{$this->x4a->x2c75->x75df}}) ? ${$this->x79->x2c59->x3736} = $x2a1d(@${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"], ${$this->x79->x2c75->x75ef}) : ${$this->xfd->x2c59->{$this->xfd->x2c59->x3739}} = !$x2a1d(@${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->x3040}}); if (isset(${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->xfd->x2c59->x30d8}]) && (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x373a}}} || ${$this->x79->x2c59->x303d}[0] == "*")) { ${$this->x79->x2c59->x36b5}++; ${$this->x79->x2c59->{$this->xfd->x2c59->x378c}}[${$this->x79->x2c59->x36b5}] = array(); ${$this->x4a->x2c59->{$this->x4a->x2c59->x3752}} = $x2791('/', ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"]); if ($x2a1d(${$this->x4a->x2c75->x75a5}, ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3754}}})) { foreach (${$this->x79->x2c75->{$this->x4a->x2c75->x7d56}} as ${$this->xfd->x2c59->x375d}) { if (isset(${$this->x79->x2c75->x76aa}[${$this->xfd->x2c59->x375d}]) && ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c59->x375d}]['name'] != null) { ${$this->x79->x2c75->x7db5}[${$this->xfd->x2c75->x7cc3}][] = (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}]['name']); } } } } } ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7dca}}} = array(); $x242b(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7dbe}}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmpArray')); if (${$this->xfd->x2c75->x7d86} == "last") ${$this->x79->x2c59->{$this->xfd->x2c59->x378c}} = $x2438(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x378e}}}); $item->{$this->xfd->x2c59->x6ce1}(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7dbb}}}); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x379e}}} = 0; foreach (${$this->x79->x2c75->x7db5} as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}} => ${$this->x79->x2c59->{$this->xfd->x2c59->x3745}}) { if (${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x379e}}} < ${$this->x79->x2c75->{$this->x79->x2c75->x7d10}}) { foreach (${$this->x4a->x2c75->x7d45} as ${$this->x79->x2c75->x7dd6} => ${$this->x79->x2c59->x37aa}) { if (${$this->x4a->x2c59->{$this->x79->x2c59->x37a5}} >= ${$this->x4a->x2c59->x3716} && ${$this->x79->x2c75->x7dd6} <= ${$this->x4a->x2c75->x7d92}) { if (!isset(${$this->x4a->x2c59->{$this->x79->x2c59->x3796}}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7dd5}}}}])) ${$this->x4a->x2c59->{$this->x79->x2c59->x3796}}[${$this->x4a->x2c75->x7dcf}] = array(); ${$this->x4a->x2c75->x7dc0}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7dd3}}}][] .= ${$this->x4a->x2c59->{$this->xfd->x2c59->x37ad}}; } } if ($x2a4f(${$this->x4a->x2c59->{$this->x79->x2c59->x3796}}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7dd3}}}])) ${$this->x4a->x2c59->{$this->xfd->x2c59->x379c}}++; } }; $value = null; foreach ($x23c5(${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}}) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}} => ${$this->x4a->x2c75->{$this->x79->x2c75->x7dde}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} > 0) $value.=${$this->x4a->x2c75->x7da0}; $value.=$x293c(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7daf}}}, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7de2}}}); } break; case "{G:PRODUCT_TYPE_v1}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] || ${$this->x79->x2c75->x7ad1}['options'][0] == 'INF') ? ${$this->x79->x2c75->{$this->x79->x2c75->x7d10}} = INF : ${$this->x79->x2c59->x3711} = ${$this->x79->x2c75->x7ad1}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1])) ? ${$this->x4a->x2c75->x7d16} = 1 : ${$this->x4a->x2c59->x3716} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; (!isset(${$this->x4a->x2c59->x34c4}['options'][2]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] || ${$this->x4a->x2c59->x34c4}['options'][2] == 'INF') ? ${$this->x79->x2c59->x371e} = INF : ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7d23}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][2]; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x372c}}}}} = 0; $value = ''; foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}} => ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}) { (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x373f}}}}} = $x2a1d(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}) : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x373a}}} = !$x2a1d(${$this->x79->x2c75->x76aa}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"], ${$this->x79->x2c59->x303d}); if (@${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["include_in_menu"] && isset(${$this->x4a->x2c59->x30d5}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]) && ${$this->x4a->x2c75->{$this->xfd->x2c75->x7d2f}} < ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} && (${$this->xfd->x2c75->x7d3e} || ${$this->x79->x2c59->x303d}[0] == "*")) { ${$this->x79->x2c59->{$this->xfd->x2c59->x3745}} = 0; ${$this->x4a->x2c75->x7d53} = $x2791('/', ${$this->x79->x2c75->x76aa}[${$this->xfd->x2c59->x30d8}]["path"]); if ($x2a1d(${$this->x4a->x2c75->x75a5}, ${$this->x4a->x2c75->x7d53})) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d6d}}}} = ''; ${$this->x79->x2c59->{$this->x79->x2c59->x3733}} = '<g:product_type><![CDATA['; foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d5c}}}} as ${$this->xfd->x2c59->x375d}) { if (isset(${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c59->{$this->x4a->x2c59->x375e}}])) { if (${$this->x4a->x2c59->x30d5}[${$this->x79->x2c59->{$this->x4a->x2c59->x375e}}]['level'] > ${$this->x4a->x2c59->x3716} && ${$this->x4a->x2c75->x7d45} < ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d28}}}}}) { if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x374e}}}}} > 0) ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7d70}}}}}.=' > '; ${$this->x79->x2c59->{$this->x4a->x2c59->x375c}}.=(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x7d71}]['name']); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7d49}}++; } } } ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7d82}}}}} = "]]></g:product_type>
"; if (!empty(${$this->x79->x2c59->{$this->x4a->x2c59->x375c}})) { $value.=${$this->x79->x2c59->{$this->x79->x2c59->x3733}} . ${$this->x79->x2c75->{$this->x4a->x2c75->x7d64}} . ${$this->x79->x2c59->{$this->x79->x2c59->x3760}}; ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7d38}}}}}++; } } } }; break; case "{G:PRODUCT_TYPE}" : ${$this->x79->x2c59->{$this->xfd->x2c59->x377a}} = "]]></g:product_type>
<g:product_type><![CDATA["; ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7db3}}}} = " > "; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0]) || !${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] || ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0] == 'INF') ? ${$this->x79->x2c75->{$this->x79->x2c75->x7d10}} = INF : ${$this->xfd->x2c75->x7d0f} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->x4a->x2c75->x7d16} = 1 : ${$this->x4a->x2c75->x7d16} = ${$this->x4a->x2c59->x34c4}['options'][1]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] || ${$this->x4a->x2c59->x34c4}['options'][2] == 'INF') ? ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3774}}}} = INF : ${$this->x4a->x2c75->{$this->x79->x2c75->x7d95}} = ${$this->x4a->x2c59->x34c4}['options'][2]; $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7ccc}}} = 0; ${$this->x79->x2c75->x7db5} = array(); foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} => ${$this->xfd->x2c59->x30d8}) { (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->x3739}} = $x2a1d(@${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3048}}}}) : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x373a}}} = !$x2a1d(@${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->x79->x2c75->x76bb}]["path"], ${$this->xfd->x2c75->{$this->x4a->x2c75->x75f3}}); if (isset(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]) && (${$this->xfd->x2c75->{$this->xfd->x2c75->x7d43}} || ${$this->x4a->x2c59->{$this->xfd->x2c59->x3040}}[0] == "*")) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36bd}}}++; ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7dbb}}}[${$this->xfd->x2c75->x7cc3}] = array(); ${$this->x79->x2c75->{$this->x4a->x2c75->x7d56}} = $x2791('/', ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c75->x76bb}]["path"]); if ($x2a1d(${$this->x4a->x2c75->x75a5}, ${$this->x4a->x2c59->{$this->x4a->x2c59->x3752}})) { foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d60}}}}} as ${$this->xfd->x2c59->x375d}) { if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x7d71}]) && ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->xfd->x2c59->x375d}]['name'] != null) { ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7dbe}}}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7ccc}}}][] = (${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}]['name']); } } } } } ${$this->x4a->x2c59->{$this->x79->x2c59->x3796}} = array(); $x242b(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7dbb}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmpArray')); foreach (${$this->x79->x2c59->{$this->xfd->x2c59->x378c}} as ${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x374d}}}}) { if (${$this->x4a->x2c75->x7659} < ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}}) foreach (${$this->x4a->x2c75->x7d45} as ${$this->x79->x2c75->{$this->xfd->x2c75->x7dd8}} => ${$this->x79->x2c75->x7dd9}) { if (${$this->x79->x2c75->x7dd6} > ${$this->x4a->x2c75->x7d16} && ${$this->xfd->x2c59->x37a1} <= ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7d98}}}) { if (!isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7dca}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}])) ${$this->xfd->x2c59->x3793}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}] = array(); ${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}}][] .= ${$this->xfd->x2c75->{$this->x79->x2c75->x7dda}}; } } }; $value = null; foreach ($x23c5(${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}}) as ${$this->x79->x2c59->x30a1} => ${$this->x4a->x2c75->{$this->x79->x2c75->x7dde}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} > 0) $value.=${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7da7}}}; $value.=$x293c(${$this->xfd->x2c75->{$this->x79->x2c75->x7dae}}, ${$this->x79->x2c59->x37b0}); } if ((${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}})) $value = "<g:product_type><![CDATA[" . $value . "]]></g:product_type>
"; break; case "{G:GOOGLE_PRODUCT_CATEGORY}" : ${$this->x4a->x2c59->x37b9} = array(); (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7d8c}}} = "longest" : ${$this->xfd->x2c59->{$this->x4a->x2c59->x376c}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}) { if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"]) && isset(${$this->x4a->x2c75->x75f6}[${$this->x79->x2c75->x76aa}[${$this->x79->x2c75->x76bb}]["path"]])) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37bc}}}[] = ${$this->xfd->x2c75->{$this->xfd->x2c75->x75fb}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x76bb}]["path"]]; } } $x242b(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7df5}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); if (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7d8c}}} == "shortest") ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37bc}}} = $x2438(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37bc}}}); ${$this->x4a->x2c59->x37c5} = $x2441(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7df5}}}); if (${$this->x4a->x2c59->{$this->x4a->x2c59->x37c9}} != "") $value = "<g:google_product_category><![CDATA[" . ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7dfd}}} . "]]></g:google_product_category>
"; break; case "{category_mapping}" : (isset(${$this->x79->x2c75->x7ad1}["options"][0])) ? ${$this->x79->x2c59->{$this->x79->x2c59->x37cd}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}["options"][0] : ${$this->x79->x2c75->{$this->x4a->x2c75->x7e02}} = 0; $value = ""; $item = $this->{$this->xfd->x2c59->x3a10}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c75->x7e09} = 0; foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->xfd->x2c59->x30d8}) { if (isset(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3055}}}}}[${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"]])) { if (${$this->xfd->x2c59->x37d4} == ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x37d0}}}) { $value.=${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3055}}}}}[${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->x79->x2c75->x76bb}]["path"]]; break; } ${$this->xfd->x2c75->x7e09}++; } } break; case "{review_count}": $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8059}}}}(${$this->x4a->x2c59->x34c4}['reference'], $product); $value = ""; (isset(${$this->x4a->x2c59->x34c4}["options"][0]) && ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][0] == "*" ) ? ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}} = 0 : ${$this->x4a->x2c75->x7543} = ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}; if (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}]["count"])) { ${$this->xfd->x2c75->x7e12} = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}]["count"]; if (isset(${$this->xfd->x2c59->x37db})) { $value.=${$this->xfd->x2c75->x7e12}; } } break; case "{review_average}": $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->x4a->x2c59->x34c4}['reference'], $product); $value = ""; (isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}["options"][0]) && ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}["options"][0] == "*" ) ? ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}} = 0 : ${$this->x4a->x2c75->x7543} = ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}; (!isset(${$this->x79->x2c75->x7ad1}["options"][1]) || !${$this->x4a->x2c59->x34c4}["options"][1]) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x37e8}} = 5 : ${$this->x79->x2c75->{$this->x79->x2c75->x7e1e}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][1]; if (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x783b}}}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x4a->x2c75->x7543}]["score"])) { ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e33}}}} = $x28d7(${$this->x4a->x2c75->x782b}[$item->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x2f75}]["score"] * ${$this->x79->x2c75->{$this->x79->x2c75->x7e1e}} / 100, 2, , ""); if (isset(${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37f2}}})) { $value.=${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e33}}}}; } } break; case "{G:PRODUCT_REVIEW}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); (isset(${$this->x4a->x2c59->x34c4}["options"][0]) && ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][0] == "*" ) ? ${$this->x4a->x2c75->x7543} = 0 : ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}} = ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}; (!isset(${$this->x79->x2c75->x7ad1}["options"][1]) || !${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][1]) ? ${$this->xfd->x2c75->x7e1d} = 5 : ${$this->xfd->x2c75->x7e1d} = ${$this->x4a->x2c59->x34c4}["options"][1]; $value = ""; if (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}]["count"])) { ${$this->xfd->x2c75->x7e12} = ${$this->xfd->x2c59->x3229}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}]["count"]; ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x37f3}}}} = $x28d7(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}]["score"] * ${$this->x79->x2c75->{$this->x79->x2c75->x7e1e}} / 100, 2, , ""); } if (isset(${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37f2}}}) && ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e33}}}} > 0) { $value.="<g:product_review_average><![CDATA[" . ${$this->x4a->x2c59->x37ec} . "]]></g:product_review_average>
"; } if (isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x37e0}}) && ${$this->xfd->x2c59->{$this->x4a->x2c59->x37e0}} > 0) { $value.="<g:product_review_count><![CDATA[" . ${$this->xfd->x2c75->x7e12} . "]]></g:product_review_count>
"; } unset(${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37f2}}}); unset(${$this->xfd->x2c75->x7e12}); break; case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->{$this->x79->x2c59->x407f}()])) { $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}('configurable', $product); $value = "<g:item_group_id><![CDATA[" . $item->{$this->x4a->x2c59->x5021}() . "]]></g:item_group_id>"; } break; case "{SC:EAN}" : ($x2594(${$this->x79->x2c75->x7ad1}['options'][0]) && ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] > 0) ? ${$this->x79->x2c59->{$this->x4a->x2c59->x37f9}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7e38}}} = 0; $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); $value = $x2791(',', $item->{$this->x4a->x2c59->x6e37}()); $value = "<g:ean><![CDATA[" . $value[${$this->x4a->x2c75->{$this->x79->x2c75->x7e37}}] . "]]></g:ean>"; break; case "{SC:IMAGES}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->x79->x2c59->x36ae} = $item->{$this->x4a->x2c59->x6973}(); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36c9}}} = array($item->{$this->x79->x2c59->x68f1}(), $item->{$this->xfd->x2c59->x6983}()); ${$this->x4a->x2c75->{$this->x79->x2c75->x7cd7}} = ''; ${$this->x4a->x2c59->x35a7} = 0; if ($item->{$this->x4a->x2c59->x6973}() && $item->{$this->x4a->x2c59->x6973}() != 'no_selection') { ${$this->x79->x2c59->x36b5} = $item->{$this->x4a->x2c59->x6973}(); $value = ${$this->xfd->x2c75->x7cc3}; ${$this->x4a->x2c75->{$this->x79->x2c75->x7cd7}}.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bbe}}}}}++; } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}} = 0; while (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7873}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}}]) && ${$this->x4a->x2c59->{$this->xfd->x2c59->x35aa}} < 10) { if (${$this->x4a->x2c75->x7867}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3560}}}}] != ${$this->x4a->x2c59->{$this->x79->x2c59->x36b1}}) { if ($x2a1d(${$this->x79->x2c75->{$this->x79->x2c75->x786a}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->x3556}], ${$this->xfd->x2c59->{$this->x4a->x2c59->x36c7}}) || ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7873}}}}[$item->{$this->x79->x2c59->x407f}()]['disabled'][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b58}}}] != 1) { ${$this->xfd->x2c75->x7cc3} = ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3277}}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x4a->x2c59->{$this->xfd->x2c59->x3558}}]; $value = ${$this->xfd->x2c75->x7cc3}; ${$this->x79->x2c59->x36ca}.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; ${$this->x79->x2c75->{$this->x4a->x2c75->x7bb2}}++; } } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}}++; } $value = ${$this->x4a->x2c75->{$this->x79->x2c75->x7cd7}}; break; case "{SC:DESCRIPTION}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3803}}} = $item->{$this->xfd->x2c59->x5923}() . $item->{$this->x4a->x2c59->x5934}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e5b}}}} = "|<iframe(.*)</iframe>|U"; $x2ac1(${$this->xfd->x2c59->{$this->xfd->x2c59->x380b}}, ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}}, ${$this->xfd->x2c59->x3810}); if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3815}}}}) { ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3803}}} = $item->{$this->x4a->x2c59->x6f07}('manufacturer') . " " . $item->{$this->x79->x2c59->x4986}() . " - Part number: " . $item->{$this->x4a->x2c59->x5021}() . " - Category : {categories,[1],[1],[1]}"; } else { if ($x2a1d("strip_tags", ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'])) { ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}} = $x2906('!\<br /\>!isU', " ", ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7e4d}}}}}); ${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}} = $x2906('!\<br/\>!isU', " ", ${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}} = $x2906('!\<br>!isU', " ", ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}} = $x28b9(${$this->xfd->x2c59->x37fe}); } if ($x2a1d("html_entity_decode", ${$this->x4a->x2c59->x34c4}['options'])) { ${$this->x79->x2c75->x7e41} = $x28ea(${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}}, ENT_QUOTES, 'UTF-8'); } if ($x2a1d("htmlentities", ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'])) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}} = $x287f((${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}})); } if ($x2a61(${$this->x79->x2c75->x7e41}) > 900) { ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}} = $x2868(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}}, 0, 900 - 3); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b04}}} = $x285d(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3804}}}}, " "); ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}} = $x2868(${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}}, 0, ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x34f9}}}}) . '...'; } } if (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}} == null) ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7e4d}}}}} = $item->{$this->x4a->x2c59->x6f07}('manufacturer') . " " . $item->{$this->x79->x2c59->x4986}() . " - Part number: " . $item->{$this->x4a->x2c59->x5021}() . " - Category : {categories,[1],[1],[1]}"; ${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}} = $x2906( '/[-]|[-][-]+|([]|[-])[-]*|[-]((?![-])|[-]{2,})|[-](([-](?![-]))|(?![-]{2})|[-]{3,})/S', ' ', ${$this->x79->x2c75->x7e41} ); ${$this->x79->x2c75->x7e41} = $x29a1('', '', ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}}); $value = "<description><![CDATA[" . ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7e4d}}}}} . "]]></description>"; break; case "{SC:URL}" : (isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0])) ? ${$this->x79->x2c75->x7e6f} = ${$this->x4a->x2c59->x34c4}['options'][0] : ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e73}}}} = ""; (isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1])) ? ${$this->x4a->x2c59->x381c} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1] : ${$this->xfd->x2c59->{$this->xfd->x2c59->x3821}} = ""; $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { $value = "<link><![CDATA[" . ${$this->xfd->x2c59->x2fda} . ${$this->x79->x2c75->x7e76} . $item->{$this->xfd->x2c59->x69fd}() . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7e72}}} . "]]></link>"; } else { $value = "<link><![CDATA[" . $item->{$this->x79->x2c59->x6a53}() . "]]></link>"; } break; case "{SC:CONDITION}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); ($x2a00($item->{$this->x79->x2c59->x4986}(), "refurbished")) ? ${$this->x4a->x2c75->{$this->xfd->x2c75->x79fd}} = 'refurbished' : ${$this->xfd->x2c75->x79fc} = 'new'; $value = "<g:condition><![CDATA[" . ${$this->x4a->x2c59->x33f5} . "]]></g:condition>"; break; case "{sc:condition}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); ($x2a00($item->{$this->x79->x2c59->x4986}(), "refurbished")) ? ${$this->xfd->x2c75->x79fc} = 'refurbished' : ${$this->x4a->x2c75->{$this->xfd->x2c75->x79fd}} = 'new'; $value = ${$this->x79->x2c59->{$this->xfd->x2c59->x33f9}}; break; default : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); if ($x2a1d(${$this->x4a->x2c59->x34c4}['name'], ${$this->x79->x2c59->{$this->x4a->x2c59->x3136}})) { if ($x2a1d(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7743}}}}[${$this->x4a->x2c59->x34c4}['name']], array('select', 'multiselect'))) { eval('$val =($item->' . ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['methodName'] . ");"); ${$this->x4a->x2c59->{$this->x4a->x2c59->x3829}} = $x2791(',', $val); if ($x2a4f(${$this->x79->x2c75->{$this->xfd->x2c75->x7e82}}) > 1) { $value = array(); foreach (${$this->x4a->x2c75->x7e7d} as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a48}}}) { if (isset(${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x79->x2c59->x344e}][${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}])) $value[] = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3459}}}}][${$this->x4a->x2c75->x7543}]; else { if (isset(${$this->xfd->x2c75->x7784}[${$this->x4a->x2c75->{$this->xfd->x2c75->x7a44}}][0])) $value[] = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x4a->x2c75->{$this->xfd->x2c75->x7a44}}][0]; } } } else { if (isset(${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x79->x2c75->{$this->xfd->x2c75->x7e82}}[0]][${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}])) { $value = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e85}}}[0]][${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}]; } else { if (isset(${$this->x4a->x2c75->{$this->x4a->x2c75->x7788}}[${$this->x4a->x2c59->x3826}[0]][0])) $value = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x4a->x2c59->{$this->x4a->x2c59->x3829}}[0]][0]; } } } else { eval('$value =($item->' . ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['methodName'] . ");"); } } if ($x2a1d(@${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x311b}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['name']], ${$this->x4a->x2c59->x310e})) { $value = ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x311b}}}}[${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['name']]; } $value = $x2906( '/[-]|[-][-]+|([]|[-])[-]*|[-]((?![-])|[-]{2,})|[-](([-](?![-]))|(?![-]{2})|[-]{3,})/S', ' ', $value ); $value = $x29a1('', '', $value); ${$this->x4a->x2c75->{$this->x79->x2c75->x7e94}} = 0; if ($x2a4f(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options']) > 0) { while (isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][${$this->xfd->x2c59->x3838}])) { switch (${$this->x4a->x2c59->x34c4}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->x7e94}}]) { case "substr" : if (isset(${$this->x79->x2c75->x7ad1}['options'][${$this->x79->x2c75->x7e90} + 1]) && $x2a61($value) > ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][${$this->xfd->x2c59->x3838} + 1]) { $value = $x2868($value, 0, ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x383e}}} + 1] - 3); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b04}}} = $x285d($value, " "); $value = $x2868($value, 0, ${$this->xfd->x2c75->x7b00}) . ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][${$this->x79->x2c59->{$this->xfd->x2c59->x383b}} + 2]; } ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}++; ${$this->xfd->x2c59->x3838}++; break; case "htmlentities" : $value = $x287f(($value)); break; case "strip_tags" : ${$this->xfd->x2c75->x7e99} = " "; $value = $x2906('!\<br /\>!isU', ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x384c}}}}}, $value); $value = $x2906('!\<br/\>!isU', ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x384c}}}}}, $value); $value = $x2906('!\<br>!isU', ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3843}}}, $value); $value = $x28b9($value); break; case "implode" : $value = ($x29c1($value)) ? $x293c(${$this->x4a->x2c59->x34c4}['options'][${$this->x79->x2c59->{$this->xfd->x2c59->x383b}} + 1], $value) : $value; ${$this->x79->x2c59->{$this->xfd->x2c59->x383b}}++; break; case "float" : $value = $x28d7($value, ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}} + 1], , ''); ${$this->x79->x2c75->x7e90}++; break; case "html_entity_decode" : $value = $x28ea($value, ENT_QUOTES, 'UTF-8'); break; case "inline": $value = $x2906('/(
|
|
|
| )/s', '', $value); break; case "strtolower": $value = $x28f9($value, "UTF8"); break; case "strtoupper": $value = $x2900($value, "UTF8"); break; case "cleaner": $value = $x2906( '/[-]|[-][-]+|([]|[-])[-]*|[-]((?![-])|[-]{2,})|[-](([-](?![-]))|(?![-]{2})|[-]{3,})/S', ' ', $value ); $value = $x29a1('', '', $value); break; default : if ($x2a00(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}], "%s")) { ${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}} = $x29a1("%s", '$value', ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}]); eval('$value=' . ${$this->xfd->x2c75->{$this->x79->x2c75->x7bc5}} . ';'); } else eval('$value=' . ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}] . '($value);'); break; } ${$this->x79->x2c59->{$this->xfd->x2c59->x383b}}++; } } break; } $value = $x29a1(array("<", ">", '"', '\'), array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), $value); if ($x29c1($value)) $value = $x293c(",", $value); if ($value != "") ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7acf}}}}} = $x29a1(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['fullpattern'], $value, ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}}); } foreach (${$this->x4a->x2c59->x30ad} as ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3855}}}) { ${$this->x4a->x2c75->x7ac0} = $x29a1(${$this->x4a->x2c75->x7e9f}['fullpattern'], "", ${$this->xfd->x2c59->x34b8}); } ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}} = $this->{$this->x4a->x2c75->{$this->x4a->x2c75->x7fdb}}(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}}, $product); ${$this->x4a->x2c75->x7ac0} = $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8044}}}(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x34c2}}}); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}} = $this->{$this->xfd->x2c75->x8030}(${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}} = $x29a1(array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), array("<", ">", '"', '\'), ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7acf}}}}}); if (!empty(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7acb}}}})) { ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=("<item>" ); ${$this->x79->x2c75->x7634}.="
" . ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}} . "
"; ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=("</item>
"); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79ce}}}}++; $this->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2c83}}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7a94}}; ${$this->x79->x2c75->{$this->xfd->x2c75->x7a94}}++; } ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7eaf}}} = array(); try { $item = new SimpleXMLElement("<item>" . $x29a1(array("<g:", "</g:"), array("<g_", "</g_"), ${$this->xfd->x2c59->{$this->x79->x2c59->x34bd}}) . "</item>"); } catch (Exception $e) { $this->{$this->x79->x2c75->{$this->x79->x2c75->x805d}}(${$this->x4a->x2c59->x2f2e}, ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7523}}}, "FAILLED;0"); Mage::$xb59f($e->{$this->x79->x2c59->x7033}() . " " . Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Please check the template syntax.")); } ${$this->x79->x2c59->x386f} = array(); if (!empty(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7acb}}}})) { foreach ($requirements as ${$this->xfd->x2c75->{$this->x4a->x2c75->x7edb}}) { if ($x29c1(${$this->xfd->x2c59->x3886}['depends'])) { ${$this->x4a->x2c75->{$this->xfd->x2c75->x7ee3}} = false; foreach (${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['depends'] as ${$this->x4a->x2c59->{$this->x79->x2c59->x389d}} => ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a00}}}) { foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a00}}} as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7ef6}}} => $value) { ${$this->x79->x2c59->x38b1} = $this->{$this->x79->x2c75->{$this->xfd->x2c75->x8069}}($requirements, ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x38a1}}}); switch (${$this->xfd->x2c59->{$this->xfd->x2c59->x38af}}) { case "eq": if ($item->${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x38bd}}}}}['tag'] == $value) { ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3894}}} = true; } else ${$this->xfd->x2c59->x3890} = false; break; case "neq": if ($item->${$this->x4a->x2c75->x7efe}['tag'] != $value) { ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3894}}} = true; } else ${$this->xfd->x2c75->x7edf} = false; break; case "like": if ($x2a00($item->${$this->xfd->x2c75->{$this->xfd->x2c75->x7f00}}['tag'], $value)) { ${$this->xfd->x2c75->x7edf} = true; } else ${$this->xfd->x2c59->x3890} = false; break; } } } } else { ${$this->xfd->x2c75->x7edf} = true; } if (${$this->xfd->x2c75->x7edf} == true && !$x2a1d(${$this->xfd->x2c59->x3886}['label'], ${$this->xfd->x2c75->x7ec5})) { ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7ece}}}[] = ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['label']; ${$this->xfd->x2c59->x38c2} = ${$this->x4a->x2c75->x7ed7}['tag']; if (${$this->xfd->x2c59->x3886}['required'] && (empty($item->${$this->x79->x2c59->{$this->x4a->x2c59->x38c4}}))) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->x8075}}(${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['label'], 'required', $item->{"g_id"}); } elseif (${$this->xfd->x2c59->x3886}['recommended'] && (empty($item->${$this->x79->x2c75->{$this->x79->x2c75->x7f09}}))) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x8077}}}(${$this->x4a->x2c75->x7ed7}['label'], 'recommended', $item->{"g_id"}, null); } elseif ((int) ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['occurrence'] < ($x2a4f($item->${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f0d}}}))) { $this->{$this->x4a->x2c59->x3a30}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['label'], 'toomany', $item->{"id"}); } else { if (isset(${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['length']) && $x2a61($item->${$this->x79->x2c59->{$this->x4a->x2c59->x38c4}}) > ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['length']) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x8077}}}(${$this->x4a->x2c75->x7ed7}['label'], 'toolong', $item->{"g_id"}, ${$this->xfd->x2c59->x3886}['length']); } if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x7edb}}['type']) && ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['type'] == "RegExp" && !empty($item->${$this->x79->x2c75->{$this->x79->x2c75->x7f09}}) && !$x2ac1("/^" . ${$this->xfd->x2c75->{$this->x4a->x2c75->x7edb}}['regexp'] . "$/i", $item->${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7f10}}}})) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x807c}}}}}(${$this->xfd->x2c59->x3886}['label'], 'invalid', $item->{"g_id"}, ${$this->x4a->x2c75->x7ed7}['say']); } elseif (isset(${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['type']) && !empty($item->${$this->x79->x2c75->{$this->x79->x2c75->x7f09}}) && ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['type'] != "RegExp" && ${$this->xfd->x2c59->x3886}['type'] != "GoogleProductCategory" && ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['type'] != "Text") { switch (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['type']) { case "Boolean": ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x38d6}}} = "/^true|false$/i"; break; case "Alphanumeric": ${$this->xfd->x2c59->{$this->x4a->x2c59->x38d1}} = "/^[\wc73\-]+$/"; break; break; case "Url": ${$this->x79->x2c59->x38cd} = "/^http(s)?:\/\/.+$/"; break; case "Price": ${$this->x4a->x2c75->{$this->x79->x2c75->x7f14}} = '/^([0-9]+\.[0-9]{2})\s?[A-Z]{3}$/'; break; } if (!$x2ac1(${$this->x79->x2c59->x38cd}, $item->${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7f10}}}}, ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f1d}}})) { $this->{$this->x4a->x2c59->x3a30}(${$this->x4a->x2c75->x7ed7}['label'], 'invalid', $item->{"g_id"}, ${$this->x4a->x2c75->x7ed7}['type']); } elseif (${$this->x4a->x2c75->x7ed7}['type'] == "Price" && (float) ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f1d}}}[1] < 0.01) { $this->{$this->x4a->x2c59->x3a30}(${$this->x4a->x2c75->x7ed7}['label'], 'invalid', $item->{"g_id"}, ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['type']); } } } } } } if ($this->{$this->x79->x2c75->x72d0}) { ${$this->xfd->x2c59->x3088}.=${$this->x79->x2c75->{$this->x79->x2c75->x7635}}; ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}} = ''; } else { if (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79cc}}} % Mage::$xb83a("simplegoogleshopping/system/buffer") == 0) { ${$this->x79->x2c59->x2f1f}->{$this->xfd->x2c59->x40e3}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3085}}}); unset(${$this->xfd->x2c59->x3083}); ${$this->x79->x2c75->x7634} = ''; Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" . ${$this->x4a->x2c75->x7a91} . "/" . $this->_counter . " items added", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->xfd->x2c59->x38e5} = $x2b6b(true); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x38f4}}} = ((int) ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7f22}}} - (int) ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7aa2}}}); $this->{$this->x4a->x2c59->{$this->x79->x2c59->x2c91}} += ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7f26}}}; $this->{$this->x79->x2c75->{$this->x79->x2c75->x805d}}(${$this->x79->x2c75->{$this->x4a->x2c75->x7509}}, ${$this->xfd->x2c59->x2f36}, "PROCESSING;${$this->x4a->x2c75->x7a91};" . $this->_counter . ";" . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7f28}}}}); ${$this->x4a->x2c75->x7a99} = $x2b6b(true); } } if ($this->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2cbf}}}} && ${$this->x4a->x2c75->x7a91} > $this->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2cbf}}}}) { break 2; } } } ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3085}}}.=('</channel>
"); ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=('</rss>'); if (!$this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cc8}}) { ${$this->x79->x2c59->x2f1f}->{$this->xfd->x2c59->x40e3}(${$this->x79->x2c75->x7634}); $this->{$this->x4a->x2c75->x805c}(${$this->x4a->x2c75->x7505}, ${$this->x79->x2c75->{$this->x79->x2c75->x7522}}, "SUCCEED;0;0"); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3499}}} - 1) . "/" . $this->_counter . " items added", null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); unset(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}); ${$this->x79->x2c75->x763a}.=${$this->x79->x2c75->x7634}; if ($this->{$this->x79->x2c75->x72d0} && !$this->_debug) { return ${$this->x79->x2c75->x763a}; } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>"; ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}} = "<pre>" . $x2b59(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7646}}}}}) . "</pre>"; return ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}}; } else { ${$this->x79->x2c75->x74f9}->{$this->xfd->x2c59->x712c}(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2f25}}}->{$this->xfd->x2c59->x7137}($this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}(), $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}(false)); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2f2c}}}}}->{$this->xfd->x2c59->x7152}($this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}()); $this->{$this->x4a->x2c59->x7168}(Mage::$xb6f6('core/date')->{$this->xfd->x2c59->x43e7}('Y-m-d H:i:s')); $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}}['stats'] = array(( ${$this->x4a->x2c59->x3492} - 1), $this->{$this->x4a->x2c59->{$this->x79->x2c59->x2c91}}); $this->{$this->xfd->x2c59->x7184}($x2b6c($this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}})); $this->{$this->xfd->x2c59->x7192}(); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Temp file closed and moved to " . $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}(false), null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); } Mage::$xb74b()->{$this->xfd->x2c59->x4e33}(0); } catch (Exception $e) { throw $e; } return $this; } public function getRequirementElt($x2b7f, $x2b87) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; foreach (${$this->x4a->x2c59->x38ff} as ${$this->x4a->x2c75->x7f4d}) { if (${$this->x4a->x2c59->{$this->x79->x2c59->x3915}}["label"] == ${$this->x4a->x2c75->{$this->x79->x2c75->x7f44}}) { return ${$this->x4a->x2c59->{$this->x79->x2c59->x3915}}; } } } public function addToReport($x2c31, $x2c30, $x2c33, $x2bf7 = null) {$x2c17 = $this->x79->x2c75->x8467;$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7f85}} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Missing required attribute"); ${$this->xfd->x2c75->{$this->x79->x2c75->x7f8f}} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Missing recommended attribute"); ${$this->x4a->x2c75->x7f94} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Too many attribute "); ${$this->x4a->x2c59->x3969} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Attribute value too long"); ${$this->x4a->x2c59->{$this->x79->x2c59->x397f}} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Invalid attribute value"); if (${$this->xfd->x2c75->x7f62} == 'required') ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3996}}}} = ${$this->x4a->x2c59->{$this->x79->x2c59->x394f}} . " : " . ${$this->x79->x2c75->x7f5c}; if (${$this->xfd->x2c75->x7f62} == 'recommended') ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3991}}} = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x395f}}} . " : " . ${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}; if (${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}} == 'toomany') ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3991}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x3965}} . " : " . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}; if (${$this->x4a->x2c59->x392a} == 'toolong') ${$this->x79->x2c75->x7fb4} = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7fa0}}} . " : " . ${$this->x4a->x2c59->x3922} . " (" . ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f7e}}} . " " . Mage::$xb812("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}("symbols maximum") . ")"; if (${$this->x4a->x2c59->x392a} == 'invalid') ${$this->x79->x2c75->x7fb4} = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3984}}} . " : " . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}} . " (" . ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7f83}}}}} . " " . Mage::$xb812("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}("expected") . ")"; $this->{$this->x79->x2c59->{$this->xfd->x2c59->x2ce4}}[${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3931}}} . "_" . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}][] = (string) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x393f}}}; if ($x2c17($this->{$this->x79->x2c75->x72e8}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7f6a}}} . "_" . ${$this->x79->x2c75->x7f5c}]) > 1 && $x2c17($this->{$this->x79->x2c75->x72e8}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7f6a}}} . "_" . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}]) <= Mage::$xb83a("simplegoogleshopping/system/preview")) { $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}}[${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}]["count"] ++; if (${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7f74}}} != "") $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}}[${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3931}}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}]["skus"].=', ' . (string) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x393f}}}; } elseif ($x2c17($this->{$this->xfd->x2c75->{$this->xfd->x2c75->x72eb}}[${$this->x4a->x2c59->x392a} . "_" . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}]) > Mage::$xb83a("simplegoogleshopping/system/preview")) { $this->{$this->x79->x2c75->x72dd}[${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}}][${$this->x79->x2c75->x7f5c}]["count"] ++; } else { $this->{$this->x79->x2c75->x72dd}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7f6a}}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}] = array( "message" => ${$this->x4a->x2c59->{$this->xfd->x2c59->x398f}}, "count" => 1, ); if (${$this->x79->x2c59->{$this->x4a->x2c59->x393a}} != "") $this->{$this->xfd->x2c75->{$this->x79->x2c75->x72e1}}[${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}]["skus"].= (string) ${$this->xfd->x2c59->x3935}; } } } ?>
Did this file decode correctly?
Original Code
class Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping extends Mage_Core_Model_Abstract {public $x79=null;public $xfd=null;public $x4a=null; public $inc = 0; public $time = 0; protected $_filePath; public $limit = false; public $display = false; public $sqlSize = 1500; public $errorReport = array(); public $flagErrorReport = array(); private $x2ce8 = null; public $error = "Unable to generate the data feed."; protected function _construct() {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; try {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; $this->x2ce8 = Mage::helper("licensemanager/data"); $this->x2ce8->constructor($this, func_get_args()); $this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} = Mage::$xb83a("simplegoogleshopping/system/sqlsize"); $this->{$this->x79->x2c59->x3e3e}('simplegoogleshopping/simplegoogleshopping'); error_reporting(E_ERROR); } catch (Exception $e) { throw $e; } } public function cmp($x63, $x6a) {$x66 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3a53}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($x66(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x731a}}}) == $x66(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2d25}}})) { return 0; } return ($x66(${$this->x4a->x2c59->x2d15}) < $x66(${$this->x79->x2c59->x2d1c})) ? 1 : -1; } public function cmpArray($x85, $x91) {$x88 = $this->x79->x2c59->x3a5c;$x8c = $this->xfd->x2c59->x3a6a;$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($x88($x8c('', ${$this->xfd->x2c75->x7335})) == $x88($x8c('', ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7343}}}}}))) { return 0; } return ($x88($x8c('', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2d31}}})) < $x88($x8c('', ${$this->xfd->x2c59->{$this->xfd->x2c59->x2d41}}))) ? -1 : 1; } public function execPhpScript($myPattern, $product, $xd7 = true) {$x10e = $this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x80d1}}};$xb9 = $this->xfd->x2c75->{$this->xfd->x2c75->x80da};$xbe = $this->x79->x2c75->{$this->x4a->x2c75->x80ea};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; $myPattern = $x10e('', $xb9('__PHP__'), $myPattern); $myPattern = $x10e('', $xb9('/__PHP__'), $myPattern); ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x736b}}}} = $xb9('#(__PHP__)(.*?)/\1#s'); $xbe(${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x736b}}}}, $myPattern, ${$this->x79->x2c75->x736f}); if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x7371}}[1])) { foreach (${$this->x79->x2c75->x736f}[0] as ${$this->x4a->x2c59->x2d6c} => ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x737f}}}) { if (${$this->x79->x2c59->x2d57} == 1) { if (@eval(${$this->x79->x2c75->x736f}[2][${$this->x79->x2c75->{$this->x79->x2c75->x7376}}] . ';')) { $myPattern = $x10e(${$this->x79->x2c59->x2d7d}, eval(${$this->xfd->x2c75->{$this->x4a->x2c75->x7371}}[2][${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2d79}}}}] . ';'), $myPattern); } else { $myPattern = $x10e(${$this->xfd->x2c75->x7379}, '', $myPattern); } } else { if (@eval($this->{$this->x4a->x2c59->x3e51}(${$this->x4a->x2c59->{$this->x4a->x2c59->x2d69}}[2][${$this->x4a->x2c59->x2d6c}] . ';'))) { $myPattern = $x10e(${$this->x79->x2c59->x2d7d}, $this->{$this->x79->x2c59->x3e5e}(eval($this->{$this->x4a->x2c59->x3e51}(${$this->x4a->x2c59->{$this->x4a->x2c59->x2d69}}[2][${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2d79}}}}]) . ';')), $myPattern); } else { $myPattern = $x10e(${$this->x79->x2c59->x2d7d}, '', $myPattern); } } } } return $myPattern; } protected function nameExists($x122) {$x127 = $this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8103}}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; return $this->{$this->x4a->x2c59->x3e72}()->{$this->xfd->x2c59->x3e88}("simplegoogleshopping_filename", array("eq" => ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7385}}}))->count(); } protected function _beforeSave() {$x142 = $this->x4a->x2c59->x3ab1;$x147 = $this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3ac5}}}};$x14d = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3ad0}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x79->x2c59->x2d8c} = new Varien_Io_File(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x2d9a}} = ${$this->x4a->x2c75->x7391}->{$this->x79->x2c59->x3e94}(Mage::$x87e8() . '/' . $this->{$this->xfd->x2c59->x3eb1}()); if (!${$this->x79->x2c75->{$this->x79->x2c75->x7394}}->{$this->x4a->x2c59->x3ebc}(${$this->xfd->x2c75->{$this->xfd->x2c75->x7397}}, false)) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('Please create the specified folder %s before saving the googleshopping.', Mage::$xb812('core')->{$this->x79->x2c59->x3ef9}($this->{$this->xfd->x2c59->x3eb1}()))); } if (!${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2d92}}}->{$this->x4a->x2c59->x3f19}(${$this->x4a->x2c59->{$this->xfd->x2c59->x2d9a}})) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('Please make sure that %s is writable by web-server.', $this->{$this->xfd->x2c59->x3eb1}())); } if (!$x142('#^[a-zA-Z0-9_\-\.]+$#', $this->{$this->xfd->x2c75->x800d}())) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('Please use only letters (a-z or A-Z), numbers (0-9) or underscore (_) in the filename. No spaces or other characters are allowed.')); } if (!$x142('#\.xml$#', $this->{$this->x4a->x2c59->x3f9b}())) { $this->{$this->x79->x2c59->x3fa9}($this->{$this->x4a->x2c59->x3f9b}() . '.xml'); } if (!$this->{$this->x79->x2c59->x3fc3}() && $this->{$this->x79->x2c75->x7fe4}($this->{$this->xfd->x2c75->x800d}())) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('This data feed name is already used. Please specify a new one.')); } $this->{$this->xfd->x2c59->x4014}($x147($x14d($x14d('\\', '/', Mage::$x87e8()), '', ${$this->x4a->x2c59->{$this->xfd->x2c59->x2d9a}}), '/') . '/'); return parent::$x869d(); } protected function getPath() {$x159 = $this->x4a->x2c75->{$this->x79->x2c75->x8130};$x15e = $this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3af1}}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($x159($this->{$this->x4a->x2c59->{$this->x79->x2c59->x2ca2}})) { $this->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2caa}}}} = $x15e( '//', '/', Mage::$x87e8() . $this->{$this->xfd->x2c59->x3eb1}() ); } return $this->{$this->x4a->x2c59->{$this->x79->x2c59->x2ca2}}; } protected function getFilename($x16d = '.temp') {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->xfd->x2c75->{$this->xfd->x2c75->x73a5}} = $this->{$this->x4a->x2c59->x3f9b}() . ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73a0}}}; return ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x73a9}}}; } public function getPreparedFilename() {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; return $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x800b}}}}() . $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}(); } public function applyCurrencyRate($x186, $x183) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x4a->x2c75->{$this->x4a->x2c75->x73c5}} = $this->_currencies; if (isset(${$this->x4a->x2c75->x73c0}[${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2dc9}}}}])) return ${$this->x4a->x2c75->{$this->x79->x2c75->x73af}} * ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x73c9}}}[${$this->x4a->x2c75->{$this->x79->x2c75->x73b9}}]; else { return ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2db9}}}}}; } } public function applyTax($x241, $x1ca, $x217, $x229 = false) {$x19c = $this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3afd}};$x1d2 = $this->x79->x2c75->x8158;$x1e3 = $this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x816c}};$x1f8 = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3b2b}}};$x206 = $this->x4a->x2c75->x818c;$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2e1e}}} = $this->_rates; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2dde}}}} = $x19c(${$this->xfd->x2c75->x73ce}, 2, , ''); if (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x73ff}}} === false) { if (!${$this->x4a->x2c59->{$this->x79->x2c59->x2de8}} && isset(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2e1e}}}[${$this->xfd->x2c75->x73e6}])) { if ($x1d2(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2e1f}}}}[${$this->x79->x2c75->{$this->x4a->x2c75->x73eb}}]) > 1) { return ${$this->x4a->x2c59->x2dd8}; } else { return ${$this->x79->x2c59->{$this->x79->x2c59->x2dda}} * (${$this->x79->x2c59->{$this->xfd->x2c59->x2e19}}[${$this->x79->x2c59->{$this->x79->x2c59->x2df7}}][0]['rate'] / 100 + 1); } } else { return ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2de1}}}}}; } } elseif (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2e0c}}} === "0") { if (${$this->x79->x2c59->x2de4} && isset(${$this->x79->x2c75->{$this->x4a->x2c75->x740a}}[${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2dfe}}}}])) { if ($x1d2(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2e22}}}}}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73ef}}}]) > 1) { return ${$this->x4a->x2c59->x2dd8}; } else { return 100 * ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73d3}}} / (100 + (${$this->x79->x2c75->x7409}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x73f9}}}}}][0]['rate'])); } } else { return ${$this->xfd->x2c75->x73ce}; } } else { if ($x1e3(${$this->xfd->x2c59->{$this->xfd->x2c59->x2e08}})) { if (${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73ef}}} != 0) { return ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2de1}}}}} * (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7404}}}} / 100 + 1); } elseif (${$this->xfd->x2c75->x73e6} == 0) { return ${$this->x4a->x2c75->{$this->xfd->x2c75->x73d0}}; } } else { ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2e0c}}} = $x1f8('/', ${$this->xfd->x2c59->x2e03}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2e2e}}}} = 0; ${$this->x79->x2c59->{$this->x79->x2c59->x2e33}} = false; if ($x206(${$this->xfd->x2c59->{$this->xfd->x2c59->x2e08}}[0], 0, 1) == "-") { ${$this->xfd->x2c75->{$this->xfd->x2c75->x73fe}}[0] = $x206(${$this->xfd->x2c75->x73fd}[0], 1); ${$this->x4a->x2c75->{$this->x79->x2c75->x741b}} = true; } if (${$this->x79->x2c75->x7409}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x73f4}}}}]) { foreach (${$this->x79->x2c75->x7409}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x73f9}}}}}] as ${$this->x4a->x2c75->x7426}) { if (${$this->x4a->x2c59->x2e39}['country'] == ${$this->xfd->x2c59->x2e03}[0]) { if (!isset(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2e0f}}}}[1]) || ${$this->x4a->x2c75->x7426}['code'] == ${$this->xfd->x2c75->x73fd}[1]) { ${$this->xfd->x2c59->x2e27} = ${$this->xfd->x2c75->{$this->xfd->x2c75->x742a}}['rate']; break; } } } if (!${$this->x4a->x2c75->{$this->x79->x2c75->x741b}}) return ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x73d3}}} * (${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2e2e}}}} / 100 + 1); else { return 100 * ${$this->x79->x2c59->{$this->x79->x2c59->x2dda}} / (100 + (${$this->xfd->x2c59->x2e27})); } } else { return ${$this->x79->x2c59->{$this->x79->x2c59->x2dda}}; } } } } public function xmlEncloseData($x2ef, $x27f = true) {$x24d = $this->x79->x2c75->{$this->xfd->x2c75->x81a2};$x2df = $this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x81b0}}};$x26c = $this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x81bf}}};$x2a5 = $this->x4a->x2c75->x81c6;$x2cc = $this->x4a->x2c59->{$this->x4a->x2c59->x3b77};$x2de = $this->x4a->x2c75->{$this->x4a->x2c75->x81e3};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->xfd->x2c59->{$this->xfd->x2c59->x2e4f}} = '/(<[^>^\/]+>)([^<]*)(<\/[^>]+>)/s'; $x24d(${$this->xfd->x2c75->x743b}, ${$this->xfd->x2c75->x7430}, ${$this->xfd->x2c59->x2e5a}); foreach (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e5f}}}[1] as ${$this->x79->x2c59->x2e64} => $value) { ${$this->x4a->x2c59->x2e71} = $x2df(${$this->x79->x2c59->{$this->x4a->x2c59->x2e5d}}[2][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]); if (empty(${$this->x79->x2c75->{$this->x79->x2c75->x7465}}) && !$x26c(${$this->x79->x2c75->{$this->x79->x2c75->x7465}})) ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}} = $x2a5(${$this->xfd->x2c75->x7447}[0][${$this->x4a->x2c59->{$this->x79->x2c59->x2e66}}], '', ${$this->xfd->x2c75->x7430}); else { if (${$this->xfd->x2c59->{$this->x79->x2c59->x2e48}}) ${$this->x79->x2c59->{$this->x79->x2c59->x2e45}} = $x2a5(${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e5f}}}[0][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}], (${$this->xfd->x2c59->x2e5a}[1][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]) . '<![CDATA[' . ${$this->x79->x2c75->{$this->x79->x2c75->x7465}} . ']]>' . (${$this->x4a->x2c75->{$this->x4a->x2c75->x7449}}[3][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]), ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}}); else ${$this->xfd->x2c75->x7430} = $x2a5(${$this->x79->x2c59->{$this->x4a->x2c59->x2e5d}}[0][${$this->x79->x2c75->x744d}], (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e5f}}}[1][${$this->x4a->x2c59->{$this->x79->x2c59->x2e66}}]) . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7468}}} . (${$this->xfd->x2c75->x7447}[3][${$this->x79->x2c75->{$this->x4a->x2c75->x744e}}]), ${$this->x79->x2c59->{$this->x79->x2c59->x2e45}}); } } ${$this->x79->x2c75->x746e} = $x2cc("/
/s", ${$this->xfd->x2c75->x7430}); ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2e96}}} = ''; foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2e83}}} as ${$this->x79->x2c59->{$this->x4a->x2c59->x2e9c}}) { ($x2de($x2df(${$this->xfd->x2c75->x7481})) > 0) ? ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x747c}}}.=${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7486}}} . "
" : false; } ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}} = ${$this->x79->x2c59->{$this->x4a->x2c59->x2e92}}; return ${$this->xfd->x2c75->{$this->x4a->x2c75->x7434}}; } public function encode($x2fe) {$x2f8 = $this->x79->x2c59->{$this->x4a->x2c59->x3b8f};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ($this->{$this->x79->x2c75->{$this->x4a->x2c75->x72d4}}) return (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2ea4}}}); else { if ($this->_chartset == 'ISO') return $x2f8(${$this->x79->x2c59->{$this->x4a->x2c59->x2ea3}}); else { return (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2ea5}}}}); } } } public function checkReference($x326, $product) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; if ((${$this->x4a->x2c75->x7493} == "parent" || ${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "configurable") && isset($this->configurable[$product->{$this->x79->x2c59->x407f}()])) return $this->configurable[$product->{$this->x79->x2c59->x407f}()]; elseif ((${$this->x4a->x2c59->{$this->x79->x2c59->x2eab}} == "parent" || ${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "grouped") && isset($this->grouped[$product->{$this->x79->x2c59->x407f}()])) return $this->grouped[$product->{$this->x79->x2c59->x407f}()]; elseif ((${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "parent" || ${$this->xfd->x2c75->{$this->xfd->x2c75->x7496}} == "bundle") && isset($this->bundle[$product->{$this->x79->x2c59->x407f}()])) return $this->bundle[$product->{$this->x79->x2c59->x407f}()]; else { return $product; } } public function flagUpdate($x341, $x33e, $x344) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x74a6}}}->{$this->x4a->x2c59->x40dd}(${$this->xfd->x2c59->{$this->xfd->x2c59->x2ed2}}); ${$this->x79->x2c59->{$this->x79->x2c59->x2ec8}}->{$this->xfd->x2c59->x40e3}(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ed6}}}); } public function generateXml() {$x500 = $this->x79->x2c75->{$this->x79->x2c75->x8203};$x4ef = $this->xfd->x2c75->x820b;$x2b6f = $this->x4a->x2c75->x821f;$x37c = $this->xfd->x2c75->x8229;$x37f = $this->x79->x2c75->{$this->x4a->x2c75->x823d};$x4d4 = $this->x4a->x2c59->{$this->x4a->x2c59->x3bd5};$x4d3 = $this->x4a->x2c75->{$this->xfd->x2c75->x825d};$x29c1 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3bfa}}};$x2a4f = $this->x4a->x2c59->{$this->xfd->x2c59->x3c01};$x2791 = $this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x8294}};$x2868 = $this->x79->x2c59->x3c19;$x706 = $this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x82ac}};$x29a1 = $this->x4a->x2c75->x82b4;$x612 = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3c39}};$x6fd = $this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x82d6}};$x7eb = $this->x4a->x2c59->{$this->x4a->x2c59->x3c5a};$xd92 = $this->xfd->x2c59->x3c69;$xf76 = $this->xfd->x2c59->{$this->x4a->x2c59->x3c71};$x2a1d = $this->x79->x2c59->{$this->x79->x2c59->x3c85};$x293c = $this->x4a->x2c75->{$this->x4a->x2c75->x8306};$x1ab4 = $this->x79->x2c59->{$this->xfd->x2c59->x3ca1};$x2594 = $this->xfd->x2c59->x3caf;$x1dcf = $this->xfd->x2c59->{$this->x4a->x2c59->x3cc0};$xfab = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3cd2}}};$x2b6b = $this->x4a->x2c75->x833e;$x2a61 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3ced}};$x285d = $this->x4a->x2c59->x3cff;$x112c = $this->x79->x2c59->{$this->x4a->x2c59->x3d12};$x28d7 = $this->x79->x2c75->x8374;$x18c7 = $this->x79->x2c59->{$this->x4a->x2c59->x3d27};$x1ab8 = $this->xfd->x2c75->{$this->x4a->x2c75->x8396};$x1afc = $this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3d46}};$x1b09 = $this->x79->x2c75->{$this->xfd->x2c75->x83ab};$x1b05 = $this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3d5d}}};$x242b = $this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x83c3}};$x2441 = $this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3d74}}}};$x2438 = $this->x79->x2c75->x83d3;$x23c5 = $this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3d88}};$x2ac1 = $this->x4a->x2c75->{$this->x79->x2c75->x83ee};$x2906 = $this->x79->x2c75->x83f3;$x28b9 = $this->x79->x2c59->x3da8;$x28ea = $this->x4a->x2c59->x3db1;$x287f = $this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3dbf}};$x2a00 = $this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x842b}};$x28f9 = $this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3de0}};$x2900 = $this->x4a->x2c59->x3de7;$x2b59 = $this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8457}}}};$x2b6c = $this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3e0a}}};$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; try { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ee3}}}} = $this; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2ef1}}} = "Mage"; ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2f02}}} = "helper"; ${$this->x79->x2c59->x2f0e} = "throwException"; ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74f4}}} = $x500($x4ef()); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74c4}}}}->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2cf2}}}->{$this->x4a->x2c59->x3e27}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ee3}}}}, ${$this->x4a->x2c59->x2f17}); if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74c4}}}}->{$this->x4a->x2c59->x410d}(${$this->x4a->x2c59->x2f17}) != $x500(${$this->xfd->x2c75->x74ec})) { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2ef1}}}::${$this->xfd->x2c75->{$this->x79->x2c75->x74e1}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2ef1}}}::${$this->x79->x2c75->{$this->x79->x2c75->x74d7}}("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2ee7}}}}}->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2d08}}})); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> --------------- START PROCESS FOR " . $x37c($this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}(false)) . "-----------------", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); $x37f('memory_limit', Mage::$xb83a("simplegoogleshopping/system/memory_limit") . 'M'); if (Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}('debug')) { $this->_debug = true; } else { $this->_debug = false; } include(Mage::$x87e8() . "/lib/Wyomind/Google/Requirements.php"); ${$this->x79->x2c75->x74f9} = new Varien_Io_File(); ${$this->x79->x2c75->{$this->x4a->x2c75->x7509}} = new Varien_Io_File(); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x751f}}}}} = Mage::$x87e8() . DS . 'var' . DS . 'tmp' . DS; ${$this->xfd->x2c59->x2f36} = ${$this->xfd->x2c75->{$this->x4a->x2c75->x7514}} . "sgs_" . $this->{$this->x79->x2c59->x3fc3}() . ".flag"; ${$this->x79->x2c59->x2f1f}->{$this->xfd->x2c59->x419c}(true); if (!$this->{$this->x79->x2c75->{$this->x4a->x2c75->x72d4}}) { ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2f29}}}}->{$this->x79->x2c59->x41ab}(array('path' => $this->{$this->x79->x2c59->x39cc}())); if (${$this->x79->x2c75->{$this->x79->x2c75->x74fd}}->{$this->x4a->x2c59->x3ebc}($this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}()) && !${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2f29}}}}->{$this->x4a->x2c59->x3f19}($this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}())) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('File "%s" cannot be saved. Please, make sure the directory "%s" is writeable by web server.', $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}(), $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x39d5}}}}())); } ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2f2c}}}}}->{$this->x4a->x2c59->x40dd}($this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}()); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2f30}}}->{$this->x79->x2c59->x41ab}(array('path' => ${$this->x79->x2c59->x2f32})); if (${$this->x79->x2c75->{$this->x4a->x2c75->x7509}}->{$this->x4a->x2c59->x3ebc}(${$this->xfd->x2c59->x2f36}, false)) { ${$this->x79->x2c75->{$this->x4a->x2c75->x7509}}->{$this->x4a->x2c59->x40dd}(${$this->x79->x2c59->{$this->x79->x2c59->x2f3b}}, 'r'); ${$this->x79->x2c75->x7525} = ${$this->x4a->x2c75->x7505}->{$this->xfd->x2c59->x4286}(";"); ${$this->xfd->x2c59->x2f4e} = ${$this->x4a->x2c75->x7505}->{$this->x4a->x2c59->x4295}(); if (${$this->x4a->x2c59->{$this->x79->x2c59->x2f45}}[0] == "PROCESSING") { ${$this->x79->x2c75->{$this->xfd->x2c75->x7539}} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2f5e}}}}}["mtime"]; ${$this->x4a->x2c75->{$this->x4a->x2c75->x753d}} = ${$this->x4a->x2c59->{$this->x79->x2c59->x2f45}}[3]; if (!(Mage::$xb6f6('core/date')->{$this->x4a->x2c59->x42b3}() > ${$this->xfd->x2c59->x2f60} + (${$this->x4a->x2c75->{$this->x4a->x2c75->x753d}} * 10) || Mage::$xb6f6('core/date')->{$this->x4a->x2c59->x42b3}() > ${$this->xfd->x2c75->x7538} + (${$this->xfd->x2c59->{$this->xfd->x2c59->x2f71}} * 2))) { Mage::$xb59f(Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}('File "%s" is already processing. Please wait the end of the process.', $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}(), $this->{$this->x79->x2c59->x39cc}())); } } } else { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x750c}}}->{$this->x4a->x2c59->x40dd}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7523}}}); } } $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("store_id")) ? ${$this->x4a->x2c75->x7543} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("store_id") : ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}} = $this->{$this->x4a->x2c59->x43a6}(); ${$this->xfd->x2c75->{$this->xfd->x2c75->x74f0}} = $x500($x4ef()); ${$this->xfd->x2c75->x74bc}->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2cf2}}}->{$this->x4a->x2c59->x3e27}(${$this->xfd->x2c75->x74bc}, ${$this->xfd->x2c75->{$this->xfd->x2c75->x74f0}}); if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x74bf}}}->{$this->x4a->x2c59->x410d}(${$this->x4a->x2c59->{$this->xfd->x2c59->x2f1b}}) != $x500(${$this->xfd->x2c75->x74ec})) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x74d1}}}::${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x74e7}}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2efb}}}}}::${$this->x79->x2c75->x74d4}("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2ee2}}}->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2d08}}})); } ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x754f}}}} = Mage::$xb6f6('core/date')->{$this->xfd->x2c59->x43e7}('Y-m-d'); ${$this->xfd->x2c75->{$this->x79->x2c75->x7555}} = Mage::$x8a3d()->{$this->x4a->x2c59->x4403}(); ${$this->x79->x2c75->x755a} = Mage::$xb83a("catalog/placeholder/image_placeholder", ${$this->xfd->x2c59->x2f75}); ${$this->x4a->x2c59->x2f9a} = Mage::$xb83a("currency/options/base", ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->x4a->x2c75->{$this->xfd->x2c75->x7571}} = Mage::$xb83a("cataloginventory/item_options/manage_stock", ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2fc0}}}} = Mage::$xb83a("cataloginventory/item_options/backorders", ${$this->x4a->x2c75->x7543}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2fcb}}} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}})->{$this->x4a->x2c59->x444b}(Mage_Core_Model_Store::URL_TYPE_WEB, false); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x758b}}} = Mage::$x9d99('core/store')->{$this->x79->x2c59->x4469}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}})->{$this->x4a->x2c59->x444b}(); ${$this->x4a->x2c59->x2fe2} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}})->{$this->x4a->x2c59->x444b}(Mage_Core_Model_Store::URL_TYPE_MEDIA, false); ${$this->xfd->x2c75->{$this->x79->x2c75->x759a}} = Mage::$xb83a(Mage_Tax_Model_Config::CONFIG_XML_PATH_PRICE_INCLUDES_TAX, ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->x4a->x2c59->{$this->x79->x2c59->x2fff}} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c75->{$this->x4a->x2c75->x7544}})->{$this->x79->x2c59->x44e1}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_xmlitempattern")) ? ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3008}}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_xmlitempattern") : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x75b8}}} = $this->{$this->x79->x2c59->x453a}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_title")) ? ${$this->xfd->x2c75->{$this->x79->x2c75->x75bd}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_title") : ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x75c0}}} = $this->{$this->x4a->x2c59->x45a4}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_description")) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x301e}}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_description") : ${$this->xfd->x2c59->{$this->xfd->x2c59->x301b}} = $this->{$this->x79->x2c59->x4601}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_categories")) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x3022}} = $x4d3(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_categories")) : ${$this->x4a->x2c59->x3021} = $x4d3($this->{$this->xfd->x2c59->x4653}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_filter")) ? ${$this->x4a->x2c59->{$this->x79->x2c59->x3030}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_filter") : ${$this->x4a->x2c59->x302d} = $this->{$this->xfd->x2c59->x46bb}(); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_type")) ? ${$this->x79->x2c59->{$this->x4a->x2c59->x3037}} = Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("category_type") : ${$this->x79->x2c75->x75e4} = $this->{$this->x4a->x2c59->x4721}(); ${$this->x79->x2c75->x75ef} = Array(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3051}}}} = Array(); if ($x29c1(${$this->x4a->x2c75->x75d8})) { foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3026}}} as ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3061}}}}) { if (${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3061}}}}->checked) ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}[] = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3065}}}}}->line; } foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x302a}}}} as ${$this->xfd->x2c75->{$this->x79->x2c75->x7605}}) { if (${$this->x79->x2c75->x7604}->mapping != "") ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3051}}}}[${$this->x79->x2c75->x7604}->line] = ${$this->x4a->x2c59->x3056}->mapping; } } if ($x2a4f(${$this->x79->x2c59->x303d}) < 1) { ${$this->x79->x2c75->x75ef}[] = '*'; } $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_type_ids")) ? ${$this->xfd->x2c59->x306a} = $x2791(',', Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_type_ids")) : ${$this->xfd->x2c75->x760c} = $x2791(',', $this->{$this->xfd->x2c59->x477f}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_visibility")) ? ${$this->x79->x2c75->x7614} = $x2791(',', Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_visibility")) : ${$this->xfd->x2c59->{$this->x4a->x2c59->x3074}} = $x2791(',', $this->{$this->xfd->x2c59->x47d0}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attributes")) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3079}} = $x4d3(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attributes")) : ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x307b}}} = $x4d3($this->{$this->xfd->x2c59->x4826}()); $x4d4(Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attribute_sets")) ? ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x307f}}} = $x2791(',', Mage::$xb74b()->{$this->xfd->x2c59->x4157}()->{$this->xfd->x2c59->x4162}("simplegoogleshopping_attribute_sets")) : ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x307f}}} = $x2791(',', $this->{$this->xfd->x2c59->x4883}()); ${$this->x4a->x2c59->{$this->xfd->x2c59->x2f1b}} = $x500($x4ef()); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2ee3}}}}->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2cf2}}}->{$this->x4a->x2c59->x3e27}(${$this->x79->x2c59->{$this->x4a->x2c59->x2edd}}, ${$this->xfd->x2c75->x74ec}); if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2ee7}}}}}->{$this->x4a->x2c59->x410d}(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x74f4}}}) != $x500(${$this->xfd->x2c75->x74ec})) { ${$this->xfd->x2c59->{$this->x79->x2c59->x2eed}}::${$this->x4a->x2c75->x74df}(${$this->xfd->x2c75->x74cb}::${$this->x79->x2c75->{$this->x79->x2c75->x74d7}}("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x74bf}}}->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2d0b}}}})); } ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}} = ''; ${$this->x4a->x2c59->{$this->x79->x2c59->x308b}} = ''; ${$this->xfd->x2c59->x3083} = ('xml version="1.0" encoding="utf-8"
"); ${$this->xfd->x2c59->x3083}.=('<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
"); ${$this->x79->x2c75->{$this->x79->x2c75->x7635}}.=('<channel>
"); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3085}}}.=('<title>' . ${$this->x79->x2c75->x75bb} . "</title>
"); ${$this->x79->x2c75->x7634}.=('<link>' . $x2868(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2fcb}}}, 0, -1) . "</link>
"); ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=('<description>' . ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x75d3}}} . "</description>
"); if ($this->{$this->x79->x2c75->{$this->x4a->x2c75->x72d4}}) ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7641}}} = $this->{$this->xfd->x2c75->x803d}(${$this->x79->x2c75->x7634}); else { ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x2f29}}}}->{$this->xfd->x2c59->x40e3}($this->{$this->x4a->x2c75->{$this->x79->x2c75->x803f}}(${$this->x79->x2c59->{$this->xfd->x2c59->x3084}})); $this->{$this->x4a->x2c75->x805c}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7510}}}}}, ${$this->x79->x2c75->{$this->x79->x2c75->x7522}}, "PROCESSING;0;"); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . $this->{$this->x4a->x2c59->x39da}() . " created and opened", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); } ${$this->x79->x2c59->{$this->x79->x2c59->x3091}} = '/{([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*)(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?(\s?\|\s?)?(([a-zA-Z_0-9:]+)(\sparent|\sgrouped|\sconfigurable|\sbundle)?([^}|]*))?}/'; $x706(${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3093}}}, ${$this->x79->x2c59->{$this->x4a->x2c59->x3007}}, ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x30a0}}}}}); foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[6] as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}) { if (${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}} != "") { ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[0][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[0][${$this->x4a->x2c75->x7659}]; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[1][] = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x309b}}}}[2][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[7][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ${$this->x4a->x2c59->x3098}[3][] = ${$this->x4a->x2c59->x3098}[8][${$this->x79->x2c59->x30a1}]; ; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x309a}}}[4][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[9][${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]; ; } } foreach (${$this->x79->x2c75->x764b}[11] as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x30ac}}}) { if (${$this->x4a->x2c75->x7668} != "") { ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[0][] = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x309b}}}}[0][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}}]; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x309b}}}}[1][] = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}; ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[2][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[7][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ${$this->x4a->x2c75->{$this->x79->x2c75->x7650}}[3][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[8][${$this->x79->x2c59->x30a1}]; ; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[4][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[9][${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}]; ; } } foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[16] as ${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} => ${$this->x79->x2c59->x30a7}) { if (${$this->x79->x2c59->x30a7} != "") { ${$this->x4a->x2c75->{$this->x79->x2c75->x7650}}[0][] = ${$this->x4a->x2c59->x3098}[0][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ${$this->x4a->x2c75->{$this->x79->x2c75->x7650}}[1][] = ${$this->x79->x2c59->x30a7}; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[2][] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[7][${$this->x79->x2c59->x30a1}]; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x309a}}}[3][] = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x30a0}}}}}[8][${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]; ; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[4][] = ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[9][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]; ; } } ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[0][] = "{categories,[1],[1],[1]}"; ${$this->xfd->x2c59->{$this->x79->x2c59->x3099}}[1][] = "categories"; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7654}}}}[2][] = ""; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[3][] = ",[1],[1],[1]"; ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}} = array(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}} = array(); foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7655}}}}}[1] as ${$this->x79->x2c59->x30a1} => ${$this->x4a->x2c75->x7668}) { ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->x4a->x2c75->x7659}]['methodName'] = "get" . $x29a1(' ', '', $x612($x6fd(${$this->x4a->x2c75->x7668})) . '()'); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}}[${$this->x79->x2c59->x30a1}]['pattern'] = "{" . $x6fd(${$this->x4a->x2c75->{$this->x4a->x2c75->x766b}}) . "}"; ${$this->xfd->x2c75->x766e}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}}]['fullpattern'] = ${$this->x79->x2c75->x764b}[0][${$this->x79->x2c59->x30a1}]; ${$this->xfd->x2c75->x766e}[${$this->x4a->x2c75->x7659}]['name'] = $x6fd(${$this->x4a->x2c75->{$this->x4a->x2c75->x766b}}); ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}]['reference'] = $x6fd(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7653}}}[2][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]); if (empty(${$this->x4a->x2c59->x30ad}[${$this->x4a->x2c75->x7659}]['reference'])) ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]['reference'] = 'self'; switch (${$this->xfd->x2c75->x766e}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]['name']) { case 'url': $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'url_key'); break; case 'uri': $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'url_key'); break; case 'G:ID': $x7eb(${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}}, 'sku'); break; case 'G:TITLE': $x7eb(${$this->xfd->x2c59->x30b2}, 'name'); break; case 'G:DESCRIPTION': $x7eb(${$this->xfd->x2c59->x30b2}, 'short_description'); $x7eb(${$this->xfd->x2c59->x30b2}, 'description'); break; case 'G:IMAGE_LINK': $x7eb(${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}}, 'image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'small_image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'thumbnail'); break; case 'SC:IMAGES': $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'small_image'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'thumbnail'); break; case 'SC:DESCRIPTION': $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'description'); $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'short_description'); $x7eb(${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}}, 'manufacturer'); $x7eb(${$this->xfd->x2c75->{$this->x4a->x2c75->x7677}}, 'name'); $x7eb(${$this->xfd->x2c75->x7673}, 'sku'); break; case 'SC:EAN': $x7eb(${$this->xfd->x2c75->x7673}, 'ean'); break; case 'SC:URL': $x7eb(${$this->xfd->x2c75->x7673}, 'url_key'); $x7eb(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7678}}}, 'url'); break; default : $x7eb(${$this->xfd->x2c75->x7673}, ${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}}[${$this->x79->x2c59->x30a1}]['name']); } ${$this->x4a->x2c59->x30ad}[${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]["value"] = '$product->get' . ${$this->x79->x2c59->{$this->x4a->x2c59->x30b1}}[${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}}]['name'] . "()"; ${$this->xfd->x2c75->x766e}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}}]["getText"] = 'getAttributeText(\'' . $x6fd(${$this->x4a->x2c75->x7668}) . '\')'; ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x30bf}}}} = '/\[([^\]]+)\]/'; $x706(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7681}}}, ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x30a0}}}}}[3][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}}], ${$this->xfd->x2c59->x30c9}); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}]["options"] = ${$this->xfd->x2c59->x30c9}[1]; } if ($this->_debug) { echo "----------------------------------------------<br>
------------ DEBUG MODE ----------------<br>
----------------------------------------------<br><br>"; echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $xd92(${$this->x4a->x2c59->x30ad}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Product template analyzed", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76a1}}} = Mage::$x9d99('catalog/category')->{$this->x4a->x2c59->x3e72}() ->{$this->xfd->x2c59->x493a}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}) ->{$this->x79->x2c59->x494b}('name', 'store_id') ->{$this->x79->x2c59->x494b}('is_active') ->{$this->x79->x2c59->x494b}('include_in_menu'); ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}} = array(); foreach (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x30d3}}} as ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x407f}()]['name'] = ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x4986}(); ${$this->x79->x2c75->x76aa}[${$this->x79->x2c75->x76bb}->{$this->x79->x2c59->x407f}()]['path'] = ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->xfd->x2c59->{$this->x4a->x2c59->x39ce}}(); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x407f}()]['level'] = ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}->{$this->xfd->x2c59->x49b2}(); if ($xf76(Mage::$x9d60(), '1.6.0', '<') || Mage::$xb83a("simplegoogleshopping/system/include_in_menu")) ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c75->x76bb}->{$this->x79->x2c59->x407f}()]['include_in_menu'] = true; else ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}->{$this->x79->x2c59->x407f}()]['include_in_menu'] = ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}->{$this->x4a->x2c59->x49f3}(); } if ($this->_debug) { echo "<br><br>------------ CATEGORIES ----------------<br>"; $xd92(${$this->x79->x2c75->x76aa}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Categories collected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->x4a->x2c59->x30db} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->xfd->x2c75->x76db} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}('eav_entity_type'); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76eb}}} = ${$this->xfd->x2c75->x76ce}->{$this->xfd->x2c59->x4a48}()->{$this->x79->x2c59->x4a54}(${$this->x79->x2c59->x30e5})->{$this->x4a->x2c59->x4a5c}('entity_type_code=\'catalog_product\''); ${$this->xfd->x2c59->x30ed} = ${$this->xfd->x2c75->x76ce}->{$this->x79->x2c59->x4a71}(${$this->x4a->x2c75->x76e7}); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x76fe}}} = ${$this->x4a->x2c59->{$this->xfd->x2c59->x30f0}}[0]['entity_type_id']; ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76d7}}}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->x79->x2c75->{$this->x4a->x2c75->x7707}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('directory_currency_rate'); ${$this->xfd->x2c59->x30e7} = ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}}->{$this->xfd->x2c59->x4a48}()->{$this->x79->x2c59->x4a54}(${$this->x79->x2c59->x30fe})->{$this->x4a->x2c59->x4a5c}('currency_from=\'' . ${$this->xfd->x2c75->{$this->x79->x2c75->x756d}} . '\''); ${$this->x4a->x2c75->x770d} = ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}}->{$this->x79->x2c59->x4a71}(${$this->xfd->x2c59->x30e7}); ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x311e}}}}} = array(); foreach (${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7712}}} as ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}}) { ${$this->x4a->x2c75->x7718}[${$this->x4a->x2c59->x3121}['currency_to']] = ${$this->x4a->x2c59->x3121}['rate']; } $this->_currencies = ${$this->x4a->x2c75->x7718}; if ($this->_debug) { echo "<br><br>------------ CURRENCIES ----------------<br>"; $xd92(${$this->x79->x2c59->{$this->x79->x2c59->x3113}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Currencies rate collected", null, $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7737}}}} = Mage::$xad04('eav/entity_attribute_collection') ->{$this->xfd->x2c59->x4afd}(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x30fa}}}) ->{$this->x4a->x2c59->x4b0d}() ->{$this->x4a->x2c59->x410d}(); ${$this->x79->x2c75->x7739} = array(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x313e}}} = array(); foreach (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7737}}}} as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->x30a7}) { if ($x2a1d(${$this->x4a->x2c75->{$this->x4a->x2c75->x766b}}['attribute_code'], ${$this->x4a->x2c59->{$this->xfd->x2c59->x30b6}})) { $x7eb(${$this->x79->x2c75->x7739}, ${$this->x79->x2c59->x30a7}['attribute_code']); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x313e}}}[${$this->x4a->x2c75->x7668}['attribute_code']] = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30a8}}['frontend_input']; } } if (!$x2a1d('special_price', ${$this->x79->x2c75->x7739})) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}[] = 'special_price'; if (!$x2a1d('special_from_date', ${$this->x79->x2c75->{$this->x4a->x2c75->x773b}})) ${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}[] = 'special_from_date'; if (!$x2a1d('special_to_date', ${$this->x79->x2c75->{$this->x4a->x2c75->x773b}})) ${$this->x4a->x2c59->x3135}[] = 'special_to_date'; if (!$x2a1d('price_type', ${$this->x79->x2c75->x7739})) ${$this->x4a->x2c59->x3135}[] = 'price_type'; if (!$x2a1d('price', ${$this->x79->x2c59->{$this->x4a->x2c59->x3136}})) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}[] = 'price'; ${$this->x4a->x2c59->x3135}[] = 'tax_class_id'; foreach (${$this->x79->x2c75->{$this->xfd->x2c75->x761d}} as ${$this->x4a->x2c75->x7747}) { if (!$x2a1d(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->code, ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}) && ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->checked) if (!$x2a1d(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->code, array("is_in_stock", "qty", "entity_id", "created_at", "updated_at"))) ${$this->x79->x2c59->{$this->x4a->x2c59->x3136}}[] = ${$this->x79->x2c59->x3143}->code; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES ----------------<br>"; $xd92(${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of required attributes collected", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); ${$this->xfd->x2c75->x76c5} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76d7}}}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7761}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('eav_attribute_option_value'); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76eb}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76f0}}}}->{$this->x79->x2c59->x4a54}(${$this->x4a->x2c59->{$this->x79->x2c59->x314d}}); ${$this->x4a->x2c75->x76e7}->{$this->x4a->x2c59->x4a5c}("store_id=" . ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}} . ' OR store_id=0'); ${$this->x4a->x2c75->x76e7}->{$this->xfd->x2c59->x4b91}(array('option_id', 'store_id')); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7775}}} = ${$this->x4a->x2c59->x30e0}->{$this->x79->x2c59->x4a71}(${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}); foreach (${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x777a}}}} as ${$this->xfd->x2c75->x7781}) { ${$this->xfd->x2c59->x316f}[${$this->xfd->x2c59->x315f}['option_id']][${$this->x79->x2c59->{$this->x79->x2c59->x3162}}['store_id']] = ${$this->x79->x2c59->{$this->x79->x2c59->x3162}}['value']; } if ($this->_debug) { echo "<br><br>------------ ATTRIBUTES LABEL ----------------<br>"; $xd92(${$this->xfd->x2c75->x7784}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> List of attribute labels collected", null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3181}}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('tax_class'); ${$this->x79->x2c59->x3187} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}('tax_calculation'); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3194}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('tax_calculation_rate'); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x77ac}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('directory_country_region'); ${$this->xfd->x2c75->{$this->xfd->x2c75->x77ba}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('customer_group'); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76f0}}}} = ${$this->x4a->x2c59->x30e0}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76f1}}}}}->{$this->x79->x2c59->x4a54}(${$this->xfd->x2c75->{$this->x79->x2c75->x778e}})->{$this->xfd->x2c59->x4b91}(array('class_id', 'tax_calculation_rate_id')); ${$this->xfd->x2c59->x30e7}->{$this->x79->x2c59->x4c10}(array('tc' => ${$this->x79->x2c59->{$this->x4a->x2c59->x3189}}), 'tc.product_tax_class_id = ' . ${$this->xfd->x2c75->x7789} . '.class_id', 'tc.tax_calculation_rate_id'); ${$this->x4a->x2c75->{$this->x79->x2c75->x76ea}}->{$this->x79->x2c59->x4c10}(array('tcr' => ${$this->x4a->x2c59->{$this->x4a->x2c59->x3191}}), 'tcr.tax_calculation_rate_id = tc.tax_calculation_rate_id', array('tcr.rate', 'tax_country_id', 'tax_region_id')); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}->{$this->x79->x2c59->x4c10}(array('dcr' => ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x77ac}}}), 'dcr.region_id=tcr.tax_region_id', 'code'); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}->{$this->x79->x2c59->x4c3c}(array('cg' => ${$this->x4a->x2c75->x77b7}), 'cg.tax_class_id=tc.customer_tax_class_id AND cg.customer_group_code="NOT LOGGED IN"'); ${$this->x79->x2c59->x31b1} = ${$this->x4a->x2c59->x30e0}->{$this->x79->x2c59->x4a71}(${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}); ${$this->x79->x2c59->{$this->x4a->x2c59->x31c2}} = array(); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x77d6}}} = ''; foreach (${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x77c2}}} as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x77e7}}}}) { if (${$this->xfd->x2c59->{$this->x4a->x2c59->x31ce}} != ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x31e1}}}['class_id']) ${$this->x79->x2c75->x77eb} = 0; else { ${$this->x79->x2c59->x31e5}++; } ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x31d1}}} = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x77e7}}}}['class_id']; ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x77cf}}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x77e7}}}}['class_id']][${$this->x79->x2c59->x31e5}]['rate'] = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x77e2}}}['rate']; ${$this->x79->x2c59->{$this->x4a->x2c59->x31c2}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x77e2}}}['class_id']][${$this->x79->x2c75->{$this->xfd->x2c75->x77ef}}]['code'] = ${$this->x79->x2c59->x31d7}['code']; ${$this->x79->x2c75->{$this->xfd->x2c75->x77c9}}[${$this->x79->x2c59->x31d7}['class_id']][${$this->x79->x2c59->{$this->x4a->x2c59->x31ea}}]['country'] = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x31e1}}}['tax_country_id']; } $this->_rates = ${$this->xfd->x2c75->x77c4}; if ($this->_debug) { echo "<br><br>------------ TAX CLASS ----------------<br>"; $xd92(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x77ca}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Tax rate collected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x31f3}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}('review'); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x31ff}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('review_store'); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x780e}}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('rating_option_vote'); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x320f}}} = ${$this->x4a->x2c59->x30e0}->{$this->xfd->x2c59->x4a48}()->{$this->xfd->x2c59->x4cb4}('review_id'); ${$this->x79->x2c75->x7815}->{$this->x79->x2c59->x4a54}(array("r" => ${$this->x4a->x2c75->{$this->x4a->x2c75->x77f5}}), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value')); ${$this->x79->x2c75->x7815}->{$this->x79->x2c59->x4c10}(array('rs' => ${$this->x79->x2c59->x31f9}), 'rs.review_id=r.review_id', 'rs.store_id'); ${$this->x4a->x2c59->x3208}->{$this->x79->x2c59->x4c10}(array('rov' => ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7812}}}}}), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x320f}}}->{$this->x4a->x2c59->x4a5c}("status_id=1 and entity_id=1"); ${$this->x79->x2c75->x7815}->{$this->xfd->x2c59->x4ce7}(array('r.entity_pk_value', 'rs.store_id')); ${$this->x4a->x2c75->{$this->xfd->x2c75->x781f}} = ${$this->xfd->x2c75->{$this->x79->x2c75->x76d1}}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->{$this->xfd->x2c75->x781f}}->{$this->x79->x2c59->x4a54}(array("r" => ${$this->x4a->x2c75->x77f1}), array("COUNT(DISTINCT r.review_id) AS count", 'entity_pk_value', "(SELECT) AS store_id")); ${$this->x4a->x2c75->{$this->xfd->x2c75->x781f}}->{$this->x79->x2c59->x4c10}(array('rs' => ${$this->x79->x2c75->x77fa}), 'rs.review_id=r.review_id', array()); ${$this->xfd->x2c59->{$this->xfd->x2c59->x3220}}->{$this->x79->x2c59->x4c10}(array('rov' => ${$this->x79->x2c75->x7807}), 'rov.review_id=r.review_id', 'AVG(rov.percent) AS score'); ${$this->xfd->x2c59->x321b}->{$this->x4a->x2c59->x4a5c}("status_id=1 and entity_id=1"); ${$this->x4a->x2c75->x781e}->{$this->xfd->x2c59->x4ce7}(array('r.entity_pk_value')); ${$this->xfd->x2c59->x30e7} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76d7}}}}}->{$this->xfd->x2c59->x4a48}() ->{$this->xfd->x2c59->x4d5c}(array(${$this->x4a->x2c59->x3208}, ${$this->x4a->x2c75->x781e})); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}}->{$this->xfd->x2c59->x4b91}(array('entity_pk_value', 'store_id')); ${$this->x79->x2c75->x7820} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->x79->x2c59->x4a71}(${$this->xfd->x2c59->x30e7}); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}} = array(); foreach (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7826}}}} as ${$this->xfd->x2c59->x322b}) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[${$this->xfd->x2c75->x7840}['entity_pk_value']][${$this->xfd->x2c59->x322b}['store_id']]["count"] = ${$this->xfd->x2c75->x7840}["count"]; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7836}}}}[${$this->xfd->x2c75->x7840}['entity_pk_value']][${$this->x4a->x2c59->{$this->xfd->x2c59->x322f}}['store_id']]['score'] = ${$this->xfd->x2c59->x322b}['score']; } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Reviews collected", null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}} = Mage::$xb6f6('core/resource'); ${$this->xfd->x2c59->{$this->xfd->x2c59->x30e3}} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x79->x2c59->x4a25}('core_read'); ${$this->x79->x2c59->{$this->x4a->x2c59->x3235}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('catalog_product_entity_media_gallery'); ${$this->xfd->x2c59->x3236} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_entity_media_gallery_value'); ${$this->x4a->x2c75->x76e7} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->xfd->x2c59->x4a48}(array("DISTINCT value")); ${$this->x4a->x2c75->x76e7}->{$this->x79->x2c59->x4a54}(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7846}}}); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76f1}}}}}->{$this->x79->x2c59->x4c10}(array('cpemgv' => ${$this->x79->x2c75->x784c}), 'cpemgv.value_id = ' . ${$this->x79->x2c75->x7844} . '.value_id', array('cpemgv.position', 'cpemgv.disabled')); ${$this->x4a->x2c75->x76e7}->{$this->x4a->x2c59->x4a5c}("value<>TRIM('') AND (store_id=" . ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}} . ' OR store_id=0)'); ${$this->x4a->x2c75->x76e7}->{$this->xfd->x2c59->x4b91}(array('position', 'value_id')); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x76f0}}}}->{$this->xfd->x2c59->x4ce7}(array('value_id')); ${$this->x4a->x2c75->{$this->xfd->x2c75->x785b}} = ${$this->xfd->x2c75->{$this->x79->x2c75->x76d1}}->{$this->x79->x2c59->x4a71}(${$this->x4a->x2c75->{$this->x79->x2c75->x76ea}}); foreach (${$this->xfd->x2c75->x7857} as ${$this->xfd->x2c75->x7861}) { if (${$this->x4a->x2c59->{$this->x4a->x2c59->x3260}}['disabled'] != 1 && ${$this->x4a->x2c59->{$this->x4a->x2c59->x3260}}['value'] != '') { if (!$x2a1d(${$this->x4a->x2c59->{$this->x4a->x2c59->x3260}}['value'], ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x786e}}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7866}}}['entity_id']]['src'])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x326f}}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7866}}}['entity_id']]['src'][] = ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3263}}}['value']; ${$this->x4a->x2c59->{$this->x4a->x2c59->x326a}}[${$this->xfd->x2c75->x7861}['entity_id']]['disabled'][] = ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7866}}}['disabled']; } } } if ($this->_debug) { echo "<br><br>------------ IMAGES ----------------<br>"; $xd92(${$this->x4a->x2c75->x7867}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Images collected", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); Mage::$xb74b()->{$this->xfd->x2c59->x4e33}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}); ${$this->x79->x2c59->x3279} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("cataloginventory_stock_item"); ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x328a}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}("core_url_rewrite"); ${$this->x79->x2c75->x7703} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('catalog_category_product'); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x788d}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}('catalog_category_product_index'); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x789a}}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_index_price'); ${$this->xfd->x2c75->{$this->x79->x2c75->x78a6}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_super_link'); ${$this->x4a->x2c75->{$this->xfd->x2c75->x78b4}} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}('catalog_product_link'); ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x32bd}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}('catalog_product_bundle_selection'); ($xf76(Mage::$x9d60(), '1.6.0', '<')) ? ${$this->xfd->x2c59->x30c9} = "options=''" : ${$this->xfd->x2c59->x30c9} = "ISNULL(options)"; switch (Mage::$xb83a("simplegoogleshopping/system/urlrewrite")) { case 1 : ${$this->x79->x2c75->{$this->x4a->x2c75->x78ca}} = "AND url.target_path NOT LIKE '%category%'"; ${$this->xfd->x2c75->x78ce} = 'MAX'; break; default : ${$this->x4a->x2c59->{$this->x79->x2c59->x32c4}} = "AND url.target_path LIKE '%category%'"; ${$this->xfd->x2c75->{$this->xfd->x2c75->x78d0}} = 'GROUP_CONCAT'; break; break; } ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "configurable")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x494b}(${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}, true); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x78ac}}}} . ' AS cpsl', 'cpsl.parent_id=e.entity_id ', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpsl.product_id)')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7875} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->x787d} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x32c9}}} . ' AND is_system=1 AND ' . ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7696}}}} . ' AND url.store_id=' . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}, array('request_path' => ${$this->xfd->x2c75->x78ce} . '(DISTINCT request_path)')); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->x7707}} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x788d}}} . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('cpsl.parent_id')); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x78ee}}} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}} as ${$this->x4a->x2c75->x78f3}) { foreach ($x2791(",", ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}->{$this->x79->x2c59->x4fe8}()) as ${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}) { ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x78f0}}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}] = ${$this->x4a->x2c59->x32f2}; ${$this->x4a->x2c75->{$this->xfd->x2c75->x7905}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['categories_ids'] = ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}->{$this->x4a->x2c59->x4ffa}(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x3308}}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_id'] = ${$this->x4a->x2c75->x78f3}->{$this->x79->x2c59->x407f}(); ${$this->x4a->x2c59->{$this->xfd->x2c59->x3308}}[${$this->x4a->x2c75->x78fc}]['parent_sku'] = ${$this->x4a->x2c75->x78f3}->{$this->x4a->x2c59->x5021}(); ${$this->x79->x2c59->x3307}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_request_path'] = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->xfd->x2c59->x502b}(); } } $this->configurable = ${$this->x79->x2c75->x78e8}; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES ----------------<br>"; echo ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->x79->x2c59->x3307}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with configurable products detected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->xfd->x2c59->x2f75}); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->x78d9}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "configurable")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x78b1}}}}} . ' AS cpsl', 'cpsl.parent_id=e.entity_id '); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c59->{$this->xfd->x2c59->x327b}} . ' AS stock', 'stock.product_id=cpsl.product_id', array('qty' => 'SUM(stock.qty)')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('cpsl.parent_id')); ${$this->xfd->x2c59->{$this->x4a->x2c59->x3310}} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}} as ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}) { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7910}}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3320}}}}->{$this->x79->x2c59->x407f}()] = ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}->{$this->xfd->x2c59->x50f2}(); } $this->configurableQty = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7910}}}}}; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES QTY ----------------<br>"; echo ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x790d}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Qty for configurable products calculated", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x78a8}}} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("catalog_product_super_link"); ${$this->x4a->x2c75->x7919} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}("catalog_product_super_attribute"); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7933}}}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}("catalog_product_entity_int"); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x793c}}} = ${$this->x4a->x2c59->x30db}->{$this->x4a->x2c59->x4a3b}("catalog_product_super_attribute_pricing"); ${$this->x4a->x2c75->x7941} = ${$this->x4a->x2c59->x30e0}->{$this->xfd->x2c59->x4a48}(); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7948}}}->{$this->x79->x2c59->x4a54}(array("cpsl" => ${$this->xfd->x2c75->{$this->x79->x2c75->x78a6}}), array("parent_id", "product_id")); ${$this->x79->x2c75->{$this->x4a->x2c75->x7945}}->{$this->x79->x2c59->x4c10}(array("cpsa" => ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3330}}}}}), "cpsa.product_id = cpsl.parent_id", array("attribute_id")); ${$this->x4a->x2c75->x7941}->{$this->x79->x2c59->x4c10}(array("cpei" => ${$this->x4a->x2c59->x3332}), "cpei.entity_id = cpsl.product_id AND cpei.attribute_id = cpsa.attribute_id", array("value" => "value")); ${$this->xfd->x2c59->x3346}->{$this->x79->x2c59->x4c10}(array("cpsap" => ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x333e}}}), "cpsap.product_super_attribute_id = cpsa.product_super_attribute_id AND cpei.value = cpsap.value_index", array("pricing_value" => "pricing_value", "is_percent" => "is_percent")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x794c}}}}->{$this->xfd->x2c59->x4b91}(array("cpsl.parent_id", "cpsl.product_id")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x794c}}}}->{$this->xfd->x2c59->x4ce7}(array("cpsl.parent_id", "cpsl.product_id", "cpsa.attribute_id")); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x795c}}}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->x79->x2c59->x4a71}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x794c}}}}); ${$this->x4a->x2c59->x3359} = array(); foreach (${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7959}}} as ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}) { ${$this->x4a->x2c59->{$this->xfd->x2c59->x335c}}[${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x331b}}}["parent_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["product_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}['attribute_id']]['attribute_id'] = ${$this->x4a->x2c75->x7912}["attribute_id"]; ${$this->x79->x2c75->x795e}[${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x331b}}}["parent_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["product_id"]][${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3320}}}}['attribute_id']]['value'] = ${$this->x79->x2c75->{$this->x4a->x2c75->x7915}}["value"]; ${$this->x79->x2c75->x795e}[${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["parent_id"]][${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3320}}}}["product_id"]][${$this->x4a->x2c75->x7912}['attribute_id']]['pricing_value'] = ${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}["pricing_value"]; ${$this->x4a->x2c59->{$this->xfd->x2c59->x335c}}[${$this->x4a->x2c59->x3315}["parent_id"]][${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x331b}}}["product_id"]][${$this->xfd->x2c59->{$this->xfd->x2c59->x3316}}['attribute_id']]['is_percent'] = ${$this->x4a->x2c59->x3315}["is_percent"]; } if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Configurable prices collected", null, $this->{$this->xfd->x2c75->x800d}('.log')); $this->configurablePrices = ${$this->x4a->x2c59->{$this->xfd->x2c59->x335c}}; if ($this->_debug) { echo "<br><br>------------ CONFIGURABLES PRICES ----------------<br>"; echo ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7948}}} . '<br><br>'; $xd92(${$this->x79->x2c75->x795e}); } ${$this->xfd->x2c59->x32dd} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->x78d9}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "grouped")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->xfd->x2c59->x32dd}->{$this->x79->x2c59->x494b}(${$this->x79->x2c59->{$this->x4a->x2c59->x3136}}, true); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->{$this->xfd->x2c75->x78b4}} . ' AS cpl', 'cpl.product_id=e.entity_id AND cpl.link_type_id=3', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpl.linked_product_id)')); ${$this->xfd->x2c59->x32dd}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3281}}}} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c59->{$this->x4a->x2c59->x3286}} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x32c9}}} . ' AND is_system=1 AND ' . ${$this->xfd->x2c75->{$this->x4a->x2c75->x768d}} . ' AND url.store_id=' . ${$this->xfd->x2c59->x2f75}, array('request_path' => ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x78d3}}} . '(DISTINCT request_path)')); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7709}}} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7888} . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('cpl.product_id')); ${$this->xfd->x2c75->x7962} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}} as ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}) { foreach ($x2791(",", ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->x79->x2c59->x4fe8}()) as ${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}) { ${$this->xfd->x2c75->x7962}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}] = ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}; ${$this->x4a->x2c75->x796a}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['categories_ids'] = ${$this->xfd->x2c75->{$this->x4a->x2c75->x78f7}}->{$this->x4a->x2c59->x4ffa}(); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7975}}}}}[${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3303}}}]['parent_id'] = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->x79->x2c59->x407f}(); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7972}}}}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_sku'] = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x78f9}}}->{$this->x4a->x2c59->x5021}(); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3369}}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['parent_request_path'] = ${$this->x4a->x2c59->x32f2}->{$this->xfd->x2c59->x502b}(); } } $this->grouped = ${$this->x4a->x2c75->{$this->x4a->x2c75->x7967}}; if ($this->_debug) { echo "<br><br>------------ GROUPED ----------------<br>"; echo ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->x4a->x2c75->x796a}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with grouped products detected", null, $this->{$this->xfd->x2c75->x800d}('.log')); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->xfd->x2c59->x2f75}); ${$this->xfd->x2c59->x32dd}->{$this->x79->x2c59->x4ef7}('status', 1); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->x79->x2c59->x4ef7}('type_id', array("in" => "bundle")); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x4ef7}('visibility', array("nin" => 1)); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}->{$this->x79->x2c59->x494b}(${$this->x79->x2c75->{$this->x4a->x2c75->x773b}}, true); ${$this->x4a->x2c59->{$this->x79->x2c59->x32e1}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x78c5}}} . ' AS cpbs', 'cpbs.parent_product_id=e.entity_id', array('child_ids' => 'GROUP_CONCAT( DISTINCT cpbs.product_id)')); ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x78e3}}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c59->x3279} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->{$this->x4a->x2c75->x787f}} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x79->x2c59->x32c4}} . ' AND is_system=1 AND ' . ${$this->x79->x2c75->x768a} . ' AND url.store_id=' . ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}, array('request_path' => ${$this->x4a->x2c59->x32cb} . '(DISTINCT request_path)')); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c59->x30fe} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x788d}}} . ' AS categories_index', 'categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id AND categories_index.store_id=' . ${$this->xfd->x2c59->x2f75}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); ${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('e.entity_id')); ${$this->x4a->x2c75->x7979} = array(); foreach (${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}} as ${$this->x4a->x2c75->x78f3}) { foreach ($x2791(",", ${$this->x4a->x2c75->x78f3}->{$this->x79->x2c59->x4fe8}()) as ${$this->x79->x2c59->x32fa}) { ${$this->x4a->x2c75->{$this->xfd->x2c75->x797b}}[${$this->x79->x2c59->x32fa}] = ${$this->x4a->x2c59->{$this->x79->x2c59->x32f7}}; ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3374}}}[${$this->x79->x2c59->x32fa}]['parent_id'] = ${$this->x4a->x2c75->x78f3}->{$this->x79->x2c59->x407f}(); ${$this->x4a->x2c59->x3370}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_sku'] = ${$this->x4a->x2c75->x78f3}->{$this->x4a->x2c59->x5021}(); ${$this->xfd->x2c59->{$this->x79->x2c59->x3371}}[${$this->x79->x2c75->{$this->x79->x2c75->x78ff}}]['parent_request_path'] = ${$this->x4a->x2c75->x78f3}->{$this->xfd->x2c59->x502b}(); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3374}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x32ff}}]['categories_ids'] = ${$this->x4a->x2c59->x32f2}->{$this->x4a->x2c59->x4ffa}(); } } $this->bundle = ${$this->x4a->x2c75->{$this->xfd->x2c75->x797b}}; if ($this->_debug) { echo "<br><br>------------ BUNDLE ----------------<br>"; echo ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}}->{$this->xfd->x2c59->x4f39}() . '<br><br>'; $xd92(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3377}}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Relations with bundle products detected", null, $this->{$this->x4a->x2c59->x39da}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x798e}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x30dc}}->{$this->x4a->x2c59->x4a3b}("catalog_product_option"); ${$this->x4a->x2c59->x3381} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_title"); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x799b}}} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_type_value"); ${$this->x79->x2c59->x338f} = ${$this->x79->x2c75->{$this->x79->x2c75->x76c9}}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_type_title"); ${$this->xfd->x2c75->x79ab} = ${$this->xfd->x2c75->x76c5}->{$this->x4a->x2c59->x4a3b}("catalog_product_option_type_price"); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33b4}}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d2}}}->{$this->xfd->x2c59->x4a48}(); ${$this->x4a->x2c75->x79b4}->{$this->x79->x2c59->x4a54}(array("cpo" => ${$this->x79->x2c75->x7989}), array("product_id")); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33b4}}}}->{$this->x79->x2c59->x4c10}(array("cpot" => ${$this->x4a->x2c59->x3381}), "cpot.option_id=cpo.option_id AND cpot.store_id", array("option" => "title", "option_id", "store_id")); ${$this->x4a->x2c59->{$this->x4a->x2c59->x33ac}}->{$this->x79->x2c59->x4c10}(array("cpotv" => ${$this->xfd->x2c59->x3386}), "cpotv.option_id = cpo.option_id", array("sku", "id" => "option_type_id")); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x33b9}}}}}->{$this->x79->x2c59->x4c10}(array("cpott" => ${$this->x79->x2c59->x338f}), "cpott.option_type_id=cpotv.option_type_id AND cpott.store_id=cpot.store_id", "title AS value"); ${$this->x4a->x2c59->x33a9}->{$this->x79->x2c59->x4c10}(array("cpotp" => ${$this->x79->x2c75->{$this->x4a->x2c75->x79b0}}), "cpotp.option_type_id=cpotv.option_type_id AND cpotp.store_id=cpot.store_id", array("price", "price_type")); ${$this->x79->x2c59->{$this->xfd->x2c59->x30eb}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x33ac}}->{$this->xfd->x2c59->x4b91}(array("product_id", "cpotv.sort_order ASC")); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7823}}} = ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x76d3}}}}->{$this->x79->x2c59->x4a71}(${$this->xfd->x2c59->x30e7}); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c5}}}} = array(); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33d8}}}}} = 0; foreach (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7826}}}} as ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x33de}}}) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79de}}}["product_id"]][${$this->x79->x2c59->{$this->x79->x2c59->x33dd}}["option"]]["options"][] = array( "value" => ${$this->x79->x2c59->x33db}["value"], "sku" => ${$this->x79->x2c59->{$this->x79->x2c59->x33dd}}["sku"], "price" => ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79de}}}["price"], "price_type" => ${$this->xfd->x2c75->x79d6}["price_type"] ); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79ce}}}}++; } $this->customOptions = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33ca}}}}}; if ($this->_debug) { echo "<br><br>------------ CUSTOM OPTIONS ----------------<br>"; echo ${$this->x4a->x2c75->{$this->x79->x2c75->x79b6}} . '<br><br>'; $xd92(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c5}}}); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Custom options collected", null, $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}('.log')); if (Mage::$xb812("core")->{$this->x4a->x2c59->x556f}("Wyomind_Googlemerchantpromotions")) { ${$this->x4a->x2c75->{$this->x4a->x2c75->x79e3}} = Mage::$xad04('salesrule/rule_collection')->{$this->x4a->x2c59->x558e}('sort_order', 'ASC')->{$this->xfd->x2c59->x3e88}("transferable_to_google_merchant", 1)->{$this->x79->x2c59->x4469}(); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Promotions rules collected", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); } ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}} = Mage::$x9d99('simplegoogleshopping/product_collection')->{$this->x4a->x2c59->x3e72}()->{$this->x79->x2c59->x4eec}(${$this->x4a->x2c75->x7543}); if (Mage::$xb83a("simplegoogleshopping/system/disabled")) ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x3e88}("status", array('gteq' => 1)); else ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x3e88}("status", 1); ${$this->x79->x2c59->x33eb}->{$this->x79->x2c59->x4ef7}("type_id", array("in" => ${$this->xfd->x2c75->x760c})); ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->x79->x2c59->x4ef7}("visibility", array("in" => ${$this->x79->x2c75->x7614})); if (${$this->x79->x2c75->{$this->x4a->x2c75->x762c}}[0] != '*') ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->x79->x2c59->x4ef7}("attribute_set_id", array("in" => ${$this->xfd->x2c59->{$this->xfd->x2c59->x307e}})); ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->x79->x2c59->x494b}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3137}}}, true); ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7a05}}}}} = array("eq" => "= '%s'", "neq" => "!= '%s'", "gteq" => ">= '%s'", "lteq" => "<= '%s'", "gt" => "> '%s'", "lt" => "< '%s'", "like" => "like '%s'", "nlike" => "not like '%s'", "null" => "is null", "notnull" => "is not null", "in" => "in (%s)", "nin" => "not in(%s)", ); ${$this->x4a->x2c75->x7a08} = ''; ${$this->x4a->x2c75->x7a0f} = 0; ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a21}}}}} = array(); foreach (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x307b}}} as ${$this->x4a->x2c75->x7747}) { if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->checked) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->x3145}}->condition == 'in' || ${$this->x79->x2c75->{$this->x4a->x2c75->x774b}}->condition == 'nin') { if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->code == 'qty' || ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->code == 'is_in_stock') { ${$this->x79->x2c59->{$this->x79->x2c59->x341d}} = $x2791(',', ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value); ${$this->x79->x2c59->x3143}->value = "'" . $x293c(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3427}}}}}, "','") . "'"; } else { ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value = $x2791(',', ${$this->x4a->x2c75->x7747}->value); } } switch (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->code) { case 'qty' : if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x340f}}} > 0) ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=' ' . ${$this->x79->x2c59->x3143}->statement . ' '; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=" qty " . $x1ab4(${$this->xfd->x2c75->x79fc}[${$this->x79->x2c59->x3143}->condition], ${$this->x4a->x2c59->{$this->xfd->x2c59->x3145}}->value); ${$this->x4a->x2c75->x7a0f}++; break; case 'is_in_stock' : if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x340f}}} > 0) ${$this->x4a->x2c59->x33fe}.=' ' . ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->statement . ' '; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=" (IF("; ${$this->x4a->x2c59->x33fe}.="(use_config_manage_stock=1 AND ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2fb3}}}=0)"; ${$this->x4a->x2c59->x33fe}.=" OR "; ${$this->x4a->x2c59->x33fe}.='(use_config_manage_stock=0 AND manage_stock=0)'; ${$this->x4a->x2c59->x33fe}.=" OR "; ${$this->x4a->x2c59->{$this->xfd->x2c59->x3403}}.="(use_config_manage_stock=1 AND ${$this->x4a->x2c75->x756e}=1 AND is_in_stock=1 )"; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}}.=" OR "; ${$this->x4a->x2c59->x33fe}.="(use_config_manage_stock=0 AND manage_stock=1 AND is_in_stock=1 )"; ${$this->x4a->x2c59->x33fe}.=",'1','0')" . $x1ab4(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7a01}}}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->condition], ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value) . ")"; ${$this->x79->x2c59->{$this->x4a->x2c59->x340a}}++; break; default : if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->statement == "AND") { if ($x2a4f(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7a1b}}})) ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x79f8}}}}->{$this->xfd->x2c59->x3e88}(${$this->x79->x2c75->x7a18}); ${$this->x79->x2c59->{$this->xfd->x2c59->x3413}} = array(); } if (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->condition == "in") { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3431}}} = true; ${$this->x4a->x2c59->x343e} = array(); foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7754}}}}}->value as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a48}}}) { if (!$x2594(${$this->xfd->x2c75->x7a40})) ${$this->xfd->x2c75->x7a31} = true; } if (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3431}}}) { foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->value as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a48}}}) { ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3447}}}}[] = array(array("finset" => ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7a4b}}}})); } ${$this->x79->x2c75->x7a18}[] = array("attribute" => ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->code, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7a3e}}}}); } else ${$this->xfd->x2c75->{$this->x79->x2c75->x7a1a}}[] = array("attribute" => ${$this->x4a->x2c59->{$this->xfd->x2c59->x3145}}->code, ${$this->x79->x2c59->x3143}->condition => ${$this->x4a->x2c75->x7747}->value); } else ${$this->x79->x2c75->x7a18}[] = array("attribute" => ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7751}}}}->code, ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x774f}}}->condition => ${$this->x79->x2c59->x3143}->value); break; } } }; if ($x2a4f(${$this->x79->x2c75->x7a18})) ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x79f4}}}->{$this->xfd->x2c59->x3e88}(${$this->x79->x2c75->x7a18}); ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7875} . ' AS stock', 'stock.product_id=e.entity_id', array('qty' => 'qty', 'is_in_stock' => 'is_in_stock', 'manage_stock' => 'manage_stock', 'use_config_manage_stock' => 'use_config_manage_stock', 'backorders' => 'backorders', 'use_config_backorders' => 'use_config_backorders')); ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x79f4}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7886}}}} . ' AS url', 'url.product_id=e.entity_id ' . ${$this->x4a->x2c59->{$this->x79->x2c59->x32c4}} . ' AND is_system=1 AND ' . ${$this->x79->x2c75->x768a} . ' AND url.store_id=' . ${$this->x4a->x2c75->x7543}, array('request_path' => ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x32db}}}}} . '(DISTINCT request_path)')); if (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}[0] != '*') { ${$this->x79->x2c59->x344e} = 0; ${$this->x79->x2c59->{$this->x79->x2c59->x3462}} = null; foreach (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}} as ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x305f}}}) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->x3451}} > 0) ${$this->x79->x2c75->{$this->x4a->x2c75->x7a52}}.=','; ${$this->x79->x2c75->{$this->x4a->x2c75->x7a52}}.=$x1dcf($x2791('/', ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7606}}})); ${$this->x4a->x2c59->{$this->xfd->x2c59->x3451}}++; } (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7a6c}}}} = "IN" : ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7a68}}} = "NOT IN"; ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33f1}}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x32ac}}} . ' AS cpsl', 'cpsl.product_id=e.entity_id ', array('parent_id' => 'parent_id')); switch (${$this->xfd->x2c59->x3035}) { case 0: ${$this->x79->x2c59->x3470} = "categories.product_id=e.entity_id"; break; case 1 : ${$this->xfd->x2c75->{$this->xfd->x2c75->x7a73}} = "categories.product_id=e.entity_id OR categories.product_id=cpsl.parent_id"; break; case 2: ${$this->x4a->x2c75->x7a71} = "categories.product_id=cpsl.parent_id "; break; } if ($xf76(Mage::$x9d60(), '1.12.0', '<=')) { ${$this->x79->x2c59->{$this->x79->x2c59->x3462}} = "AND categories_index.category_id " . ${$this->x79->x2c59->x346c} . " (" . ${$this->x79->x2c59->{$this->x79->x2c59->x3462}} . ")"; ${$this->x79->x2c59->x33eb}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x770a}}}} . ' AS categories', ${$this->x4a->x2c75->x7a71}, array()); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33f1}}}->{$this->xfd->x2c59->x4f39}()->{$this->x79->x2c59->x4c3c}(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3299}}}} . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id)) AND categories_index.store_id=' . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}} . ' ' . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7a5c}}}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories_index.category_id)')); } else { ${$this->x4a->x2c75->x7a50} = "AND categories.category_id " . ${$this->x79->x2c59->x346c} . " (" . ${$this->x79->x2c75->{$this->x4a->x2c75->x7a52}} . ")"; ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}()->{$this->x79->x2c59->x4c3c}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7709}}} . ' AS categories', ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3476}}} . ' ' . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7a5c}}}}}, array('categories_ids' => 'GROUP_CONCAT( DISTINCT categories.category_id)')); } } else { ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x770a}}}} . ' AS categories', 'categories.product_id=e.entity_id'); ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x4a->x2c75->x7888} . ' AS categories_index', '((categories_index.category_id=categories.category_id AND categories_index.product_id=categories.product_id) ) AND categories_index.store_id=' . ${$this->x4a->x2c75->x7543}, array('categories_ids' => 'GROUP_CONCAT(DISTINCT categories_index.category_id)')); } if ($xf76(Mage::$x9d60(), '1.4.0', '>=')) ${$this->x4a->x2c75->{$this->xfd->x2c75->x79ef}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4f44}(${$this->x79->x2c75->{$this->x4a->x2c75->x7895}} . ' AS price_index', 'price_index.entity_id=e.entity_id AND customer_group_id=0 AND price_index.website_id=' . Mage::$x9d99('core/store')->{$this->x79->x2c59->x4469}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}})->{$this->xfd->x2c59->x5786}(), array('min_price' => 'min_price', 'max_price' => 'max_price', 'tier_price' => 'tier_price', 'final_price' => 'final_price')); if (!empty(${$this->x4a->x2c75->{$this->x4a->x2c75->x7a0c}})) ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x4f39}()->{$this->x4a->x2c59->x4a5c}(${$this->x4a->x2c75->x7a08}); ${$this->x79->x2c59->{$this->x79->x2c59->x33f0}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}("e.entity_type_id"); if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Main sql request:
" . ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x79f4}}}->{$this->xfd->x2c59->x4f39}(), null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); if ($this->_debug) { echo "<br><br>------------ MAIN SQL REQUEST ----------------<br>"; echo ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}(); } ${$this->x4a->x2c59->x3477} = 0; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7a87}}}}} = clone ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x33f1}}}; ${$this->x4a->x2c75->{$this->xfd->x2c75->x7a81}}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x5804}("COUNT(DISTINCT e.entity_id) As total"); $this->_counter = ${$this->x4a->x2c59->x3482}->{$this->x79->x2c59->x5810}()->{$this->x79->x2c59->x581f}(); ${$this->x4a->x2c59->x348d} = $xfab($this->_counter / $this->{$this->x79->x2c59->{$this->x4a->x2c59->x2ccf}}); ${$this->x79->x2c75->{$this->x79->x2c75->x7635}} = ''; ${$this->x79->x2c75->{$this->xfd->x2c75->x7a94}} = 1; Mage::log("\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Total items calculated ($this->_counter in ${$this->x79->x2c75->x7a8a} queries )", null, $this->{$this->x4a->x2c75->{$this->xfd->x2c75->x800f}}('.log')); ${$this->x4a->x2c75->x79eb}->{$this->xfd->x2c59->x4f39}()->{$this->xfd->x2c59->x4ce7}(array('e.entity_id'))->{$this->xfd->x2c59->x4b91}('e.entity_id'); ${$this->x4a->x2c75->x7a99} = $x2b6b(true); while (${$this->x4a->x2c59->x3477} < ${$this->x79->x2c75->x7a8a}) { ${$this->x79->x2c75->x78d9} = clone ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x79f8}}}}; if ($this->_debug) { echo "<br><br>------------ SQL ----------------<br>"; print(${$this->x79->x2c75->{$this->x4a->x2c75->x78dd}}->{$this->xfd->x2c59->x4f39}()); } ${$this->x79->x2c75->x78d9}->{$this->xfd->x2c59->x4f39}()->{$this->x79->x2c59->x5874}($this->{$this->x79->x2c59->{$this->x4a->x2c59->x2ccf}}, ($this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} * ${$this->x4a->x2c59->x3477})); ${$this->xfd->x2c75->x7a78}++; if ($this->{$this->x79->x2c59->{$this->x4a->x2c59->x2ccf}} * ${$this->xfd->x2c75->x7a78} > $this->_counter) ${$this->xfd->x2c59->{$this->x79->x2c59->x34ab}} = $this->_counter; else ${$this->xfd->x2c59->x34aa} = $this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} * ${$this->x4a->x2c59->x3477}; if ($this->_log) Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Fetching products from " . ($this->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x2cd3}}}} * (${$this->x79->x2c75->{$this->xfd->x2c75->x7a7b}} - 1) + 1) . " to " . ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x34ac}}}, null, $this->{$this->x4a->x2c59->x39da}('.log')); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x79d1}}}}} = 1; foreach (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x32e6}}} as $product) { if ($this->_debug) { echo "<br><br>------------ PRODUCT [ SKU -> " . $product->{$this->x4a->x2c59->x5021}() . " | ID -> " . $product->{$this->x79->x2c59->x407f}() . "]---------------<br>"; echo "categories : " . $product->{$this->xfd->x2c59->x58aa}() . ", Root id: " . ${$this->xfd->x2c59->x2ffe} . "<br>"; foreach ($x2791(',', $product->{$this->xfd->x2c59->x58aa}()) as ${$this->x79->x2c59->x30a1} => ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}) { echo ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}} . "=>" . ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"] . "<br>"; } } ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x300a}}}}; foreach (${$this->x4a->x2c75->{$this->x4a->x2c75->x7672}} as ${$this->x79->x2c59->x30a1} => ${$this->x4a->x2c59->x34c4}) { $value = ""; switch (${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['pattern']) { case '{G:ID}': $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); (${$this->x79->x2c75->x7ad1}['options'][0] != "id") ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7aec}} = $item->{$this->x4a->x2c59->x5021}() : ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7aed}}} = $item->{$this->x79->x2c59->x407f}(); $value = "<g:id><![CDATA[" . ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x34e3}}} . "]]></g:id>"; break; case '{G:TITLE}': $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); ${$this->xfd->x2c75->x7af0} = $item->{$this->x79->x2c59->x4986}(); if ($x2a61(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7afe}}}}) > 900) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7afe}}}} = $x2868(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7af9}}}, 0, 150, - 3); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7b08}}}} = $x285d(${$this->x4a->x2c59->{$this->x4a->x2c59->x34e8}}, " "); ${$this->x4a->x2c59->{$this->x4a->x2c59->x34e8}} = $x2868(${$this->x4a->x2c59->{$this->x4a->x2c59->x34e8}}, 0, ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x34f4}}}) . "..."; } $value = "<title><![CDATA[" . ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7af9}}} . "]]></title>"; break; case '{G:DESCRIPTION}': $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x4a->x2c59->x34c4}['reference'], $product); (${$this->x4a->x2c59->x34c4}['options'][0] != "short") ? ${$this->x4a->x2c59->x34fb} = $item->{$this->xfd->x2c59->x5923}() : ${$this->x79->x2c59->{$this->xfd->x2c59->x3500}} = $item->{$this->x4a->x2c59->x5934}(); $value = "<description><![CDATA[" . ${$this->x4a->x2c59->x34fb} . "]]></description>"; break; case '{G:PROMOTION_ID}': $value = ""; ${$this->x4a->x2c59->{$this->xfd->x2c59->x3504}} = clone ${$this->x79->x2c75->x79df}; foreach (${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3507}}} as ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x351a}}}}}) { if (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x351a}}}}}->{$this->x4a->x2c59->x5942}()) { ; ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3529}}}} = $x112c(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3516}}}}->{$this->x4a->x2c59->x594b}()); ${$this->x4a->x2c59->x351f} = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b27}}}}["conditions"]; ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3534}}}} = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x351a}}}}}->{$this->xfd->x2c59->x5964}(); ${$this->xfd->x2c59->{$this->x4a->x2c59->x353c}} = ${$this->xfd->x2c59->x352e}->{$this->x4a->x2c59->x597b}() === 'all'; ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3546}}} = (bool) ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3534}}}}->{$this->x4a->x2c59->x5990}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7b43}} = (${$this->xfd->x2c59->{$this->x4a->x2c59->x353c}}) ? true : false; ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b44}}} = (!$x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3534}}}}->{$this->xfd->x2c59->x5964}())) ? true : ${$this->x4a->x2c75->x7b40}; ${$this->x79->x2c75->x7b52} = 0; foreach (${$this->xfd->x2c59->x352e}->{$this->xfd->x2c59->x5964}() as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b69}}}}) { ${$this->x79->x2c59->{$this->xfd->x2c59->x3571}} = array("salesrule/rule_condition_product_subselect", "salesrule/rule_condition_address"); if (!$x2a1d(${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b69}}}}->{$this->x79->x2c59->x59c5}(), ${$this->x4a->x2c75->x7b70})) { ${$this->xfd->x2c59->{$this->xfd->x2c59->x357a}} = ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b69}}}}->{$this->xfd->x2c59->x59d7}($product); if (${$this->x4a->x2c59->x3537} && ${$this->x4a->x2c75->x7b81} !== ${$this->x79->x2c59->x3540}) { ${$this->x4a->x2c75->x7b40} = false; } elseif (!${$this->xfd->x2c75->{$this->x4a->x2c75->x7b30}} && ${$this->xfd->x2c59->x3576} === ${$this->x79->x2c59->{$this->x4a->x2c59->x3544}}) { ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3554}}} = true; break; } } ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b58}}}++; } ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b90}}}}} = $x112c(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3512}}}->{$this->xfd->x2c59->x59df}()); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7b8c}}}} = ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7b8a}}}["conditions"]; ${$this->x79->x2c75->x7b92} = ${$this->x4a->x2c75->{$this->x4a->x2c75->x7b22}}->{$this->x4a->x2c59->x59ed}(); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7b34}}} = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x358a}}}->{$this->x4a->x2c59->x597b}() === 'all'; ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7b3b}}} = (bool) ${$this->x4a->x2c59->x3587}->{$this->x4a->x2c59->x5990}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7ba2}} = (${$this->xfd->x2c75->{$this->x4a->x2c75->x7b30}}) ? true : false; ${$this->x4a->x2c59->x358e} = (!$x2a4f(${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x358c}}}}->{$this->xfd->x2c59->x5964}())) ? true : ${$this->x4a->x2c75->{$this->x4a->x2c75->x7ba2}}; ${$this->x79->x2c75->x7b52} = 0; foreach (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7b9a}}}}->{$this->xfd->x2c59->x5964}() as ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7bac}}}) { ${$this->x4a->x2c75->x7b81} = ${$this->xfd->x2c59->{$this->x79->x2c59->x359b}}->{$this->xfd->x2c59->x59d7}($product); if (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7b36}}}} && ${$this->x4a->x2c75->x7b81} !== ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3549}}}}}) { ${$this->xfd->x2c75->x7ba1} = false; } elseif (!${$this->xfd->x2c59->{$this->x4a->x2c59->x353c}} && ${$this->xfd->x2c59->x3576} === ${$this->xfd->x2c75->{$this->x4a->x2c75->x7b3a}}) { ${$this->x4a->x2c59->{$this->x4a->x2c59->x3591}} = true; break; } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3560}}}}++; } if (${$this->x4a->x2c59->{$this->x4a->x2c59->x3591}} && ${$this->x4a->x2c75->x7b40}) { $value = "<g:promotion_id><![CDATA[" . ${$this->x4a->x2c75->x7b21}->{$this->x4a->x2c59->x410d}('rule_id') . "]]></g:promotion_id>"; break; } } } break; case "{load_options}": ${$this->x4a->x2c59->{$this->xfd->x2c59->x3223}} = 1; ${$this->x4a->x2c75->x7bb1} = array(); foreach (${$this->x79->x2c75->x7ad1}['options'] as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}) { if (isset(${$this->x79->x2c59->{$this->xfd->x2c59->x33c3}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}}])) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7823}}} = ${$this->xfd->x2c59->x3222} * $x2a4f(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}]["options"]); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bb7}}}[${$this->x4a->x2c75->x7659}] = 0; } } ${$this->xfd->x2c75->x7648} = array(); for (${$this->x79->x2c75->x77eb} = 1; ${$this->x79->x2c59->{$this->x4a->x2c59->x31ea}} <= ${$this->x4a->x2c59->{$this->xfd->x2c59->x3223}}; ${$this->x79->x2c59->x31e5}++) { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7bcb}} = ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}}; foreach (${$this->x79->x2c75->x7ad1}['options'] as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}) { if (isset(${$this->x79->x2c75->x79ba}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}}])) { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7bcb}} = $x29a1("{" . ${$this->xfd->x2c75->{$this->x79->x2c75->x7bc5}} . "_label}", ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c5}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x35ad}]["options"][${$this->x4a->x2c75->x7bb1}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}]]['value'], ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7bd0}}}); ${$this->xfd->x2c75->x7bc9} = $x29a1("{" . ${$this->xfd->x2c75->x7bc0} . "_sku}", ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c5}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}}]["options"][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bb7}}}[${$this->x4a->x2c75->x7659}]]['sku'], ${$this->x79->x2c59->{$this->x4a->x2c59->x35b7}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7bd0}}} = $x29a1("{" . ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}} . "_price}", ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33ca}}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x35ad}]["options"][${$this->x79->x2c75->{$this->x4a->x2c75->x7bb2}}[${$this->x79->x2c59->x30a1}]]['price'], ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x35bc}}}); ${$this->xfd->x2c75->x7bc9} = $x29a1("{" . ${$this->xfd->x2c59->x35ad} . "_type}", ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c5}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}]["options"][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7bbc}}}}[${$this->x79->x2c59->x30a1}]]['getPriceType()'], ${$this->xfd->x2c75->{$this->xfd->x2c75->x7bcb}}); ${$this->x4a->x2c59->x35b5} = $x29a1("{" . ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}} . "_id}", ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}}]["options"][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7bbc}}}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}}]]['id'], ${$this->xfd->x2c75->x7bc9}); if (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} > 0 || $x2a4f(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c7}}}}[$product->{$this->x79->x2c59->x407f}()]) == 1 || $x2a4f(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options']) < 2) ${$this->x4a->x2c75->x7bb1}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}] ++; if (${$this->x4a->x2c75->x7bb1}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}] >= $x2a4f(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7bc8}}}]["options"])) { ${$this->x4a->x2c59->x35a7}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}] = 0; ${$this->x4a->x2c75->x7bb1}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}} - 1] ++; } } } ${$this->xfd->x2c59->x3090}[] = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x35bc}}}; } if ($x2a4f(${$this->xfd->x2c59->x3090}) > 0) { ${$this->x4a->x2c75->x7ac0} = $x293c("</item>
<item>", ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3093}}}); } break; case "{use_options}": foreach (${$this->x4a->x2c59->x34c4}['options'] as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}) { if (isset(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x33c7}}}}[$product->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x35ad}])) { ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35ca}}} = array(); ${$this->x4a->x2c75->x7be5} = array(); ${$this->x79->x2c75->x7bec} = array(); ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c00}}} = array(); foreach (${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79c3}}}[$product->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x35b3}}}]["options"] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7c0c}}}}}) { ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7be1}}}}}[] = ${$this->xfd->x2c75->x7c02}['value']; ${$this->x79->x2c59->{$this->x79->x2c59->x35d6}}[] = ${$this->x4a->x2c59->x35ef}['sku']; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7bf2}}}}[] = ${$this->x79->x2c75->{$this->x4a->x2c75->x7c04}}['price']; ${$this->x79->x2c75->{$this->x79->x2c75->x7bfd}}[] = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c0b}}}}['id']; } ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7acb}}}} = $x29a1("{" . ${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}} . "_label}", $x293c(',', ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7bdd}}}}), ${$this->x4a->x2c75->x7ac0}); ${$this->x4a->x2c75->x7ac0} = $x29a1("{" . ${$this->xfd->x2c75->{$this->x79->x2c75->x7bc5}} . "_sku}", $x293c(',', ${$this->x79->x2c75->{$this->x79->x2c75->x7be9}}), ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}}); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x34c2}}} = $x29a1("{" . ${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}} . "_price}", $x293c(',', ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35e3}}}), ${$this->xfd->x2c59->x34b8}); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7acf}}}}} = $x29a1("{" . ${$this->xfd->x2c59->x35ad} . "_id}", $x293c(',', ${$this->xfd->x2c59->{$this->x4a->x2c59->x35e8}}), ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}}); } } break; case '{inc}' : $value = ${$this->x4a->x2c59->{$this->x4a->x2c59->x3496}}; break; case '{min_price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8059}}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5aee}(); (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}} = false : ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->xfd->x2c59->x3609} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=( ${$this->xfd->x2c59->x361b}["pricing_value"] / 100) * ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}; } else ${$this->xfd->x2c75->x7c27}+=${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}+=${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}; } } $value = $this->{$this->xfd->x2c75->{$this->xfd->x2c75->x8024}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2ff5}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}}); (!isset(${$this->x79->x2c75->x7ad1}['options'][0])) ? ${$this->x4a->x2c75->x7725} = ${$this->xfd->x2c75->x756a} : ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} = ${$this->x4a->x2c59->x34c4}['options'][0]; $value = $this->{$this->x79->x2c59->{$this->xfd->x2c59->x39ef}}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}}); $value = $x28d7($value, 2, , ''); break; case '{max_price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->{$this->xfd->x2c59->x5b69}(); (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = false : ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->x360e}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}) { if (${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}["is_percent"]) { ${$this->x79->x2c75->{$this->x79->x2c75->x7c2b}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["pricing_value"] / 100) * ${$this->x4a->x2c59->x35fb}; } else ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3616}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}+=${$this->x4a->x2c59->{$this->xfd->x2c59->x360e}}; } } $value = $this->{$this->xfd->x2c59->x39f3}(${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}, ${$this->xfd->x2c75->{$this->x79->x2c75->x759a}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}}); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0])) ? ${$this->x4a->x2c75->x7725} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2fa1}}} : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}} = ${$this->x4a->x2c59->x34c4}['options'][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}}); $value = $x28d7($value, 2, , ''); break; case '{normal_price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->x4a->x2c59->x34c4}['reference'], $product); if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->price; } else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5be5}(); } if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->xfd->x2c59->x361b}["is_percent"]) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["pricing_value"] / 100) * ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}}; } else ${$this->xfd->x2c59->x3609}+=${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c3b}}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}+=${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}; } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = false : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; $value = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x802c}}}}}(${$this->x4a->x2c59->x35fb}, ${$this->x79->x2c59->{$this->x79->x2c59->x2ff0}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}}); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->xfd->x2c75->x756a} : ${$this->x4a->x2c75->x7725} = ${$this->x79->x2c75->x7ad1}['options'][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c75->x7725}); $value = $x28d7($value, 2, , ''); break; case '{price}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5be5}(); } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->price; else { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->{$this->xfd->x2c59->x5be5}(); } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5be5}(); } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->price; } else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5be5}(); } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); } else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x79->x2c75->x7c0d} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5be5}(); } } if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c3b}}}["is_percent"]) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c2e}}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["pricing_value"] / 100) * ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}; } else ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3616}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}+=${$this->xfd->x2c59->x3609}; } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = false : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}} = ${$this->x79->x2c75->x7ad1}['options'][1]; $value = $this->{$this->xfd->x2c59->{$this->xfd->x2c59->x39f6}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x79->x2c59->{$this->x79->x2c59->x2ff0}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->x79->x2c75->x7c1a}); (!isset(${$this->x4a->x2c59->x34c4}["options"][0])) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->xfd->x2c75->{$this->x79->x2c75->x756d}} : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}} = ${$this->x4a->x2c59->x34c4}["options"][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c59->x3121}); $value = $x28d7($value, 2, , ""); break; case "{is_special_price}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); (!isset(${$this->x4a->x2c59->x34c4}["options"][0])) ? ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3549}}}}} = 1 : ${$this->x79->x2c59->x3540} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][0]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][1])) ? ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7c48}}} = 0 : ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3633}}}}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][1]; if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0 ) ? $value = ${$this->x4a->x2c75->x7b38} : $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x362d}}}; else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? $value = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3546}}} : $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x362e}}}}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } else { $value = ${$this->xfd->x2c59->x3629}; } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0 ) ? $value = ${$this->x4a->x2c75->x7b38} : $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? $value = ${$this->x4a->x2c75->x7b38} : $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x362d}}}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { $value = ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x362d}}}; } else { $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0 ) ? $value = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3549}}}}} : $value = ${$this->x79->x2c59->{$this->x4a->x2c59->x362b}}; } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? $value = ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7b3d}}}} : $value = ${$this->x4a->x2c75->x7c42}; } } break; case "{special_price}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x79->x2c75->x7ad1}['reference'], $product); ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = null; if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x79->x2c75->x7c0d} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x79->x2c75->x7c0d} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}(); } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = false : ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; if (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} > 0) { if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["is_percent"]) { ${$this->xfd->x2c75->x7c27}+=( ${$this->x79->x2c75->{$this->x4a->x2c75->x7c3a}}["pricing_value"] / 100) * ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}; } else ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7c3e}}}}["pricing_value"]; }; ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}+=${$this->x79->x2c75->{$this->x79->x2c75->x7c2b}}; } } $value = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x8029}}}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2ff5}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c1d}}); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} = ${$this->x79->x2c59->{$this->x4a->x2c59->x2f9d}} : ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->x4a->x2c59->x34c4}['options'][0]; $value = $this->{$this->x79->x2c59->{$this->xfd->x2c59->x39ef}}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}}); $value = $x28d7($value, 2, , ''); ; } else { $value = ""; } break; case '{price_rules}' : $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); ${$this->xfd->x2c59->x2f75} = $this->{$this->x4a->x2c59->x43a6}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7c50}} = Mage::$xad04('catalogrule/rule'); ${$this->x79->x2c75->{$this->x79->x2c75->x7c65}} = Mage::$xb74b()->{$this->x79->x2c59->x6342}()->{$this->xfd->x2c59->x634b}(${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}); ${$this->x4a->x2c75->x7c67} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}); ${$this->x79->x2c59->{$this->xfd->x2c59->x3650}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x3648}}->{$this->xfd->x2c59->x5786}(); ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x365c}}}}} = Mage::$xb6f6('customer/session')->{$this->xfd->x2c59->x6395}(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3668}}}} = ${$this->xfd->x2c75->x7c4f}->{$this->x79->x2c59->x63a8}(${$this->x4a->x2c59->{$this->x4a->x2c59->x3641}}, ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c6e}}, ${$this->xfd->x2c59->x3653}, $item->{$this->x79->x2c59->x407f}()); if (${$this->x4a->x2c59->{$this->x4a->x2c59->x3662}} !== false) { ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}} = $x1ab4('%.2f', $x1ab8(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3664}}}, 2)); } else { ${$this->xfd->x2c75->x7c89} = $item->{$this->xfd->x2c59->x5be5}(); } if ($item->{$this->xfd->x2c59->x5c84}() && !$item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s")) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x4a->x2c59->x35fb} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x79->x2c75->x7c0d} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = ${$this->x4a->x2c59->x366f}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") ${$this->x4a->x2c59->x35fb} = $item->price; else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}}; } } } elseif ($item->{$this->xfd->x2c59->x5c84}() && $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->xfd->x2c59->x5c84}() <= $x18c7("Y-m-d H:i:s") && $x18c7("Y-m-d H:i:s") < $item->{$this->x4a->x2c59->x5c90}()) { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x4a->x2c59->x35fb} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c59->x35fb} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = ${$this->x4a->x2c59->x366f}; } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->price; else { ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} = ${$this->xfd->x2c75->x7c89}; } } } else { if ($item->{$this->x4a->x2c59->x5b00}() == "bundle") { if (($item->{$this->xfd->x2c59->x5cbb}() || (!$item->{$this->xfd->x2c59->x5cbb}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->price)) && $item->{$this->xfd->x2c59->x5cd5}() > 0) { if ($item->{$this->xfd->x2c59->x5cbb}()) ${$this->x4a->x2c59->x35fb} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->price; } } else { ($item->{$this->xfd->x2c59->x5cd5}() && $item->{$this->xfd->x2c59->x5cd5}() < $item->{$this->xfd->x2c59->x5be5}()) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $item->{$this->xfd->x2c59->x5cd5}() : ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}}; } } if (${$this->xfd->x2c59->{$this->x4a->x2c59->x3671}} !== FALSE) { if (${$this->x79->x2c75->{$this->x4a->x2c75->x7c8d}} < ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}) $value = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3673}}}; else $value = ${$this->x4a->x2c59->x35fb}; } else $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}; if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3616}}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3624}}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=( ${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"] / 100) * ${$this->x79->x2c75->x7c0d}; } else ${$this->xfd->x2c59->x3609}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x79->x2c75->x7c0d}+=${$this->xfd->x2c75->x7c27}; } } (!isset(${$this->x79->x2c75->x7ad1}['options'][1])) ? ${$this->xfd->x2c59->{$this->x79->x2c59->x3604}} = false : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; $value = $this->{$this->x79->x2c75->x8023}(${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}, ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x2ff5}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}}); (!isset(${$this->x4a->x2c59->x34c4}["options"][0])) ? ${$this->x4a->x2c75->x7725} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2fa1}}} : ${$this->x4a->x2c75->x7725} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][0]; $value = $this->{$this->x79->x2c59->x39ea}($value, ${$this->x4a->x2c75->x7725}); $value = $x28d7($value, 2, , ""); break; case '{G:PRICE}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle') ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x35fe}}} = $item->price; else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5be5}(); } if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7c30}}}} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x4a->x2c75->x7c35}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}+=( ${$this->x4a->x2c75->x7c35}["pricing_value"] / 100) * ${$this->x79->x2c75->x7c0d}; } else ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}+=${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c32}}}}}; } } (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}} = false : ${$this->x4a->x2c59->x3602} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; $value = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x8029}}}}(${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}}, ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x759d}}}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3607}}}); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x4a->x2c59->x3121} = ${$this->xfd->x2c75->{$this->x79->x2c75->x756d}} : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]; $value = $this->{$this->x4a->x2c75->x801c}($value, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}}); $value = $x28d7($value, 2, , ''); $value = "<g:price><![CDATA[" . $value . " " . ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} . "]]></g:price>"; break; case "{G:SALE_PRICE}" : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}} = $this->{$this->x4a->x2c59->x43a6}(); ${$this->xfd->x2c75->x7c4f} = Mage::$xad04('catalogrule/rule'); ${$this->x79->x2c75->x7c60} = Mage::$xb74b()->{$this->x79->x2c59->x6342}()->{$this->xfd->x2c59->x634b}(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}); ${$this->x4a->x2c75->x7c67} = Mage::$xb74b()->{$this->x4a->x2c59->x4443}(${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}); ${$this->x4a->x2c59->x364b} = ${$this->x79->x2c59->x3643}->{$this->xfd->x2c59->x5786}(); ${$this->x4a->x2c75->{$this->xfd->x2c75->x7c76}} = Mage::$xb6f6('customer/session')->{$this->xfd->x2c59->x6395}(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3668}}}} = ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7c5b}}}}}->{$this->x79->x2c59->x63a8}(${$this->x79->x2c75->x7c60}, ${$this->x79->x2c59->{$this->xfd->x2c59->x3650}}, ${$this->xfd->x2c59->{$this->xfd->x2c59->x3655}}, $item->{$this->x79->x2c59->x407f}()); if (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x366c}}}}} !== false) ${$this->x4a->x2c59->x366f} = $x1ab4('%.2f', $x1ab8(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3668}}}}, 2)); ${$this->xfd->x2c59->{$this->x4a->x2c59->x3681}} = Mage::$xb6f6('core/date')->{$this->x4a->x2c59->x6810}("hours"); if (${$this->xfd->x2c59->{$this->x4a->x2c59->x3681}} > 0) { ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7c9d}}} = "+"; ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7ca9}}}} = $x1afc($x1b09($x1b05(${$this->x79->x2c59->x367d})), 2, 0, STR_PAD_LEFT) . '' . $x1afc(($x1b09(${$this->xfd->x2c59->{$this->x4a->x2c59->x3681}}) - $x1b05($x1b09(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3683}}}))) * 60, 2, 0, STR_PAD_LEFT); } else { ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c9b}} = "-"; ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7ca9}}}} = $x1afc($x1b09($x1b05(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3683}}})), 2, 0, STR_PAD_LEFT) . '' . $x1afc(($x1b09(${$this->xfd->x2c75->{$this->x4a->x2c75->x7c93}}) - $x1b05($x1b09(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3683}}}))) * 60, 2, 0, STR_PAD_LEFT); } ${$this->x4a->x2c75->x7cb0} = $x2868($x29a1(' ', 'T', $item->{$this->xfd->x2c59->x5c84}()), 0, -3); ${$this->x79->x2c75->{$this->x79->x2c75->x7cb9}} = $x2868($x29a1(' ', 'T', $item->{$this->x4a->x2c59->x5c90}()), 0, -3); if ($item->{$this->x4a->x2c59->x5b00}() == 'bundle' && $item->{$this->xfd->x2c59->x5cd5}()) { if ($item->{$this->xfd->x2c59->x5cbb}()) { ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $x28d7($item->price * $item->{$this->xfd->x2c59->x5cd5}() / 100, 2, , ""); } else { ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} = $item->{$this->xfd->x2c59->x5cd5}(); } } else { ${$this->x79->x2c75->x7c0d} = $item->{$this->xfd->x2c59->x5cd5}(); } (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1])) ? ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c1d}} = false : ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7c20}}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; if (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3678}}}} < ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}} && ${$this->x79->x2c75->{$this->x4a->x2c75->x7c83}} !== false) ${$this->x4a->x2c59->x35fb} = ${$this->x79->x2c75->{$this->x4a->x2c75->x7c8d}}; if (${$this->x79->x2c75->x7c0d} > 0) { if ($item->{$this->x4a->x2c59->x5b00}() == "configurable") { if (isset($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()])) { ${$this->xfd->x2c75->x7c27} = 0; foreach ($this->configurablePrices[$item->{$this->x79->x2c59->x407f}()][$product->{$this->x79->x2c59->x407f}()] as ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c3b}}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3622}}}["is_percent"]) { ${$this->x4a->x2c59->{$this->xfd->x2c59->x360e}}+=( ${$this->x79->x2c75->{$this->x4a->x2c75->x7c3a}}["pricing_value"] / 100) * ${$this->xfd->x2c59->{$this->x4a->x2c59->x35fc}}; } else ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7c30}}}}+=${$this->x79->x2c59->{$this->xfd->x2c59->x361d}}["pricing_value"]; }; ${$this->x79->x2c75->x7c0d}+=${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3613}}}; } } ${$this->x79->x2c75->x7c0d} = $this->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x802c}}}}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->xfd->x2c75->x7596}, $item->{$this->x4a->x2c59->x5b43}(), ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7c25}}}}); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0])) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x3125}} = ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2fa3}}}} : ${$this->x4a->x2c59->x3121} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; ${$this->x79->x2c75->x7c0d} = $this->{$this->x4a->x2c75->{$this->x4a->x2c75->x801e}}(${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}}, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x772b}}}); ${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} = $x28d7(${$this->x4a->x2c59->x35fb}, 2, , ''); ; } if (${$this->x4a->x2c75->{$this->x79->x2c75->x7c12}} > 0) { $value = "<g:sale_price><![CDATA[" . ${$this->x79->x2c75->x7c0d} . " " . ${$this->x4a->x2c75->{$this->x79->x2c75->x7726}} . "]]></g:sale_price>
"; } if (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7c17}}} > 0 && ${$this->xfd->x2c59->{$this->x4a->x2c59->x36a3}}) { $value.="<g:sale_price_effective_date><![CDATA[" . ${$this->x4a->x2c75->x7cb0} . ${$this->xfd->x2c75->{$this->x4a->x2c75->x7c9b}} . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ca8}}} . "/" . ${$this->x4a->x2c75->x7cb7} . ${$this->x4a->x2c59->{$this->xfd->x2c59->x368c}} . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ca8}}} . "]]></g:sale_price_effective_date>
"; } break; case "{image}" : $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x79->x2c75->x7ad1}['reference'], $product); ${$this->x79->x2c75->{$this->x79->x2c75->x7cbe}} = $item->{$this->x79->x2c59->x68f1}(); if (!isset(${$this->x79->x2c75->x7ad1}['options'][0]) || ${$this->x79->x2c75->x7ad1}['options'][0] == 0) { if ($item->{$this->x79->x2c59->x68f1}() && $item->{$this->x79->x2c59->x68f1}() != 'no_selection') { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}} = 'catalog/product/' . $item->{$this->x79->x2c59->x68f1}(); $value = ${$this->x4a->x2c59->{$this->xfd->x2c59->x2fe6}} . $x29a1('//', '/', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36bf}}}}); } else { $value = ${$this->x4a->x2c59->x2fe2} . '/catalog/product/placeholder/' . ${$this->x79->x2c75->{$this->xfd->x2c75->x755e}}; } } elseif (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7873}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] - 1]) && ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] > 0) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3272}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0] - 1] != ${$this->x79->x2c75->{$this->x79->x2c75->x7cbe}}) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36bd}}} = 'catalog/product/' . ${$this->x4a->x2c59->{$this->x4a->x2c59->x326a}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] - 1]; $value = ${$this->x4a->x2c59->x2fe2} . $x29a1('//', '/', ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}}); } } break; case "{G:IMAGE_LINK}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); ${$this->x4a->x2c59->{$this->x79->x2c59->x36b1}} = $item->{$this->x79->x2c59->x68f1}(); ${$this->xfd->x2c75->{$this->x79->x2c75->x7cd1}} = array($item->{$this->x4a->x2c59->x6973}(), $item->{$this->xfd->x2c59->x6983}()); ${$this->x79->x2c59->x36ca} = ''; ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bbe}}}}} = 0; if ($item->{$this->x79->x2c59->x68f1}() && $item->{$this->x79->x2c59->x68f1}() != 'no_selection') { ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}} = 'catalog/product/' . $item->{$this->x79->x2c59->x68f1}(); $value = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2fea}}}} . $x29a1('//', '/', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36bf}}}}); ${$this->x79->x2c59->x36ca}.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; ${$this->x4a->x2c59->x35a7}++; } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3560}}}} = 0; while (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x786e}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->{$this->xfd->x2c75->x7b55}}]) && ${$this->x79->x2c75->{$this->x4a->x2c75->x7bb2}} < 10) { if (${$this->x79->x2c75->{$this->x79->x2c75->x786a}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->x3556}] != ${$this->x79->x2c59->x36ae}) { if ($x2a1d(${$this->x79->x2c59->x3269}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->{$this->xfd->x2c75->x7b55}}], ${$this->xfd->x2c75->{$this->x79->x2c75->x7cd1}}) || ${$this->x79->x2c75->{$this->x79->x2c75->x786a}}[$item->{$this->x79->x2c59->x407f}()]['disabled'][${$this->x79->x2c75->x7b52}] != 1) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36bd}}} = 'catalog/product/' . ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x326f}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x79->x2c75->x7b52}]; $value = ${$this->xfd->x2c75->x758c} . $x29a1('//', '/', ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36bf}}}}); ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7cdc}}}.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; ${$this->x4a->x2c75->x7bb1}++; } } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}}++; } $value = ${$this->x79->x2c59->x36ca}; break; case "{G:LINK}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { if (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 2) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}} . $x1dcf(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7ced}}}}}); } elseif (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 3) { ${$this->x79->x2c59->x36d3} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->xfd->x2c75->{$this->x4a->x2c75->x758a}} . $x2441(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7cec}}}}); } else $value = ${$this->xfd->x2c75->{$this->x4a->x2c75->x758a}} . $item->{$this->xfd->x2c59->x69fd}(); } else { $value = $item->{$this->x79->x2c59->x6a53}(); } $value = "<link><![CDATA[" . $value . "]]></link>"; break; case "{url}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { if (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 2) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->x79->x2c59->{$this->xfd->x2c59->x36d7}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}} . $x1dcf(${$this->x79->x2c59->x36d3}); } elseif (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 3) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7ced}}}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7cec}}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = ${$this->xfd->x2c59->x2fda} . $x2441(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}}); } else $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}} . $item->{$this->xfd->x2c59->x69fd}(); } else { $value = $item->{$this->x79->x2c59->x6a53}(); } break; case "{host}" : $value = ${$this->x4a->x2c59->{$this->x79->x2c59->x2fdf}}; break; case "{uri}" : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->x4a->x2c59->x34c4}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { if (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 2) { ${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->x79->x2c59->{$this->xfd->x2c59->x36d7}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = $x1dcf(${$this->xfd->x2c75->{$this->x4a->x2c75->x7ce3}}); } elseif (Mage::$xb83a("simplegoogleshopping/system/urlrewrite") == 3) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7ced}}}}} = $x2791(",", $item->{$this->xfd->x2c59->x69fd}()); $x242b(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7cec}}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); $value = $x2441(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7ce8}}}); } else $value = $item->{$this->xfd->x2c59->x69fd}(); } else { $value = $x29a1(${$this->xfd->x2c59->x2fda}, '', $item->{$this->x79->x2c59->x6a53}()); } break; case '{G:AVAILABILITY}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8059}}}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0])) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x36e1}}} = 'in stock' : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x36e1}}} = ${$this->x79->x2c75->x7ad1}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1])) ? ${$this->xfd->x2c75->x7cf1} = "out of stock" : ${$this->x4a->x2c75->{$this->xfd->x2c75->x7cf4}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][2])) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x36f5}} = "preorder" : ${$this->xfd->x2c75->x7d02} = ${$this->x79->x2c75->x7ad1}['options'][2]; if (($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}() && !${$this->x4a->x2c75->x756e}) || ($item->{$this->x4a->x2c59->x6b3d}() && ${$this->x4a->x2c59->x2fac} ) || ($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}())) { if ($item->{$this->x79->x2c59->x6b71}() > 0) { if ($product->{$this->x4a->x2c59->x5b00}() == "configurable") ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3701}}}} = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x790d}}}[$product->{$this->x79->x2c59->x407f}()]; else ${$this->xfd->x2c59->{$this->x79->x2c59->x36fb}} = $item->{$this->xfd->x2c59->x50f2}(); if (${$this->xfd->x2c59->{$this->x79->x2c59->x36fb}} > 0) { $value = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36e8}}}}}; } else { if ($item->{$this->x79->x2c59->x6b97}() || ($item->{$this->xfd->x2c59->x6ba0}() && ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x2fc0}}}})) { $value = ${$this->xfd->x2c75->x7d02}; } else { $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7cfe}}}}}; } } } else $value = ${$this->xfd->x2c59->x36eb}; } else { $value = ${$this->x4a->x2c75->x7cef}; } $value = "<g:availability><![CDATA[" . $value . "]]></g:availability>"; break; case '{is_in_stock}' : $item = $this->{$this->xfd->x2c59->x3a10}(${$this->x79->x2c75->x7ad1}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->x7cf0}} = 'in stock' : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36e8}}}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1])) ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x36f0}} = "out of stock" : ${$this->xfd->x2c59->x36eb} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; (!isset(${$this->x79->x2c75->x7ad1}['options'][2])) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x36f5}} = "preorder" : ${$this->x79->x2c75->{$this->xfd->x2c75->x7d03}} = ${$this->x79->x2c75->x7ad1}['options'][2]; if (($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}() && !${$this->x4a->x2c59->x2fac}) || ($item->{$this->x4a->x2c59->x6b3d}() && ${$this->x4a->x2c75->x756e} ) || ($item->{$this->x79->x2c59->x6b33}() && !$item->{$this->x4a->x2c59->x6b3d}())) { if ($item->{$this->x79->x2c59->x6b71}() > 0) { if ($product->{$this->x4a->x2c59->x5b00}() == "configurable") ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3701}}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x3310}}[$product->{$this->x79->x2c59->x407f}()]; else ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x36fe}}} = $item->{$this->xfd->x2c59->x50f2}(); if (${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3701}}}} > 0) { $value = ${$this->xfd->x2c59->x36db}; } else { if ($item->{$this->x79->x2c59->x6b97}() || ($item->{$this->xfd->x2c59->x6ba0}() && ${$this->x79->x2c59->x2fb6})) { $value = ${$this->x79->x2c75->{$this->xfd->x2c75->x7d03}}; } else { $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7cfe}}}}}; } } } else $value = ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7cfe}}}}}; } else { $value = ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x36e1}}}; } break; case '{stock_status}' : $item = $this->{$this->xfd->x2c75->x804c}(${$this->x4a->x2c59->x34c4}['reference'], $product); ($item->{$this->xfd->x2c59->x6c4a}() > 0) ? $value = 'in stock' : $value = 'out of stock'; break; case '{qty}' : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->x4a->x2c59->x34c4}['options'][0])) ? ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3710}}} = 0 : ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3710}}} = ${$this->x4a->x2c59->x34c4}['options'][0]; if ($product->{$this->x4a->x2c59->x5b00}() == "configurable") { $value = ${$this->x4a->x2c75->x790a}[$product->{$this->x79->x2c59->x407f}()]; $value = $x28d7($value, ${$this->x79->x2c59->x3706}, , ''); } else if (${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'] == "configurable") { $value = $x28d7(${$this->x79->x2c59->x330b}[$item->{$this->x79->x2c59->x407f}()], ${$this->x4a->x2c59->{$this->x79->x2c59->x370b}}, , ''); } else { $value = $x28d7($item->{$this->xfd->x2c59->x50f2}(), ${$this->xfd->x2c75->x7d07}, , ''); } break; case "{categories_v1}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]) || !${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] || ${$this->x79->x2c75->x7ad1}['options'][0] == 'INF') ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} = INF : ${$this->x79->x2c59->x3711} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1])) ? ${$this->x4a->x2c59->{$this->x4a->x2c59->x3719}} = 1 : ${$this->xfd->x2c75->{$this->xfd->x2c75->x7d17}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2]) || !${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2] || ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] == 'INF') ? ${$this->x4a->x2c59->{$this->xfd->x2c59->x3721}} = INF : ${$this->xfd->x2c75->{$this->x4a->x2c75->x7d21}} = ${$this->x79->x2c75->x7ad1}['options'][2]; ${$this->x4a->x2c75->{$this->xfd->x2c75->x7d2f}} = 0; $value = ''; ${$this->xfd->x2c75->{$this->x4a->x2c75->x7d3c}} = ''; foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}) { (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x373c}}}} = $x2a1d(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}) : ${$this->x79->x2c59->x3736} = !$x2a1d(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"], ${$this->xfd->x2c75->{$this->x4a->x2c75->x75f3}}); if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x76bb}]) && ${$this->x4a->x2c75->{$this->xfd->x2c75->x7d2f}} < ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d12}}} && (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x373c}}}} || ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3048}}}}[0] == "*")) { ${$this->x4a->x2c75->x7d45} = 0; ${$this->x4a->x2c59->x3750} = $x2791('/', ${$this->x4a->x2c59->x30d5}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"]); if ($x2a1d(${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3000}}}, ${$this->x4a->x2c59->x3750})) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d6d}}}} = ""; if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3729}}} > 0) ${$this->xfd->x2c75->{$this->x4a->x2c75->x7d3c}} = ","; foreach (${$this->x4a->x2c59->x3750} as ${$this->x79->x2c59->{$this->x4a->x2c59->x375e}}) { if (isset(${$this->x79->x2c75->x76aa}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}])) { if (${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c75->x7d71}]['level'] > ${$this->x4a->x2c59->x3716} && ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x374d}}}} < ${$this->x79->x2c59->x371e}) { if (${$this->xfd->x2c59->x3740} > 0) ${$this->x4a->x2c59->x3759}.='>'; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d69}}}.=(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}]['name']); ${$this->x79->x2c59->{$this->xfd->x2c59->x3745}}++; } } } ${$this->x79->x2c59->{$this->x79->x2c59->x3760}} = ""; if (!empty(${$this->x79->x2c75->x7d61})) { $value.=${$this->xfd->x2c75->{$this->x4a->x2c75->x7d3c}} . ${$this->x79->x2c59->{$this->x4a->x2c59->x375c}} . ${$this->x79->x2c75->x7d76}; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3729}}}++; } } } }; break; case "{categories}" : ${$this->xfd->x2c59->x3767} = null; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d12}}} = INF; ${$this->x4a->x2c59->x3716} = 1; ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7d9a}}}} = INF; ${$this->x79->x2c59->x3778} = ', '; ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7daf}}} = " > "; if ($x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options']) == 1) { (!isset(${$this->x79->x2c75->x7ad1}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7d8c}}} = "last" : ${$this->xfd->x2c75->x7d86} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d12}}} = 1; } elseif ($x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options']) == 2) { (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0])) ? ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x377c}}} = ', ' : ${$this->x79->x2c59->x3778} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->xfd->x2c75->{$this->x79->x2c75->x7dae}} = " > " : ${$this->xfd->x2c75->x7daa} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][1]; } elseif ($x2a4f(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options']) > 2) { (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0]) || !${$this->x79->x2c75->x7ad1}['options'][0] || ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] == 'INF') ? ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} = INF : ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} = ${$this->x4a->x2c59->x34c4}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1])) ? ${$this->x4a->x2c59->x3716} = 1 : ${$this->xfd->x2c75->{$this->xfd->x2c75->x7d17}} = ${$this->x4a->x2c59->x34c4}['options'][1]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] || ${$this->x4a->x2c59->x34c4}['options'][2] == 'INF') ? ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7d9a}}}} = INF : ${$this->x4a->x2c59->{$this->xfd->x2c59->x376e}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][3])) ? ${$this->x79->x2c59->x3778} = ', ' : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7da7}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][3]; (!isset(${$this->x79->x2c75->x7ad1}['options'][4])) ? ${$this->x79->x2c59->{$this->x4a->x2c59->x3782}} = " > " : ${$this->x79->x2c59->{$this->x4a->x2c59->x3782}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][4]; } $item = $this->{$this->xfd->x2c59->x3a10}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c75->{$this->xfd->x2c75->x7cc7}} = 0; ${$this->x79->x2c75->x7db5} = array(); foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}} => ${$this->x79->x2c75->x76bb}) { (${$this->x79->x2c75->{$this->x4a->x2c75->x75df}}) ? ${$this->x79->x2c59->x3736} = $x2a1d(@${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"], ${$this->x79->x2c75->x75ef}) : ${$this->xfd->x2c59->{$this->xfd->x2c59->x3739}} = !$x2a1d(@${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->x3040}}); if (isset(${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->xfd->x2c59->x30d8}]) && (${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x373a}}} || ${$this->x79->x2c59->x303d}[0] == "*")) { ${$this->x79->x2c59->x36b5}++; ${$this->x79->x2c59->{$this->xfd->x2c59->x378c}}[${$this->x79->x2c59->x36b5}] = array(); ${$this->x4a->x2c59->{$this->x4a->x2c59->x3752}} = $x2791('/', ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"]); if ($x2a1d(${$this->x4a->x2c75->x75a5}, ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3754}}})) { foreach (${$this->x79->x2c75->{$this->x4a->x2c75->x7d56}} as ${$this->xfd->x2c59->x375d}) { if (isset(${$this->x79->x2c75->x76aa}[${$this->xfd->x2c59->x375d}]) && ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c59->x375d}]['name'] != null) { ${$this->x79->x2c75->x7db5}[${$this->xfd->x2c75->x7cc3}][] = (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}]['name']); } } } } } ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7dca}}} = array(); $x242b(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7dbe}}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmpArray')); if (${$this->xfd->x2c75->x7d86} == "last") ${$this->x79->x2c59->{$this->xfd->x2c59->x378c}} = $x2438(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x378e}}}); $item->{$this->xfd->x2c59->x6ce1}(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7dbb}}}); ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x379e}}} = 0; foreach (${$this->x79->x2c75->x7db5} as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}} => ${$this->x79->x2c59->{$this->xfd->x2c59->x3745}}) { if (${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x379e}}} < ${$this->x79->x2c75->{$this->x79->x2c75->x7d10}}) { foreach (${$this->x4a->x2c75->x7d45} as ${$this->x79->x2c75->x7dd6} => ${$this->x79->x2c59->x37aa}) { if (${$this->x4a->x2c59->{$this->x79->x2c59->x37a5}} >= ${$this->x4a->x2c59->x3716} && ${$this->x79->x2c75->x7dd6} <= ${$this->x4a->x2c75->x7d92}) { if (!isset(${$this->x4a->x2c59->{$this->x79->x2c59->x3796}}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7dd5}}}}])) ${$this->x4a->x2c59->{$this->x79->x2c59->x3796}}[${$this->x4a->x2c75->x7dcf}] = array(); ${$this->x4a->x2c75->x7dc0}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7dd3}}}][] .= ${$this->x4a->x2c59->{$this->xfd->x2c59->x37ad}}; } } if ($x2a4f(${$this->x4a->x2c59->{$this->x79->x2c59->x3796}}[${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7dd3}}}])) ${$this->x4a->x2c59->{$this->xfd->x2c59->x379c}}++; } }; $value = null; foreach ($x23c5(${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}}) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7663}}}}} => ${$this->x4a->x2c75->{$this->x79->x2c75->x7dde}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} > 0) $value.=${$this->x4a->x2c75->x7da0}; $value.=$x293c(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7daf}}}, ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7de2}}}); } break; case "{G:PRODUCT_TYPE_v1}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); (!isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] || ${$this->x79->x2c75->x7ad1}['options'][0] == 'INF') ? ${$this->x79->x2c75->{$this->x79->x2c75->x7d10}} = INF : ${$this->x79->x2c59->x3711} = ${$this->x79->x2c75->x7ad1}['options'][0]; (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][1])) ? ${$this->x4a->x2c75->x7d16} = 1 : ${$this->x4a->x2c59->x3716} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1]; (!isset(${$this->x4a->x2c59->x34c4}['options'][2]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] || ${$this->x4a->x2c59->x34c4}['options'][2] == 'INF') ? ${$this->x79->x2c59->x371e} = INF : ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7d23}}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][2]; ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x372c}}}}} = 0; $value = ''; foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}} => ${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}) { (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x373f}}}}} = $x2a1d(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3045}}}) : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x373a}}} = !$x2a1d(${$this->x79->x2c75->x76aa}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"], ${$this->x79->x2c59->x303d}); if (@${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["include_in_menu"] && isset(${$this->x4a->x2c59->x30d5}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]) && ${$this->x4a->x2c75->{$this->xfd->x2c75->x7d2f}} < ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}} && (${$this->xfd->x2c75->x7d3e} || ${$this->x79->x2c59->x303d}[0] == "*")) { ${$this->x79->x2c59->{$this->xfd->x2c59->x3745}} = 0; ${$this->x4a->x2c75->x7d53} = $x2791('/', ${$this->x79->x2c75->x76aa}[${$this->xfd->x2c59->x30d8}]["path"]); if ($x2a1d(${$this->x4a->x2c75->x75a5}, ${$this->x4a->x2c75->x7d53})) { ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d6d}}}} = ''; ${$this->x79->x2c59->{$this->x79->x2c59->x3733}} = '<g:product_type><![CDATA['; foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7d5c}}}} as ${$this->xfd->x2c59->x375d}) { if (isset(${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c59->{$this->x4a->x2c59->x375e}}])) { if (${$this->x4a->x2c59->x30d5}[${$this->x79->x2c59->{$this->x4a->x2c59->x375e}}]['level'] > ${$this->x4a->x2c59->x3716} && ${$this->x4a->x2c75->x7d45} < ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d28}}}}}) { if (${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x374e}}}}} > 0) ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7d70}}}}}.=' > '; ${$this->x79->x2c59->{$this->x4a->x2c59->x375c}}.=(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x7d71}]['name']); ${$this->x4a->x2c75->{$this->x4a->x2c75->x7d49}}++; } } } ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7d82}}}}} = "]]></g:product_type>
"; if (!empty(${$this->x79->x2c59->{$this->x4a->x2c59->x375c}})) { $value.=${$this->x79->x2c59->{$this->x79->x2c59->x3733}} . ${$this->x79->x2c75->{$this->x4a->x2c75->x7d64}} . ${$this->x79->x2c59->{$this->x79->x2c59->x3760}}; ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7d38}}}}}++; } } } }; break; case "{G:PRODUCT_TYPE}" : ${$this->x79->x2c59->{$this->xfd->x2c59->x377a}} = "]]></g:product_type>
<g:product_type><![CDATA["; ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7db3}}}} = " > "; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0]) || !${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] || ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0] == 'INF') ? ${$this->x79->x2c75->{$this->x79->x2c75->x7d10}} = INF : ${$this->xfd->x2c75->x7d0f} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; (!isset(${$this->x4a->x2c59->x34c4}['options'][1])) ? ${$this->x4a->x2c75->x7d16} = 1 : ${$this->x4a->x2c75->x7d16} = ${$this->x4a->x2c59->x34c4}['options'][1]; (!isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][2]) || !${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][2] || ${$this->x4a->x2c59->x34c4}['options'][2] == 'INF') ? ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3774}}}} = INF : ${$this->x4a->x2c75->{$this->x79->x2c75->x7d95}} = ${$this->x4a->x2c59->x34c4}['options'][2]; $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7ccc}}} = 0; ${$this->x79->x2c75->x7db5} = array(); foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} => ${$this->xfd->x2c59->x30d8}) { (${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3031}}}) ? ${$this->xfd->x2c59->{$this->xfd->x2c59->x3739}} = $x2a1d(@${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]["path"], ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3048}}}}) : ${$this->xfd->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x373a}}} = !$x2a1d(@${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->x79->x2c75->x76bb}]["path"], ${$this->xfd->x2c75->{$this->x4a->x2c75->x75f3}}); if (isset(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x30da}}]) && (${$this->xfd->x2c75->{$this->xfd->x2c75->x7d43}} || ${$this->x4a->x2c59->{$this->xfd->x2c59->x3040}}[0] == "*")) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x36bd}}}++; ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7dbb}}}[${$this->xfd->x2c75->x7cc3}] = array(); ${$this->x79->x2c75->{$this->x4a->x2c75->x7d56}} = $x2791('/', ${$this->x4a->x2c59->{$this->xfd->x2c59->x30d6}}[${$this->x79->x2c75->x76bb}]["path"]); if ($x2a1d(${$this->x4a->x2c75->x75a5}, ${$this->x4a->x2c59->{$this->x4a->x2c59->x3752}})) { foreach (${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7d60}}}}} as ${$this->xfd->x2c59->x375d}) { if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x7d71}]) && ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->xfd->x2c59->x375d}]['name'] != null) { ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7dbe}}}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7ccc}}}][] = (${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x7d74}}]['name']); } } } } } ${$this->x4a->x2c59->{$this->x79->x2c59->x3796}} = array(); $x242b(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7dbb}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmpArray')); foreach (${$this->x79->x2c59->{$this->xfd->x2c59->x378c}} as ${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} => ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x374d}}}}) { if (${$this->x4a->x2c75->x7659} < ${$this->xfd->x2c59->{$this->x4a->x2c59->x3714}}) foreach (${$this->x4a->x2c75->x7d45} as ${$this->x79->x2c75->{$this->xfd->x2c75->x7dd8}} => ${$this->x79->x2c75->x7dd9}) { if (${$this->x79->x2c75->x7dd6} > ${$this->x4a->x2c75->x7d16} && ${$this->xfd->x2c59->x37a1} <= ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7d98}}}) { if (!isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7dca}}}[${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}}])) ${$this->xfd->x2c59->x3793}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x765d}}}] = array(); ${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}}[${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7661}}}}][] .= ${$this->xfd->x2c75->{$this->x79->x2c75->x7dda}}; } } }; $value = null; foreach ($x23c5(${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}}) as ${$this->x79->x2c59->x30a1} => ${$this->x4a->x2c75->{$this->x79->x2c75->x7dde}}) { if (${$this->x79->x2c59->{$this->xfd->x2c59->x30a2}} > 0) $value.=${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7da7}}}; $value.=$x293c(${$this->xfd->x2c75->{$this->x79->x2c75->x7dae}}, ${$this->x79->x2c59->x37b0}); } if ((${$this->x79->x2c75->{$this->x4a->x2c75->x7dc5}})) $value = "<g:product_type><![CDATA[" . $value . "]]></g:product_type>
"; break; case "{G:GOOGLE_PRODUCT_CATEGORY}" : ${$this->x4a->x2c59->x37b9} = array(); (!isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0])) ? ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7d8c}}} = "longest" : ${$this->xfd->x2c59->{$this->x4a->x2c59->x376c}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0]; $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}) { if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x4a->x2c75->{$this->x79->x2c75->x76be}}]["path"]) && isset(${$this->x4a->x2c75->x75f6}[${$this->x79->x2c75->x76aa}[${$this->x79->x2c75->x76bb}]["path"]])) { ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37bc}}}[] = ${$this->xfd->x2c75->{$this->xfd->x2c75->x75fb}}[${$this->xfd->x2c75->{$this->x4a->x2c75->x76ad}}[${$this->x79->x2c75->x76bb}]["path"]]; } } $x242b(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7df5}}}, array('Wyomind_Simplegoogleshopping_Model_Simplegoogleshopping', 'cmp')); if (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7d8c}}} == "shortest") ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37bc}}} = $x2438(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37bc}}}); ${$this->x4a->x2c59->x37c5} = $x2441(${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7df5}}}); if (${$this->x4a->x2c59->{$this->x4a->x2c59->x37c9}} != "") $value = "<g:google_product_category><![CDATA[" . ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7dfd}}} . "]]></g:google_product_category>
"; break; case "{category_mapping}" : (isset(${$this->x79->x2c75->x7ad1}["options"][0])) ? ${$this->x79->x2c59->{$this->x79->x2c59->x37cd}} = ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}["options"][0] : ${$this->x79->x2c75->{$this->x4a->x2c75->x7e02}} = 0; $value = ""; $item = $this->{$this->xfd->x2c59->x3a10}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c75->x7e09} = 0; foreach ($x2791(',', $item->{$this->xfd->x2c59->x58aa}()) as ${$this->xfd->x2c75->{$this->xfd->x2c75->x765b}} => ${$this->xfd->x2c59->x30d8}) { if (isset(${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3055}}}}}[${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x76b2}}}[${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x76c0}}}]["path"]])) { if (${$this->xfd->x2c59->x37d4} == ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x37d0}}}) { $value.=${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3055}}}}}[${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x76b6}}}}[${$this->x79->x2c75->x76bb}]["path"]]; break; } ${$this->xfd->x2c75->x7e09}++; } } break; case "{review_count}": $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x8059}}}}(${$this->x4a->x2c59->x34c4}['reference'], $product); $value = ""; (isset(${$this->x4a->x2c59->x34c4}["options"][0]) && ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][0] == "*" ) ? ${$this->x79->x2c75->{$this->x4a->x2c75->x7544}} = 0 : ${$this->x4a->x2c75->x7543} = ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}; if (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}]["count"])) { ${$this->xfd->x2c75->x7e12} = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}]["count"]; if (isset(${$this->xfd->x2c59->x37db})) { $value.=${$this->xfd->x2c75->x7e12}; } } break; case "{review_average}": $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->x8051}}(${$this->x4a->x2c59->x34c4}['reference'], $product); $value = ""; (isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}["options"][0]) && ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}["options"][0] == "*" ) ? ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}} = 0 : ${$this->x4a->x2c75->x7543} = ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}; (!isset(${$this->x79->x2c75->x7ad1}["options"][1]) || !${$this->x4a->x2c59->x34c4}["options"][1]) ? ${$this->x79->x2c59->{$this->xfd->x2c59->x37e8}} = 5 : ${$this->x79->x2c75->{$this->x79->x2c75->x7e1e}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][1]; if (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x783b}}}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x4a->x2c75->x7543}]["score"])) { ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e33}}}} = $x28d7(${$this->x4a->x2c75->x782b}[$item->{$this->x79->x2c59->x407f}()][${$this->xfd->x2c59->x2f75}]["score"] * ${$this->x79->x2c75->{$this->x79->x2c75->x7e1e}} / 100, 2, , ""); if (isset(${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37f2}}})) { $value.=${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e33}}}}; } } break; case "{G:PRODUCT_REVIEW}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); (isset(${$this->x4a->x2c59->x34c4}["options"][0]) && ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}["options"][0] == "*" ) ? ${$this->x4a->x2c75->x7543} = 0 : ${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}} = ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}; (!isset(${$this->x79->x2c75->x7ad1}["options"][1]) || !${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}["options"][1]) ? ${$this->xfd->x2c75->x7e1d} = 5 : ${$this->xfd->x2c75->x7e1d} = ${$this->x4a->x2c59->x34c4}["options"][1]; $value = ""; if (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}]["count"])) { ${$this->xfd->x2c75->x7e12} = ${$this->xfd->x2c59->x3229}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x2f7e}}}]["count"]; ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x37f3}}}} = $x28d7(${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7831}}}[$item->{$this->x79->x2c59->x407f}()][${$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7546}}}]["score"] * ${$this->x79->x2c75->{$this->x79->x2c75->x7e1e}} / 100, 2, , ""); } if (isset(${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37f2}}}) && ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e33}}}} > 0) { $value.="<g:product_review_average><![CDATA[" . ${$this->x4a->x2c59->x37ec} . "]]></g:product_review_average>
"; } if (isset(${$this->xfd->x2c59->{$this->x4a->x2c59->x37e0}}) && ${$this->xfd->x2c59->{$this->x4a->x2c59->x37e0}} > 0) { $value.="<g:product_review_count><![CDATA[" . ${$this->xfd->x2c75->x7e12} . "]]></g:product_review_count>
"; } unset(${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x37f2}}}); unset(${$this->xfd->x2c75->x7e12}); break; case "{G:ITEM_GROUP_ID}" : if (isset($this->configurable[$product->{$this->x79->x2c59->x407f}()])) { $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}('configurable', $product); $value = "<g:item_group_id><![CDATA[" . $item->{$this->x4a->x2c59->x5021}() . "]]></g:item_group_id>"; } break; case "{SC:EAN}" : ($x2594(${$this->x79->x2c75->x7ad1}['options'][0]) && ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][0] > 0) ? ${$this->x79->x2c59->{$this->x4a->x2c59->x37f9}} = ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][0] : ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7e38}}} = 0; $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['reference'], $product); $value = $x2791(',', $item->{$this->x4a->x2c59->x6e37}()); $value = "<g:ean><![CDATA[" . $value[${$this->x4a->x2c75->{$this->x79->x2c75->x7e37}}] . "]]></g:ean>"; break; case "{SC:IMAGES}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->x79->x2c59->x36ae} = $item->{$this->x4a->x2c59->x6973}(); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x36c9}}} = array($item->{$this->x79->x2c59->x68f1}(), $item->{$this->xfd->x2c59->x6983}()); ${$this->x4a->x2c75->{$this->x79->x2c75->x7cd7}} = ''; ${$this->x4a->x2c59->x35a7} = 0; if ($item->{$this->x4a->x2c59->x6973}() && $item->{$this->x4a->x2c59->x6973}() != 'no_selection') { ${$this->x79->x2c59->x36b5} = $item->{$this->x4a->x2c59->x6973}(); $value = ${$this->xfd->x2c75->x7cc3}; ${$this->x4a->x2c75->{$this->x79->x2c75->x7cd7}}.="<g:image_link><![CDATA[" . $value . "]]></g:image_link>
"; ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7bbe}}}}}++; } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}} = 0; while (isset(${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7873}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}}]) && ${$this->x4a->x2c59->{$this->xfd->x2c59->x35aa}} < 10) { if (${$this->x4a->x2c75->x7867}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3560}}}}] != ${$this->x4a->x2c59->{$this->x79->x2c59->x36b1}}) { if ($x2a1d(${$this->x79->x2c75->{$this->x79->x2c75->x786a}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->xfd->x2c59->x3556}], ${$this->xfd->x2c59->{$this->x4a->x2c59->x36c7}}) || ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7873}}}}[$item->{$this->x79->x2c59->x407f}()]['disabled'][${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b58}}}] != 1) { ${$this->xfd->x2c75->x7cc3} = ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3277}}}}}[$item->{$this->x79->x2c59->x407f}()]['src'][${$this->x4a->x2c59->{$this->xfd->x2c59->x3558}}]; $value = ${$this->xfd->x2c75->x7cc3}; ${$this->x79->x2c59->x36ca}.="<g:additional_image_link><![CDATA[" . $value . "]]></g:additional_image_link>
"; ${$this->x79->x2c75->{$this->x4a->x2c75->x7bb2}}++; } } ${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x355b}}}++; } $value = ${$this->x4a->x2c75->{$this->x79->x2c75->x7cd7}}; break; case "{SC:DESCRIPTION}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3803}}} = $item->{$this->xfd->x2c59->x5923}() . $item->{$this->x4a->x2c59->x5934}(); ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e5b}}}} = "|<iframe(.*)</iframe>|U"; $x2ac1(${$this->xfd->x2c59->{$this->xfd->x2c59->x380b}}, ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}}, ${$this->xfd->x2c59->x3810}); if (${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x3815}}}}) { ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3803}}} = $item->{$this->x4a->x2c59->x6f07}('manufacturer') . " " . $item->{$this->x79->x2c59->x4986}() . " - Part number: " . $item->{$this->x4a->x2c59->x5021}() . " - Category : {categories,[1],[1],[1]}"; } else { if ($x2a1d("strip_tags", ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'])) { ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}} = $x2906('!\<br /\>!isU', " ", ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7e4d}}}}}); ${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}} = $x2906('!\<br/\>!isU', " ", ${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}} = $x2906('!\<br>!isU', " ", ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}} = $x28b9(${$this->xfd->x2c59->x37fe}); } if ($x2a1d("html_entity_decode", ${$this->x4a->x2c59->x34c4}['options'])) { ${$this->x79->x2c75->x7e41} = $x28ea(${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}}, ENT_QUOTES, 'UTF-8'); } if ($x2a1d("htmlentities", ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'])) { ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}} = $x287f((${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}})); } if ($x2a61(${$this->x79->x2c75->x7e41}) > 900) { ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}} = $x2868(${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}}, 0, 900 - 3); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b04}}} = $x285d(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3804}}}}, " "); ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}} = $x2868(${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}}, 0, ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x34f9}}}}) . '...'; } } if (${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}} == null) ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7e4d}}}}} = $item->{$this->x4a->x2c59->x6f07}('manufacturer') . " " . $item->{$this->x79->x2c59->x4986}() . " - Part number: " . $item->{$this->x4a->x2c59->x5021}() . " - Category : {categories,[1],[1],[1]}"; ${$this->xfd->x2c59->{$this->x4a->x2c59->x3801}} = $x2906( '/[-]|[-][-]+|([]|[-])[-]*|[-]((?![-])|[-]{2,})|[-](([-](?![-]))|(?![-]{2})|[-]{3,})/S', ' ', ${$this->x79->x2c75->x7e41} ); ${$this->x79->x2c75->x7e41} = $x29a1('', '', ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e48}}}); $value = "<description><![CDATA[" . ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7e4d}}}}} . "]]></description>"; break; case "{SC:URL}" : (isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][0])) ? ${$this->x79->x2c75->x7e6f} = ${$this->x4a->x2c59->x34c4}['options'][0] : ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e73}}}} = ""; (isset(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1])) ? ${$this->x4a->x2c59->x381c} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][1] : ${$this->xfd->x2c59->{$this->xfd->x2c59->x3821}} = ""; $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); if ($item->{$this->xfd->x2c59->x69fd}()) { $value = "<link><![CDATA[" . ${$this->xfd->x2c59->x2fda} . ${$this->x79->x2c75->x7e76} . $item->{$this->xfd->x2c59->x69fd}() . ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7e72}}} . "]]></link>"; } else { $value = "<link><![CDATA[" . $item->{$this->x79->x2c59->x6a53}() . "]]></link>"; } break; case "{SC:CONDITION}" : $item = $this->{$this->xfd->x2c59->{$this->x79->x2c59->x3a11}}(${$this->x4a->x2c59->x34c4}['reference'], $product); ($x2a00($item->{$this->x79->x2c59->x4986}(), "refurbished")) ? ${$this->x4a->x2c75->{$this->xfd->x2c75->x79fd}} = 'refurbished' : ${$this->xfd->x2c75->x79fc} = 'new'; $value = "<g:condition><![CDATA[" . ${$this->x4a->x2c59->x33f5} . "]]></g:condition>"; break; case "{sc:condition}" : $item = $this->{$this->xfd->x2c75->x804c}(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['reference'], $product); ($x2a00($item->{$this->x79->x2c59->x4986}(), "refurbished")) ? ${$this->xfd->x2c75->x79fc} = 'refurbished' : ${$this->x4a->x2c75->{$this->xfd->x2c75->x79fd}} = 'new'; $value = ${$this->x79->x2c59->{$this->xfd->x2c59->x33f9}}; break; default : $item = $this->{$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8056}}}(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['reference'], $product); if ($x2a1d(${$this->x4a->x2c59->x34c4}['name'], ${$this->x79->x2c59->{$this->x4a->x2c59->x3136}})) { if ($x2a1d(${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7743}}}}[${$this->x4a->x2c59->x34c4}['name']], array('select', 'multiselect'))) { eval('$val =($item->' . ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['methodName'] . ");"); ${$this->x4a->x2c59->{$this->x4a->x2c59->x3829}} = $x2791(',', $val); if ($x2a4f(${$this->x79->x2c75->{$this->xfd->x2c75->x7e82}}) > 1) { $value = array(); foreach (${$this->x4a->x2c75->x7e7d} as ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a48}}}) { if (isset(${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x79->x2c59->x344e}][${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}])) $value[] = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3459}}}}][${$this->x4a->x2c75->x7543}]; else { if (isset(${$this->xfd->x2c75->x7784}[${$this->x4a->x2c75->{$this->xfd->x2c75->x7a44}}][0])) $value[] = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x4a->x2c75->{$this->xfd->x2c75->x7a44}}][0]; } } } else { if (isset(${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x79->x2c75->{$this->xfd->x2c75->x7e82}}[0]][${$this->x79->x2c59->{$this->xfd->x2c59->x2f7a}}])) { $value = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7e85}}}[0]][${$this->x79->x2c75->{$this->x4a->x2c75->x7544}}]; } else { if (isset(${$this->x4a->x2c75->{$this->x4a->x2c75->x7788}}[${$this->x4a->x2c59->x3826}[0]][0])) $value = ${$this->xfd->x2c59->{$this->x79->x2c59->x3174}}[${$this->x4a->x2c59->{$this->x4a->x2c59->x3829}}[0]][0]; } } } else { eval('$value =($item->' . ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['methodName'] . ");"); } } if ($x2a1d(@${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x311b}}}}[${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['name']], ${$this->x4a->x2c59->x310e})) { $value = ${$this->x79->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x311b}}}}[${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['name']]; } $value = $x2906( '/[-]|[-][-]+|([]|[-])[-]*|[-]((?![-])|[-]{2,})|[-](([-](?![-]))|(?![-]{2})|[-]{3,})/S', ' ', $value ); $value = $x29a1('', '', $value); ${$this->x4a->x2c75->{$this->x79->x2c75->x7e94}} = 0; if ($x2a4f(${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options']) > 0) { while (isset(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][${$this->xfd->x2c59->x3838}])) { switch (${$this->x4a->x2c59->x34c4}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->x7e94}}]) { case "substr" : if (isset(${$this->x79->x2c75->x7ad1}['options'][${$this->x79->x2c75->x7e90} + 1]) && $x2a61($value) > ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][${$this->xfd->x2c59->x3838} + 1]) { $value = $x2868($value, 0, ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x383e}}} + 1] - 3); ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7b04}}} = $x285d($value, " "); $value = $x2868($value, 0, ${$this->xfd->x2c75->x7b00}) . ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][${$this->x79->x2c59->{$this->xfd->x2c59->x383b}} + 2]; } ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}++; ${$this->xfd->x2c59->x3838}++; break; case "htmlentities" : $value = $x287f(($value)); break; case "strip_tags" : ${$this->xfd->x2c75->x7e99} = " "; $value = $x2906('!\<br /\>!isU', ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x384c}}}}}, $value); $value = $x2906('!\<br/\>!isU', ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x384c}}}}}, $value); $value = $x2906('!\<br>!isU', ${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x79->x2c59->x3843}}}, $value); $value = $x28b9($value); break; case "implode" : $value = ($x29c1($value)) ? $x293c(${$this->x4a->x2c59->x34c4}['options'][${$this->x79->x2c59->{$this->xfd->x2c59->x383b}} + 1], $value) : $value; ${$this->x79->x2c59->{$this->xfd->x2c59->x383b}}++; break; case "float" : $value = $x28d7($value, ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}} + 1], , ''); ${$this->x79->x2c75->x7e90}++; break; case "html_entity_decode" : $value = $x28ea($value, ENT_QUOTES, 'UTF-8'); break; case "inline": $value = $x2906('/(\r\n|\n|\r|\r\n|\t)/s', '', $value); break; case "strtolower": $value = $x28f9($value, "UTF8"); break; case "strtoupper": $value = $x2900($value, "UTF8"); break; case "cleaner": $value = $x2906( '/[-]|[-][-]+|([]|[-])[-]*|[-]((?![-])|[-]{2,})|[-](([-](?![-]))|(?![-]{2})|[-]{3,})/S', ' ', $value ); $value = $x29a1('', '', $value); break; default : if ($x2a00(${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x34ce}}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}], "%s")) { ${$this->x79->x2c59->{$this->x4a->x2c59->x35ae}} = $x29a1("%s", '$value', ${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}]); eval('$value=' . ${$this->xfd->x2c75->{$this->x79->x2c75->x7bc5}} . ';'); } else eval('$value=' . ${$this->x79->x2c75->{$this->xfd->x2c75->x7ad3}}['options'][${$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7e95}}}] . '($value);'); break; } ${$this->x79->x2c59->{$this->xfd->x2c59->x383b}}++; } } break; } $value = $x29a1(array("<", ">", '"', '\\'), array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), $value); if ($x29c1($value)) $value = $x293c(",", $value); if ($value != "") ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7acf}}}}} = $x29a1(${$this->xfd->x2c59->{$this->x4a->x2c59->x34c9}}['fullpattern'], $value, ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}}); } foreach (${$this->x4a->x2c59->x30ad} as ${$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x3855}}}) { ${$this->x4a->x2c75->x7ac0} = $x29a1(${$this->x4a->x2c75->x7e9f}['fullpattern'], "", ${$this->xfd->x2c59->x34b8}); } ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}} = $this->{$this->x4a->x2c75->{$this->x4a->x2c75->x7fdb}}(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}}, $product); ${$this->x4a->x2c75->x7ac0} = $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8044}}}(${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x34c2}}}); ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}} = $this->{$this->xfd->x2c75->x8030}(${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}}); ${$this->xfd->x2c75->{$this->xfd->x2c75->x7ac5}} = $x29a1(array("__LOWERTHAN__", "__HIGHERTHAN__", "__QUOTES__", "__BACKSLASH__"), array("<", ">", '"', '\\'), ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7acf}}}}}); if (!empty(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7acb}}}})) { ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=("<item>" ); ${$this->x79->x2c75->x7634}.="
" . ${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x7ac7}}} . "
"; ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=("</item>
"); ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x79ce}}}}++; $this->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x2c83}}} = ${$this->x79->x2c75->{$this->xfd->x2c75->x7a94}}; ${$this->x79->x2c75->{$this->xfd->x2c75->x7a94}}++; } ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7eaf}}} = array(); try { $item = new SimpleXMLElement("<item>" . $x29a1(array("<g:", "</g:"), array("<g_", "</g_"), ${$this->xfd->x2c59->{$this->x79->x2c59->x34bd}}) . "</item>"); } catch (Exception $e) { $this->{$this->x79->x2c75->{$this->x79->x2c75->x805d}}(${$this->x4a->x2c59->x2f2e}, ${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7523}}}, "FAILLED;0"); Mage::$xb59f($e->{$this->x79->x2c59->x7033}() . " " . Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Please check the template syntax.")); } ${$this->x79->x2c59->x386f} = array(); if (!empty(${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x4a->x2c75->x7acb}}}})) { foreach ($requirements as ${$this->xfd->x2c75->{$this->x4a->x2c75->x7edb}}) { if ($x29c1(${$this->xfd->x2c59->x3886}['depends'])) { ${$this->x4a->x2c75->{$this->xfd->x2c75->x7ee3}} = false; foreach (${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['depends'] as ${$this->x4a->x2c59->{$this->x79->x2c59->x389d}} => ${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a00}}}) { foreach (${$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7a00}}} as ${$this->xfd->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7ef6}}} => $value) { ${$this->x79->x2c59->x38b1} = $this->{$this->x79->x2c75->{$this->xfd->x2c75->x8069}}($requirements, ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x38a1}}}); switch (${$this->xfd->x2c59->{$this->xfd->x2c59->x38af}}) { case "eq": if ($item->${$this->xfd->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x38bd}}}}}['tag'] == $value) { ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3894}}} = true; } else ${$this->xfd->x2c59->x3890} = false; break; case "neq": if ($item->${$this->x4a->x2c75->x7efe}['tag'] != $value) { ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x3894}}} = true; } else ${$this->xfd->x2c75->x7edf} = false; break; case "like": if ($x2a00($item->${$this->xfd->x2c75->{$this->xfd->x2c75->x7f00}}['tag'], $value)) { ${$this->xfd->x2c75->x7edf} = true; } else ${$this->xfd->x2c59->x3890} = false; break; } } } } else { ${$this->xfd->x2c75->x7edf} = true; } if (${$this->xfd->x2c75->x7edf} == true && !$x2a1d(${$this->xfd->x2c59->x3886}['label'], ${$this->xfd->x2c75->x7ec5})) { ${$this->x4a->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->x7ece}}}[] = ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['label']; ${$this->xfd->x2c59->x38c2} = ${$this->x4a->x2c75->x7ed7}['tag']; if (${$this->xfd->x2c59->x3886}['required'] && (empty($item->${$this->x79->x2c59->{$this->x4a->x2c59->x38c4}}))) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->x8075}}(${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['label'], 'required', $item->{"g_id"}); } elseif (${$this->xfd->x2c59->x3886}['recommended'] && (empty($item->${$this->x79->x2c75->{$this->x79->x2c75->x7f09}}))) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x8077}}}(${$this->x4a->x2c75->x7ed7}['label'], 'recommended', $item->{"g_id"}, null); } elseif ((int) ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['occurrence'] < ($x2a4f($item->${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f0d}}}))) { $this->{$this->x4a->x2c59->x3a30}(${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['label'], 'toomany', $item->{"id"}); } else { if (isset(${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['length']) && $x2a61($item->${$this->x79->x2c59->{$this->x4a->x2c59->x38c4}}) > ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['length']) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x8077}}}(${$this->x4a->x2c75->x7ed7}['label'], 'toolong', $item->{"g_id"}, ${$this->xfd->x2c59->x3886}['length']); } if (isset(${$this->xfd->x2c75->{$this->x4a->x2c75->x7edb}}['type']) && ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['type'] == "RegExp" && !empty($item->${$this->x79->x2c75->{$this->x79->x2c75->x7f09}}) && !$x2ac1("/^" . ${$this->xfd->x2c75->{$this->x4a->x2c75->x7edb}}['regexp'] . "$/i", $item->${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7f10}}}})) { $this->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x807c}}}}}(${$this->xfd->x2c59->x3886}['label'], 'invalid', $item->{"g_id"}, ${$this->x4a->x2c75->x7ed7}['say']); } elseif (isset(${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['type']) && !empty($item->${$this->x79->x2c75->{$this->x79->x2c75->x7f09}}) && ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['type'] != "RegExp" && ${$this->xfd->x2c59->x3886}['type'] != "GoogleProductCategory" && ${$this->x79->x2c59->{$this->x79->x2c59->x388a}}['type'] != "Text") { switch (${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['type']) { case "Boolean": ${$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x38d6}}} = "/^true|false$/i"; break; case "Alphanumeric": ${$this->xfd->x2c59->{$this->x4a->x2c59->x38d1}} = "/^[\\w\5c73\\-]+$/"; break; break; case "Url": ${$this->x79->x2c59->x38cd} = "/^http(s)?:\\/\\/.+$/"; break; case "Price": ${$this->x4a->x2c75->{$this->x79->x2c75->x7f14}} = '/^([0-9]+\.[0-9]{2})\s?[A-Z]{3}$/'; break; } if (!$x2ac1(${$this->x79->x2c59->x38cd}, $item->${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7f10}}}}, ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f1d}}})) { $this->{$this->x4a->x2c59->x3a30}(${$this->x4a->x2c75->x7ed7}['label'], 'invalid', $item->{"g_id"}, ${$this->x4a->x2c75->x7ed7}['type']); } elseif (${$this->x4a->x2c75->x7ed7}['type'] == "Price" && (float) ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f1d}}}[1] < 0.01) { $this->{$this->x4a->x2c59->x3a30}(${$this->x4a->x2c75->x7ed7}['label'], 'invalid', $item->{"g_id"}, ${$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x388f}}}['type']); } } } } } } if ($this->{$this->x79->x2c75->x72d0}) { ${$this->xfd->x2c59->x3088}.=${$this->x79->x2c75->{$this->x79->x2c75->x7635}}; ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}} = ''; } else { if (${$this->xfd->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x79cc}}} % Mage::$xb83a("simplegoogleshopping/system/buffer") == 0) { ${$this->x79->x2c59->x2f1f}->{$this->xfd->x2c59->x40e3}(${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3085}}}); unset(${$this->xfd->x2c59->x3083}); ${$this->x79->x2c75->x7634} = ''; Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" . ${$this->x4a->x2c75->x7a91} . "/" . $this->_counter . " items added", null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x8010}}}('.log')); ${$this->xfd->x2c59->x38e5} = $x2b6b(true); ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x38f4}}} = ((int) ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7f22}}} - (int) ${$this->x79->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7aa2}}}); $this->{$this->x4a->x2c59->{$this->x79->x2c59->x2c91}} += ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7f26}}}; $this->{$this->x79->x2c75->{$this->x79->x2c75->x805d}}(${$this->x79->x2c75->{$this->x4a->x2c75->x7509}}, ${$this->xfd->x2c59->x2f36}, "PROCESSING;${$this->x4a->x2c75->x7a91};" . $this->_counter . ";" . ${$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7f28}}}}); ${$this->x4a->x2c75->x7a99} = $x2b6b(true); } } if ($this->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2cbf}}}} && ${$this->x4a->x2c75->x7a91} > $this->{$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->{$this->x4a->x2c59->x2cbf}}}}) { break 2; } } } ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x3085}}}.=('</channel>
"); ${$this->x79->x2c59->{$this->xfd->x2c59->x3084}}.=('</rss>'); if (!$this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cc8}}) { ${$this->x79->x2c59->x2f1f}->{$this->xfd->x2c59->x40e3}(${$this->x79->x2c75->x7634}); $this->{$this->x4a->x2c75->x805c}(${$this->x4a->x2c75->x7505}, ${$this->x79->x2c75->{$this->x79->x2c75->x7522}}, "SUCCEED;0;0"); } Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> " . (${$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3499}}} - 1) . "/" . $this->_counter . " items added", null, $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}('.log')); unset(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->x78e1}}}); ${$this->x79->x2c75->x763a}.=${$this->x79->x2c75->x7634}; if ($this->{$this->x79->x2c75->x72d0} && !$this->_debug) { return ${$this->x79->x2c75->x763a}; } elseif ($this->_debug) { echo "<br><br>------------ XML OUTPUT ----------------<br>"; ${$this->xfd->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7e4b}}}} = "<pre>" . $x2b59(${$this->x79->x2c75->{$this->x4a->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->x7646}}}}}) . "</pre>"; return ${$this->xfd->x2c75->{$this->x79->x2c75->x7e44}}; } else { ${$this->x79->x2c75->x74f9}->{$this->xfd->x2c59->x712c}(); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->x2f25}}}->{$this->xfd->x2c59->x7137}($this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}(), $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}(false)); ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->x2f2c}}}}}->{$this->xfd->x2c59->x7152}($this->{$this->xfd->x2c59->{$this->x4a->x2c59->x39db}}()); $this->{$this->x4a->x2c59->x7168}(Mage::$xb6f6('core/date')->{$this->xfd->x2c59->x43e7}('Y-m-d H:i:s')); $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}}['stats'] = array(( ${$this->x4a->x2c59->x3492} - 1), $this->{$this->x4a->x2c59->{$this->x79->x2c59->x2c91}}); $this->{$this->xfd->x2c59->x7184}($x2b6c($this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}})); $this->{$this->xfd->x2c59->x7192}(); Mage::log("
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Temp file closed and moved to " . $this->{$this->xfd->x2c59->{$this->x79->x2c59->{$this->xfd->x2c59->x39df}}}(false), null, $this->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x8014}}}}('.log')); } Mage::$xb74b()->{$this->xfd->x2c59->x4e33}(0); } catch (Exception $e) { throw $e; } return $this; } public function getRequirementElt($x2b7f, $x2b87) {$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; foreach (${$this->x4a->x2c59->x38ff} as ${$this->x4a->x2c75->x7f4d}) { if (${$this->x4a->x2c59->{$this->x79->x2c59->x3915}}["label"] == ${$this->x4a->x2c75->{$this->x79->x2c75->x7f44}}) { return ${$this->x4a->x2c59->{$this->x79->x2c59->x3915}}; } } } public function addToReport($x2c31, $x2c30, $x2c33, $x2bf7 = null) {$x2c17 = $this->x79->x2c75->x8467;$xb812 = "helper";$xb83a = "getStoreConfig";$x87e8 = "getBaseDir";$xb59f = "throwException";$x869d = "_beforeSave";$xb74b = "app";$xb6f6 = "getSingleton";$x8a3d = "getDesign";$x9d99 = "getModel";$x9d60 = "getVersion";$xad04 = "getResourceModel"; ${$this->x4a->x2c75->{$this->x4a->x2c75->x7f85}} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Missing required attribute"); ${$this->xfd->x2c75->{$this->x79->x2c75->x7f8f}} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Missing recommended attribute"); ${$this->x4a->x2c75->x7f94} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Too many attribute "); ${$this->x4a->x2c59->x3969} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Attribute value too long"); ${$this->x4a->x2c59->{$this->x79->x2c59->x397f}} = Mage::$xb812('simplegoogleshopping')->{$this->x4a->x2c59->x3ee2}("Invalid attribute value"); if (${$this->xfd->x2c75->x7f62} == 'required') ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->xfd->x2c59->{$this->xfd->x2c59->x3996}}}} = ${$this->x4a->x2c59->{$this->x79->x2c59->x394f}} . " : " . ${$this->x79->x2c75->x7f5c}; if (${$this->xfd->x2c75->x7f62} == 'recommended') ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3991}}} = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x395f}}} . " : " . ${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}; if (${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}} == 'toomany') ${$this->x4a->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x3991}}} = ${$this->x4a->x2c59->{$this->x4a->x2c59->x3965}} . " : " . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}; if (${$this->x4a->x2c59->x392a} == 'toolong') ${$this->x79->x2c75->x7fb4} = ${$this->x79->x2c75->{$this->x79->x2c75->{$this->xfd->x2c75->x7fa0}}} . " : " . ${$this->x4a->x2c59->x3922} . " (" . ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x79->x2c75->x7f7e}}} . " " . Mage::$xb812("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}("symbols maximum") . ")"; if (${$this->x4a->x2c59->x392a} == 'invalid') ${$this->x79->x2c75->x7fb4} = ${$this->x4a->x2c59->{$this->x79->x2c59->{$this->x4a->x2c59->x3984}}} . " : " . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}} . " (" . ${$this->x4a->x2c75->{$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x79->x2c75->{$this->x79->x2c75->x7f83}}}}} . " " . Mage::$xb812("simplegoogleshopping")->{$this->x4a->x2c59->x3ee2}("expected") . ")"; $this->{$this->x79->x2c59->{$this->xfd->x2c59->x2ce4}}[${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3931}}} . "_" . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}][] = (string) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x393f}}}; if ($x2c17($this->{$this->x79->x2c75->x72e8}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7f6a}}} . "_" . ${$this->x79->x2c75->x7f5c}]) > 1 && $x2c17($this->{$this->x79->x2c75->x72e8}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7f6a}}} . "_" . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}]) <= Mage::$xb83a("simplegoogleshopping/system/preview")) { $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}}[${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}]["count"] ++; if (${$this->xfd->x2c75->{$this->x4a->x2c75->{$this->x4a->x2c75->x7f74}}} != "") $this->{$this->xfd->x2c59->{$this->x4a->x2c59->x2cdd}}[${$this->x79->x2c59->{$this->xfd->x2c59->{$this->x4a->x2c59->x3931}}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}]["skus"].=', ' . (string) ${$this->x79->x2c59->{$this->x4a->x2c59->{$this->x79->x2c59->x393f}}}; } elseif ($x2c17($this->{$this->xfd->x2c75->{$this->xfd->x2c75->x72eb}}[${$this->x4a->x2c59->x392a} . "_" . ${$this->xfd->x2c59->{$this->x79->x2c59->x3926}}]) > Mage::$xb83a("simplegoogleshopping/system/preview")) { $this->{$this->x79->x2c75->x72dd}[${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}}][${$this->x79->x2c75->x7f5c}]["count"] ++; } else { $this->{$this->x79->x2c75->x72dd}[${$this->x79->x2c75->{$this->xfd->x2c75->{$this->xfd->x2c75->x7f6a}}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}] = array( "message" => ${$this->x4a->x2c59->{$this->xfd->x2c59->x398f}}, "count" => 1, ); if (${$this->x79->x2c59->{$this->x4a->x2c59->x393a}} != "") $this->{$this->xfd->x2c75->{$this->x79->x2c75->x72e1}}[${$this->x79->x2c75->{$this->x4a->x2c75->x7f66}}][${$this->x79->x2c75->{$this->xfd->x2c75->x7f61}}]["skus"].= (string) ${$this->xfd->x2c59->x3935}; } } }
Function Calls
None |
Stats
MD5 | 5094abf2a214814249493d00645aa6b9 |
Eval Count | 0 |
Decode Time | 278 ms |