Changeset 2902365
- Timestamp:
- 04/21/2023 03:40:11 PM (15 months ago)
- Location:
- ubigeo-peru
- Files:
-
- 28 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
ubigeo-peru/trunk/README.txt
r2883900 r2902365 3 3 Tags: ubigeo perú, ubigeo, peru, departamentos, provincia, distrito, Woocommerce 4 4 Requires at least: 5.2 5 Tested up to: 6. 1.15 Tested up to: 6. 6 6 Stable tag: trunk 7 7 Requires PHP: 5.6 … … 105 105 == Changelog == 106 106 107 108 109 107 110 = 3.7.2 (20/03/2023) = 108 111 Fix: corrigiendo error de translate de checkout en billing y shiping -
ubigeo-peru/trunk/rt_ubigeo_checkout.php
r2883900 r2902365 317 317 $rpt = false; 318 318 $theme = wp_get_theme(); 319 319 320 if ('Meabhy' == $theme->name || 'Meabhy' == $theme->parent_theme) { 320 321 $rpt = true; … … 341 342 wp_dequeue_script('selectWoo'); 342 343 } 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 343 368 } 344 369 } … … 351 376 wp_register_script('select2-js', plugins_url('js/select2.min.js', __FILE__), array(), '4.0.1', true); 352 377 wp_enqueue_script('select2-js'); 353 $idDepa = $idProv = $idDist = $idDepa_shipping = $idProv_shipping = $idDist_shipping = ''; 354 if (is_user_logged_in()) { 355 $current_user = wp_get_current_user(); 356 $idDepa = $current_user->billing_departamento; 357 $idProv = $current_user->billing_provincia; 358 $idDist = $current_user->billing_distrito; 359 $idDepa_shipping = $current_user->shipping_departamento; 360 $idProv_shipping = $current_user->shipping_provincia; 361 $idDist_shipping = $current_user->shipping_distrito; 362 } 378 363 379 ?> 364 380 <?php if (rt_ubigeo_peru_is_theme_pawsitive()) { ?> … … 381 397 </div> 382 398 </div> 383 <script>384 var idDepa = "<?php echo esc_attr($idDepa) ?>";385 var idProv = "<?php echo esc_attr($idProv) ?>";386 var idDist = "<?php echo esc_attr($idDist) ?>";387 var idDepa_shipping = "<?php echo esc_attr($idDepa_shipping) ?>";388 var idProv_shipping = "<?php echo esc_attr($idProv_shipping) ?>";389 var idDist_shipping = "<?php echo esc_attr($idDist_shipping) ?>";390 var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";391 var is_theme_avada = "<?php echo (int)rt_ubigeo_peru_is_theme_avada(); ?>";392 var is_theme_astra = "<?php echo (int)rt_ubigeo_peru_is_theme_astra(); ?>";393 </script>394 399 <?php 395 400 } -
ubigeo-peru/trunk/ubigeo-peru.php
r2883900 r2902365 11 11 * Plugin URI: https://renzotejada.com/ubigeo-de-peru-para-woocommerce/ 12 12 * Description: Peru's Ubigeo for WordPress and WooCommerce - Plugin contains the departments - provinces and districts of Peru 13 * Version: 3.7. 213 * Version: 3.7. 14 14 * Author: Renzo Tejada 15 15 * Author URI: https://renzotejada.com/ … … 20 20 * Requires at least: 5.6 21 21 * Requires PHP: 5.6.20 22 * WC tested up to: 7. 4.022 * WC tested up to: 7..0 23 23 * WC requires at least: 2.6 24 24 */
Note: See TracChangeset
for help on using the changeset viewer.