News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

product details Pdf doesn't ski[p plugin to display description

Started by Snostar, May 23, 2013, 22:50:51 PM

Previous topic - Next topic

Snostar

On my product details page my template has a "pfd" option. This doesn't work properly when using VMDtabs.

If you go here:
www.joomla25.meadowsmedical.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1084&virtuemart_category_id=13&Itemid=528

and click on the PDF icon you will see my description now looks like this:

Description


if(typeof jQuery=="undefined") {document.write("\u003cscript
\src=\u0022ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js\u0022>\u003c/script>");}
jQuery.noConflict(); jQuery(document).ready(function() {
jQuery("#vmdTabsProductTabs").tabs().show(); });


Another product with out the VMDtabs is here:

www.joomla25.meadowsmedical.com/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=1083&virtuemart_category_id=13&Itemid=528

If you click on that PDF icon the description is fine.
VMDTabs told me it is suppose to skip the execution of plugins but believes it is a VM or template issue

How do I fix this??? Where do I even begin to look?
thanks

Snostar

Can anyone please help m3e with this, I have no idea even where to look at this point and I have spent a month on and off trying to fix this

I found a default_pdf.php file that has this code:

   <?php // Product Description
   if (!empty($this->product->product_desc)) { ?>
   <div class="product-description">
      <?php /** @todo Test if content plugins modify the product description */ ?>
      <span class="title"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></span>
      <?php echo $this->product->product_desc; ?>
   </div>
   <?php } // Product Description END ?>
   <?php // Product custom_fields TODO relation to Childs
   if (!empty($this->product->customfields)) { ?>
      <div class="product-fields">
      <?php
      $custom_title = null ;
      foreach ($this->product->customfields as $field){
         ?><div style="display:inline-block;" class="product-field product-field-type-<?php echo $field->field_type ?>">
         <?php if ($field->custom_title != $custom_title) { ?>
            <span class="product-fields-title" ><strong><?php echo JText::_($field->custom_title); ?></strong></span>
            <?php //echo JHTML::tooltip($field->custom_tip, $field->custom_title, 'tooltip.png');
         } ?>
         <span class="product-field-display"><?php echo $field->display ?></span>
         <span class="product-field-desc"><?php echo jText::_($field->custom_field_desc) ?></span>
         </div>
         <?php
         $custom_title = $field->custom_title;
      } ?>
      </div>
      <?php

It is obviously a virtuemart file this was a the top:
Show the product details page
*
* @package   VirtueMart
* @subpackage
* @author Max Milbers, Eugen Stranz
* @author RolandD,
* @todo handle child products
* @link http://www.virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: default.php 3605 2011-07-04 10:23:23Z Milbo $
*/

Also, the print icon...... on the product details page works perfectly, it is exactly how I would like the pdf to look perhaps I can use that some how?