Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author macarthurval

    (@macarthurval)

    Hello Chris, thank you very much for your rate and review!

    Of course you can, for disable it at the home page, you have to edit the line 5 at steps-template.php in “/templates/”:

    if ( WC()->cart->get_cart_contents_count() != 0 || is_wc_endpoint_url( 'order-received' )){

    change it by:

    if (( WC()->cart->get_cart_contents_count() != 0 || is_wc_endpoint_url( 'order-received' )) && is_front_page()!=true){

    or if you want show it only at woocommerce’s pages (disable in home, blog, etc), change it by this:

    if (( WC()->cart->get_cart_contents_count() != 0 || is_wc_endpoint_url( 'order-received' )) && is_woocommerce()){

    I will implementate this funcionality like an option in future releases.

    Thanks again!

    Thread Starter chris7900

    (@chris7900)

    Hi,

    Thanks the first code works, but the second removed the bar completely. But the first one does the job, Thanks ??

    Another thing I noticed was once the order is placed successfully and in the order received page,

    the page bar is been shown in 3 places.

    The first one is fine. But the issue is it’s been shown under the Shipping & billing address locations under order received as well.

    Anyway to disable this on the order received page?

    Thanks!

    Plugin Author macarthurval

    (@macarthurval)

    Hi Chris,

    you are right with the second code, this one works like expected, I have tested it:

    $shop_pages = (is_woocommerce() || is_cart() || is_checkout() || is_wc_endpoint_url( 'order-received' )) ? true : false;
    if (( WC()->cart->get_cart_contents_count() != 0  || is_wc_endpoint_url( 'order-received' )) && $shop_pages){

    For the issue in the order-received page, that seems is a particularity of your theme witch has 3 <header> in that page, but you can fix it editing the syw-woocommerce-simple-checkout-steps.php at line 34, change it by:

    jQuery('header:first').append('".$string."');

    I hope that everythings work now the way you expected. Thank you for your feedback, it really helps me to improve the plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable on home page’ is closed to new replies.