Jump to content

A Zip/postal code is required , the shopping cart doesn't show one, but it is enabled


Recommended Posts

My prestashop 1.6 shows
- an error message " Zip/postal code not found "
- a shopping cart address form, with no box for the Zip/postal code
- a backoffice > localisation > countries > UK file with the post code enabled

Screenshots are below and on https://postimg.org/gallery/39c0zbhx2/ . Configuration stuff is below

I have looked on other threads and tried disabling all caches, and changing from a single-page shopping cart form to a multi-page one.

It may be relevant that the UK has no single postcode format such as so-many numbers or so-many letters, so the default settings leave the formatting option blank.

Does anybody know a work-around?
Thanks in advance
John

Oh apprently I can post images here - I'll do that as wellpost-1039793-0-08730800-1502640525_thumb.jpgpost-1039793-0-30462100-1502640526_thumb.jpgpost-1039793-0-12467600-1502640527_thumb.jpg


-----------------------------------------------------------------------------------------------------------------------

 CONFIGURATION INFORMATION
This information must be provided when you report an issue on our bug tracker or forum.
 SERVER INFORMATION
Server information Linux #1 SMP Thu Mar 9 05:49:24 EST 2017 x86_64
Server software version Apache
PHP version 5.6.31
Memory limit 128M
Max execution time 30
 DATABASE INFORMATION
MySQL version 10.0.32-MariaDB
MySQL server localhost
MySQL name
MySQL user
Tables prefix ps_
MySQL engine InnoDB
MySQL driver DbPDO
 STORE INFORMATION
PrestaShop version 1.6.1.13
Current theme in use default-bootstrap
 MAIL CONFIGURATION
Mail method You are using the PHP mail() function.
 YOUR INFORMATION
Your web browser Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) 
Chrome/49.0.2623.112 Safari/537.36
 CHECK YOUR CONFIGURATION
Required parameters OK
Optional parameters OK
 LIST OF CHANGED FILES
Changed/missing files have been detected.
updated files (1)
controllers/front/AuthController.php
Link to comment
Share on other sites

Thanks for spotting that! I left a "0" in the screenshot by mistake.

The result turns-out the same either way.

I have spent a couple of days on this and tried blocking-out all the lines about "postcode" on a file called "validate.js" which might have helped a bit.
I have seen a reference to updating the default bootstrap theme and will try that.

It's hard to keep track until something works, but any more help is welcome and if I find the answer I will post it here





 

  • Like 1
Link to comment
Share on other sites

I have had another look at other threads. Nobody has a single clear solution

 

 

I'M WORKING ON THIS ONE
https://www.prestashop.com/forums/topic/478548-zippostcode-validation-error/


RELEVANT THREADS

https://www.prestashop.com/forums/topic/464871-uk-postcode-issues/?hl=%2Bzip+%2Bincorrect
- I went to verify/js in the javascript folder on my server and put a hash sign before every line about postcodes. No great change except that my postal zones now work!
- post#4 suggests removing validation from the default theme, but I am on default bootstrap which has different looking files and I don't know if a change of theme would make things worse overall
http://www.inmotionhosting.com/support/community-support/prestashop-15/zippostal-code-problems-in-prestashop
- similar idea: update the default-boostrap theme. The error here: "puts a red X next to the Zip Code", while mine is the zip/postcode box not appearing at all on the form.

LESS RELEVANT.

https://www.prestashop.com/forums/topic/534725-uk-postcodes-for-prestashop-v1614/
- no solution; slightly different symptoms for different versions

https://www.prestashop.com/forums/topic/343809-urgent-zip-code-field-missing/
- missing form field in Holland. Blamed on lack of cache?

https://www.prestashop.com/forums/topic/99240-invalid-postcode-error/
- lots of detail about version 1.4, working through later versions
- leaving the format field blank was fine for some customers

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

to be honest, when you mentioned you had made code changes I wandered off.  If I was you,  I'd replace whatever files you updated with clean non-modified code.  If this is a production shop then you may want to consider posting in job section as I'm sure any number of dev can solve this when given access  in short order.

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...