[Plugin: eShop] Mandatory field removal
-
I added a field to my checkout page using eshop-extras and I am trying to remove the mandatory field from it. I tried removing this line from the php file:
// Make additional checkout field mandatoryadd_filter('eshopCheckoutReqd','eshop_extras_required');function eshop_extras_required($values) { $values[] = 'eshop_extra'; return $values;}
but that didn’t work. I also tried using the code from the wiki:
// Remove zip/ post code from mandatory fields on checkout form. function my_mandatory_fields ($reqd) { $new_reqd = array(); foreach( $reqd as $item ) { if ( $item != 'zip') $new_reqd[] = $item; } return $new_reqd; } add_filter( 'eshopCheckoutReqd', 'my_mandatory_fields');
to my functions file and changing ‘zip’ to ‘eshop_extra’ but that didn’t work either. Help?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Plugin: eShop] Mandatory field removal’ is closed to new replies.