shopp_ordering_empty_lastname

filters the order validation failure on missing customer lastname.

add_filter( 'shopp_ordering_empty_lastname', [callback] )

@param bool $valid will be false if the order does not validate because the customer lastname is missing

Description

filters the order validation failure on missing customer lastname.

Returning true from this filter will allow order processing, despite an empty customer lastname.

Example

// register filter callback
add_filter('shopp_ordering_empty_lastname', 'shopp_ordering_empty_lastname_filter');

// create filter function
function shopp_ordering_empty_lastname_filter( $valid ) {
    // override failure
    return true;
}

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar