Hi Nicolas,
It took me a while to figure it out but now I know what you mean. My apologies.
I always thought that the attachments where only meant for free downloads.
I have tried it out and it works perfectly, thank you.
Since I know now that I can also send links in confirmation email for paid downloads instead of sending the files manually to my customers email address I also want to use this for my bank transfer payment method.
However I do have a few issues with that.
First of all I can't get the return url to the download page to work.
In another topic I read to make a menu-item and place the url in the return url of the payment method.
So I made a menu item to Hika customer download area and placed the link in the bank transfer payment method.
When a customer is placing the order he is taken to this download page so that works fine.
But when the order status is set to confirmed and customer gets the email with the download link he will be sent to a blank page for a few milliseconds and download starts immediately (I know this last one is a browser thing) and than the page is closed.
(The same with free downloads by the way.)
I have already changed the view/end and view/after_end to the return url to the download page (the same as I placed in the return url of the bank transfer payment method):
<?php
/**
* @package HikaShop for Joomla!
* @version 2.6.4
* @author hikashop.com
* @copyright (C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
if(empty($this->html)){
$app = JFactory::getApplication();
$app->redirect('http://www.mysite.nl/download');
}else{
echo $this->html;
}
$this->nextButton = false;
But when the customer clicks the download link in the confirmation email he is still being redirected to that blank page.
What am I doing wrong here and how can I get this to work? Or have I misunderstood this too?
The download page works fine when I enter the url directly into my browser and I can see all downloads that are confirmed or already made.
Second, in tab Order of the configuration Main I have set Default order status to Created and Payment confirmed order status to Confirmed.
In tab Files I have set Valid order statuses for download to Confirmed too.
When customer places an order for a free download the download link of the file is send immediately in the confirmation email. That's ok.
But when the customer is ordering free files as well as payed files the link to the free file is not placed in the Created email until I set the order status to Confirmed. Then the customer gets an email with links from payed as well as free files.
Is there any way I can change this in the settings that while waiting on the Confirmed email for the payed files meanwhile the customer can have at least access to the free files in the Created email?
Or do they have to place an order separately for the free files in order to have immediate access to them?
Thank you for your time.
.