November 11, 2012 at 4:38 am #7877adminKeymaster
Buy Now type buttons are single item checkout buttons that lets your user purchase an item with one click. When your customer clicks on a “Buy Now” type button, it will take the customer directly to the payment page.
Buy Now type buttons are mainly used with the PayPal payment gateway but eStore allows you to use it with any payment gateway.
Creating a Buy Now Type Button for a Particular Gateway
Step 1) Create an eStore product via the “Add/Edit Products” interface of the eStore plugin. Checkout our video tutorials if you don’t know how to create a product in eStore plugin.
Step 2) Use the following shortcode to place a “Buy Now” button for the product you created in step 1:
[wp_eStore_buy_now_for_specific_gateway id="1" gateway="paypal"]
The above shortcode will create a buy now button for product 1 using the PayPal payment gateway.
The following shortcode will create a buy now button for manual checkout:
[wp_eStore_buy_now_for_specific_gateway id="1" gateway="manual"]
Available Gateway Values
You can use the following values for the “gateway” parameter depending on which gateway you want:
paypal (standard PayPal checkout) manual (manual checkout) 2co (2checkout) authorize (standard authorize.net checkout) gco (Google checkout) pppro (PayPal Pro checkout) auth_aim (authorize.net AIM on-site checkout) ccbill (CCBill checkout) epay_dk (ePay.dk checkout) eway_rapid_3 (eWay Rapid 3 checkout) stripe_co_sca (Stripe Checkout with Strong Customer Authentication) stripe (Stripe on-site checkout) stripe_basic (Stripe on-site checkout in a popup form) bitpay (Bitcoin checkout via BitPay)
Customizing the Button Image
You can customize the Buy Now button image the same way you customize any eStore purchase button:
You can also specify a custom button image URL in the shortcode using the “button_image” parameter. Below is an example shortcode showing how to use a custom button image with the buy now button for Stripe gateway:
[wp_eStore_buy_now_for_specific_gateway id="1" gateway="stripe" button_image="https://example.com/my-stripe-buy-button.png"]
Using a Text Link for Buy Now Button
If you wanted to use a text link instead of a shortcode to create your Buy Now button then read the following post:
Fancy Display Template with Gateway Specific Buy Now Button
You can use following shortcode to use a gateway specific buy now button with fancy display template. Below is an example shortcode:
[wp_eStore_fancy_display id="11" type="2" style="1" gateway="stripe"]
This shortcode comes from the free eStore extra shortcodes addon. For more information please refer to the eStore extra shortcodes page:
- You must be logged in to reply to this topic.