0

Remove Woocommerce default address fields

Use the following action hook to remove default address fields value from checkout page [code language=”css”] <pre><code>add_filter(‘woocommerce_default_address_fields’, override_address_fields’); function override_address_fields( $address_fields ) { $address_fields[‘address_1’][‘placeholder’] = ”; $address_fields[‘address_2’][‘placeholder’] = ”; $address_fields[‘city’][‘placeholder’] = ”; $address_fields[‘state’][‘placeholder’] = ”; $address_fields[‘postcode’][‘placeholder’] = ”; return $address_fields;… Continue Reading

0

Get CheckBox value in Android Java Code

//MainActivity.java [code language=”css”] package codeof.sandy; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.CheckBox; public class MainActivity extends Activity { CheckBox chkfair, chkgood, chkgreat, chkexcellent @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setTitle("CheckBoxActivity"); setContentView(R.layout.main); find_and_modify_text_view(); } private void find_and_modify_text_view()… Continue Reading