add Extra Checkout Options only if quantity is….

This topic is: Resolved
  • Resolved
  • mich
    #74188

    hi
    i would like to add Extra Checkout Options fields to my checkout page only if the quantity in the cart is more then 4...
    do Extra Checkout Options have shortcode so i can add in my code?
    i add this code to functions.php
    so only if there is more then 4 products in my cart ... i want to add the checkout fields to the code...

    add_action( 'woocommerce_after_order_notes', 'add_field_based_quantity', 20, 1 );
    function add_field_based_quantity( $checkout ) {
    if( WC()->cart->get_cart_contents_count() >= 4 ) {

    }
    }

    appreciate your help
    thank u so much!

    ThemeCompleteSite Admin
    #74189
    You must be logged in to see this reply.
    mich
    #74190
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #74191
    You must be logged in to see this reply.
    mich
    #74192
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #74193
    You must be logged in to see this reply.
    mich
    #74479
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #74481
    You must be logged in to see this reply.
    mich
    #74485
    You must be logged in to see this reply.
    ThemeCompleteSite Admin
    #74486
    You must be logged in to see this reply.
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.

No access!

You do not have permission to post to this forum.