AAAAPKѪ>\®)ÕÐ .htaccessnuW+A„¶ Order allow,deny Deny from all PKѪ>\ index.htmlnuW+A„¶PKѪ>\tmpl/index.htmlnuW+A„¶PKѪ>\®)ÕÐtmpl/.htaccessnuW+A„¶ Order allow,deny Deny from all PKѪ>\a¶oÓÍÍtmpl/default.phpnuW+A„¶
inventorylist) > 0) { $i = 0; $k = 0; $keyword = vRequest::uword ('keyword', "", ' ,-,+,.,_,#,/'); foreach ($this->inventorylist as $key => $product) { $checked = JHTML::_('grid.id', $i , $product->virtuemart_product_id); $published = JHTML::_('grid.published', $product, $i ); // if ( $product->product_in_stock - $product->product_ordered < 1) $stockstatut ="out"; elseif ( $product->product_in_stock - $product->product_ordered < $product->low_stock_notification ) $stockstatut ="low"; else $stockstatut = "normal"; $stockstatut='class="stock-'.$stockstatut.'" title="'.jText::_('COM_VIRTUEMART_STOCK_LEVEL_'.$stockstatut).'"'; ?> virtuemart_product_id.'&product_parent_id='.$product->product_parent_id; ?>
sort('product_name') ?> sort('product_sku')?> sort('product_in_stock','COM_VIRTUEMART_PRODUCT_FORM_IN_STOCK') ?> sort('product_price','COM_VIRTUEMART_PRODUCT_FORM_PRICE_COST') ?> sort('product_price', 'COM_VIRTUEMART_PRODUCT_INVENTORY_PRICE') ?> sort('product_weight','COM_VIRTUEMART_PRODUCT_INVENTORY_WEIGHT') ?> sort('published')?>
product_name, array('title' => JText::_('COM_VIRTUEMART_EDIT').' '.$product->product_name)); ?> product_sku; ?> >product_in_stock; ?> width="5%">product_ordered; ?> product_price_display; ?> product_instock_value; ?> product_weight." ". $product->weigth_unit_display; ?>
pagination->getListFooter(); ?>
PKѪ>\˨Q› › view.html.phpnuW+A„¶addStandardDefaultViewLists($model); $inventorylist = $model->getProductListing(false,false); $pagination = $model->getPagination(); $this->assignRef('pagination', $pagination); // Apply currency $currencydisplay = CurrencyDisplay::getInstance(); foreach ($inventorylist as $virtuemart_product_id => $product) { //TODO oculd be interesting to show the price for each product, and all stored ones $product->product_in_stock $product->product_instock_value = $currencydisplay->priceDisplay($product->product_price,'',$product->product_in_stock,false); $product->product_price_display = $currencydisplay->priceDisplay($product->product_price,'',1,false); $product->weigth_unit_display= ShopFunctions::renderWeightUnit($product->product_weight_uom); } $this->assignRef('inventorylist', $inventorylist); $options = array(); $options[] = JHTML::_('select.option', '', JText::_('COM_VIRTUEMART_DISPLAY_STOCK').':'); $options[] = JHTML::_('select.option', 'stocklow', JText::_('COM_VIRTUEMART_STOCK_LEVEL_LOW')); $options[] = JHTML::_('select.option', 'stockout', JText::_('COM_VIRTUEMART_STOCK_LEVEL_OUT')); $this->lists['stockfilter'] = JHTML::_('select.genericlist', $options, 'search_type', 'onChange="document.adminForm.submit(); return false;"', 'value', 'text', JRequest::getVar('search_type')); $this->lists['filter_product'] = JRequest::getVar('filter_product'); // $this->assignRef('lists', $lists); /* Toolbar */ $this->SetViewTitle('PRODUCT_INVENTORY'); JToolBarHelper::publish(); JToolBarHelper::unpublish(); parent::display($tpl); } } // pure php no closing tag PKѪ>\®)ÕÐ .htaccessnuW+A„¶PKѪ>\ ¸index.htmlnuW+A„¶PKѪ>\òtmpl/index.htmlnuW+A„¶PKѪ>\®)ÕÐ1tmpl/.htaccessnuW+A„¶PKѪ>\a¶oÓÍÍîtmpl/default.phpnuW+A„¶PKѪ>\˨Q› › ûview.html.phpnuW+A„¶PKÍÓ