Prestashop - Error in form - Status - id_state - Always invalid

Asked

Viewed 219 times

0

I have an error that returns the status as invalid, why not load the states of the country and can not edit that nothing happens.

The following is when registering an Address,

The State, always carries the name of the country, as the only option

I can not submit because it gives error that I have to fill a valid state,

If I Inspect the element and put the id of a valid state, it passes and register all right.

I have tried to edit the addres.tpl, Addresses.tpl, and order-opc-new-Account.tpl files as well as the order-opc-new-Account-Advanced.tpl manually putting the options inside the select by filling each state of brazil and the correct id, but it does not load on the site ever, it seems that every edition I make is invalid.

As there are many, I put on the side of the required field asterisk, a letter for each state select that had there, and no letter appears, as if I was in the wrong file.

Using the latest version of Prestashop 1.6 and the Appollo AP FREE theme from this address:

http://apollotheme.com/products/category/free-prestashop-themes/

Follow my shop address with error:

http://b2b.cellsystem.com.br/endereco

Currently , It is working without the state field why I went in the database and put that Brazil does not have states ....... but this is wrong, I need the states, no need to pull from the bank, can be a select defined in html.....

  • I could not upload here, so I uploaded there in the Archive’s forum: https://www.prestashop.com/forums/topic/522983-preciso-supporte-beginnererro-no-formul%C3%A1rio-estado-id-state-sempre-Inv%C3%A1lido/

1 answer

1


Yeah, I was having the same problem.

SOLUTION: Replace themes/ap_office/js/tools/statesManagement.js by themes/default-bootstrap/js/tools/statesManagement.js

Clear Prestashop cache, recompile and clear browser cache.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.