Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Responsive Joomla Virtuemart Template - LightMart (SKU# FLEX-00012)

TOPIC: product image PDF not open just loading preview

product image PDF not open just loading preview 5 years 10 months ago #15613

When I click on a PDF file, uploaded as product media, it isn't downloaded but it try to show in preview.
i found a similar problem topic
on link "www.flexiblewebdesign.com/forum-joomla-virtuemart-template-asymmetric-support/1987-bugs-and-missing-icons#15223"
its for asymmetric template and in Light mart template cant find the
"1- Open this PHP file:
/templates/flexible_asymmetric/html/com_virtuemart/productdetails/default_images.php"

the follow file does not exist in this path
/templates/flexible_LightMart/html/com_virtuemart/productdetails/default_images.php"
waiting your instructions
how i can correct this?
thanks
Last Edit: 5 years 10 months ago by Costas Vasilopoulos.
The administrator has disabled public write access.

product image PDF not open just loading preview 5 years 9 months ago #15619

any news ??? until now no answer from you
Last Edit: 5 years 9 months ago by Costas Vasilopoulos.
The administrator has disabled public write access.

product image PDF not open just loading preview 5 years 9 months ago #15625

Hi,
Sorry for the little late reply. Here is the solution:

1- Open this PHP file: /templates/flexible_lightmrt/html/com_virtuemart/productdetails/default.php
2- Find this line:
<li><a href="<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>" rel="<?php echo $this->product->images[$ImageId]->file_meta;?>" title="<?php echo $this->product->images[$ImageId]->file_description;?>" data-image="<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>" data-zoom-image="<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>" class="<?php if ($i=='1') echo 'active';?> fancybox2"> <span><?php echo $this->product->images[$ImageId]->displayMediaThumb('',false,"class=''",true,false,false,0,0); ?>
              <?php if ($params->get('show_subtitle') and !empty($this->product->images[$ImageId]->file_description)) { ?>
              <div class="subTitle"><?php echo $this->product->images[$ImageId]->file_description;?></div>
              <?php } ?>
              </span> </a></li>

3- Replace it with this:
<li><a <?php if ($this->product->images[$ImageId]->file_extension == 'pdf') { ?> onClick="window.open('<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>', '_blank')"<?php } ?> href="<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>" rel="<?php echo $this->product->images[$ImageId]->file_meta;?>" title="<?php echo $this->product->images[$ImageId]->file_description;?>" data-image="<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>" data-zoom-image="<?php echo JURI::root().$this->product->images[$ImageId]->file_url;?>" class="<?php if ($i=='1') echo 'active';?> fancybox2"> <span><?php echo $this->product->images[$ImageId]->displayMediaThumb('',false,"class=''",true,false,false,0,0); ?>
              <?php if ($params->get('show_subtitle') and !empty($this->product->images[$ImageId]->file_description)) { ?>
              <div class="subTitle"><?php echo $this->product->images[$ImageId]->file_description;?></div>
              <?php } ?>
              </span> </a></li>
Last Edit: 5 years 9 months ago by Support.
The administrator has disabled public write access.

product image PDF not open just loading preview 5 years 9 months ago #15631

now its ok thanks
The administrator has disabled public write access.

product image PDF not open just loading preview 5 years 9 months ago #15632

it works in some pdfs on chrome
not work on Firefox and IE
The administrator has disabled public write access.
Time to create page: 0.173 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo