Jump to content

Virtual Product


meccabooks

Recommended Posts

Can someone please tell me what is the file /mails/en/download-product.tpl for? why and where is it used.

 

What I am trying to do is customize the prestashop as such that when virtual product is bought, there is not download link provided anywhere in the email or backoffice, so the customers cannot have access to the file. Instead the file will appear in the app that they will download.

 

So if someone can point me at all the files possible where the download links will be provided so I can update them.

 

Thanks for your help

Link to comment
Share on other sites

This file is used to send the customer an email when they place an order.  It will contain a link for them to download the file

\classes\order\OrderHistory.php

 

The customer can also see a link in their order detail page from their My Account pages

\themes\<theme_name>\order-detail.tpl

 

You should also edit the GetFileController, in the event the customer is familiar with Prestashop and knows how to construct the download link.

\controllers\front\GetFileController.php

 

Those are the most obvious places, but there may be others.  you'll just need to do some leg work

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...