User Tools

Site Tools


how_to_create_a_shipping_module

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
how_to_create_a_shipping_module [2020/01/04 17:34]
admin [before_select($postfields)]
how_to_create_a_shipping_module [2020/01/04 17:35] (current)
admin [before_select($postfields)]
Line 130: Line 130:
     public function before_select($postfields) {     public function before_select($postfields) {
       try {       try {
-        if ($postfields['​foo'​] != 'bar') throw new Exception('​Invalid user input'​);​+        if ($postfields['​foo'​] != '1234') throw new Exception('​Invalid user input'​);​
       } catch (Exception $e) {       } catch (Exception $e) {
         return array('​error'​ => $e->​getMessage());​         return array('​error'​ => $e->​getMessage());​
how_to_create_a_shipping_module.txt ยท Last modified: 2020/01/04 17:35 by admin