Email link leads to download before login

  • Posts: 5
  • Thank you received: 0
12 years 4 months ago #56708

Hi,

I have Hikashop Essential. After I have changed the order status from created to confirmed, my (trial) customer receives an email containing the download link to his document. Clicking this link will lead to the login window all right but filling in the username and password (and clicking the login button) will not lead to the Customer Account page but will result in the document popping up directly (outside Hikashop as it appears to the customer). Appreciate some help here.

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 4 months ago #56748

Hi,

There are two kind of links on the order status notification email:

On the order number, there is a link to the order details page.

For each file, there is a direct link to the file itself.

In both cases, if the user is not logged in, it will ask the user to login before allowing him to see the order/get the file.

So what you're describing is the normal behavior if you click on the direct link of the file.
Why is that a problem ? You actually didn't ask any question in your message so I don't know what you want.

Please Log in or Create an account to join the conversation.

  • Posts: 5
  • Thank you received: 0
12 years 4 months ago #56769

Hi,

The problem is that filling in the username and password and clicking on the login button doesn't lead you to the customer account or order page: the downloadable document pops up directly over the login window. You can download the document but it's not the procedure as it should be and it doesn't look normal or trustworthy. In addition, customers will not log out because it seems to them as if they have never entered the shop. Is there anything we can do to make it function properly and look more professional?

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 4 months ago #56810

The direct links are direct for a reason.
If you don't want them and only want the link to the order (which is already in the email), you can just remove the code displaying the direct links

$statusDownload = explode(',',$config->get('order_status_for_download','confirmed,shipped'));
										if(!empty($item->files) && in_array($data->order_status,$statusDownload)){
											global $Itemid;
											$url_itemid = '';
											if(!empty($Itemid)){
												$url_itemid='&Itemid='.$Itemid;
											}
											echo '<p>';
											foreach($item->files as $file){
												$fileName = empty($file->file_name) ? $file->file_path : $file->file_name;

												echo '<a href="'.hikashop_frontendLink('index.php?option=com_hikashop&ctrl=order&task=download&file_id='.$file->file_id.'&order_id='.$data->order_id.$url_itemid).'">'.$fileName.'</a><br/>';
											}
											echo '</p>';
										}
in the emails via the menu System>Emails (business edition).

Please Log in or Create an account to join the conversation.

Time to create page: 0.055 seconds
Powered by Kunena Forum