<?php
function act_get_attributes_model( $product_id, $attribute_name, $options_name, $language='' )
{
if( act_shop_is(SHOP_TYPE_XTCOMMERCE) || act_shop_is(SHOP_TYPE_GAMBIOGX) )
{
require_once (DIR_FS_INC.'xtc_get_attributes_model.inc.php');
return xtc_get_attributes_model( $product_id, $attribute_name, $options_name, $language );
}
else
{
// now comes the tricky part...
$options_value_id_query=act_db_query("SELECT
pa.products_attributes_id
FROM
".TABLE_PRODUCTS_ATTRIBUTES." pa
Inner Join ".TABLE_PRODUCTS_OPTIONS." po ON po.products_options_id = pa.options_id
Inner Join ".TABLE_PRODUCTS_OPTIONS_VALUES." pov ON pa.options_values_id = pov.products_options_values_id
WHERE
po.language_id = pov.language_id AND
po.products_options_name = '".$options_name."' AND
pov.products_options_values_name = '".$attribute_name."'");
$options_attr_data = act_db_fetch_array($options_value_id_query);
return '-'.$options_attr_data['products_attributes_id'];
}
}
function act_get_geo_zone_code( $country_id )
{
$geo_zone_query = act_db_query("select geo_zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where zone_country_id = '" . (int)$country_id . "'");
$geo_zone = act_db_fetch_array($geo_zone_query);
return $geo_zone['geo_zone_id'];
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| actindo.php | 2013-11-12 20:52 | 14.62 KB | 76129f60960:kunden | -xw-x----- | |
| compat.php | 2013-11-12 20:52 | 1.29 KB | 76129f60960:kunden | -xw-x----- | |
| export.php | 2013-11-12 20:52 | 6.13 KB | 76129f60960:kunden | -xw-x----- | |
| export_customers.php | 2013-11-12 20:52 | 7.53 KB | 76129f60960:kunden | -xw-x----- | |
| export_orders.php | 2013-11-12 20:52 | 17.96 KB | 76129f60960:kunden | -xw-x----- | |
| export_products.php | 2013-11-12 20:52 | 19.62 KB | 76129f60960:kunden | -xw-x----- | |
| import.php | 2013-11-12 20:52 | 503 B | 76129f60960:kunden | -xw-x----- | |
| import_customer.php | 2013-11-12 20:52 | 904 B | 76129f60960:kunden | -xw-x----- | |
| import_orders.php | 2013-11-12 20:52 | 4.2 KB | 76129f60960:kunden | -xw-x----- | |
| import_products.php | 2013-11-12 20:52 | 37.29 KB | 76129f60960:kunden | -xw-x----- | |
| util.php | 2013-11-12 20:52 | 13.97 KB | 76129f60960:kunden | -xw-x----- | |