Esempio n. 1
0
     	</form>
 </div>
 
 <script type="text/javascript">
 /* <![CDATA[ */
 var ratetable,rates,base,countries,zones,localities,taxrates,
 	ratesidx,countriesInUse,zonesInUse,allCountryZonesInUse,
 	APPLY_LOGIC,LOCAL_RATES,LOCAL_RATE_INSTRUCTIONS,ECART_PLUGINURI,RULE_LANG,
 	sugg_url='<?php echo wp_nonce_url(admin_url('admin-ajax.php'),'wp_ajax_ecart_suggestions'); ?>',
 	upload_url='<?php echo wp_nonce_url(admin_url('admin-ajax.php'),'wp_ajax_ecart_upload_local_taxes'); ?>',
 	ratetable = jQuery('#tax-rates'),
 	rates = <?php echo json_encode($rates); ?>,
 	base = <?php echo json_encode($base); ?>,
 	countries = <?php echo json_encode($countries); ?>,
 	zones = <?php echo json_encode($zones); ?>,
 	localities = <?php echo json_encode(Lookup::localities()); ?>,
 	taxrates = new Array(),
 	ratesidx = 0,
 	countriesInUse = new Array(),
 	zonesInUse = new Array(),
 	allCountryZonesInUse = new Array(),
 	APPLY_LOGIC = <?php _jse("Apply tax rate when %s of the following conditions match","Ecart"); ?>,
 	LOCAL_RATES = <?php _jse("Local Rates","Ecart"); ?>,
 	LOCAL_RATE_INSTRUCTIONS = <?php _jse("No local regions have been setup for this location. Local regions can be specified by uploading a formatted local rates file.","Ecart"); ?>,
 	LOCAL_RATES_UPLOADERR = <?php _jse("The file was uploaded successfully, but the data returned by the server cannot be used.","Ecart"); ?>,
 	ANY_OPTION = <?php _jse("any","Ecart"); ?>,
 	ALL_OPTION = <?php _jse("all","Ecart"); ?>,
 	ECART_PLUGINURI = '<?php echo ECART_PLUGINURI; ?>',
 	RULE_LANG = {
 		"product-name":<?php _jse('Product name is','Ecart'); ?>,
 		"product-tags":<?php _jse('Product is tagged','Ecart'); ?>,
Esempio n. 2
0
	</form>

</div>


<script type="text/javascript">
/* <![CDATA[ */
var suggurl = '<?php 
echo wp_nonce_url(admin_url('admin-ajax.php'), 'wp_ajax_shopp_suggestions');
?>
',
	rates = <?php 
echo json_encode($rates);
?>
,
	base = <?php 
echo json_encode($base);
?>
,
	zones = <?php 
echo json_encode($zones);
?>
,
	localities = <?php 
echo json_encode(Lookup::localities());
?>
,
	taxrates = [];
/* ]]> */
</script>