WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Checkout Manager
[resolved] Adding more than 2 options in "Select Option" (14 posts)

  1. rajit197
    Member
    Posted 11 months ago #

    Hi,

    In the "Add New Field Section" how can i add more than 2 options while using the "Select Option" ??

    Right now it only displays the 2 options that are there ..

    Regards
    Rajit

    http://wordpress.org/plugins/woocommerce-checkout-manager/

  2. Emark
    Member
    Plugin Author

    Posted 11 months ago #

    Unfortunately this function is not part of this plugin.

  3. rajit197
    Member
    Posted 11 months ago #

    There has to be some way, I can add the options ??
    Some tweak in the code or something

  4. Emark
    Member
    Plugin Author

    Posted 11 months ago #

    yep, i helped you on the plugin forum. Glad that it works.

    -- replied to clear topic as resolved

  5. maddylc
    Member
    Posted 11 months ago #

    Hi,

    I also need to add more than 2 options in the 'Add New Field Section' please can you help as I can't see how you resolved it?

    Many thanks,

    Maddie

  6. Emark
    Member
    Plugin Author

    Posted 11 months ago #

    resolved it in the plugin forum

    i would need to provide you with code

  7. maddylc
    Member
    Posted 11 months ago #

    Yes, i don't have access to the forum so could you provide the code here?

    Thanks

  8. maddylc
    Member
    Posted 11 months ago #

    Please can you help with this??

    I've tried to find the forum but every link i find takes me to a 'page not found'.

  9. maddylc
    Member
    Posted 11 months ago #

    Now got onto the forum but the link you give for code isn't available so i'm stuck. It seems like it would be a fairly common need so i'd really appreciate some help.

    Thanks

  10. Emark
    Member
    Plugin Author

    Posted 11 months ago #

    available only in the pro version.

  11. kostasx
    Member
    Posted 3 months ago #

    There is a quick tweak that can be implemented in the code, in order to add more than 2 options in the select option:

    1) In your theme's functions.php you'll have to remove the
    'woocommerce_after_checkout_billing_form' action associated with the 'wccs_custom_checkout_field' function, that is found in the plugin code. You can use the remove_action() WP function for this.

    2) You then initialize this action with a modified copy of the 'wccs_custom_checkout_field' function as a callback function.

    Right where the function code (#836) accepts the input values from Option A and Option B fields for the select box, you replace the input array ('options') with an array created using the explode() PHP function (use comma as its separator) and $btn['option_a'] as the string input. You then enter more than 2 values using the following notation: Option 1, Option 2, Option 3, etc. right inside the Option A input box. You also have to use a WP sanitize function for the input.

    I hope this helps someone...

  12. Emark
    Member
    Plugin Author

    Posted 3 months ago #

    I hope so too @kostasx

    Coding can be a bit confusing. If you are not familiar with and do not know how to implement this code, the WooCommerce Checkout Manager Pro can help with this and provide unlimited options. :)

  13. hi17
    Member
    Posted 3 months ago #

    @Emark May I know the pricing details of the checkout manager pro? Because I cannot find the link to the checkout manager pro page which would have the price details of this plugin. Because I also need to add more fields to the checkout form. Thank you for creating such a great plugin.

  14. Emark
    Member
    Plugin Author

    Posted 3 months ago #

    The plugin link is now working, please do check.

Reply

You must log in to post.

About this Plugin

About this Topic