$order_min = number_format($listing['products_quantity_order_min']);
            }

            if (PRODUCT_LISTING_WITH_QTY == '1') {
                if (!isset($nProductsId)) $nProductsId = oos_get_product_id($_GET['products_id']);
                $sProductListBuyNow = '<form name="buy_slave" action="' . OOS_HTTP_SERVER . OOS_SHOP . 'index.php" method="post">';
                $sProductListBuyNow .='<input type="hidden" name="action" value="buy_slave">';
                $sProductListBuyNow .='<input type="hidden" name="slave_id" value="' . $listing['products_id'] .'">';
                $sProductListBuyNow .='<input type="hidden" name="page" value="' . $sPage .'">';
                $sProductListBuyNow .='<input type="hidden" name="formid" value="' . $sFormid .'">';
                $sProductListBuyNow .='<input type="hidden" name="categories" value="' . $categories .'">';
                $sProductListBuyNow .='<input type="hidden" name="products_id" value="' . $nProductsId .'">';
                $sProductListBuyNow .=oos_hide_session_id();

// todo remove oos_get_all_as_hidden_field
$sProductListBuyNow .=oos_get_all_as_hidden_field(array('action'));
                 $sProductListBuyNow .='<input type="hidden" name="nv" value="' . $nCurrentPageNumber .'">';

                 $sProductListBuyNow .=$aLang['products_order_qty_text'];
                 $sProductListBuyNow .=' <input type="text" name="cart_quantity" value="' . $order_min . '" size="3" /><br />';
                 $sProductListBuyNow .=oos_image_submit('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']);
                 $sProductListBuyNow .='</form>';
            } else {
                 $sProductListBuyNow = '<a href="' . oos_href_link($sPage, $all_get_listing . 'action=buy_slave&amp;slave_id=' . $listing['products_id'] . '&amp;cart_quantity=' . $order_min ) . '" title="' . $listing['products_name'] . '">' . oos_image_button('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']) . '</a>&nbsp;';
            }

        }

        $aProductListing[] = array(
                                'products_id' => $listing['products_id'],
                                'products_model' => $listing['products_model'],
     if ($_SESSION['member']->group['show_price'] == 1) {
         if (DECIMAL_CART_QUANTITY == '1') {
             $order_min = number_format($listing['products_quantity_order_min'], 2);
         } else {
             $order_min = number_format($listing['products_quantity_order_min']);
         }
         if (PRODUCT_LISTING_WITH_QTY == '1') {
             $lc_text = '<form name="buy_now" action="' . OOS_HTTP_SERVER . OOS_SHOP . 'index.php" method="post">';
             $lc_text .= '<input type="hidden" name="action" value="buy_now">';
             $lc_text .= '<input type="hidden" name="products_id" value="' . $listing['products_id'] . '">';
             $lc_text .= '<input type="hidden" name="mp" value="' . $sMp . '">';
             $lc_text .= '<input type="hidden" name="file" value="' . $sFile . '">';
             $lc_text .= '<input type="hidden" name="categories" value="' . $categories . '">';
             $lc_text .= '<input type="hidden" name="formid" value="' . $sFormid . '">';
             $lc_text .= oos_hide_session_id();
             $lc_text .= oos_get_all_as_hidden_field(array('action'));
             $lc_text .= $aLang['products_order_qty_text'];
             $lc_text .= ' <input type="text" name="cart_quantity" value="' . $order_min . '" size="3" /><br />';
             $lc_text .= oos_image_submit('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']);
             $lc_text .= '</form>';
         } else {
             $lc_text = '<a href="' . oos_href_link($sMp, $sFile, $all_get_listing . 'action=buy_now&amp;products_id=' . $listing['products_id'] . '&amp;cart_quantity=' . $order_min) . '">' . oos_image_button('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']) . '</a>&nbsp;';
         }
     } else {
         $lc_text = '&nbsp;';
     }
     break;
 case 'PRODUCT_LIST_SORT_ORDER':
     $lc_align = 'center';
     $lc_text = '&nbsp;' . $listing['products_sort_order'] . '&nbsp;';
     break;