Sanesh Acowebs
Forum Replies Created
-
Hi, please replace the entire code with the below given. Please make changes to the options for the city that you have previously set.
function awcfe_city_dropdown_field( $fields ) { $city_args = wp_parse_args( array( 'type' => 'select', 'options' => array( '' => __( 'Select city' ), 'birmingham' => 'Birmingham', 'cambridge' => 'Cambridge', 'leicester' => 'Leicester', 'liverpool' => 'Liverpool', 'london' => 'London', 'manchester' => 'Manchester', ), 'input_class' => array( 'country_select', ) ), $fields['billing']['billing_city'] ); $fields['billing']['billing_city'] = $city_args; $state_args = wp_parse_args( array( 'placeholder' => 'select a region', 'input_class' => array( 'wc-enhanced-select', ) ), $fields['billing']['billing_state'] ); $fields['billing']['billing_state'] = $state_args; wc_enqueue_js( " jQuery( ':input.wc-enhanced-select' ).filter( ':not(.enhanced)' ).each( function() { var select2_args = { minimumResultsForSearch: 5 }; jQuery( this ).select2( select2_args ).addClass( 'enhanced' ); });" ); return $fields; } add_filter( 'woocommerce_checkout_fields', 'awcfe_city_dropdown_field', 999999, 1 );
Forum: Plugins
In reply to: [Wishlist and Save for later for Woocommerce] shortcodeHi, thanks for showing interest in our wishlist plugin. Currently our free version of plugin does not have this feature. But on our premium version of our plugin we have the option to set privacy for the wishlist. You can test it from the demo link shared on the WordPress plugin details section tab.
?
Hi, can you please confirm that you have added the correct field name in our previously shared code. In our example, the field name was “state” from billing section, so added “billing_state”. Or can you share your checkout page url.Hi, you can achieve this by adding the following line to the code that was previously shared.
$fields['billing']['billing_state']['placeholder'] = 'select a region';
Please check the screenshot: https://tinyurl.com/ygeob43kHi, thanks for your reply. We couldn’t understand your second request properly. By default Woocommerce changes state field type to text, select or hidden according to country. Do you want to change the placeholder value for the state file?
Hi, thanks for using our checkout plugin. To change the checkout billing City field as dropdown please add the code below to your theme/child-theme functions.php. Please note that here we are changing field type and options only. The city field on the admin checkout editor will remain as text field, but on the frontend checkout page it will show as select field. Also, you need to rearrange the field to correct the position from the settings page. We have given some sample options only, you can change it on that code snippet.
function awcfe_city_dropdown_field( $fields ) { $city_args = wp_parse_args( array( 'type' => 'select', 'options' => array( '' => __( 'Select city' ), 'birmingham' => 'Birmingham', 'cambridge' => 'Cambridge', 'leicester' => 'Leicester', 'liverpool' => 'Liverpool', 'london' => 'London', 'manchester' => 'Manchester', ), 'input_class' => array( 'country_select', ) ), $fields['billing']['billing_city'] ); $fields['billing']['billing_city'] = $city_args; return $fields; } add_filter( 'woocommerce_checkout_fields', 'awcfe_city_dropdown_field', 999999, 1 );
Hi, thanks for pointing that out. We have released a new version update (3.2.17) for our premium plugin, in which we have solved the issue mentioned above. Please update and check.
Hi, thanks for trying our checkout plugin.
Can you please add the following code to your theme/child-theme functions.php file.
add_filter( 'woocommerce_is_rest_api_request', function(){} );
?Then clear your browser cache and check?.Hi,
Thanks for using our checkout plugin.Previously we have provided the option to remove the country field. But when you disable the country filed, there are some other issues that you can face like shipping calculation error, some field required error, etc reported by many users. So we have changed the option.
If you want to hide the country filed from front-end, then add a class “awcfe-hidden” to the advanced section of that field.Our plugin is just a field editor, not a plugin for changing the checkout page layout. Hope you understand this.
There are options to change terms text from WordPress customize section. If you want to remove it then you can do this from woocommerce setting.
Also, to remove More info title, then you can do this by either using CSS styling or changing from the checkout template.
- This reply was modified 3 years, 8 months ago by Sanesh Acowebs.
Forum: Plugins
In reply to: [Checkout Field Editor for WooCommerce - Checkout Manager] Радио кнопкаHi, you can set terms and conditions page from WooCommerce Advanced settings. Go to Dashboard -> WooCommerce > Settings > Advanced. Then select the page for Terms and conditions in the dropdown under Page setup section.
Forum: Plugins
In reply to: [Checkout Field Editor for WooCommerce - Checkout Manager] Радио кнопкаOk, then there is nothing wrong with our checkout plugin. It may be due to some other reasons. On inspecting your checkout page it shows multiple checkout sections, hidden with CSS styling. So it will be better to check your checkout page/template.
Forum: Plugins
In reply to: [Checkout Field Editor for WooCommerce - Checkout Manager] Радио кнопкаYou can disable our checkout plugin from Dashboard -> Plugins -> Installed plugins.
Forum: Plugins
In reply to: [Checkout Field Editor for WooCommerce - Checkout Manager] Радио кнопкаHi, Can you check whether this issue exists again after disabling our checkout plugin.
Hi, we tested your settings on the demo. First, you should set a value for the checkbox field value (https://tinyurl.com/yz7qb4us). Then you should set that value for the conditional logic( https://tinyurl.com/yjdgwk3l ). Hope you understood the issue.
Forum: Plugins
In reply to: [Checkout Field Editor for WooCommerce - Checkout Manager] Reinstal PluginHi, can you please change your code to below given format. Because we need some additional parameters as in the code. Also note that you need to add some extra codes to validate url type if required as we are not supporting that type.
add_filter( 'woocommerce_checkout_fields' , 'awcfe_custom_override_checkout_fields' ); function awcfe_custom_override_checkout_fields( $fields ) { $fields['shipping']['shipping_shiping_number'] = array( 'type' => 'url', // field type 'name' => 'shipping_shiping_number', // field name 'label' => __('Shipping number', 'woocommerce'), 'class' => array('form-row-wide'), 'col' => 6, // 6 for full width, 3 for half width 'clear' => true, 'priority' => 5, 'custom' => true, 'show_in_email' => true, 'show_in_order_page' => true, ); return $fields; }