本文整理汇总了PHP中currencies::psm_price方法的典型用法代码示例。如果您正苦于以下问题:PHP currencies::psm_price方法的具体用法?PHP currencies::psm_price怎么用?PHP currencies::psm_price使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类currencies
的用法示例。
在下文中一共展示了currencies::psm_price方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
ON p.manufacturers_id = m.manufacturers_id LEFT JOIN
" . $oostable['products_description'] . " pd
ON p.products_id = pd.products_id AND
pd.products_languages_id = '1' LEFT JOIN
" . $oostable['specials'] . " s
ON p.products_id = s.products_id
WHERE
(p.products_status >= '1' or p.products_status <= '4')
ORDER BY
p.products_date_added DESC,
pd.products_name";
$products_result = $dbconn->Execute($products_sql);
while ($products = $products_result->fields) {
if ( (!empty($products['products_name'])) && (!empty($products['products_image'])) && (!empty($products['products_model'])) && (!empty($products['products_description'])) ) {
if (isset($products['specials_new_products_price'])) {
$products_price = $currencies->psm_price($products['specials_new_products_price'], oos_get_tax_rate($products['products_tax_class_id']));
} else {
$products_price = $currencies->psm_price($products['products_price'], oos_get_tax_rate($products['products_tax_class_id']));
}
switch ($products['products_status']) {
case '1':
case '2':
$products_status = 'nicht verfgbar';
break;
case '3':
case '4':
$products_status = '3 Tage';
break;
}
$products_description = strip_tags($products['products_description']);