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
| How to install Linux AppImage | |
| Make the AppImage executable: | |
| $ chmod a+x ~/Downloads/cacher-2.3.6-x86_64.AppImage | |
| Run the AppImage: | |
| $ cd ~/Downloads | |
| $ ./cacher-2.3.6-x86_64.AppImage |
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
| ini_set('session.cookie_lifetime', 60 * 60 * 24 * 7); // 7 day cookie lifetime | |
| ini_set('session.gc_maxlifetime', 60 * 60 * 24 * 7); | |
| ini_set('session.save_path', '/home/yoursite/sessions'); | |
| session_start(); | |
| setcookie('PHPSESSID','any id' , any time); | |
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
| https://www.quora.com/How-do-you-create-a-link-direct-to-WooCommerce-checkout-for-1-specific-product | |
| example: | |
| https://www.yourdomainhere.com/cart/?add-to-cart=2573&variation_id=2417&attribute_pa_nou=zfree-trial-2 | |
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
| probando ingresar nuevo snippet |
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
| probando lepton |
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
| probando nuevo desde github | |
| va |
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
| probando nuevo en gisto |
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
| add_action('template_redirect','pmpro_woocommerce_redirect_checkout'); | |
| function pmpro_woocommerce_redirect_checkout(){ | |
| $id = get_option('pmpro_checkout_page_id'); | |
| global $post; | |
| if($post->ID == $id && !empty($_REQUEST['level'])){ | |
| global $wpdb; | |
| $product_id = $wpdb->get_var($wpdb->prepare("SELECT pm.post_id FROM {$wpdb->postmeta} as pm LEFT JOIN {$wpdb->posts} as p ON p.ID=pm.post_id WHERE pm.meta_key = %s AND pm.meta_value = %d AND p.post_status='publish'",'_membership_product_level',$_REQUEST['level'])); | |
| if(!empty($product_id)){ | |
| $checkout_url = WC()->cart->get_checkout_url(); | |
| if ( sizeof( WC()->cart->get_cart() ) > 0 ) { |
OlderNewer