Jump to content

Prestashop Belum mendukung penggunaan jumlah States yang tak terbatas (>1000 states)


Recommended Posts

Berkaitan dengan shipping scenario-2 untuk Indonesia yang saya post disini :
http://www.prestashop.com/forums/viewthread/50169/instalasi_konfigurasi_dan_upgrade/3_skenario_pengaturan_shipping

Ternyata Skenario 2 tidak atau belum dapat dijalankan dengan sempurna. Karena terdapat suatu gejala yang Aneh saat proses perubahan alamat atau penambahan alamat baru.

Hal ini sudah Saya post di bug tracker :
http://www.prestashop.com/bug_tracker/view/4130/

dan di forum english :
http://www.prestashop.com/forums/viewthread/51038/installing_prestashop/prestashop_doesnt_support_unlimited_states___support__dot__dot__dot__with_strange_behavior__dot__dot__dot__/

Mudah2xan segera mendapat tanggapan dari developer dan ada solusinya ....

Uda kerja keras bikin database baru untuk shipping scenario ini dan modifikasi core file : authentication.tpl , address.tpl & addresses.tpl
Begitu selesai ... di ujicoba .... eeeeh ada yang aneh di Prestashopnya

Link to comment
Share on other sites

@ CAPARUNI : Saya belum pernah menemukan masalah dengan Zones, baik di localhost maupun di Live server

Mengenai Problem yang saya alami, nampaknya sudah Saya temukan jawabannya ..... :)
(punten ... males ngetik ulang dalam bahasa Indonesia )

YES ! YES ! YES ! ......... I Finally found what the problem is ....



Here the authentication.tpl script line-4 to line-17 :
PAY ATTENTION TO // LOOK [at] HERE! \\ MARKING

[removed]
// <![CDATA[
idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};
countries = new Array();
{foreach from=$countries item='country'}
   {if isset($country.states)}
       countries[{$country.id_country|intval}] = new Array();
       {foreach from=$country.states item='state' name='states'}
           countries[{$country.id_country|intval}]['{$state.id_state|intval}'] = '{$state.name|escape:'htmlall':'UTF-8'}'; // LOOK [at] HERE ! \\
       {/foreach}
   {/if}
{/foreach}
//]]>
[removed]




And Here the address.tpl script line-7 to line-23 :
PAY ATTENTION TO // LOOK [at] HERE! \\ MARKING

[removed]
// <![CDATA[
idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};
countries = new Array();
{foreach from=$countries item='country'}
   {if isset($country.states)}
       countries[{$country.id_country|intval}] = new Array();
       {foreach from=$country.states item='state' name='states'}
           countries[{$country.id_country|intval}]['{$state.id_state|intval}'] = '{$state.name}'; // LOOK [at] HERE !\\
       {/foreach}
   {/if}
{/foreach}
$(function(){ldelim}
   $('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{$address->id_state|escape:'htmlall':'UTF-8'}{/if}]').attr('selected', 'selected');
{rdelim});
//]]>
[removed]




Change the code inside address.tpl :

'{$state.name}';




With code, Exactly the same as authentication.tpl :

'{$state.name|escape:'htmlall':'UTF-8'}'; 



And The Problem Solved !

I'll check again to make sure if all the problem about this topic is really ... really Solved

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...