Jump to content

COD Module Help needed


Recommended Posts

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

×
×
  • Create New...