本文整理匯總了PHP中osC_Product::getVariantsComboboxArray方法的典型用法代碼示例。如果您正苦於以下問題:PHP osC_Product::getVariantsComboboxArray方法的具體用法?PHP osC_Product::getVariantsComboboxArray怎麽用?PHP osC_Product::getVariantsComboboxArray使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類osC_Product
的用法示例。
在下文中一共展示了osC_Product::getVariantsComboboxArray方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: foreach
$lc_text = ' ' . $Qlisting->value('products_sku') . ' ';
break;
case 'PRODUCT_LIST_NAME':
$lc_align = '';
if (isset($_GET['manufacturers'])) {
$lc_text = osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qlisting->value('products_id') . '&manufacturers=' . $_GET['manufacturers']), $Qlisting->value('products_name')) . ($Qlisting->value('products_short_description') === NULL || $Qlisting->value('products_short_description') === '' ? '' : '<p>' . $Qlisting->value('products_short_description') . '</p>');
$lc_text .= osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qlisting->value('products_id') . '&manufacturers=' . $_GET['manufacturers']), $osC_Language->get('button_read_more'), 'class="readMore"');
} else {
$lc_text = ' ' . osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qlisting->value('products_id') . ($cPath ? '&cPath=' . $cPath : '')), $Qlisting->value('products_name')) . ($Qlisting->value('products_short_description') === NULL || $Qlisting->value('products_short_description') === '' ? '' : '<p>' . $Qlisting->value('products_short_description') . '</p>') . ' ';
$lc_text .= osc_link_object(osc_href_link(FILENAME_PRODUCTS, $Qlisting->value('products_id') . ($cPath ? '&cPath=' . $cPath : '')), $osC_Language->get('button_read_more'), 'class="readMore"');
}
//variants options is enabled
if ($variants_enabled) {
if ($osC_Product->hasVariants()) {
$lc_text .= '<ul class="options variants_' . $osC_Product->getID() . '">';
$combobox_array = $osC_Product->getVariantsComboboxArray();
foreach ($combobox_array as $groups_name => $combobox) {
$lc_text .= '<li class="variant">';
$lc_text .= '<label>' . $groups_name . ':</label>';
$lc_text .= $combobox;
$lc_text .= '</li>';
}
$lc_text .= '</ul>';
}
}
break;
case 'PRODUCT_LIST_MANUFACTURER':
$lc_align = '';
$lc_text = ' ' . osc_link_object(osc_href_link(FILENAME_DEFAULT, 'manufacturers=' . $Qlisting->valueInt('manufacturers_id')), $Qlisting->value('manufacturers_name')) . ' ';
break;
case 'PRODUCT_LIST_PRICE':