innocuous Posted November 7, 2012 Share Posted November 7, 2012 Hi, Can we make a zipcode array check for COD payment? PS 1.5.2. Cash on delivery is not available across all zipcodes in my country. I would like to check before accepting COD. Any way to do this without paid module? Regards, Link to comment Share on other sites More sharing options...
Dh42 Posted November 7, 2012 Share Posted November 7, 2012 There is no stock way to do this, your best bet would be to contact presto-changeo and get them to quote you for changing their localized shipping module over to working with payments. Link to comment Share on other sites More sharing options...
innocuous Posted November 7, 2012 Author Share Posted November 7, 2012 Hi, looking for a free solution which can involve coding also. Thanks anyways Link to comment Share on other sites More sharing options...
Dh42 Posted November 7, 2012 Share Posted November 7, 2012 (edited) Then look at what their module does and write on similar. edit: How many zipcodes are you talking that you want to allow for using the module? Edited November 7, 2012 by DesignHaus42 (see edit history) Link to comment Share on other sites More sharing options...
innocuous Posted November 7, 2012 Author Share Posted November 7, 2012 Quite a bit of zipcodes! Link to comment Share on other sites More sharing options...
Dh42 Posted November 7, 2012 Share Posted November 7, 2012 Are they in numeric order? If so you could do an if statement at the template level to handle them. Link to comment Share on other sites More sharing options...
innocuous Posted November 8, 2012 Author Share Posted November 8, 2012 Yes they could be arranged in numeric order...how and where do I implement the If statement? Link to comment Share on other sites More sharing options...
Dh42 Posted November 8, 2012 Share Posted November 8, 2012 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 More sharing options...
Rekha Posted November 18, 2012 Share Posted November 18, 2012 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 More sharing options...
asood28 Posted February 12, 2013 Share Posted February 12, 2013 Even i have the same requirement. How can we do it. Even if chargeable at what price? Link to comment Share on other sites More sharing options...
Recommended Posts