[Skip to main content](#vessel-content)

#   Email link leads to download before login

##

- **[pixels](/forum/user/8057-pixels "View pixels's Profile")**
- [![pixels's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8057-pixels "View pixels's Profile") Topic Author
- [ Offline](/forum/user/8057-pixels)

Less More

- Posts: 5
- Thank you received: 0
-
-

14 years 4 months ago [\#56708](#56708) by [pixels](/forum/user/8057-pixels "View pixels's Profile")  *[Email link leads to download before login](/forum/2-general-talk-about-hikashop/56708-email-link-leads-to-download-before-login#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.")* was created by *[pixels](/forum/user/8057-pixels "View pixels's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NzA4LWVtYWlsLWxpbmstbGVhZHMtdG8tZG93bmxvYWQtYmVmb3JlLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 months ago [\#56748](#56748) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email link leads to download before login](/forum/2-general-talk-about-hikashop/56708-email-link-leads-to-download-before-login#56748 "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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NzA4LWVtYWlsLWxpbmstbGVhZHMtdG8tZG93bmxvYWQtYmVmb3JlLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[pixels](/forum/user/8057-pixels "View pixels's Profile")**
- [![pixels's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/8057-pixels "View pixels's Profile") Topic Author
- [ Offline](/forum/user/8057-pixels)

Less More

- Posts: 5
- Thank you received: 0
-
-

14 years 4 months ago [\#56769](#56769) by [pixels](/forum/user/8057-pixels "View pixels's Profile")  Replied by *[pixels](/forum/user/8057-pixels "View pixels's Profile")* on topic *[Re: Email link leads to download before login](/forum/2-general-talk-about-hikashop/56708-email-link-leads-to-download-before-login#56769 "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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NzA4LWVtYWlsLWxpbmstbGVhZHMtdG8tZG93bmxvYWQtYmVmb3JlLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 4 months ago [\#56810](#56810) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Email link leads to download before login](/forum/2-general-talk-about-hikashop/56708-email-link-leads-to-download-before-login#56810 "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.")*

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 Code:

$statusDownload = explode(',',$config-&gt;get('order_status_for_download','confirmed,shipped')); if(!empty($item-&gt;files) &amp;&amp; in_array($data-&gt;order_status,$statusDownload)){ global $Itemid; $url_itemid = ''; if(!empty($Itemid)){ $url_itemid='&amp;Itemid='.$Itemid; } echo '&lt;p&gt;'; foreach($item-&gt;files as $file){ $fileName = empty($file-&gt;file_name) ? $file-&gt;file_path : $file-&gt;file_name; echo '&lt;a href="'.hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$data-&gt;order_id.$url_itemid).'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;'; } echo '&lt;/p&gt;'; }

in the emails via the menu System&gt;Emails (business edition).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzU2NzA4LWVtYWlsLWxpbmstbGVhZHMtdG8tZG93bmxvYWQtYmVmb3JlLWxvZ2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.046 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
