PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 5/15/2018 12:38 PM by  Will Strohl
File download in product details
 2 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Author Messages





Advanced Member






--
5/11/2018 6:59 AM
    I need to attach downloadable file (pdf product sheet) in my product details.
    I've found [url=https://stackoverflow.com/questions/39634821/how-to-show-file-downloads-name-and-size-in-hotcakes-e-commerce]this[/url] useful post but it only show the file name without the download link.
    Is there any way to make it downloadable on product details for everyone?
    Thanks





    Basic Member






    --
    5/15/2018 11:08 AM
    Hi Scippy
    We had the same problem and ended adding the file in filemanager and linking it directly within the product details.
    The ProductFile-Entity does not have direct access to the download url: https://www.csharpcodi.co...talog/ProductFile.cs





    Veteran Member






    --
    5/15/2018 12:38 PM
    This isn't completely exposed to any views other than the Order History. At least, not in a way that would adhere to the complete set of requirements that file downloads should go through. You can still do this though...

    Simply add the following method to the view in question, and then add the link as appropriate.

    https://github.com/Hotcak...ntroller.cs#L67-L132
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes
    You are not authorized to post a reply.


    Loading
    • Sign-up for the Hotcakes Community Newsletter: