AAAAindex.html000066600000000054151372275170006556 0ustar00.htaccess000066600000000177151372275170006365 0ustar00 Order allow,deny Deny from all mod_virtuemart_product.php000066600000005700151372275170012076 0ustar00get( 'max_items', 2 ); //maximum number of items to display $layout = $params->get('layout','default'); $category_id = $params->get( 'virtuemart_category_id', null ); // Display products from this category only $filter_category = (bool)$params->get( 'filter_category', 0 ); // Filter the category $display_style = $params->get( 'display_style', "div" ); // Display Style $products_per_row = $params->get( 'products_per_row', 1 ); // Display X products per Row $show_price = (bool)$params->get( 'show_price', 1 ); // Display the Product Price? $show_addtocart = (bool)$params->get( 'show_addtocart', 1 ); // Display the "Add-to-Cart" Link? $headerText = $params->get( 'headerText', '' ); // Display a Header Text $footerText = $params->get( 'footerText', ''); // Display a footerText $Product_group = $params->get( 'product_group', 'featured'); // Display a footerText $mainframe = Jfactory::getApplication(); $virtuemart_currency_id = $mainframe->getUserStateFromRequest( "virtuemart_currency_id", 'virtuemart_currency_id',JRequest::getInt('virtuemart_currency_id',0) ); $key = 'products'.$category_id.'.'.$max_items.'.'.$filter_category.'.'.$display_style.'.'.$products_per_row.'.'.$show_price.'.'.$show_addtocart.'.'.$Product_group.'.'.$virtuemart_currency_id; $cache = JFactory::getCache('mod_virtuemart_product', 'output'); if (!($output = $cache->get($key))) { ob_start(); // Try to load the data from cache. /* Load VM fonction */ if (!class_exists( 'mod_virtuemart_product' )) require('helper.php'); $vendorId = JRequest::getInt('vendorid', 1); if ($filter_category ) $filter_category = TRUE; $productModel = VmModel::getModel('Product'); $products = $productModel->getProductListing($Product_group, $max_items, $show_price, true, false,$filter_category, $category_id); $productModel->addImages($products); $totalProd = count( $products); if(empty($products)) return false; $currency = CurrencyDisplay::getInstance( ); if ($show_addtocart) { //vmJsApi::jPrice(); vmJsApi::cssSite(); } /* Load tmpl default */ require(JModuleHelper::getLayoutPath('mod_virtuemart_product',$layout)); $output = ob_get_clean(); $cache->store($output, $key); } echo $output; ?> mod_virtuemart_product.xml000066600000017700151372275170012112 0ustar00 mod_virtuemart_product January 10 2014 The VirtueMart Development Team http://www.virtuemart.net ${PHING.VM.COPYRIGH} http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL 2.0.26d MOD_VIRTUEMART_PRODUCT_DESC mod_virtuemart_product.php index.html helper.php tmpl/default.php tmpl/single.php tmpl/index.html
helper.php000066600000011707151372275170006560 0ustar00load ('com_virtuemart'); if (!class_exists ('calculationHelper')) { require(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'calculationh.php'); } if (!class_exists ('CurrencyDisplay')) { require(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'currencydisplay.php'); } if (!class_exists ('VirtueMartModelVendor')) { require(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models' . DS . 'vendor.php'); } if (!class_exists ('VmImage')) { require(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'image.php'); } if (!class_exists ('shopFunctionsF')) { require(JPATH_SITE . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'shopfunctionsf.php'); } if (!class_exists ('calculationHelper')) { require(JPATH_COMPONENT_SITE . DS . 'helpers' . DS . 'cart.php'); } if (!class_exists ('VirtueMartModelProduct')) { JLoader::import ('product', JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_virtuemart' . DS . 'models'); } class mod_virtuemart_product { static function addtocart ($product) { if (!VmConfig::get ('use_as_catalog', 0)) { $stockhandle = VmConfig::get ('stockhandle', 'none'); if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and ($product->product_in_stock - $product->product_ordered) < 1) { $button_lbl = JText::_ ('COM_VIRTUEMART_CART_NOTIFY'); $button_cls = 'notify-button'; $button_name = 'notifycustomer'; ?>
customfieldsCart)) { ?>
customfieldsCart as $field) { ?>
show_title == 1) { ?> custom_title ?> custom_tip, $field->custom_title, 'tooltip.png'); ?> display ?> custom_field_desc ?>
orderable); ?>
Order allow,deny Deny from all tmpl/default.php000066600000011233151372275170007673 0ustar00 1) { $float = "floatleft"; } else { $float = "center"; } ?>
images[0])) { $image = $product->images[0]->displayMediaThumb ('class="featuredProductImage" border="0"', FALSE); } else { $image = ''; } echo JHTML::_ ('link', JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id), $image, array('title' => $product->product_name)); echo '
'; $url = JRoute::_ ('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id); ?> product_name ?>
'; if ($show_price) { // echo $currency->priceDisplay($product->prices['salesPrice']); if (!empty($product->prices['salesPrice'])) { echo $currency->createPriceDiv ('salesPrice', '', $product->prices, FALSE, FALSE, 1.0, TRUE); } // if ($product->prices['salesPriceWithDiscount']>0) echo $currency->priceDisplay($product->prices['salesPriceWithDiscount']); if (!empty($product->prices['salesPriceWithDiscount'])) { echo $currency->createPriceDiv ('salesPriceWithDiscount', '', $product->prices, FALSE, FALSE, 1.0, TRUE); } } if ($show_addtocart) { echo mod_virtuemart_product::addtocart ($product); } ?>
"; $col = 1; } else { $col++; } } ?>

'; // $product->prices is not set when show_prices in config is unchecked if ($show_price and isset($product->prices)) { echo '
'.$currency->createPriceDiv ('salesPrice', '', $product->prices, FALSE, FALSE, 1.0, TRUE); if ($product->prices['salesPriceWithDiscount'] > 0) { echo $currency->createPriceDiv ('salesPriceWithDiscount', '', $product->prices, FALSE, FALSE, 1.0, TRUE); } echo '
'; } if ($show_addtocart) { echo mod_virtuemart_product::addtocart ($product); } ?>
tmpl/index.html000066600000000054151372275170007532 0ustar00tmpl/single.php000066600000003731151372275170007534 0ustar00
images[0]) ) $image = $product->images[0]->displayMediaThumb('class="featuredProductImage" border="0"',false) ; else $image = ''; echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),$image,array('title' => $product->product_name) ); echo '
'; $url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='. $product->virtuemart_category_id); ?> product_name ?>
'; // $product->prices is not set when show_prices in config is unchecked if ($show_price and isset($product->prices)) { // echo $currency->priceDisplay($product->prices['salesPrice']); if (!empty($product->prices['salesPrice'] ) ) echo $currency->createPriceDiv('salesPrice','',$product->prices,true); // if ($product->prices['salesPriceWithDiscount']>0) echo $currency->priceDisplay($product->prices['salesPriceWithDiscount']); if (!empty($product->prices['salesPriceWithDiscount']) ) echo $currency->createPriceDiv('salesPriceWithDiscount','',$product->prices,true); } if ($show_addtocart) echo mod_virtuemart_product::addtocart($product); ?>