Jump to content

COD check by zipcode


Recommended Posts

You would put it in the main template file for the cod module. Say the zipcode range is 90001 to 90999 you could wrap the whole module with an if statement like

 

{if $smarty.post.postcode > 90099 or < 90001}
{else}
//have the main module code here
{/if}

I think that is what you would use to access the zipcode, but I haven't used 1.5 that much yet.

Link to comment
Share on other sites

  • 2 weeks later...

Hi, I am on version 1.4.5.1. I would like a postcode serviceability module. A buyer can enter the postcode in a box which looks up whether the postcode is serviced - a list of postcodes can be for COD or any other criteria. The list of postcodes would have to be put up in the database or code. How can this be done?

Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...