Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › How can I make a button open Paypal in a new tab (like this code target=”_blank”)
- This topic has 5 replies, 5 voices, and was last updated 9 years, 6 months ago by
admin.
-
AuthorPosts
-
October 27, 2014 at 4:33 pm #11692
bertrand kervella
MemberHello,
On my Optimize Press theme. I use their “exit Popup” to send people to a downsales page.
The problem is that once getting to the downsales page after the exit popup, any link or button will not open, unless it’s set to open in a new page/tab.
I tried to find out a way around, but it cannot be changed… any link or button has to be opened in a new tab.
They recommend to add this code: target=”_blank”
However, since eStore uses short code like this one: [wp_eStore_buy_now_button id=6], how can I make that button open in a new tab?
Thanks
Bertrand
October 27, 2014 at 9:41 pm #66409wzp
ModeratorThey recommend to add this code: target=”_blank”
That only works if the button code uses the href attribute. The Buy Now buttons are used to submit POST data directly to the payment gateway.
If you want to tinker with the Buy Now button code, after first backing up the eStore_misc_functions.php file, you can edit the print_eStore_buy_now_button() function definition.
October 27, 2014 at 11:21 pm #66410wpCommerce
Moderator@bertrand, Alternatively you can create a Buy Now text link and choose to open it in a new window/tab:
October 28, 2014 at 4:03 am #66411bertrand kervella
MemberThanks, it finally works.
I added the plugin “eStore Extra Short Codes”, and I put the URL followed by this code ?wp_eStore_buy_now=6
and it works fine on the image.
Here the downsales page: [http://mlminaf.com/erreursenmlm/ew9j42/]
Thanks a lot for your great advices.
Bertrand
April 24, 2016 at 10:03 am #66412royhenig
MemberHi, how can i make a popup of a subscribe button? what i need is that after 3 minutes of video, the button will appear.
thanks
April 26, 2016 at 3:14 am #66413admin
KeymasterThats not something that will come from eStore. You need to see if your video embedder has an option to popup some HTML content or a link after a certain time period. You then put eStore’s purchase/subscription button link in there.
Think of it this way… eStore allows you to put buttons or links that allows customers to pay for items. You put that button or link where you want to on your site.
-
AuthorPosts
- You must be logged in to reply to this topic.