Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter Maximus697

    (@maximus697)

    Hi,

    Yes sorry, because I forgot to check the “Enable Standard Tracking” box on the plugin

    Thread Starter Maximus697

    (@maximus697)

    Hi,

    I found the problem. It’s good

    Thank u

    Thread Starter Maximus697

    (@maximus697)

    Hi,

    I don’t know but it’s working.

    After optm there are :
    <link rel=”dns-prefetch” href=”//www.google-analytics.com”>
    <link rel=”dns-prefetch” href=”//www.googletagmanager.com”>
    <link rel=”dns-prefetch” href=”//www.googletagservices.com”>

    Thread Starter Maximus697

    (@maximus697)

    Thread Starter Maximus697

    (@maximus697)

    Hi,

    The complete solution is:

    add_filter(‘wc_order_statuses’, ‘wc_order_statuses_custom’);
    function wc_order_statuses_custom($order_statuses) {
    $order_statuses[‘wc-processing-cec’] = _x( ‘En attente d\’expédition’, ‘Order status’, ‘woocommerce’ );
    $order_statuses[‘wc-despatched’] = _x( ‘Expédié’, ‘Order status’, ‘woocommerce’ );
    $order_statuses[‘wc-in_preparation’] = _x( ‘Prise en charge par cec’, ‘Order status’, ‘woocommerce’ );
    $order_statuses[‘wc-failed-cec’] = _x( ‘Erreur logisitque CEC’, ‘Order status’, ‘woocommerce’ );

    return $order_statuses;
    }

    function custom_post_status(){
    register_post_status( ‘wc-processing-cec’, array(
    ‘label’ => _x( ‘Processing CEC’, ‘recipes’ ),
    ‘public’ => false,
    ‘exclude_from_search’ => true,
    ‘show_in_admin_all_list’ => true,
    ‘show_in_admin_status_list’ => true,
    ‘label_count’ => _n_noop( ‘Processing CEC <span class=”count”>(%s)</span>’, ‘Processing CEC <span class=”count”>(%s)</span>’ ),
    ) );

    register_post_status( ‘wc-despatched’, array(
    ‘label’ => _x( ‘Despatched CEC’, ‘recipes’ ),
    ‘public’ => false,
    ‘exclude_from_search’ => true,
    ‘show_in_admin_all_list’ => true,
    ‘show_in_admin_status_list’ => true,
    ‘label_count’ => _n_noop( ‘Despatched CEC <span class=”count”>(%s)</span>’, ‘Despatched CEC <span class=”count”>(%s)</span>’ ),
    ) );

    register_post_status( ‘wc-in_preparation’, array(
    ‘label’ => _x( ‘In preparation CEC’, ‘recipes’ ),
    ‘public’ => false,
    ‘exclude_from_search’ => true,
    ‘show_in_admin_all_list’ => true,
    ‘show_in_admin_status_list’ => true,
    ‘label_count’ => _n_noop( ‘In preparation CEC <span class=”count”>(%s)</span>’, ‘In preparation CEC <span class=”count”>(%s)</span>’ ),
    ) );

    register_post_status( ‘wc-failed-cec’, array(
    ‘label’ => _x( ‘Failed CEC’, ‘recipes’ ),
    ‘public’ => false,
    ‘exclude_from_search’ => true,
    ‘show_in_admin_all_list’ => true,
    ‘show_in_admin_status_list’ => true,
    ‘label_count’ => _n_noop( ‘Failed CEC <span class=”count”>(%s)</span>’, ‘Failed CEC <span class=”count”>(%s)</span>’ ),
    ) );
    }
    add_action( ‘init’, ‘custom_post_status’ );

    Thread Starter Maximus697

    (@maximus697)

    It works, we had to add the filter

    add_filter(‘wc_order_statuses’, ‘wc_order_statuses_custom’);

    Thread Starter Maximus697

    (@maximus697)

    Hi,

    Yes I use the default standard gateway

    When a user buys on the site with paypal, the new order email sent to me.. send me the post ID and not the sequential number. But it works well with stripe..

    Thx

    Thread Starter Maximus697

    (@maximus697)

    Ok good

    You’re welcome

    Thread Starter Maximus697

    (@maximus697)

    Hi,

    I find 🙂

    public static function get_currencies()
    {
    global $woocommerce_wpml;

    $currencies = array();
    // first check for WooCommerce Multilingual currencies
    if (class_exists(‘woocommerce_wpml’) && defined(‘WCML_MULTI_CURRENCIES_INDEPENDENT’)) {

    //$woocommerce_wpml = woocommerce_wpml::instance();
    //$woocommerce_wpml_settings = woocommerce_wpml::instance()->get_settings();

    if ($woocommerce_wpml->settings[‘enable_multi_currency’] === WCML_MULTI_CURRENCIES_INDEPENDENT) {

    – Add : global $woocommerce_wpml;
    – Set comment : $woocommerce_wpml = woocommerce_wpml::instance(); and $woocommerce_wpml_settings = woocommerce_wpml::instance()->get_settings();
    – Modify $woocommerce_wpml_settings[‘enable_multi_currency’] —> $woocommerce_wpml->settings[‘enable_multi_currency’]

    It’s work

    Thread Starter Maximus697

    (@maximus697)

    Hi,

    I fixed this problem by including the “gravity forms” file in your plugin

    thank you

Viewing 10 replies - 1 through 10 (of 10 total)