This file contains hidden or 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
<?php | |
/** | |
* Output engraving field. | |
*/ | |
function iconic_output_engraving_field() { | |
global $product; | |
if ( $product->get_id() !== 1741 ) { | |
return; | |
} |
This file contains hidden or 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
<?php | |
// Add to cart checkout redirect | |
function custom_add_to_cart_redirect() { | |
$checkout_ = get_permalink( get_option( 'woocommerce_checkout_page_id' ) ); | |
return $checkout_ | |
} | |
add_filter( 'woocommerce_add_to_cart_redirect', 'custom_add_to_cart_redirect' ); |
This file contains hidden or 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
<?php | |
/* | |
* Add this code to your functions.php file | |
*/ | |
add_action( 'woocommerce_after_shop_loop_item_title', 'jck_custom_text', 15 ); | |
function jck_custom_text() { | |
the_field('your_field_key'); |