...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
// .... // Products Price $products_price = $this->data['products_price']; $format_type = 'default'; // Hookpunkt: ($plugin_code = $xtPlugin->PluginCode('class.product.php:_getPrice_center')) ? eval($plugin_code) : false; // <!-- xt_countryprices start --> if (isset($_SESSION['customer']->customer_default_address['customers_country_code'])) { global $db; $record = $db->Execute("SELECT country_price FROM ".TABLE_PRODUCTS_PRICE_COUNTRY." WHERE products_id='".$this->data['products_id']."' and status='1' and country_code='".$_SESSION['customer']->customer_default_address['customers_country_code']."' LIMIT 0,1"); if($record->RecordCount() == 1){ $products_price = $record->fields['country_price']; return $true; } } // <!-- xt_countryprices end --> if(isset($plugin_return_value)) return $plugin_return_value; // special price ? $special_price_otax = $this->data['flag_has_specials'] ? $this->getSpecialPrice():false; if ($special_price_otax!=false) { // .... |
...