Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Buy Button Doesn't Work When Opened in a New Tab
- This topic has 3 replies, 2 voices, and was last updated 14 years ago by
admin.
-
AuthorPosts
-
September 12, 2011 at 12:45 am #4286
hyperink
MemberHi,
A customer tried to purchase an item using the [wp_eStore_buy_now_custom_button] button.
The problem is he used CTRL+CLICK to open it in a new tab and it took him to the Paypal homepage.
How can I fix this?
Thanks!
September 12, 2011 at 1:12 am #36506admin
KeymasterButtons are not like normal HTML links. I will give you an easier example so you can understand the difference. Do you “CTRL + Click” on the submit button of a contact form or when you submit a comment?
A button needs to be submitted by clicking on it (not open a in new tab). Got the idea?
If you want to do open a new tab don’t use a button… use a HTML link. WP eStore also has ability to make links for a product rather than a standard button. This allows your customers to purchase a product by clicking on a HTML Link (use a link to purchase an item). Check the extra shortcodes documentation for this.
September 12, 2011 at 1:16 am #36507hyperink
MemberThank you for the quick response. I understand the difference but was hoping there was a way to have a button and still satisfy this use case.
The reality is sometimes our team wants to use buttons and people will want to open it in a new tab. How would you handle it?
September 12, 2011 at 1:28 am #36508admin
KeymasterIf you are asking what I would do then I wouldn’t handle it because its a standard behavior of a HTML Button and it is not upto me to change how it behaves (the guys who defined these behaviors knows what they are doing). You can expect a user to know that he/she knows how to browse the web and how different elements of the web behave. Yes, some new users will make mistakes but humans are really good at learning quickly from their mistakes. If you get a lot of new web users on your site then you can maybe add a “How to order from us” guide on your site (many sites use this technique to teach their users how to order from their site).
With that said, you can also do the following:
Use an image (that looks like a button) as the anchor of a purchase link. This way you are using a link rather than a button and it will work for both situations (normal click or open in a new tab).
-
AuthorPosts
- You must be logged in to reply to this topic.