• Resolved omris83

    (@omris83)


    Hi.

    Hoping someone can help.

    1. How do you change the text on the toggle? Previous post on this forum method no longer works.

    I.e. [wcj_button_toggle_tax_display label_incl=”Inc VAT” label_excl=”Ex VAT”] < this doesnt work.

    2. How do you then make the price have text after it to say if its showing price with or without tax? Otherwise its confusing.

    3. Lastly, is there a way of having a sort of left/right toggle so you can see whats selected? Like this – https://thenounproject.com/term/toggle/289294/

    Any help would be appreciated. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ronyp

    (@ronyp)

    Hello,

    For #1 and #3, you can create your own button or toggle with the use of the booster’s shortcode code.

    function wcj_button_toggle_tax_display( $atts ) {
    $current_value = ( ” == ( $session_value = wcj_session_get( ‘wcj_toggle_tax_display’ ) ) ? wcj_get_option( ‘woocommerce_tax_display_shop’, ‘excl’ ) : $session_value );
    $label = $atts[ ‘label_’ . $current_value ];
    return ‘<form method=”post” action=””><input type=”submit” name=”wcj_button_toggle_tax_display”‘ .
    ‘ class=”‘ . $atts[‘class’] . ‘” style=”‘ . $atts[‘style’] . ‘” value=”‘ . $label . ‘”></form>’;
    }

    for #2
    We do not have such a feature that shows the label for excluding and including tax.

    Kind Regards,
    Rony P – Support Team

    How did you solve omris83?
    Thanks in advance

    • This reply was modified 3 years, 10 months ago by msansan.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tax Toggle Questions’ is closed to new replies.