• Resolved reivenw

    (@reivenw)


    Compare button is not shown on Single Product pages. I am using elementor builder to create single product page

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    You need to use shortcode [br_compare_button] to display compare button with page builder.

    Regards,
    Oleg

    Thread Starter reivenw

    (@reivenw)

    I added the shortcode [br_compare_button] but still not working, what else could I do?

    Plugin Author RazyRx

    (@razyrx)

    Hello,

    It seems this changes not released yet. We will add this shortcode in next plugin release.

    Regards,
    Oleg

    The shortcode is in fact implemented in the main.php line 220

    A nondestructive hack to make it work is to change line 220 from:
    add_shortcode( ‘br_compare_button’, array( $this, ‘get_compare_button’ ) );
    to:
    add_shortcode( ‘br_compare_button’, array( $this, ‘get_compare_button_short’ ) );

    Copy the function get_compare_button() in lines 533-568 and call the “new” function
    get_compare_button_short()

    Change the lines at the end of the function from “echo”… to (as an example)
    $button_short = …
    And after the string add: return $button_short.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Compare button’ is closed to new replies.