Search Guides
Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Filter by Categories
Blog
Business
Creative
Design
Ecommerce
Email Marketing
Facebook
Google
Google Analytics
Inspiration
Landing Page
Mailchimp
Portfolio
SEO
Social Media
Tips & Tricks
Tutorials
Twitter
Water Cooler
Webmaster Tools
Website
Wordpress
WordPress Tutorials
{ "homeurl": "http://simpleturtle.com/", "resultstype": "vertical", "resultsposition": "hover", "itemscount": 5, "imagewidth": 70, "imageheight": 70, "resultitemheight": "70px", "showauthor": 0, "showdate": 0, "showdescription": 0, "charcount": 3, "noresultstext": "No results!", "didyoumeantext": "Did you mean:", "defaultImage": "http://simpleturtle.com/wp-content/plugins/ajax-search-lite/img/default.jpg", "highlight": 0, "highlightwholewords": 0, "scrollToResults": 0, "resultareaclickable": 1, "defaultsearchtext": "", "autocomplete": { "enabled" : 1, "lang" : "en" }, "triggerontype": 1, "triggeronclick": 1, "redirectonclick": 0, "trigger_on_facet_change": 0, "settingsimagepos": "right", "hresultanimation": "fx-none", "vresultanimation": "fx-none", "hresulthidedesc": "1", "prescontainerheight": "400px", "pshowsubtitle": "0", "pshowdesc": "1", "closeOnDocClick": 1, "iifNoImage": "description", "iiRows": 2, "iitemsWidth": 200, "iitemsHeight": 200, "iishowOverlay": 1, "iiblurOverlay": 1, "iihideContent": 1, "iianimation": "1", "analytics": 0, "analyticsString": "ajax_search-{asl_term}", "redirectonclick": 0, "redirectClickTo": "results_page", "redirect_on_enter": 0, "redirectEnterTo": "results_page", "overridewpdefault": "0" }

Skip product and cart page

Do you think you are putting your customers through to many pages just to purchase a product? Then i bet you want to remove the in between pages of the product and cart and take them straight to the checkout page. This is ideal for people who are selling digital products like eBooks, not particularly clothing.

 

For this to work for you, you would need to create a new page and promote your product their with a simple button with the custom link we will create.

 

To do this you simply add this URL (below) to a button and it will redirect you to the checkout directly with the product being added to the cart automatically.

 

Use this URL structure:

http://yourdomain.com/?add-to-cart=21

 

You will then replace your domain and replace 21 with your product ID.

 

Then add this code to the functions.php file within your theme folder:

 

add_filter ('add_to_cart_redirect', 'woo_redirect_to_checkout');
 
function woo_redirect_to_checkout() {
 global $woocommerce;
 $checkout_url = $woocommerce->cart->get_checkout_url();
 return $checkout_url;
}

 

 

4 0