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

TOPIC: media (pdf-doc) on product detail not allow

media (pdf-doc) on product detail not allow 10 years 10 months ago #4781

Dear!
only now I realized a problem of viewing / download files hooked Article on the detail page of the product: pdf, xls, doc, docx, etc ...
disabling the plugin (template) icons that allow you to view or download (depending on the settings septate file loads) are shown, while a plugin is enabled (template) icons are not shown, and clicking in the rectangle (the one that contains the 'image icon) tries to open the media in the box above, without loading the corresponding average

where is the error?

in attachment the example.

hope in your suggestion.
thanks
Attachments:
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4794

Hi,

Have notified the development team.

please be patient

Thanks
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4796

Hi,

Looks like
<?php echo $this->product->images[0]->file_url;?>
to gather the product picture URL is not able to get the URL correctly, most likely it should be changed to;
<?php echo JURI::base().$this->product->images[0]->file_url;?>

Please provide me your joomla (super) admin account to This email address is being protected from spambots. You need JavaScript enabled to view it. to let me fix that issue and make everything ready for you.

(while emailing to This email address is being protected from spambots. You need JavaScript enabled to view it., don't forget to include this forum post's URL at the top of your message to avoid any possible confusion in our end)

Regards.
Support & Development
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4804

hello and thanks for your support.
I sent the mail to the address indicated "This email address is being protected from spambots. You need JavaScript enabled to view it." by specifying all the necessary information by account This email address is being protected from spambots. You need JavaScript enabled to view it..

in the mail I have indicated also the way to link the website (domain name is not active yet).

thanks
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4828

Please let me know if the information on the e-mail are not sufficient for your test, or if there are other problems, so that I can provide you with everything you need in the shortest possible time.
thanks
greetings
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4889

Dear John and Support,
you could kindly let me have the info on the progress of the bug indicated? At least know if the e-mail that was sent has arrived, if it is being worked on, if there are problems about what is indicated in the e-mail address to carry out on-site.

thank you very much for your support.
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4904

Hi,

Really sorry for the late reply Mirco.
But i should tell that, somehow you email is sent to "SPAM" folder in (This email address is being protected from spambots. You need JavaScript enabled to view it.). You should better investigate this situation and search why your emails are dropping to SPAM folder for your own good in the future. This email address is being protected from spambots. You need JavaScript enabled to view it. uses Google Apps, which means, Google has decided to sent your email to SPAM folder, which is not good. There are millions of people using @gmail.com email address nowadays. (my opinion to solve it, you shouldn't be using graphic in your email as "signature". )

I just noticed your email accidentally by a chance.
See the screenshot:

Attachment Pasted_Image_5_30_13_2_53_PM.gif not found



I am now looking at your case. And I will keep you posted.

Regards.
Support & Development.
Last Edit: 10 years 10 months ago by Support.
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4907

HI,

I found a solution that i am sure it will work out just fine.
I put come PHP comment to let you understand the idea, so you can customize it later if you wish.
Here is your patch.

Open this PHP file:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/productdetails/default.php

Then find this lines:
<li class="flexible-zoom-additionalImages-slide" style="height:64px; width:72px;">
<a href="<?php echo $this->product->images[$ImageId]->file_url;?>" class="flexible-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo JURI::root(); ?><?php echo $this->product->images[$ImageId]->file_url;?>'"><img src="<?php echo $this->product->images[$ImageId]->file_url_thumb;?>" class="zoom-tiny-image-additional" style="max-height: 60;width: 60px;"  /></a>
</li>

Replace these lines with these:
<li class="flexible-zoom-additionalImages-slide" style="height:64px; width:72px;">
	<?php
	// MEDIA TYPE CHECK -- STARTS 
	$ImageURLCheck = $this->product->images[$ImageId]->file_url_thumb;
	if (empty($ImageURLCheck))  { // Check if the Thumbnail URL is esit, downloadable medias won't have thumbnail.
		// If the media is downloadable (PDF,DOCX, ZIP etc..) then below line will be printed?>
        	<a href="<?php echo $this->product->images[$ImageId]->file_url;?>" target="_blank">
 		<?php
	                echo $image->displayMediaFull("",false,"");
	        ?>
		</a>
	<?php } else { 
		// if the media is displayable (JPG, PNG, GIF etc..) then the below line will be printed?>
	<a href="<?php echo $this->product->images[$ImageId]->file_url;?>" class="flexible-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo JURI::root(); ?><?php echo $this->product->images[$ImageId]->file_url;?>'"><img src="<?php echo $this->product->images[$ImageId]->file_url_thumb;?>" class="zoom-tiny-image-additional" style="max-height: 60;width: 60px;"  /></a>
    <?php  } 
	// MEDIA TYPE CHECK -- ENDS ?>
</li>

further more, you can include this CSS rule below to re-size the PDF icons to make it fits inside the slider (to any CSS file)
#vm_display_image {
	max-height:60px; 
	max-width:60px;
} 

the result will be:

Attachment Pasted_Image_5_30_13_3_56_PM-2.gif not found




Regards.
Support & Development.
Last Edit: 10 years 10 months ago by Support.
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4910

Dear Support,
Thanks for the tip on the post, and for the patch.

I have only one problem: when you click on "View larger image" in the file icon PDF, ZIP or other (to be viewable or downloadable) I think it should not be displayed, because the space for the photogallery
Attachments:
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4913

I have solve!!

I have change this:
<div class="flexible-zoom-additionalImages2" style="display:none;" >
              <?php // List all Images
$i = 0;
foreach ($this->product->images as $image) {
$ImageId = $i++;
?>
                <a href="<?php echo $this->product->images[$ImageId]->file_url;?>" class="flexible-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo JURI::root(); ?><?php echo $this->product->images[$ImageId]->file_url;?>'"><img src="<?php echo $this->product->images[$ImageId]->file_url_thumb;?>" class="zoom-tiny-image-additional"  /></a>
                <?php } ?>
            </div>

with this
 
            <div class="flexible-zoom-additionalImages2" style="display:none;" >
              <?php // List all Images
$i = 0;
foreach ($this->product->images as $image) {
$ImageId = $i++;
 
$ImageURLCheck = $this->product->images[$ImageId]->file_url_thumb;
	if (!empty($ImageURLCheck))  { 
 
?>
                <a href="<?php echo $this->product->images[$ImageId]->file_url;?>" class="flexible-zoom-gallery" rel="useZoom: 'zoom1', smallImage: '<?php echo JURI::root(); ?><?php echo $this->product->images[$ImageId]->file_url;?>'"><img src="<?php echo $this->product->images[$ImageId]->file_url_thumb;?>" class="zoom-tiny-image-additional"  /></a>
                <?php	
				}
 
				} ?>
            </div>

and if it might be useful for someone I entered the tile tags in the link so that all'hover icon appears in the "name - description" of the file you will see
<a href="<?php echo $this->product->images[$ImageId]->file_url;?>" target="_blank" title="<?php echo $this->product->images[$ImageId]->file_title;?> - <?php echo $this->product->images[$ImageId]->file_description;?>">
 
 
 		<?php
	                echo $image->displayMediaFull("",false,"");
	        ?>
		</a>

thanks for your help.
for the next update of template I would like suggest you to include this patch, which often happen to need other file formats as well as images.

regards!
Roberto
Last Edit: 10 years 10 months ago by Mirco Sesterzi.
The topic has been locked.

media (pdf-doc) on product detail not allow 10 years 10 months ago #4927

Excellent Roberto -
thanks for letting us know!

Regards

Case closed
The topic has been locked.
Time to create page: 0.305 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