...
Code Block |
---|
language | php |
---|
title | /xtFramework/classes/class.product.php |
---|
firstline | 260 |
---|
linenumbers | true |
---|
|
// ....
// 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) {
// .... |
Anchor |
---|
| Hookpunkte auslagern in Dateien |
---|
| Hookpunkte auslagern in Dateien |
---|
|
Hookpunkte auslagern in DateienIn der Praxis werden Hookpunkte von uns und auch in Reseller-Plugins oft in Dateien ausgelagert, d.h. dass lediglich ein include() oder require() auf eine Datei in diesen Hooks zu finden sind. Dieses vorgehen hat zwei entscheidende Vorteile:
...