Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mattiaspkallio

    (@mattiaspkallio)

    Hi!

    I still can’t get it to work for some reason…

    I have tried to disable all other plugins except Woocommerce and Booster and change to a standard WordPress theme and it still does not work. It allways shows the same price on the cart page. It works on all other pages like product and category pages.

    Just now I tried to use the tax toggle on a local installation of Woocommerce that is more or less empty except a couple of test products. Still does not work on the cart page.

    If I add the row:
    add_filter( ‘option_woocommerce_tax_display_cart’, array( $this, ‘tax_display_toggle’ ), PHP_INT_MAX );
    in the wcj-tax-display class, it does work, but since it will disappear with updates it’s not a great soultion. ??

    Sorry for being a hassle, but I just can’t get it to work. ??
    //Mattias

    Thread Starter mattiaspkallio

    (@mattiaspkallio)

    Hi!

    I can’t seem to find a setting for that in the configuration other than activate the toggle button or not. There seems to be something under “By User Role”, but I’m not using that.

    But I’m pretty sure that unless you use “By User Role” the toggle button never works on the cart page? If you look in the class-wcj-tax-display.php on the other two cases the cart page is missing.

    Looks something like this, and I’m assuming the option_woocommerce_tax_display_cart should be on the other two too?

                    // Tax Incl./Excl. by product/category.
    
                    if ( 'yes' === wcj_get_option( 'wcj_product_listings_display_taxes_by_products_enabled', 'no' ) ) {
    
                        add_filter( 'option_woocommerce_tax_display_shop', array( $this, 'tax_display_by_product' ), PHP_INT_MAX );
    
                    }
    
                    // Tax Incl./Excl. by user role.
    
                    if ( 'yes' === wcj_get_option( 'wcj_product_listings_display_taxes_by_user_role_enabled', 'no' ) ) {
    
                        add_filter( 'option_woocommerce_tax_display_shop', array( $this, 'tax_display_by_user_role' ), PHP_INT_MAX );
    
                        add_filter( 'option_woocommerce_tax_display_cart', array( $this, 'tax_display_by_user_role' ), PHP_INT_MAX );
    
                    }
    
                    // Tax toggle.
    
                    if ( 'yes' === wcj_get_option( 'wcj_tax_display_toggle_enabled', 'no' ) ) {
    
                        add_action( 'init', array( $this, 'tax_display_toggle_param' ), PHP_INT_MAX );
    
                        add_filter( 'option_woocommerce_tax_display_shop', array( $this, 'tax_display_toggle' ), PHP_INT_MAX );
    
                    }

    Cheers
    //Mattias

    Thread Starter mattiaspkallio

    (@mattiaspkallio)

    Ah, perfect! Problem solved and a lot prettier than my hack, haha. ??

    Thanks for quick reply and fix.

    Thread Starter mattiaspkallio

    (@mattiaspkallio)

    Sort of temp-hack-fixed it by checking if array and setting values from array instead of functions.

    Yep, I have the exact same problem.
    Not a solution but I had to change the url in the menu to the Membership Levels page instead, but that means the account page doesn’t show when logged in.

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