Спасибо, Dark Wizard, отличный прайс. Для тех у кого проблема с кодировкой, после
Добавьте
и еще маленький хак, замените
на
Чтобы не выводились не опубликованные товары
Код:
$_DB = new mysqli($db_host, $db_user, $db_password, $db_name);
Код:
$_DB->query('SET NAMES utf8, lc_time_names = "ru_RU"');
Код:
$query = mysqli_query($_DB,"SELECT t1.virtuemart_product_id, t1.product_name, t2.product_sku, t2.product_availability, t2.product_in_stock FROM ".$pref."virtuemart_products_ru_ru AS t1 LEFT JOIN ".$pref."virtuemart_products AS t2 ON t1.virtuemart_product_id=t2.virtuemart_product_id ORDER BY t1.product_name");
Код:
$query = mysqli_query($_DB,"SELECT t1.virtuemart_product_id, t1.product_name, t2.product_sku, t2.product_availability, t2.product_in_stock FROM ".$pref."virtuemart_products_ru_ru AS t1 LEFT JOIN ".$pref."virtuemart_products AS t2 ON t1.virtuemart_product_id=t2.virtuemart_product_id WHERE published = 1 ORDER BY t1.product_name");