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
add_filter('woocommerce_checkout_fields', 'addBootstrapToCheckoutFields' ); | |
function addBootstrapToCheckoutFields($fields) { | |
foreach ($fields as &$fieldset) { | |
foreach ($fieldset as &$field) { | |
// if you want to add the form-group class around the label and the input | |
$field['class'][] = 'form-group'; | |
// add form-control to the actual input | |
$field['input_class'][] = 'form-control'; |
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
// settings page | |
$footerid = fw_get_db_settings_option('element'); | |
// get page option | |
$post_id = get_the_ID(); | |
$o = fw_get_db_post_option($post_id, 'opdrachtgever', $default_value = null); |
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
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order { | |
position:relative; | |
top:80px; | |
} | |
#payment .terms { | |
position:relative; | |
top:-40px; | |
} |
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
<a href="<?php echo WC()->cart->get_cart_url(); ?>" class="mini-card-icon"> | |
<?php echo sprintf (_n( '%d', '%d', WC()->cart->cart_contents_count ), WC()->cart->cart_contents_count ); ?> | |
</a> |
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
<?php | |
$imagearray = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium' ); | |
?> | |
<a href="<?php the_permalink(); ?>"> | |
<img class="img-responsive" src="<?php echo $imagearray[0]; ?>"> | |
</a> |
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
global $product; | |
$merk = $product->get_attribute( 'pa_merk' ); |
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
/** | |
* Change WooCommerce rating output | |
*/ | |
add_action('woocommerce_after_shop_loop_item', 'get_star_rating' ); | |
function get_star_rating() | |
{ | |
global $woocommerce, $product; |
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
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] |
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
document.addEventListener( "DOMContentLoaded", function() { | |
JS | |
}, false ); |
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
Redirect 301 /path http://newdomain.com |