Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
title/plugins/xt_countryprices/installer/xt_countryprices.xml
<code>
<hook>class.product.php:_getPrice_center</hook>
<phpcode><![CDATA[

// hier der phpcode der im Hook class.product.php:_getPrice_center eusgeführt werden soll.

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;
}
}
 ]]></phpcode>
<order>1</order>
<active>1</active>
</code>

...