Rolf Hassel
Forum Replies Created
-
I can give you admin access if you like to take a look.
Yes, using the latest version 1.4.2
Yes, users will need to do this from the frontend. As i said, while doing this as an admin: no problems. But if a user (contributor) tries this, the above message appears.
Forum: Plugins
In reply to: [WP last updated] Screenshot?Nice! I just tried it out and placed it as an Introductory Message under the blog. https://myclassipress.com/
Think i’m going to leave it there.
Thanks @mikemayhem3030
Forum: Plugins
In reply to: [WooCommerce] Remove fields on Edit AddressThe following code will remove all fields in the checkout page, shipping and billing fields (also in “Edit Address”). It will only show the First Name, Last Name, Email and Phone. The Phone field will not be required to fill out.
Add this to your functions.php
/* Remove Woocommerce User Fields */ add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); add_filter( 'woocommerce_billing_fields' , 'custom_override_billing_fields' ); add_filter( 'woocommerce_shipping_fields' , 'custom_override_shipping_fields' ); function custom_override_checkout_fields( $fields ) { unset($fields['billing']['billing_state']); unset($fields['billing']['billing_country']); unset($fields['billing']['billing_company']); unset($fields['billing']['billing_address_1']); unset($fields['billing']['billing_address_2']); unset($fields['billing']['billing_postcode']); unset($fields['billing']['billing_city']); unset($fields['shipping']['shipping_state']); unset($fields['shipping']['shipping_country']); unset($fields['shipping']['shipping_company']); unset($fields['shipping']['shipping_address_1']); unset($fields['shipping']['shipping_address_2']); unset($fields['shipping']['shipping_postcode']); unset($fields['shipping']['shipping_city']); return $fields; } function custom_override_billing_fields( $fields ) { unset($fields['billing_state']); unset($fields['billing_country']); unset($fields['billing_company']); unset($fields['billing_address_1']); unset($fields['billing_address_2']); unset($fields['billing_postcode']); unset($fields['billing_city']); return $fields; } function custom_override_shipping_fields( $fields ) { unset($fields['shipping_state']); unset($fields['shipping_country']); unset($fields['shipping_company']); unset($fields['shipping_address_1']); unset($fields['shipping_address_2']); unset($fields['shipping_postcode']); unset($fields['shipping_city']); return $fields; } /* End - Remove Woocommerce User Fields */ /* Make Woocommerce Phone Field Not Required */ add_filter( 'woocommerce_billing_fields', 'wc_npr_filter_phone', 10, 1 ); function wc_npr_filter_phone( $address_fields ) { $address_fields['billing_phone']['required'] = false; return $address_fields; } /* End - Make Woocommerce Phone Field Not Required */
See the final result here: MyClassiPress.com/
Cheers
Forum: Plugins
In reply to: [Features by WooThemes] shortcodes don't render within featuresSame problem here, using Appply theme from WooThemes. Is there a solution?
Forum: Plugins
In reply to: [WooCommerce] CSS and tabs messed up since updateSame problem here! Single product page is messed up after upgrading WooCommerce to 2.0.1
Forum: Fixing WordPress
In reply to: php code for latest postsThank you very much! That was exactly what i was looking for!