Unfortunately this function is not part of this plugin.
There has to be some way, I can add the options ??
Some tweak in the code or something
yep, i helped you on the plugin forum. Glad that it works.
— replied to clear topic as resolved
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
resolved it in the plugin forum
i would need to provide you with code
Yes, i don’t have access to the forum so could you provide the code here?
Thanks
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’.
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
available only in the pro version.
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…
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. 🙂
@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.
The plugin link is now working, please do check.