Categories
blog ecommerce WooCommerce wordpress

WooCommerce: always showing add-to-cart button even before variation is selected

add_action( ‘woocommerce_before_add_to_cart_button’, function(){
// start output buffering
ob_start();
} );

add_action( ‘woocommerce_before_single_variation’, function(){
// end output buffering
ob_end_clean();
// output custom div
echo ‘

‘;
} );

http://stackoverflow.com/questions/29377643/woocommerce-always-showing-add-to-cart-button-even-before-variation-is-selected

Categories
blog ecommerce WooCommerce wordpress

woocommerce Change Related Product Text

gettext – The Most Useful Filter in WordPress http://speakinginbytes.com/2013/10/gettext-filter-wordpress/

/**
* Change text strings
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function my_text_strings( $translated_text, $text, $domain ) {
switch ( $translated_text ) {
case ‘Related Products’ :
$translated_text = __( ‘You may also like these’, ‘woocommerce’ );
break;
}
return $translated_text;
}
add_filter( ‘gettext’, ‘my_text_strings’, 20, 3 );

Categories
blog multisite wordpress

wordpress multisite admin login loop

in wp-config file, insert this define line – define(‘COOKIE_DOMAIN’, ‘.yourdomain.com’);

Categories
blog cms sitecake

i m loving it – sitecake

1st live website with sitecakegumness.com & rawi.ooo

working on new theme for sitecake.