Checkbox type input field in BuyToAddress field

4 years 4 months ago
Posts: 32
More
Topic Author
Checkbox type input field in BuyToAddress field #1483
If you add new shopper fields into your cart/order with type checkbox no label is showing only the pure checkbox. So this is useless because no one knows what to check :) .
Solution for future:
if($BTAddFields['type'] === 'checkbox'){
                        echo '<label>'.$BTAddFields['formcode'].$BTAddFields['title'].'</label>';
                        if(strlen($BTAddFields['description']) > 0){
                            echo '<p class="uk-form-help-block special-input-description">'.$BTAddFields['description'].'</p>';
                        }
                    } else{
                        echo str_replace('<input', '<input placeholder="'.$BTAddFields['title'].'" ', $BTAddFields['formcode']);
                        if(strlen($BTAddFields['description']) > 0){
                            echo '<p class="uk-form-help-block special-input-description">'.$BTAddFields['description'].'</p>';
                        }
                    }

Plus in some situation there is description for fields
The following user(s) said Thank You cnorin

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum

Latest News from JoomlaPro.com

VMuikit 5 is finally out!

Our next version of our popular VMuikit package is out. This time we have some quite nice new features.

Electroneum Joomla/VirtueMart plugins

JoomlaPro.com are not only web & Joomla enthusiast, we cannot stay away from checking other tech trends as well. The last few years its been hard to miss the crypto/blockchain ...

New plugin: Secure Joomla Login

We have released a new plugin that adds a extra PIN code and a reCaptcha v2 check on Joomlas login. Security is very important on all fronts of a website. One often missed one is ...

We accept PayPal, 2Checkout & Electroneum payments:

We accept PayPal payments    We accept 2checkout payments  electroneum payment


For news and updates please like :