This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Adds a "Proceed To Checkout" button underneath the "Add To Cart" button | |
* @author: CJ Andrew (cjwebstudio) | |
*/ | |
add_action('woocommerce_after_add_to_cart_form','proceed_to_checkout'); | |
function proceed_to_checkout(){ | |
global $woocommerce; | |
$checkout_url = $woocommerce->cart->get_checkout_url(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CJWS: WC Conditional Tax Class | |
* | |
* Provides conditional *tax classes* based on product category | |
* May be adapted to consider other criteria, such as post type | |
* Modifies 'woocommerce_product_tax_class' filter | |
* | |
*@author CJ Andrew <[email protected]> | |
* | |
*@since 1.0 |