Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › eStore – Would like download links to open in new window/tab
- This topic has 4 replies, 2 voices, and was last updated 13 years ago by
matrix.
-
AuthorPosts
-
March 11, 2013 at 12:41 am #8717
matrix
MemberI’m using the code [wp_eStore_display_transaction_result] on a Thank You page after a purchase is complete. I would like the download links to open in a new window/tab.
I’m using the Fancy 1 display option. I know I need to use target=”_blank”, but I don’t know which file and where to put it.
Thanks for your help,
Matt
March 11, 2013 at 10:02 pm #54324admin
KeymasterWhen you click on a download link it will popup download dialogue box and let the user download the file. I have a feeling the browser is opening your file and playing/showing it in the browser. What type of file are you serving as a download? Is it a zip file?
This post can be helpful too:
March 12, 2013 at 4:23 am #54325matrix
MemberIt is a pdf file. I have the file hosted on Amazon S3 and my browser is Chrome. I know Chrome can open pdf’s, but I would like each click on the download link to open in a new tab. Mostly for when customers order multiple ebooks and there are multiple download links available. Once they open one pdf file, they might forget to go back and download the other files they purchased.
Thanks.
March 13, 2013 at 2:32 am #54326admin
KeymasterWe have a feature in development that should help you. This feature will go in the next build of eStore pluign.
You will be able to do the following to open download links on the thank you page in new window.
open the “eStore_advanced_configs.php” file and search for the following line of code:
define('WP_ESTORE_OPEN_IN_NEW_WINDOW_THANKU_DL_LINKS', '0');Once you find it, change it to the following:
define('WP_ESTORE_OPEN_IN_NEW_WINDOW_THANKU_DL_LINKS', '1');March 14, 2013 at 5:14 am #54327matrix
MemberGlad to hear that eStore will be able to support this feature in the next build.
Thank you for taking the time to add this option to your plugin.
-
AuthorPosts
- You must be logged in to reply to this topic.