• Resolved ZLC

    (@kindnessville)


    Hi there!

    I have a special situation in which I would like to disable this plugin when the product in the checkout is free (in other words, to display the original WordPress checkout if the product added is free). Is that possible?

    Thank you so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ZLC

    (@kindnessville)

    Or if the product is free, to simply combine the billing with the payment and eliminate the steps.

    Thank you!

    Plugin Author SilkyPress

    (@diana_burduja)

    [rewriting the message]

    • This reply was modified 1 year, 5 months ago by SilkyPress.
    Plugin Author SilkyPress

    (@diana_burduja)

    Hello,

    this PHP snippet will combine all the checkout steps into one if certain products are present in the cart. The snippet checks if the cart doesn’t contain other products than the ones in the $free_products_id array. You’ll have to modify it to load the products data and check if the price equals to zero.

    Eliminating the steps is not entirely possible. You could write a small JS script that removes the steps header and the buttons, in case there is only one step present.

    Thread Starter ZLC

    (@kindnessville)

    I added the snippet. Almost perfect, Diane. Thank you so much!

    The breadcrumb with “billing” up top and its “next” button under the “place order” button still display when logged in.

    Is there a way to remove them?

    Plugin Author SilkyPress

    (@diana_burduja)

    The breadcrumb and the buttons can be removed by adding the following JS code to your website:

    jQuery(document).ready(function( $ ){
    if ( $('.wpmc-tabs-list li').length < 2 ) {
    $('.wpmc-tabs-list, .wpmc-nav-wrapper').hide();
    }
    });

    Usually the theme offers an input field within the dashboard where you could copy/paste the JS code.

    Thread Starter ZLC

    (@kindnessville)

    Thank you so much, Diana! This worked. I appreciate your help.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Override for free products?’ is closed to new replies.