AAAAhome/academiac/www/components/com_virtuemart/views/productdetails/tmpl/default_pdf.php 0000604 00000032173 15146644547 0025603 0 ustar 00 type)) {
$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) {
?>