freemall Posted May 19, 2014 Share Posted May 19, 2014 Dear Sir, could you tell mein which variable it stores postcode of user. I want to check user zip code before enabling the COD module like this in this i am checking cart total if ($params['cart']->getOrderTotal()<999) return ; similerly I want to check for user ZIP code, how I am going to implement this is 1. I will store all COD pin codes in a database. 2. I will fatch user postcode, 3. run query on postcode database for this postcode if true display COD module, else display other methods thanks. Link to comment Share on other sites More sharing options...
NemoPS Posted May 19, 2014 Share Posted May 19, 2014 It should be in the address object->postcode .... but I can't remember if it is actually assigned and how. Can you try var_dump($params); ? Link to comment Share on other sites More sharing options...
Recommended Posts