WooCommerce Class dosen’t exist

For official release installed or not, /** * Check if WooCommerce is active **/ $plugin_path = trailingslashit( WP_PLUGIN_DIR ) . ‘woocommerce/woocommerce.php’; if ( in_array( $plugin_path, wp_get_active_and_valid_plugins() ) || in_array( $plugin_path, wp_get_active_network_plugins() ) ) { // Custom code here. WooCommerce is active, however it has not // necessarily initialized (when that is important, consider // using … Read more

WordPress and Woocommerce Chinese Permalink

Turns out this was caused by IIS. If you already have <action type=”Rewrite” url=”index.php” /> in your web.config, that should be enough with this addition to your index.php in the WordPress root installation directory if (isset($_SERVER[‘UNENCODED_URL’])) { $_SERVER[‘REQUEST_URI’] = $_SERVER[‘UNENCODED_URL’]; } The php code is quite self explanatory.

Integration widget Mondial Relay Js

You need to add this quick and dirty code in your functions.php if you’re trying to add mondial relay to checkout page : add_action(‘wp_footer’, function(){ if(is_checkout()) { ?> <!–On charge Google Map API–> <script type=”text/javascript” src=”https://maps.googleapis.com/maps/api/js?sensor=false”></script> <!–On charge le widget mondial relay depuis leurs serveurs–> <script type=”text/javascript” src=”https://widget.mondialrelay.com/parcelshop-picker/v3_0/scripts/jquery.plugin.mondialrelay.parcelshoppicker.min.js”></script> <script> $(document).ready(function () { // Charge le … Read more

WordPress Migration

WordPress has two ‘parts’: the code (WP core files, plus themes/plugin files), and the database. Both have to be placed in a new location for the ‘parts’ to work as they did on the source. So one way to transfer the site to a new host is to copy those two ‘parts’ to the new … Read more