aansf Posted September 25, 2015 Share Posted September 25, 2015 Halo teman2 saya mau nanya,. gimana sih cara membuat field auto completed di kolom country,? jadi ceritanya saya ingin membuat shipping dengan mengubah kolom country jadi kecematan, nah di kolom kecematan itu sy ingin menjadikan type text field yg autocompleted cek file gambar yg sy upload yah ada yang bisa membantu ? makasih sebelumnya Link to comment Share on other sites More sharing options...
aansf Posted September 26, 2015 Author Share Posted September 26, 2015 sepi banget.... Link to comment Share on other sites More sharing options...
prestanesia Posted September 28, 2015 Share Posted September 28, 2015 ga kebalik gan ? di PrestaShop kan default 2 level tuh, Country - State atau jadi Propinsi - Kota/Kecamatan. kalo kasus diatas jadi kabupaten - kecamatan tapi kyknya kebalik jadi State - Country deh ? Autocomplete di PrestaShop pake plugin Autocomplete yg ada di folder js\jquery\plugins\autocomplete buat dokumentasi/contoh ada di https://github.com/dyve/jquery-autocomplete. kalo mau jadi autocomplete, berarti pasang event change di dropdown country, kalo berubah pasang/attach autocomplete di field terkait (bisa state, bisa city -- tergantung kebutuhan) dengan data kecamatan ngambil dari modul/service yang buat sendiri (via JSON misalnya). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now