Jump to content

Editare meniu, locatii magazin in Google Maps


midnightk

Recommended Posts

banuiesc ca la asta te referi:

 

 

<script type="text/javascript">

// <![CDATA[

idSelectedCountry = {if isset($smarty.post.id_state)}{$smarty.post.id_state|intval}{else}false{/if};

countries = new Array();

countriesNeedIDNumber = new Array();

countriesNeedZipCode = new Array();

{if isset($countries)}

{foreach from=$countries item='country'}

{if isset($country.states) && $country.contains_states}

countries[{$country.id_country|intval}] = new Array();

{foreach from=$country.states item='state' name='states'}

countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|escape:'htmlall':'UTF-8'}'{rdelim});

{/foreach}

{/if}

{if $country.need_identification_number}

countriesNeedIDNumber.push({$country.id_country|intval});

{/if}

{if isset($country.need_zip_code)}

countriesNeedZipCode[{$country.id_country|intval}] = {$country.need_zip_code};

{/if}

{/foreach}

{/if}

$(function(){ldelim}

$('.id_state option[value={if isset($smarty.post.id_state)}{$smarty.post.id_state}{else}{if isset($address)}{$address->id_state|escape:'htmlall':'UTF-8'}{/if}{/if}]').attr('selected', 'selected');

{rdelim});

//]]>

{if $vat_management}

{literal}

$(document).ready(function() {

$('#company').blur(function(){

vat_number();

});

vat_number();

function vat_number()

{

if ($('#company').val() != '')

$('#vat_number').show();

else

$('#vat_number').hide();

}

});

{/literal}

{/if}

</script>

Link to comment
Share on other sites

verifica daca ai acest fragment

 

  {elseif $field_name eq "State:name"}
  {assign var='stateExist' value=true}
  <p class="required id_state select">
   <label for="id_state">{l s='State'} <sup>*</sup></label>
   <select name="id_state" id="id_state">
	<option value="">-</option>
   </select>
  </p>

Edited by valentin.g (see edit history)
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...