VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: craig_wild on November 16, 2011, 05:37:03 AM

Title: Adding additional files eg product instructions/specs NOT downloads.
Post by: craig_wild on November 16, 2011, 05:37:03 AM
Apologies if this has been discussed but I couldn't find it anywhere in this area while searching.

In VM 1.1.x you could add additional files to a product as well as images. These were not downloadable products but things like product specs or instructions say.

I did manage to get a pdf into the Media Manager via product images upload but it trys to open the pdf in a lightbox as an image.

Is the idea to add this as a plugin or is there a way to do this i've missed? I can just link in this stuff via the description for now but i'd be nice to have this.

One issue I did notice though is under products, clicking on the Media (1) etc comes up with a blank list and doesn't show that media?

Thanks. (VM 1.9.8M, J1.7)
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Lindhardsen on January 19, 2012, 11:07:46 AM
I bump this thread... Does anyone know the answer to this one?

By the way, is there a manual for VM2, that would answer this kind of questions? I have not been able to find one  :-[
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Lindhardsen on February 01, 2012, 23:08:31 PM
Please... ;)
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: channelvision on February 09, 2012, 18:32:07 PM
I also need to upload spec sheets and instruction manuals on my product pages. Please someone advise me how to do this, it is very important.
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: kriz on February 10, 2012, 11:03:27 AM
I would like to know how to do this

there are various products which have brochures :(
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: kriz on February 29, 2012, 09:46:39 AM
Any update on this?? :(

need help with this asap
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: nunomigpe on March 06, 2012, 01:45:17 AM
Hi all

They say in the frontpage off version 2.0.2 that can handles download files in media, try everything and i cann´t see where i can put the pdf that is in media, in the product.

There is no way that we can say to the software go to media and attach this pdf for download.

I managed to upload the pdf and say that´s a pdf for download, i cann´t figure out where can i say to the product to pick up that file, or in the media if i open the file i cann´t put the product name so it appears on that product.

In 1.1.9 was very simple to do this.

Can anyone please help us out here?????

Best Regards
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Studio 42 on March 06, 2012, 14:12:39 PM
Hi,
PLZ try
http://dev.virtuemart.net/attachments/download/390/com_virtuemart.2.0.3_extract_first.zip
for the PDF Problem or some attached files in product details

And use role downloadable
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Milbo on March 06, 2012, 14:18:38 PM
Sorry, I see this post now the first time. It should also work with vm2.0.2. Just upload a media and activate downloadable. In that moment this image is downloadable. Example http://virtuemart.cloudaccess.net/extensions-virtuemart-2/quantity-related-calculation-detail  look on the second image, the pdf icon. You can directly download it.
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: nunomigpe on March 06, 2012, 23:33:36 PM
Hi there

That´s what i need to do.

But  in VM 2.0.2 i try to put the file (pdf) as a image on a product and it dosen´t appear on the product.

I can see him in media but not in the product like a second image.

Should i make a PDF foto???

How you did that, that is what i need, for a wine store to have the pdf info about the wine.

Best Regards

PS: Great job on VM 2
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: jenkinhill on March 07, 2012, 10:59:41 AM
This is how I have added pdf datasheets to products (using VirtueMart 2.0.3a on Joomla 2.5.2).

1. Uploaded via ftp the pdf files into the product media directory -  joomla_root/images/stories/virtuemart/product  (you could use Joomla's media uploader for this, but ftp is quick for multiple files)

2. Open VirtueMart Shop/Media File list  - and Synchronize media to VirtueMart

3. Still in the media list edit each of the files and make them downloadable, enter a suitable title to be displayed (Displayed image title) and I also enter the "Used thumb url" for a 50x50 pdf icon I have uploaded to use rather than the default larger icon.

4. Open a product, go to the Custom Fields tab and create a Custom Field Type - Photo (even though it is a pdf file), select the file from the dropdown list and save.

5. The file appears as my pdf logo on the product details page with its title underneath. The standard display is not good for datasheets, so I have edited the default_customfields.php template to suit my site and set it as an override. Further styling can be accomplished using css added (in my case) to the Joomla template css.
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Pirosoft on March 19, 2012, 15:15:44 PM
i don't know if is important but u have creted a little hack for downloadable files:
http://forum.virtuemart.net/index.php?topic=99833.0 (http://forum.virtuemart.net/index.php?topic=99833.0)

thanks
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Parsimonious on July 28, 2012, 23:33:43 PM
Is there anyway to organize the dropdown list of files? I have hundreds of images and they're all there in no discernible order which makes this very time consuming.
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: captainahab on September 04, 2012, 22:52:02 PM
Hi All

this might be a hack or whatever, but this is what I've done and it works....

<?php
$pdf_download = 'images/stories/virtuemart/product/'.$this->YagProduct->sku.'.pdf';

if (file_exists($pdf_download)) {
   ?>
   <div id="product_pdf_download">
      <a href="<?php echo $pdf_download; ?>" target="blank">Download Datasheet</a>
   </div>   
   <?php } ?>

So all I've done is copied all the pdf's into the product folder and made sure they've got the same name as the SKU

that mod is in the productdetails/default.php

Hope it helps someone...

James
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: jenkinhill on September 05, 2012, 18:33:14 PM
@captainahab That's a good solution, remember to use it in a template override, though, so it will not get overwritten during a VM update.
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Tamakom on September 24, 2012, 04:41:58 AM
Quote from: captainahab on September 04, 2012, 22:52:02 PM
Hi All

this might be a hack or whatever, but this is what I've done and it works....

<?php
$pdf_download = 'images/stories/virtuemart/product/'.$this->YagProduct->sku.'.pdf';

if (file_exists($pdf_download)) {
   ?>
   <div id="product_pdf_download">
      <a href="<?php echo $pdf_download; ?>" target="blank">Download Datasheet</a>
   </div>   
   <?php } ?>

So all I've done is copied all the pdf's into the product folder and made sure they've got the same name as the SKU

that mod is in the productdetails/default.php

Hope it helps someone...

James

Dear James
For the comment that jenkinhill write down, I guess the solution you give is a success. So I have to ask Where paste that code?. "I'm below the line beginning" so I have to ask possibly basic structures.

In my inexperience, I've never seen "YagProduct", that's code itself is custom virtuemart or you?

I appreciate your understanding.

Thank in advance
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: Swanky-Pixels on October 12, 2012, 00:52:36 AM
This subject is causing me no end of problems!

Using Joomla 2.5.7 and VM 2.0.12b Problem example here http://www.urbanenergyuk.com/air-source-heat-pump-distributor/air-source-heat-pump-cylinders/gledhill/gledhill-heat-pump-cylinder-210l-detail (http://www.urbanenergyuk.com/air-source-heat-pump-distributor/air-source-heat-pump-cylinders/gledhill/gledhill-heat-pump-cylinder-210l-detail)

I have 200+ products and each has a PDF spec sheet

I was adding product, then add main image then I uploaded the PDF same method in product all worked fine and the PDF would download. But I did not like the CSS

Thats when I found this forum post.

I added custom field called PDF then added custom field to test product, selected existing PDF all works great and CSS is better.

But I then tried uploading a PDF via media files but is states The server supports mime type recognition Supported filetypes for thumbnail creation GIF, JPG, PNG, WBMP

What have a done wrong? Is my only option to upload via FTP?
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: PolishedGeek on October 15, 2012, 22:33:31 PM
Oh Captain, my captain (like you haven't heard that before, right? LOL)....Could you share a link or screenshot of the final result of your mod?
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: SnowBunny on November 16, 2012, 05:34:31 AM
See I don't understand why VM2 does not have the option to have a downloadable spec sheet on the product pages. You can upload pdf media to the product but there is no way to display it or automatically link it to the product.

So frustrating to have to edit code for something that should be a standard feature..
Title: Re: Adding additional files eg product instructions/specs NOT downloads.
Post by: David Kan on January 15, 2013, 07:21:40 AM
Here are the solution: http://cmsmart.net/virtuemart-extensions/attachment-for-virtuemart-product-plugin