本文整理匯總了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']);