Jump to content

Remove 'Zip Code' option on carrier search


Recommended Posts

Hi,

 

I know this has probably been asked before and I did try one suggestion I found but it didn't work (to remove):

 

if (!$this->checkZipcode($zipcode, $id_country))
  $errors[] = $this->l('Depending on your country selection, please use a valid zip/postal code.');

 

from carriercompare.php in the carrier module

 

Tried removing other relations to 'zip code' and neither of them worked either. Also tried disabling 'Need zip/postal code:' under the country.

 

I've set up my country, states, carriers and shipping pricing rules fine, works perfect but I don't want a customer to enter a postcode/zipcode and have the search calculate the shipping by this as I haven't done any configuration for this only the zones. Please could someone help me have the search by zip code option removed?

 

running PS 1.5

Edited by atomicdev (see edit history)
Link to comment
Share on other sites

I would say deleting these lines should do the trick. Did you:

 

go to Advanced parameters->Performance and

set template cache to: "compile templates if the files have been updated"

and turned OFF the cache?

 

Try this, and reload the browser page where the question is asked. See if this works.

(Don't forget to turn Cache ON again before you go live with your site, as it speeds up the browsing experience considerably. :-)

 

Let me know if this works,

 

pascal

Link to comment
Share on other sites

Hi, thanks but I didn't think it was a caching issue as other updates I've made seem OK. Interestingly I've just realised the text '

Depending on your country selection, please use a valid zip/postal code' is not actually on my page, see here:

http://foneforflowers.co.uk/new_site/index.php?controller=order

 

I have just 'zip code' instead

 

There is a module folder 'carriercompare' in the theme folder but it only has translation files and not the carriercompare.php file. Any thoughts on this?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...