Skip to content

Instantly share code, notes, and snippets.

View muratcatak's full-sized avatar

murat catak muratcatak

View GitHub Profile
@ishaadX
ishaadX / WooCommerce Add to cart without login
Last active January 1, 2019 06:59
Woocommerce Product add to cart while logged out
Copy and paste this code on functions.php file in wordpress theme....
add_action( 'woocommerce_add_to_cart' , 'repair_woocommerce_session_add_to_cart');
function repair_woocommerce_session_add_to_cart( ){
if ( defined( 'DOING_AJAX' ) ) {
wc_setcookie( 'woocommerce_items_in_cart', 1 );
do_action( 'woocommerce_set_cart_cookies', true );
}
}
@fditraglia
fditraglia / tryRtranscript.R
Created September 6, 2013 16:00
TryR Transcript
#1.1 Expressions
1 + 1
"Arr, matey!"
6*7
#1.2 Logical Values
3 < 4
2 + 2 == 5
#1.3 Variables