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') { 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&slave_id=' . $listing['products_id'] . '&cart_quantity=' . $order_min ) . '" title="' . $listing['products_name'] . '">' . oos_image_button('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']) . '</a> '; } }
/** ensure this file is being included by a parent file */ defined( 'OOS_VALID_MOD' ) or die( 'Direct Access to this location is not allowed.' ); if (isset($oCurrencies) && is_object($oCurrencies)) { reset($oCurrencies->currencies); $aCurrencies = array(); foreach ($oCurrencies->currencies as $sKey => $value) { $aCurrencies[] = array('id' => $sKey, 'text' => $value['title']); } $hidden_get_variables = ''; foreach ($_GET as $sKey => $value) { if ( is_string($value) && ($sKey != 'currency') && ($sKey != oos_session_name()) && ($sKey != 'x') && ($sKey != 'y') ) { $hidden_get_variables .= oos_draw_hidden_field($sKey, $value); } } $oos_pull_down_menu = oos_draw_pull_down_menu('currency', $aCurrencies, $_SESSION['currency'], 'onchange="this.form.submit();" style="width: 100%"') . $hidden_get_variables . oos_hide_session_id(); $oSmarty->assign( array( 'oos_pull_down_menu' => $oos_pull_down_menu, 'block_heading_currencies' => $block_heading ) ); }
$lc_align = 'right'; 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&products_id=' . $listing['products_id'] . '&cart_quantity=' . $order_min) . '">' . oos_image_button('buy_now.gif', $aLang['text_buy'] . $listing['products_name'] . $aLang['text_now']) . '</a> '; } } else { $lc_text = ' '; } break; case 'PRODUCT_LIST_SORT_ORDER': $lc_align = 'center'; $lc_text = ' ' . $listing['products_sort_order'] . ' ';
$all_get_listing .= 'manufacturers_id=' . $nManufacturersID . '&'; $sProductListBuyNowHidden .= '<input type="hidden" name="manufacturers_id" value="' . $nManufacturersID .'">'; } if (isset($_GET['filter_id']) && is_numeric($_GET['filter_id'])) { $all_get_listing .= 'filter_id=' . $nFilterID . '&'; $sProductListBuyNowHidden .= '<input type="hidden" name="filter_id" value="' . $nFilterID .'">'; } if (isset($_GET['categories']) && is_string($_GET['categories'])) { $all_get_listing .= 'categories=' . $categories . '&'; $sProductListBuyNowHidden .= '<input type="hidden" name="categories" value="' . $categories .'">'; } if ($listing_numrows > 0) { if (PRODUCT_LISTING_WITH_QTY == '1') { $sProductListBuyNowHidden .= oos_hide_session_id(); } $listing_result = $dbconn->Execute($listing_sql); while ($listing = $listing_result->fields) { // $sProductListLink if (isset($_GET['manufacturers_id']) && is_numeric($_GET['manufacturers_id'])) { $sProductListLink = oos_href_link($aPages['product_info'], 'manufacturers_id=' . $nManufacturersID . '&products_id=' . $listing['products_id']); } else { if ($oEvent->installed_plugin('sefu')) { $sProductListLink = oos_href_link($aPages['product_info'], 'products_id=' . $listing['products_id']); } else { $sProductListLink = oos_href_link($aPages['product_info'], ($categories ? 'categories=' . $categories . '&' : '') . 'products_id=' . $listing['products_id']); }