• Resolved bramzi

    (@bramzi)


    If I use this script provided for dokan

    add_action('woocommerce_order_status_completed', 'woocs_payment_complete', 1);
    add_action('woocommerce_payment_complete', 'woocs_payment_complete');
    
    function woocs_payment_complete($order_id) {
        if (class_exists('WOOCS')) {
            global $WOOCS;
            $WOOCS->recalculate_order($order_id);
        }
    }
     
    add_filter('wp_head', function() {
        if (is_page('dashboard')) {
            if (class_exists('WOOCS')) {
                global $WOOCS;
    			$WOOCS->reset_currency('USD');
            }
        }
    });

    whenever i go back to the front side the currency does not switch to the welcome currency no matter what i do. even if i clear the cache. i am not using currency switcher.

    PLease help.
    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    If the user(vendor) goes to the edit page of his store(dashboard) Base currency will be included. On any other page, the plugin will display the user’s last currency(In your case, this is the base currency).

Viewing 1 replies (of 1 total)

The topic ‘Working with Dokan’ is closed to new replies.