• Resolved ndjworldnews

    (@ndjworldnews)


    Hello;
    I can’t tell you how long I have been looking for a checkout solution like you provide. Great job thank you so very much.

    Question: how do I hide the ‘previous’ button?

    Thank you.

    Lode

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

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

    (@diana_burduja)

    If you want to hide the “previous” button from all the steps, then you can achieve that by adding the following CSS rule to your website:

    #wpmc-prev {
        display: none !important;
    }

    If you want to hide the “previous” button only from the last step, then you’d need to add the following JavaScript code to your website:

    jQuery(document).ready(function( $ ){
        $('.woocommerce-checkout').on('wpmc_after_switching_tab', function() {
           if ( $('.wpmc-payment.current').length == 1 ) {
              $('#wpmc-prev').hide().removeClass('current');
           } else {
              $('#wpmc-prev').show();
           }
        });
    });
    • This reply was modified 4 years, 10 months ago by SilkyPress.
    Thread Starter ndjworldnews

    (@ndjworldnews)

    Hello Diana;

    Thank you very much. Stay safe.

    Lode

    “I have this same question”

    Can you guide me in detail?
    How do I insert this JavaScript?
    Where will I copy and insert it?
    Thank you !

    Plugin Author SilkyPress

    (@diana_burduja)

    Some themes offer an option to add JavaScript code to the website. Look in the theme’s option for something similar to “Add Custom JS” or “Add JS code”.

    Or you can use a plugin similar to Simple Custom CSS and JS to add the JavaScript code.

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