This bugtracker is archived (announcement). New tickets are created on github.com. See all framework issues, cms issues, and search the module listings for more specific bugtrackers.

Ticket #4055: OrderForm_validationPatch.diff

File OrderForm_validationPatch.diff, 582 bytes (added by jshipman, 6 years ago)
  • OrderForm.php

     
    189189                return true; 
    190190        } 
    191191         
     192         /** Override form validation to make different shipping address button work */ 
     193        function validate(){ 
     194                if(!isset($_POST['action_processOrder'])  &&  
     195                        (isset($_POST['action_useMemberShippingAddress']) || isset($_POST['action_useDifferentShippingAddress']) ) ){ 
     196                        return true; 
     197                } 
     198                return parent::validate();       
     199        } 
     200         
    192201} 
    193202?> 
     203 No newline at end of file