AAAAPKۄC\711 view.html.phpnuW+AassignRef('show_prices', $show_prices); $document = JFactory::getDocument(); // add javascript for price and cart, need even for quantity buttons, so we need it almost anywhere vmJsApi::jPrice(); $mainframe = JFactory::getApplication(); $pathway = $mainframe->getPathway(); $task = JRequest::getCmd('task'); if (!class_exists('VmImage')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'image.php'); // Load the product //$product = $this->get('product'); //Why it is sensefull to use this construction? Imho it makes it just harder $product_model = VmModel::getModel('product'); $this->assignRef('product_model', $product_model); $virtuemart_product_idArray = JRequest::getVar('virtuemart_product_id', 0); if (is_array($virtuemart_product_idArray) and count($virtuemart_product_idArray) > 0) { $virtuemart_product_id = (int)$virtuemart_product_idArray[0]; } else { $virtuemart_product_id = (int)$virtuemart_product_idArray; } $quantityArray = JRequest::getVar ('quantity', array()); //is sanitized then JArrayHelper::toInteger ($quantityArray); $quantity = 1; if (!empty($quantityArray[0])) { $quantity = $quantityArray[0]; } $product = $product_model->getProduct($virtuemart_product_id,TRUE,TRUE,TRUE,$quantity); if(!class_exists('shopFunctionsF'))require(JPATH_VM_SITE.DS.'helpers'.DS.'shopfunctionsf.php'); $last_category_id = shopFunctionsF::getLastVisitedCategoryId(); if (empty($product->slug)) { //Todo this should be redesigned to fit better for SEO $mainframe->enqueueMessage(JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND')); $categoryLink = ''; if (!$last_category_id) { $last_category_id = JRequest::getInt('virtuemart_category_id', false); } if ($last_category_id) { $categoryLink = '&virtuemart_category_id=' . $last_category_id; } if (VmConfig::get('handle_404',1)) { $mainframe->redirect(JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink . '&error=404', FALSE)); } else { JError::raise(E_ERROR,'404','Not found'); } return; } if (!empty($product->customfields)) { foreach ($product->customfields as $k => $custom) { if (!empty($custom->layout_pos)) { $product->customfieldsSorted[$custom->layout_pos][] = $custom; unset($product->customfields[$k]); } } $product->customfieldsSorted['normal'] = $product->customfields; unset($product->customfields); } $product->event = new stdClass(); $product->event->afterDisplayTitle = ''; $product->event->beforeDisplayContent = ''; $product->event->afterDisplayContent = ''; if (VmConfig::get('enable_content_plugin', 0)) { shopFunctionsF::triggerContentPlugin($product, 'productdetails','product_desc'); } $product_model->addImages($product); $this->assignRef('product', $product); if (isset($product->min_order_level) && (int) $product->min_order_level > 0) { $min_order_level = $product->min_order_level; } else { $min_order_level = 1; } $this->assignRef('min_order_level', $min_order_level); if (isset($product->step_order_level) && (int) $product->step_order_level > 0) { $step_order_level = $product->step_order_level; } else { $step_order_level = 1; } $this->assignRef('step_order_level', $step_order_level); // Load the neighbours if (VmConfig::get('product_navigation', 1)) { $product->neighbours = $product_model->getNeighborProducts($product); } // Load the category $category_model = VmModel::getModel('category'); shopFunctionsF::setLastVisitedCategoryId($product->virtuemart_category_id); if ($category_model) { $category = $category_model->getCategory($product->virtuemart_category_id); $category_model->addImages($category, 1); $this->assignRef('category', $category); //Seems we dont need this anylonger, destroyed the breadcrumb if ($category->parents) { foreach ($category->parents as $c) { if(is_object($c) and isset($c->category_name)){ $pathway->addItem(strip_tags($c->category_name), JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id=' . $c->virtuemart_category_id, FALSE)); } else { vmdebug('Error, parent category has no name, breadcrumb maybe broken, category',$c); } } } $category->children = $category_model->getChildCategoryList($product->virtuemart_vendor_id, $product->virtuemart_category_id); $category_model->addImages($category->children, 1); } if (!empty($tpl)) { $format = $tpl; } else { $format = JRequest::getWord('format', 'html'); } if ($format == 'html') { // Set Canonic link $document->addHeadLink($product->canonical, 'canonical', 'rel', ''); } $pathway->addItem(strip_tags($product->product_name)); // Set the titles // $document->setTitle should be after the additem pathway if ($product->customtitle) { $document->setTitle(strip_tags($product->customtitle)); } else { $document->setTitle(strip_tags(($category->category_name ? ($category->category_name . ' : ') : '') . $product->product_name)); } $ratingModel = VmModel::getModel('ratings'); $allowReview = $ratingModel->allowReview($product->virtuemart_product_id); $this->assignRef('allowReview', $allowReview); $showReview = $ratingModel->showReview($product->virtuemart_product_id); $this->assignRef('showReview', $showReview); if ($showReview) { $review = $ratingModel->getReviewByProduct($product->virtuemart_product_id); $this->assignRef('review', $review); $rating_reviews = $ratingModel->getReviews($product->virtuemart_product_id); $this->assignRef('rating_reviews', $rating_reviews); } $showRating = $ratingModel->showRating($product->virtuemart_product_id); $this->assignRef('showRating', $showRating); if ($showRating) { $vote = $ratingModel->getVoteByProduct($product->virtuemart_product_id); $this->assignRef('vote', $vote); $rating = $ratingModel->getRatingByProduct($product->virtuemart_product_id); $this->assignRef('rating', $rating); } $allowRating = $ratingModel->allowRating($product->virtuemart_product_id); $this->assignRef('allowRating', $allowRating); // Check for editing access // @todo build edit page if (!class_exists('Permissions')) require(JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php'); //if (Permissions::getInstance()->check("admin,storeadmin")) { $perm = Permissions::getInstance(); $admin = $perm->check("admin"); if(!$admin) vmdebug('No admin'); $storeadmin = $perm->check("admin,storeadmin"); if(!$storeadmin) vmdebug('No $storeadmin'); $superVendor = $perm->isSuperVendor(); if(!$superVendor) vmdebug('No $superVendor'); if($admin or ($perm->isSuperVendor()==$product->virtuemart_vendor_id and $storeadmin)){ $edit_link = JURI::root() . 'index.php?option=com_virtuemart&tmpl=component&view=product&task=edit&virtuemart_product_id=' . $product->virtuemart_product_id; $edit_link = $this->linkIcon($edit_link, 'COM_VIRTUEMART_PRODUCT_FORM_EDIT_PRODUCT', 'edit', false, false); } else { $edit_link = ""; } $this->assignRef('edit_link', $edit_link); // todo: atm same form for "call for price" and "ask a question". Title of the form should be different $askquestion_url = JRoute::_('index.php?option=com_virtuemart&view=productdetails&task=askquestion&virtuemart_product_id=' . $product->virtuemart_product_id . '&virtuemart_category_id=' . $product->virtuemart_category_id . '&tmpl=component', FALSE); $this->assignRef('askquestion_url', $askquestion_url); // Load the user details $user = JFactory::getUser(); $this->assignRef('user',$user); // More reviews link $uri = JURI::getInstance(); $uri->setVar('showall', 1); $uristring = vmURI::getCleanUrl(); $this->assignRef('more_reviews', $uristring); if ($product->metadesc) { $document->setDescription($product->metadesc); } if ($product->metakey) { $document->setMetaData('keywords', $product->metakey); } if ($product->metarobot) { $document->setMetaData('robots', $product->metarobot); } if ($mainframe->getCfg('MetaTitle') == '1') { $document->setMetaData('title', $product->product_name); //Maybe better product_name } if ($mainframe->getCfg('MetaAuthor') == '1') { $document->setMetaData('author', $product->metaauthor); } $showBasePrice = Permissions::getInstance()->check('admin'); //todo add config settings $this->assignRef('showBasePrice', $showBasePrice); $productDisplayShipments = array(); $productDisplayPayments = array(); if (!class_exists('vmPSPlugin')) require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php'); JPluginHelper::importPlugin('vmshipment'); JPluginHelper::importPlugin('vmpayment'); $dispatcher = JDispatcher::getInstance(); $returnValues = $dispatcher->trigger('plgVmOnProductDisplayShipment', array($product, &$productDisplayShipments)); $returnValues = $dispatcher->trigger('plgVmOnProductDisplayPayment', array($product, &$productDisplayPayments)); $this->assignRef('productDisplayPayments', $productDisplayPayments); $this->assignRef('productDisplayShipments', $productDisplayShipments); if (empty($category->category_template)) { $category->category_template = VmConfig::get('categorytemplate'); } shopFunctionsF::setVmTemplate($this, $category->category_template, $product->product_template, $category->category_product_layout, $product->layout); shopFunctionsF::addProductToRecent($virtuemart_product_id); $currency = CurrencyDisplay::getInstance(); $this->assignRef('currency', $currency); if(JRequest::getCmd( 'layout', 'default' )=='notify') $this->setLayout('notify'); //Added by Seyi Awofadeju to catch notify layout parent::display($tpl); } function renderMailLayout ($doVendor, $recipient) { $tpl = VmConfig::get('order_mail_html') ? 'mail_html_notify' : 'mail_raw_notify'; $this->doVendor=$doVendor; $this->fromPdf=false; $this->uselayout = $tpl; $this->subject = !empty($this->subject) ? $this->subject : JText::_('COM_VIRTUEMART_CART_NOTIFY_MAIL_SUBJECT'); $this->layoutName = $tpl; $this->setLayout($tpl); parent::display(); } private function showLastCategory($tpl) { $virtuemart_category_id = shopFunctionsF::getLastVisitedCategoryId(); $categoryLink = ''; if ($virtuemart_category_id) { $categoryLink = '&virtuemart_category_id=' . $virtuemart_category_id; } $continue_link = JRoute::_('index.php?option=com_virtuemart&view=category' . $categoryLink, FALSE); $continue_link_html = '' . JText::_('COM_VIRTUEMART_CONTINUE_SHOPPING') . ''; $this->assignRef('continue_link_html', $continue_link_html); // Display it all parent::display($tpl); } } // pure php no closing tagPKۄC\@"tmpl/default_relatedcategories.phpnuW+A PK܄C\sScmpptmpl/default_reviews.phpnuW+AallowRating || $this->showReview) { $maxrating = VmConfig::get ('vm_maximum_rating_scale', 5); $ratingsShow = VmConfig::get ('vm_num_ratings_show', 3); // TODO add vm_num_ratings_show in vmConfig $stars = array(); $showall = JRequest::getBool ('showall', FALSE); $ratingWidth = $maxrating * 24; for ($num = 0; $num <= $maxrating; $num++) { $stars[] = ' '; } ?>
showReview) { ?>

rating_reviews) { foreach ($this->rating_reviews as $review) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } /* Check if user already commented */ // if ($review->virtuemart_userid == $this->user->id ) { if ($review->created_by == $this->user->id && !$review->review_editable) { $review_editable = FALSE; } ?> rating_reviews) && $review->published) { $reviews_published++; ?>
created_on, JText::_ ('DATE_FORMAT_LC')); ?> review_rating] ?>
comment; ?>
customer ?>
= $ratingsShow) { $attribute = array('class'=> 'details', 'title'=> JText::_ ('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link ($this->more_reviews, JText::_ ('COM_VIRTUEMART_MORE_REVIEWS'), $attribute); } break; } } } else { // "There are no reviews for this product" ?>
allowReview) { ?>
" . VmConfig::get ('reviews_maximum_comment_length', 2000) . ") { alert('" . addslashes (JText::sprintf ('COM_VIRTUEMART_REVIEW_ERR_COMMENT2_JS', VmConfig::get ('reviews_maximum_comment_length', 2000))) . "'); return false; } else { return true; } } function refresh_counter() { var form = document.getElementById('reviewform'); form.counter.value= form.comment.value.length; } jQuery(function($) { var steps = " . $maxrating . "; var parentPos= $('.write-reviews .ratingbox').position(); var boxWidth = $('.write-reviews .ratingbox').width();// nbr of total pixels var starSize = (boxWidth/steps); var ratingboxPos= $('.write-reviews .ratingbox').offset(); $('.write-reviews .ratingbox').mousemove( function(e){ var span = $(this).children(); var dif = e.pageX-ratingboxPos.left; // nbr of pixels difRatio = Math.floor(dif/boxWidth* steps )+1; //step span.width(difRatio*starSize); $('#vote').val(difRatio); //console.log('note = ', difRatio); }); }); //]]> "; $document = JFactory::getDocument (); $document->addScriptDeclaration ($reviewJavascript); if ($this->showRating) { if ($this->allowRating && $review_editable) { ?>





' . JText::_ ('COM_VIRTUEMART_DEAR') . $this->user->name . ',
'; echo JText::_ ('COM_VIRTUEMART_REVIEW_ALREADYDONE'); } ?>
allowRating || $this->showReview) { ?>
PK܄C\ۑ tmpl/default_relatedproducts.phpnuW+A PK܄C\U/ tmpl/default_showcategory.phpnuW+Acategory->haschildren) { $iCol = 1; $iCategory = 1; $categories_per_row = VmConfig::get('categories_per_row', 3); $category_cellwidth = ' width' . floor(100 / $categories_per_row); $verticalseparator = " vertical-separator"; ?>
category->children)) { foreach ($this->category->children as $category) { // Show the horizontal seperator if ($iCol == 1 && $iCategory > $categories_per_row) { ?>
virtuemart_category_id, FALSE); // Show Category ?>
product->prices['salesPrice'])) { echo "" . JText::_ ('COM_VIRTUEMART_CART_PRICE') . ""; } //vmdebug('view productdetails layout default show prices, prices',$this->product); if ($this->product->prices['salesPrice']<=0 and VmConfig::get ('askprice', 1) and isset($this->product->images[0]) and !$this->product->images[0]->file_is_downloadable) { ?> showBasePrice) { echo $this->currency->createPriceDiv ('basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices); if (round($this->product->prices['basePrice'],$this->currency->_priceConfig['basePriceVariant'][1]) != $this->product->prices['basePriceVariant']) { echo $this->currency->createPriceDiv ('basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices); } } echo $this->currency->createPriceDiv ('variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices); if (round($this->product->prices['basePriceWithTax'],$this->currency->_priceConfig['salesPrice'][1]) != $this->product->prices['salesPrice']) { echo '' . $this->currency->createPriceDiv ('basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices) . ""; } if (round($this->product->prices['salesPriceWithDiscount'],$this->currency->_priceConfig['salesPrice'][1]) != $this->product->prices['salesPrice']) { echo $this->currency->createPriceDiv ('salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices); } echo $this->currency->createPriceDiv ('salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices); if ($this->product->prices['discountedPriceWithoutTax'] != $this->product->prices['priceWithoutTax']) { echo $this->currency->createPriceDiv ('discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices); } else { echo $this->currency->createPriceDiv ('priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices); } echo $this->currency->createPriceDiv ('discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices); echo $this->currency->createPriceDiv ('taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices); $unitPriceDescription = JText::sprintf ('COM_VIRTUEMART_PRODUCT_UNITPRICE', JText::_('COM_VIRTUEMART_UNIT_SYMBOL_'.$this->product->product_unit)); echo $this->currency->createPriceDiv ('unitPrice', $unitPriceDescription, $this->product->prices); } ?>
PK܄C\O¼Rtmpl/default_customfields.phpnuW+A
product->customfieldsSorted[$this->position] as $field) { if ( $field->is_hidden ) //OSP http://forum.virtuemart.net/index.php?topic=99320.0 continue; if ($field->display) { ?>
custom_title != $custom_title && $field->show_title) { ?> custom_title); ?> custom_tip) echo JHTML::tooltip($field->custom_tip, JText::_($field->custom_title), 'tooltip.png'); } ?> display ?> custom_field_desc) ?>
custom_title; } } ?>
PK܄C\[  tmpl/default_images.phpnuW+AaddScriptDeclaration ($imageJS); if (!empty($this->product->images)) { $image = $this->product->images[0]; ?>
displayMediaFull("",true,"rel='vm-additional-images'"); ?>
product->images); if ($count_images > 1) { ?>
product->images[$i]; ?>
displayMediaThumb('class="product-image" style="cursor: pointer"',false,""); echo ''; } else { echo $image->displayMediaThumb("",true,"rel='vm-additional-images'"); } ?>
PK܄C\tmpl/mail_raw_notify.phpnuW+AvendorAddress; echo "\n"; echo "\n"; echo JText::sprintf ('COM_VIRTUEMART_MAIL_SHOPPER_NAME', $this->user->name); echo "\n"; echo "\n"; if(!empty($this->mailbody)) { echo $this->mailbody; } else { echo str_replace( "
", "\n", JText::sprintf('COM_VIRTUEMART_CART_NOTIFY_MAIL_RAW', $this->productName,$this->link) ); } echo "\n"; $link = JURI::root().'index.php?option=com_virtuemart'; echo "\n\n"; $link= JHTML::_('link', $link, $this->vendor->vendor_name) ; // echo JText::_('COM_VIRTUEMART_MAIL_VENDOR_TITLE').$this->vendor->vendor_name.'
'; /* GENERAL FOOTER FOR ALL MAILS */ echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . $link; echo "\n"; echo $this->vendor->vendor_name ."\n".$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name ."\n".strip_tags($this->vendor->vendor_store_desc)."\n".str_replace('
',"\n",$this->vendor->vendor_legal_info); PK܄C\Xѿtmpl/notify.phpnuW+A

product->product_name); ?>




PK܄C\?k tmpl/pdf.xmlnuW+A PK܄C\"ktmpl/default_addtocart.phpnuW+Aproduct->step_order_level)) $step=$this->product->step_order_level; else $step=1; if($step==0) $step=1; $alert=JText::sprintf ('COM_VIRTUEMART_WRONG_AMOUNT_ADDED', $step); ?>
product->customfieldsCart)) { ?>
product->customfieldsCart as $field) { ?>
show_title) { ?> custom_title) ?> custom_tip) { echo JHTML::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png'); } ?> display ?> custom_field_desc) ?>

virtuemart_product_id as link to child product_id * custom_value is relation value to child */ if (!empty($this->product->customsChilds)) { ?>
product->customsChilds as $field) { ?>
field->custom_title) ?> field->custom_value) ?> display ?>

product->product_in_stock - $this->product->product_ordered) < 1) { ?> product->prices['costPrice']; if (!( VmConfig::get('askprice', 0) and empty($tmpPrice) ) ) { ?> product->orderable); // Display the add to cart button END ?>
PK܄C\^11 tmpl/pdf.phpnuW+Aproduct )) { echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' ); echo '

' . $this->continue_link_html; return; } ?>

product->product_name ?>

product->images) && count($this->product->images)>0) { echo $this->product->images[0]->displayMediaFull('class="product-image"',false); ?>
product->images as $image) { echo $image->displayMediaThumb('class="product-image"'); //'class="modal"' } ?>
product->product_s_desc)) { ?>
product->product_s_desc; ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?>
*/ ?> rating)? JText::_('COM_VIRTUEMART_UNRATED'):$this->rating->rating; echo JText::_('COM_VIRTUEMART_RATING') . $rating; // Product Price if ($this->show_prices) { ?>
product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' )) { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):"; } else { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . ""; } if ($this->showBasePrice) { echo $this->currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceVariant', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT', $this->product->prices ); } echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices ); ?>
product->customfieldsCart)) { ?>
product->customfieldsCart as $field) { ?>
custom_title ?> custom_tip, $field->custom_title, 'tooltip.png'); ?> display ?> custom_field_desc ?>

virtuemart_product_id as link to child product_id * custom_value is relation value to child */ if (!empty($this->product->customsChilds)) { ?>
product->customsChilds as $field) { ?>
field->custom_title ?> field->custom_value ?> display ?>

product->product_availability)) { ?>
product->product_availability, $this->product->product_availability, array('class' => 'availability')); ?>
product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id.'&tmpl=component'); ?>
product->virtuemart_manufacturer_id)) { ?>
product->virtuemart_manufacturer_id.'&tmpl=component'); $text = $this->product->mf_name; /* Avoid JavaScript on PDF Output */ if (strtolower(JRequest::getWord('output')) == "pdf"){ echo JHTML::_('link', $link, $text); } else { ?>
product->product_desc)) { ?>
product->product_desc; ?>
product->customfields)) { ?>
product->customfields as $field){ ?>
custom_title != $custom_title) { ?> custom_title); ?> custom_tip, $field->custom_title, 'tooltip.png'); } ?> display ?> custom_field_desc) ?>
custom_title; } ?>
product->packaging || $this->product->box) { ?>

product->packaging) { $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING1').$this->product->packaging; if ($this->product->box) $product_packaging .= '
'; } if ($this->product->box) $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING2').$this->product->box; echo str_replace("{unit}",$this->product->product_unit ? $this->product->product_unit : JText::_('COM_VIRTUEMART_PRODUCT_FORM_UNIT_DEFAULT'), $product_packaging); ?>
showReview ) { $maxrating = VmConfig::get('vm_maximum_rating_scale',5); $ratingsShow = VmConfig::get('vm_num_ratings_show',3); // TODO add vm_num_ratings_show in vmConfig $starsPath = JURI::root().VmConfig::get('assets_general_path').'images/stars/'; $stars = array(); $showall = JRequest::getBool('showall', false); for ($num=0 ; $num <= $maxrating; $num++ ) { $title = (JText::_("VM_RATING_TITLE").' : '. $num . '/' . $maxrating) ; $stars[] = JHTML::image($starsPath.$num.'.gif', JText::_($num.'_STARS'), array("title" => $title) ); } ?>
showReview) { $alreadycommented = false; ?>

rating_reviews as $review ) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } // Loop through all reviews if (!empty($this->rating_reviews)) { ?>
created_on, JText::_('DATE_FORMAT_LC')); ?> review_rating ] //Attention the review rating is the rating of the review itself, rating for the product is the vote !?>
comment; ?>
customer ?>
rating_reviews) < 1) { // "There are no reviews for this product" ?> rating_reviews) >= $ratingsShow ) { $attribute = array('class'=>'details', 'title'=>JText::_('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link($this->more_reviews, JText::_('COM_VIRTUEMART_MORE_REVIEWS'),$attribute); } } ?>
'.JText::_('COM_VIRTUEMART_DEAR').$this->user->name.',
' ; // echo JText::_('COM_VIRTUEMART_REVIEW_ALREADYDONE'); // } if( $this->showReview ) { ?>
PK܄C\^etmpl/default_manufacturer.phpnuW+A
product->virtuemart_manufacturer_id . '&tmpl=component', FALSE); $text = $this->product->mf_name; /* Avoid JavaScript on PDF Output */ if (strtolower(JRequest::getWord('output')) == "pdf") { echo JHTML::_('link', $link, $text); } else { ?>
PK܄C\)tmpl/.htaccessnuW+A Order allow,deny Deny from all PK܄C\ 199tmpl/default.phpnuW+Aproduct)) { echo JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND'); echo '

' . $this->continue_link_html; return; } if(JRequest::getInt('print',false)){ ?> product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component'; $boxFuncReco = ''; $boxFuncAsk = ''; if(VmConfig::get('usefancy',1)){ vmJsApi::js( 'fancybox/jquery.fancybox-1.3.4.pack'); vmJsApi::css('jquery.fancybox-1.3.4'); if(VmConfig::get('show_emailfriend',0)){ $boxReco = "jQuery.fancybox({ href: '" . $MailLink . "', type: 'iframe', height: '550' });"; } if(VmConfig::get('ask_question', 0)){ $boxAsk = "jQuery.fancybox({ href: '" . $this->askquestion_url . "', type: 'iframe', height: '550' });"; } } else { vmJsApi::js( 'facebox' ); vmJsApi::css( 'facebox' ); if(VmConfig::get('show_emailfriend',0)){ $boxReco = "jQuery.facebox({ iframe: '" . $MailLink . "', rev: 'iframe|550|550' });"; } if(VmConfig::get('ask_question', 0)){ $boxAsk = "jQuery.facebox({ iframe: '" . $this->askquestion_url . "', rev: 'iframe|550|550' });"; } } if(VmConfig::get('show_emailfriend',0) ){ $boxFuncReco = "jQuery('a.recommened-to-friend').click( function(){ ".$boxReco." return false ; });"; } if(VmConfig::get('ask_question', 0)){ $boxFuncAsk = "jQuery('a.ask-a-question').click( function(){ ".$boxAsk." return false ; });"; } if(!empty($boxFuncAsk) or !empty($boxFuncReco)){ $document = JFactory::getDocument(); $document->addScriptDeclaration(" // "); } ?>
product->neighbours ['previous'][0])) { $prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id, FALSE); echo JHTML::_('link', $prev_link, $this->product->neighbours ['previous'][0] ['product_name'], array('rel'=>'prev', 'class' => 'previous-page')); } if (!empty($this->product->neighbours ['next'][0])) { $next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id, FALSE); echo JHTML::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('rel'=>'next','class' => 'next-page')); } ?>
product->virtuemart_category_id) { $catURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$this->product->virtuemart_category_id, FALSE); $categoryName = $this->product->category_name ; } else { $catURL = JRoute::_('index.php?option=com_virtuemart'); $categoryName = jText::_('COM_VIRTUEMART_SHOP_HOME') ; } ?>

product->product_name ?>

product->event->afterDisplayTitle ?> edit_link; // Product Edit Link END ?>
product->virtuemart_product_id; echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_icon', false); echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon'); echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend', false,true,false,'class="recommened-to-friend"'); ?>
product->product_s_desc)) { ?>
product->product_s_desc); ?>
product->customfieldsSorted['ontop'])) { $this->position = 'ontop'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?>
loadTemplate('images'); ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?>
*/ ?> showRating) { $maxrating = VmConfig::get('vm_maximum_rating_scale', 5); if (empty($this->rating)) { ?> rating->rating * 24; //I don't use round as percetntage with works perfect, as for me ?> rating->rating) . '/' . $maxrating; ?>
rating->rating) . '/' . $maxrating) ?>" class="ratingbox" style="display:inline-block;">
productDisplayShipments)) { foreach ($this->productDisplayShipments as $productDisplayShipment) { echo $productDisplayShipment . '
'; } } if (is_array($this->productDisplayPayments)) { foreach ($this->productDisplayPayments as $productDisplayPayment) { echo $productDisplayPayment . '
'; } } // Product Price // the test is done in show_prices //if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) { echo $this->loadTemplate('showprices'); //} ?> product->prices) and !empty($this->product->images[0]) and $this->product->images[0]->file_is_downloadable==0 ) { // if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices['salesPrice'])) { echo $this->loadTemplate('addtocart'); // } // Add To Cart Button END ?> product->product_available_date,0,10); $current_date = date("Y-m-d"); if (($this->product->product_in_stock - $this->product->product_ordered) < 1) { if ($product_available_date != '0000-00-00' and $current_date < $product_available_date) { ?>
product->product_available_date, JText::_('DATE_FORMAT_LC4')); ?>
product->product_availability)) { ?>
'availability')) : JText::_(VmConfig::get('rised_availability')); ?>
product->product_availability)) { ?>
product->product_availability)) ? JHTML::image(JURI::root() . VmConfig::get('assets_general_path') . 'images/availability/' . $this->product->product_availability, $this->product->product_availability, array('class' => 'availability')) : JText::_($this->product->product_availability); ?>
product->product_available_date, JText::_('DATE_FORMAT_LC4')); ?>
product->virtuemart_manufacturer_id)) { echo $this->loadTemplate('manufacturer'); } ?>
product->event->beforeDisplayContent; ?> product->product_desc)) { ?>
product->product_desc; ?>
product->customfieldsSorted['normal'])) { $this->position = 'normal'; echo $this->loadTemplate('customfields'); } // Product custom_fields END // Product Packaging $product_packaging = ''; if ($this->product->product_box) { ?>
product->product_box; ?>
product->images as $fkey => $file) { // Todo add downloadable files again // if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)"; // else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)"; /* Show pdf in a new Window, other file types will be offered as download */ // $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self"; // $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id); // echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target)); // } if (!empty($this->product->customfieldsRelatedProducts)) { echo $this->loadTemplate('relatedproducts'); } // Product customfieldsRelatedProducts END if (!empty($this->product->customfieldsRelatedCategories)) { echo $this->loadTemplate('relatedcategories'); } // Product customfieldsRelatedCategories END // Show child categories if (VmConfig::get('showCategory', 1)) { echo $this->loadTemplate('showcategory'); } if (!empty($this->product->customfieldsSorted['onbot'])) { $this->position='onbot'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?> product->event->afterDisplayContent; ?> loadTemplate('reviews'); ?>
PK܄C\K7sstmpl/default.xmlnuW+A COM_VIRTUEMART_PRODUCTDETAILS_VIEW_DEFAULT_TITLE
PK܄C\o {4{4tmpl/default_pdf.phpnuW+Atype)) { $document = JFactory::getDocument(); $document->setTitle($this->product->product_name); $document->setName($this->product->product_name); $document->setDescription( $this->product->product_s_desc); } /* Let's see if we found the product */ if (empty ( $this->product )) { echo JText::_ ( 'COM_VIRTUEMART_PRODUCT_NOT_FOUND' ); echo '

' . $this->continue_link_html; return; } ?>

product->product_name ?>

product->images) && count($this->product->images)>0) { echo $this->product->images[0]->displayMediaFull('class="product-image"',false); ?>
product->images as $image) { echo $image->displayMediaThumb('class="product-image"'); //'class="modal"' } ?>
product->product_s_desc)) { ?>
product->product_s_desc; ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?>
*/ ?> rating)? JText::_('COM_VIRTUEMART_UNRATED'):$this->rating->rating; echo JText::_('COM_VIRTUEMART_RATING') . $rating; // Product Price if ($this->show_prices) { ?>
product->product_unit && VmConfig::get ( 'price_show_packaging_pricelabel' )) { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE_PER_UNIT' ) . ' (' . $this->product->product_unit . "):"; } else { echo "" . JText::_ ( 'COM_VIRTUEMART_CART_PRICE' ) . ""; } echo $this->currency->createPriceDiv ( 'variantModification', 'COM_VIRTUEMART_PRODUCT_VARIANT_MOD', $this->product->prices ); echo $this->currency->createPriceDiv ( 'basePriceWithTax', 'COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountedPriceWithoutTax', 'COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPriceWithDiscount', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'salesPrice', 'COM_VIRTUEMART_PRODUCT_SALESPRICE', $this->product->prices ); echo $this->currency->createPriceDiv ( 'priceWithoutTax', 'COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX', $this->product->prices ); echo $this->currency->createPriceDiv ( 'discountAmount', 'COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT', $this->product->prices ); echo $this->currency->createPriceDiv ( 'taxAmount', 'COM_VIRTUEMART_PRODUCT_TAX_AMOUNT', $this->product->prices ); ?>
product->product_availability)) { ?>
product->product_availability, $this->product->product_availability, array('class' => 'availability')); ?>
product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id.'&tmpl=component'); ?>
product->virtuemart_manufacturer_id)) { ?>
product->virtuemart_manufacturer_id.'&tmpl=component'); $text = $this->product->mf_name; /* Avoid JavaScript on PDF Output */ if (strtolower(JRequest::getWord('output')) == "pdf"){ echo JHTML::_('link', $link, $text); } else { ?>
product->product_desc)) { ?>
product->product_desc; ?>
product->customfields)) { ?>
product->customfields as $field){ ?>
custom_title != $custom_title) { ?> custom_title); ?> custom_tip, $field->custom_title, 'tooltip.png'); } ?> display ?> custom_field_desc) ?>
custom_title; } ?>
product->product_box) { ?>
product->product_box; ?>
product->images as $fkey => $file) { // Todo add downloadable files again // if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)"; // else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)"; /* Show pdf in a new Window, other file types will be offered as download */ // $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self"; // $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id); // echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target)); // } ?> product->related && !empty($this->product->related)) { $iRelatedCol = 1; $iRelatedProduct = 1; $RelatedProducts_per_row = 4 ; $Relatedcellwidth = ' width'.floor ( 100 / $RelatedProducts_per_row ); $verticalseparator = " vertical-separator"; ?>
allowRating || $this->showReview) { $maxrating = VmConfig::get('vm_maximum_rating_scale',5); $ratingsShow = VmConfig::get('vm_num_ratings_show',3); // TODO add vm_num_ratings_show in vmConfig $starsPath = JURI::root().VmConfig::get('assets_general_path').'images/stars/'; $stars = array(); $showall = JRequest::getBool('showall', false); for ($num=0 ; $num <= $maxrating; $num++ ) { $title = (JText::_("VM_RATING_TITLE").' : '. $num . '/' . $maxrating) ; $stars[] = JHTML::image($starsPath.$num.'.gif', JText::_($num.'_STARS'), array("title" => $title) ); } ?>
showReview) { $alreadycommented = false; ?>

rating_reviews as $review ) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } ?> rating_reviews)) { ?>
created_on, JText::_('DATE_FORMAT_LC')); ?> review_rating ] //Attention the review rating is the rating of the review itself, rating for the product is the vote !?>
comment; ?>
customer ?>
rating_reviews) < 1) { // "There are no reviews for this product" ?> rating_reviews) >= $ratingsShow ) { $attribute = array('class'=>'details', 'title'=>JText::_('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link($this->more_reviews, JText::_('COM_VIRTUEMART_MORE_REVIEWS'),$attribute); } } ?>
allowRating || $this->showReview) { ?>
PK܄C\1~ ~ tmpl/mail_html_notify.phpnuW+A

'; /* GENERAL FOOTER FOR ALL MAILS */ $link = JURI::root().'index.php?option=com_virtuemart'; echo JText::_('COM_VIRTUEMART_MAIL_FOOTER' ) . ''.$this->vendor->vendor_name.''; echo '
'; echo $this->vendor->vendor_name .'
'.$this->vendor->vendor_phone .' '.$this->vendor->vendor_store_name .'
'.$this->vendor->vendor_store_desc.'
'.$this->vendor->vendor_legal_info; ?>
PK܄C\) .htaccessnuW+A Order allow,deny Deny from all PK܄C\#o,, index.htmlnuW+APKۄC\711 view.html.phpnuW+APKۄC\@"1tmpl/default_relatedcategories.phpnuW+APK܄C\sScmpp6tmpl/default_reviews.phpnuW+APK܄C\#o,,Vtmpl/index.htmlnuW+APK܄C\ۑ Vtmpl/default_relatedproducts.phpnuW+APK܄C\U/ *\tmpl/default_showcategory.phpnuW+APK܄C\rzoohtmpl/default_showprices.phpnuW+APK܄C\O¼Rvtmpl/default_customfields.phpnuW+APK܄C\[  ~tmpl/default_images.phpnuW+APK܄C\`tmpl/mail_raw_notify.phpnuW+APK܄C\XѿJtmpl/notify.phpnuW+APK܄C\?k .tmpl/pdf.xmlnuW+APK܄C\"kPtmpl/default_addtocart.phpnuW+APK܄C\^11 "tmpl/pdf.phpnuW+APK܄C\^eptmpl/default_manufacturer.phpnuW+APK܄C\)mtmpl/.htaccessnuW+APK܄C\ 199*tmpl/default.phpnuW+APK܄C\K7ss<%tmpl/default.xmlnuW+APK܄C\o {4{4)tmpl/default_pdf.phpnuW+APK܄C\1~ ~ ^tmpl/mail_html_notify.phpnuW+APK܄C\) ul.htaccessnuW+APK܄C\#o,, -mindex.htmlnuW+APKFm