Plugin Directory

Changeset 2774382


Ignore:
Timestamp:
08/23/2022 06:45:39 PM (3 years ago)
Author:
javier4mar
Message:

Version 1.0.19 Fix Login User - Fix Hook ThankYou Page

Location:
moovin-delivery
Files:
88 added
9 edited

Legend:

Unmodified
Added
Removed
  • moovin-delivery/trunk/admin/class-moovin-delivery-admin.php

    r2747827 r2774382  
    11931193                        }
    11941194
    1195                         define( 'MOOVIN_WOOCOMMERCE_AUTO', $woocommerce );
     1195                        // define( 'MOOVIN_WOOCOMMERCE_AUTO', $woocommerce );
    11961196
    11971197                        echo wp_json_encode(array("error"=>false ,
  • moovin-delivery/trunk/admin/css/moovin-delivery-admin.css

    r2566791 r2774382  
     1#wpfooter {
     2  display: none;
     3}
     4
    15.switch {
    26  visibility: hidden;
  • moovin-delivery/trunk/includes/class-moovin-delivery.php

    r2654239 r2774382  
    195195        $this->loader->add_filter('woocommerce_shipping_fields', $plugin_public, 'moovin_manage_shipping_address_fields', 999);
    196196        $this->loader->add_action('woocommerce_thankyou', $plugin_public, 'moovin_delivery_complete_order', 10, 1);
     197        $this->loader->add_action('woocommerce_checkout_order_processed', $plugin_public, 'moovin_delivery_complete_order', 10, 1);
    197198
    198199        $this->loader->add_filter('woocommerce_package_rates', $plugin_public, 'change_rates', 9999, 2);
  • moovin-delivery/trunk/moovin-delivery.php

    r2747827 r2774382  
    1717 * Plugin URI:        https://www.moovin.me/
    1818 * Description:       Vos vendés nosotros entregamos tus paquetes, activa nuestro plugin y Moovin se encargara de entregar tus productos.
    19  * Version:           1.0.18
     19 * Version:           1.0.19
    2020 * Author:            Moovin Developer
    2121 * Author URI:        https://www.moovin.me/contacto/
     
    4545}
    4646
    47 define( 'MOOVIN_DELIVERY_VERSION', '1.0.17' );
     47define( 'MOOVIN_DELIVERY_VERSION', '1.0.19' );
    4848define( 'MOOVIN_PLUGIN_PATH', plugin_dir_path(__FILE__));
    4949define( 'MOOVIN_PLUGIN_URL', plugin_dir_url(__FILE__));
  • moovin-delivery/trunk/public/class-moovin-delivery-public.php

    r2747827 r2774382  
    881881                                case "CRC":
    882882                                    //Woocommerce in CRC colon Currency
    883 
    884883                                    foreach($estimation["optionService"] as $row){
    885884                                        /*
     
    952951
    953952                            if(isset($amountAddInfo[0]["value"])){
    954                                 $addAmount = $amountAddInfo[0]["value"];
     953                                $addAmount = $amountAddInfo[0]["value"] != "" ? $amountAddInfo[0]["value"] : 0;
    955954                            }
    956955
     
    15461545                            $has_default = sanitize_text_field($address->default);
    15471546                            unset($address->default);
    1548                             if (is_user_logged_in()) {
    1549                                 $user_id = get_current_user_id();
    1550                                 $meta_key = 'sg_user_addresses';
    1551                                 $new_address = get_user_meta($user_id, $meta_key, true);
    1552                                 if ($new_address) {
    1553                                     array_unshift($new_address['addresses'], $address);
    1554                                     if ($has_default === 'true') {
    1555                                         if ((get_option('sg_del_enable_address_picker') === "enable_for_both" && $section === "billing") || (get_option('sg_del_enable_address_picker') === "enable_for_shipping" && $section === "shipping") || (get_option('sg_del_enable_address_picker') === "enable_for_billing" && $section === "billing")) {
    1556                                             $new_address['selected'] = $address_id;
    1557                                         }
    1558                                     }
    1559                                     update_user_meta($user_id, $meta_key, $new_address, get_user_meta($user_id, $meta_key, true));
    1560                                 } else {
    1561                                     $new_address = array('addresses' => array($address), 'selected' => $address_id);
    1562                                     add_user_meta($user_id, $meta_key, $new_address, true);
     1547
     1548                           
     1549                            $session_addresses = WC()->session->get('sg_user_addresses');
     1550                            if ($session_addresses) {
     1551                                array_unshift($session_addresses['addresses'], $address);
     1552                                if ($has_default === 'true') {
     1553                                    $session_addresses['selected'] = $address_id;
    15631554                                }
     1555                                WC()->session->set('sg_user_addresses', $session_addresses);
     1556
     1557                                //Guardo ubicacion de envío
     1558                                WC()->session->set('moovin_address_selected', json_encode($address));
    15641559                            } else {
    1565                                 $session_addresses = WC()->session->get('sg_user_addresses');
    1566                                 if ($session_addresses) {
    1567                                     array_unshift($session_addresses['addresses'], $address);
    1568                                     if ($has_default === 'true') {
    1569                                         $session_addresses['selected'] = $address_id;
    1570                                     }
    1571                                     WC()->session->set('sg_user_addresses', $session_addresses);
    1572 
    1573                                     //Guardo ubicacion de envío
    1574                                     WC()->session->set('moovin_address_selected', json_encode($address));
    1575                                 } else {
    1576                                     $new_address = array('addresses' => array($address), 'selected' => $address_id);
    1577                                     WC()->session->set('sg_user_addresses', $new_address);
    1578 
    1579                                     //Guardo ubicacion de envío
    1580                                     WC()->session->set('moovin_address_selected', json_encode($address));
    1581                                 }
     1560                                $new_address = array('addresses' => array($address), 'selected' => $address_id);
     1561                                WC()->session->set('sg_user_addresses', $new_address);
     1562
     1563                                //Guardo ubicacion de envío
     1564                                WC()->session->set('moovin_address_selected', json_encode($address));
    15821565                            }
     1566                   
    15831567
    15841568                            ?>
     
    16371621                $id = sanitize_text_field($_REQUEST['id']);
    16381622                $section = sanitize_text_field($_REQUEST['section']); // billing or shipping
    1639                 if (is_user_logged_in()) {
    1640                     $user_id = get_current_user_id();
    1641                     $meta_key = 'sg_user_addresses';
    1642                     $new_addresses = get_user_meta($user_id, $meta_key, true);
    1643                     $new_address = $new_addresses['addresses'];
    1644                     if ((get_option('sg_del_enable_address_picker') === "enable_for_both" && $section === "billing") || (get_option('sg_del_enable_address_picker') === "enable_for_shipping" && $section === "shipping") || (get_option('sg_del_enable_address_picker') === "enable_for_billing" && $section === "billing")) {
    1645                         $new_addresses['selected'] = $id;
    1646                         update_user_meta($user_id, $meta_key, $new_addresses, get_user_meta($user_id, $meta_key, true));
    1647                     }
    1648 
    1649                     foreach ($new_address as $key => $address) {
    1650                         if ($address->id === $new_addresses['selected']) {
    1651                             WC()->session->set('sg_user_addresses', $address);
    1652                         }
    1653                     }
    1654 
    1655                 } else {
    1656                     $session_addresses = WC()->session->get('sg_user_addresses');
    1657                     $new_address = $session_addresses['addresses'];
    1658                     if ((get_option('sg_del_enable_address_picker') === "enable_for_both" && $section === "billing") || (get_option('sg_del_enable_address_picker') === "enable_for_shipping" && $section === "shipping") || (get_option('sg_del_enable_address_picker') === "enable_for_billing" && $section === "billing")) {
    1659 
    1660                         $session_addresses['selected'] = $id;
    1661                         WC()->session->set('sg_user_addresses', $session_addresses);
    1662                     }
     1623               
     1624                $session_addresses = WC()->session->get('sg_user_addresses');
     1625                $new_address = $session_addresses['addresses'];
     1626                if ((get_option('sg_del_enable_address_picker') === "enable_for_both" && $section === "billing") || (get_option('sg_del_enable_address_picker') === "enable_for_shipping" && $section === "shipping") || (get_option('sg_del_enable_address_picker') === "enable_for_billing" && $section === "billing")) {
     1627
     1628                    $session_addresses['selected'] = $id;
     1629                    WC()->session->set('sg_user_addresses', $session_addresses);
    16631630                }
     1631               
    16641632                $result = '';
    16651633                foreach ($new_address as $key => $address) {
     
    16691637                }
    16701638
    1671            
    16721639                if ($result) {
    16731640                    WC()->session->set('moovin_address_selected', json_encode($result));
     
    16781645
    16791646        function moovin_remove_delivery_address(){
    1680                 $address_id = sanitize_text_field($_REQUEST['id']);
    1681                 if (is_user_logged_in()) {
    1682                     $user_id = get_current_user_id();
    1683                     $meta_key = 'sg_user_addresses';
    1684                     $addresses = get_user_meta($user_id, $meta_key, true)['addresses'];
    1685                 } else {
    1686                     $addresses = WC()->session->get('sg_user_addresses')['addresses'];
     1647            $address_id = sanitize_text_field($_REQUEST['id']);
     1648            $addresses = WC()->session->get('sg_user_addresses')['addresses'];
     1649           
     1650            foreach ($addresses as $key => $address) {
     1651                if ($address->id === $address_id) {
     1652                    unset($addresses[$key]);
    16871653                }
    1688                 foreach ($addresses as $key => $address) {
    1689                     if ($address->id === $address_id) {
    1690                         unset($addresses[$key]);
    1691                     }
    1692                 }
    1693                 if (is_user_logged_in()) {
    1694                     $user_id = get_current_user_id();
    1695                     $meta_key = 'sg_user_addresses';
    1696                     $new_address_list = get_user_meta($user_id, $meta_key, true);
    1697                     $new_address_list['addresses'] = $addresses;
    1698                     update_user_meta($user_id, $meta_key, $new_address_list, get_user_meta($user_id, $meta_key, true));
    1699                 } else {
    1700                     $new_address_list = WC()->session->get('sg_user_addresses');
    1701                     $new_address_list['addresses'] = $addresses;
    1702                     WC()->session->set('sg_user_addresses', $new_address_list);
    1703                 }
     1654            }
     1655           
     1656            $new_address_list = WC()->session->get('sg_user_addresses');
     1657            $new_address_list['addresses'] = $addresses;
     1658            WC()->session->set('sg_user_addresses', $new_address_list);
    17041659        }
    17051660
    17061661        function moovin_clear_delivery_address(){
    1707                 $meta_key = 'sg_user_addresses';
    1708                 if (is_user_logged_in()) {
    1709                     $user_id = get_current_user_id();
    1710                     delete_user_meta($user_id, $meta_key, get_user_meta($user_id, $meta_key, true));
    1711                 } else {
    1712                     WC()->session->__unset($meta_key);
    1713                 }
     1662            $meta_key = 'sg_user_addresses';
     1663            WC()->session->__unset($meta_key);
     1664           
    17141665        }
    17151666
     
    17791730                    $fields['address_2']['required'] = false;   
    17801731                    is_array($fields["address_2"]['class']) ?  array_push($fields["address_2"]['class'] , "sg_del_add_hidden_fields") : $fields["address_2"]['class'] = array('sg_del_add_hidden_fields');
    1781                    
    17821732                   
    17831733                    $fields['city']['required'] = false;   
  • moovin-delivery/trunk/public/css/moovin-delivery-location-map-picker-public.css

    r2566791 r2774382  
    175175}
    176176
    177 .sg-action-container .sg-popup-content {
     177/* .sg-action-container .sg-popup-content {
    178178    padding: 30px 60px 8px;
    179 }
     179} */
    180180
    181181.sg-action-container .sg-popup-header {
  • moovin-delivery/trunk/public/css/moovin-delivery-location-map-picker-public.min.css

    r2566791 r2774382  
    1 body.has-popup{overflow:hidden}.text-uppercase{text-transform:uppercase}.text-lowercase{text-transform:lowercase}.text-capitalize{text-transform:capitalize}.addresses-section .sg-del-address-list-inner{display:flex;justify-content:space-between;flex-wrap:wrap}.addresses-section .sg-del-address-list-inner>.address-inline{display:flex;flex-direction:column;justify-content:space-between;width:calc(95% / 2);padding:3%;margin-bottom:5%;border-radius:4px;transition:350ms all;position:relative;min-height:200px}.single-address.address-inline.sg-del-add-add-new-opt{justify-content:center;align-items:center}.addresses-section.mobile-cards>.single-address.address-inline{width:100%;box-shadow:1px 3px 9px 0 #0000001a}.single-address:not(.available-address){border:1px solid #e9e9eb;cursor:pointer}.single-address.add-new-address{border:1px dashed #e9e9eb}.single-address:hover{box-shadow:1px 3px 9px 0 #0000001a}.single-address .title{font-size:16px;margin:auto;margin-bottom:20px;font-weight:600}.single-address p{font-size:16px;margin-bottom:0!important}.addresses-section .single-address .address{color:#93959f;font-size:14px;margin-bottom:1.15em!important}.addresses-section .single-address .distance{color:#282c3f;font-weight:900}.addresses-section .single-address .sg-button{background-color:#60b246;color:#fff;padding:4px 16px;display:inline-block;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.addresses-section .single-address .sg-button.button-outline{background-color:transparent;color:#60b246;border:1px solid #60b246;padding:4px 16px;display:inline-block}.sg-overlay{width:0;height:0;position:fixed;background:#000000b8;top:0;left:0;overflow:hidden;opacity:0;z-index:1;transition:opacity .3s ease-in}.sg-overlay.show{width:100%;height:100%;transition:opacity .3s ease-in}.sg-overlay>div{width:500px;height:100%;position:relative;background:#fff;left:-100%;transition:.5s ease-in}.sg-overlay.is_mobile>div{left:0;right:0;bottom:-100%;background:0 0;width:100%}.sg-overlay>div.show{left:0}.sg-overlay.is_mobile>div.show{bottom:0}.sg-overlay.show .sg-left-slider{position:absolute;width:100%;height:100vh;overflow-y:scroll}.sg-overlay.show .sg-bottom-slider{position:absolute;width:100%;height:80%;bottom:0;background:#fff;overflow-y:scroll;border-radius:32px 32px 0 0}.sg-action-container .sg-popup-footer,.sg-action-container .sg-popup-header{position:sticky;box-shadow:0 2px 4px 0 #e9e9eb;background:#fff;padding:20px 60px;z-index:2}.sg-action-container .sg-popup-content{padding:30px 60px 8px}.sg-action-container .sg-popup-header{top:0;box-shadow:0 2px 4px 0 #e9e9eb;display:flex;align-items:center}.sg-action-container .sg-popup-footer{bottom:0;box-shadow:0 -2px 4px 0 #e9e9eb}.sg-action-container.is_mobile .sg-popup-content,.sg-action-container.is_mobile .sg-popup-footer,.sg-action-container.is_mobile .sg-popup-header{padding-left:35px;padding-right:35px}.sg-del-add-map-container{color:#fff;background-color:#000;height:250px;width:100%}.sg-del-add-map-container p{height:100%;display:flex;justify-content:center;align-items:center}.sg-action-container .sg-popup-footer .sg-button{width:100%;background-color:#60b246;text-align:center;line-height:50px;font-size:14px;color:#fff;font-weight:600;cursor:pointer;margin:0}.sg-popup-close-button{background-color:transparent;padding:4px 16px;cursor:pointer}.sg-popup-close-button.close-text{color:#60b246;border:1px solid #60b246}.sg-popup-close-button.close-img img{width:24px}.sg-popup-header .title{margin-left:25px;font-weight:700;color:#282c3f}.sg-action-container .sg-button:focus,.sg-action-container .sg-button:hover{text-decoration:none;outline:0}.sg-overlay.show .sg-bottom-slider #ship-to-different-address,.sg-overlay.show .sg-left-slider #ship-to-different-address{display:none}.sg-field.m-0{margin:0!important}.sg-field{position:relative}.sg-mark-address-container{border-top:1px solid #ddd}.sg-mark-address-container>.sg-field{border:1px solid #ddd;border-top:0}body.has-popup .sg-field label.sg-field-label{position:absolute;left:0;top:24px;padding-left:20px;line-height:20px;font-size:17px;cursor:text;transition:.2s ease;width:100%;color:#93959f;will-change:transform,color,font-size;pointer-events:none;font-weight:400;margin:0}body.has-popup .sg-del-add-card-title.sg-field label.sg-field-label{font-size:24px}body.has-popup .sg-del-add-card-title.sg-field{border:1px solid #ddd}body.has-popup .sg-del-add-card-title.sg-field.has-error{border-color:#ff1010}body.has-popup .sg-field label.sg-field-label.active{font-size:12px;font-weight:500;color:#7e808c;-ms-transform:translateY(-70%);transform:translateY(-70%)}.sg-field.sg-address-container{border:1px solid #ddd;border-top:0;border-bottom:0}.sg-field .sg-error{display:none}.sg-field.has-error .sg-error{color:red;border-bottom:1px solid #ddd;display:block;padding-left:20px;padding-bottom:10px;margin-top:-10px;font-size:16px;font-weight:700}body.has-popup .sg-field:not(.sg-other-address-type) input[type=text]{background-color:transparent;line-height:normal;border:none!important;outline:0;height:70px;width:100%;font-size:17px;margin:0;padding:0 20px;padding-top:22px;box-shadow:none;box-sizing:border-box;border-radius:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.sg-marked-default{padding:14px 0}.sg-marked-default input{outline:0}.sg-marked-default label{cursor:pointer}.sg-address-type{position:relative;border:1px solid #ddd;border-top:0}.sg-address-type .sg-address-inner{display:flex;height:52px;align-items:center;justify-content:center;width:0;transition:350ms ease-in-out;overflow:hidden}.sg-address-type .sg-address-inner.show{width:100%}.address-other-option{position:absolute;width:0;background:#fff;top:0;overflow:hidden;transition:350ms ease-in-out}.address-other-option.show{width:100%}.sg-address-type .sg-address-inner input[type=radio]{display:none}.sg-address-type .sg-address-inner:not(.address-other-option) label{margin:0;padding:12px 0;width:calc(100% / 3);text-align:center;border-right:1px solid #ddd;cursor:pointer;height:100%}.sg-address-type .sg-address-inner:not(.address-other-option) label:last-child{border-right:0}.sg-address-type .sg-address-inner:not(.address-other-option) label:hover{background:#000;color:#fff}.sg-address-type .sg-address-inner:not(.address-other-option) input[type=radio]:checked+label{background:#000;color:#fff}.sg-field.sg-other-address-type{display:flex;align-items:center;width:100%;height:100%;margin:0;align-content:center}label.sg-field.sg-other-address-type .sg-field-label{white-space:nowrap;background:#000;color:#fff;padding:0 19px;height:100%;display:block;display:inline-flex;align-items:center;justify-content:center}label.sg-field.sg-other-address-type .sg-btn{white-space:nowrap;padding:0 19px;height:100%;display:inline-flex;align-items:center;border-left:1px solid #ddd;cursor:pointer}label.sg-field.sg-other-address-type input{background-color:transparent;line-height:normal;border:none!important;outline:0;font-size:17px;margin:0;padding:0 20px;box-shadow:none;box-sizing:border-box;border-radius:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.sg-header-action-container{display:flex;width:24px;justify-content:center;align-items:center;position:absolute;top:20px;right:20px}.sg-menu-action{width:24px;height:24px;text-align:center;display:flex;align-items:center;justify-content:center}.sg-menu-option{cursor:pointer;width:100%}.sg-dropdown-list{display:none;position:absolute;min-width:150px;max-width:250px;background:#fff;right:-9px;top:44px}.sg-dropdown-list.active{display:block;box-shadow:0 -3px 15px 0 #0000001f;border-radius:4px}.sg-dropdown-list.active:before{content:'';background-color:transparent;border-right:8px solid transparent;position:absolute;border-left:8px solid transparent;border-bottom:8px solid #fff;border-top:8px solid transparent;top:-15px;right:18px}.sg-dropdown-list.active:after{content:'';background-color:transparent}.sg-dropdown-item{padding:8px 20px;cursor:pointer}.sg-dropdown-item.danger{color:red}.sg-dropdown-item:hover{background:#f1f1f1}.available-address{border:1px solid #e9e9eb}.available-address.removed{background:#ffb0b02e;border-color:red}.available-address.removed p{color:#bf0202;font-size:14px}.available-address input[type=radio]{display:none}.available-address input[type=radio]+label{display:none;margin:0}.sg-header-action-container .label-overlay{width:calc(100% - 35px);position:absolute;left:0;background:0 0;top:0;bottom:0}.available-address input[type=radio]:checked+label{display:block;position:absolute}.sg-del-add-selected-address{padding:25px;border:1px solid #e9e9eb;cursor:pointer;position:relative;margin-bottom:25px}.sg-del-add-selected-address:hover{box-shadow:1px 3px 9px 0 #0000001a}.sg-del-add-selected-address .change-option{color:#60b246;font-weight:600;font-size:16px;position:absolute;background:#fff;padding:12px;right:9px;top:5px}.sg-del-add-selected-address p{color:#93959f;font-size:14px;margin:0!important}.sg-del-add-selected-address .sg-del-add-type{margin:0;font-size:16px;margin-bottom:9px;font-weight:600}.sg-del-add-title{margin-top:0!important;width:100%;margin-left:0!important}.sg-field.has-error{border:2px solid #ff1010}
     1body.has-popup{overflow:hidden}.text-uppercase{text-transform:uppercase}.text-lowercase{text-transform:lowercase}.text-capitalize{text-transform:capitalize}.addresses-section .sg-del-address-list-inner{display:flex;justify-content:space-between;flex-wrap:wrap}.addresses-section .sg-del-address-list-inner>.address-inline{display:flex;flex-direction:column;justify-content:space-between;width:calc(95% / 2);padding:3%;margin-bottom:5%;border-radius:4px;transition:350ms all;position:relative;min-height:200px}.single-address.address-inline.sg-del-add-add-new-opt{justify-content:center;align-items:center}.addresses-section.mobile-cards>.single-address.address-inline{width:100%;box-shadow:1px 3px 9px 0 #0000001a}.single-address:not(.available-address){border:1px solid #e9e9eb;cursor:pointer}.single-address.add-new-address{border:1px dashed #e9e9eb}.single-address:hover{box-shadow:1px 3px 9px 0 #0000001a}.single-address .title{font-size:16px;margin:auto;margin-bottom:20px;font-weight:600}.single-address p{font-size:16px;margin-bottom:0!important}.addresses-section .single-address .address{color:#93959f;font-size:14px;margin-bottom:1.15em!important}.addresses-section .single-address .distance{color:#282c3f;font-weight:900}.addresses-section .single-address .sg-button{background-color:#60b246;color:#fff;padding:4px 16px;display:inline-block;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.addresses-section .single-address .sg-button.button-outline{background-color:transparent;color:#60b246;border:1px solid #60b246;padding:4px 16px;display:inline-block}.sg-overlay{width:0;height:0;position:fixed;background:#000000b8;top:0;left:0;overflow:hidden;opacity:0;z-index:1;transition:opacity .3s ease-in}.sg-overlay.show{width:100%;height:100%;transition:opacity .3s ease-in}.sg-overlay>div{width:500px;height:100%;position:relative;background:#fff;left:-100%;transition:.5s ease-in}.sg-overlay.is_mobile>div{left:0;right:0;bottom:-100%;background:0 0;width:100%}.sg-overlay>div.show{left:0}.sg-overlay.is_mobile>div.show{bottom:0}.sg-overlay.show .sg-left-slider{position:absolute;width:100%;height:100vh;overflow-y:scroll}.sg-overlay.show .sg-bottom-slider{position:absolute;width:100%;height:80%;bottom:0;background:#fff;overflow-y:scroll;border-radius:32px 32px 0 0}.sg-action-container .sg-popup-footer,.sg-action-container .sg-popup-header{position:sticky;box-shadow:0 2px 4px 0 #e9e9eb;background:#fff;padding:20px 60px;z-index:2}.sg-action-container .sg-popup-header{top:0;box-shadow:0 2px 4px 0 #e9e9eb;display:flex;align-items:center}.sg-action-container .sg-popup-footer{bottom:0;box-shadow:0 -2px 4px 0 #e9e9eb}.sg-action-container.is_mobile .sg-popup-content,.sg-action-container.is_mobile .sg-popup-footer,.sg-action-container.is_mobile .sg-popup-header{padding-left:35px;padding-right:35px}.sg-del-add-map-container{color:#fff;background-color:#000;height:250px;width:100%}.sg-del-add-map-container p{height:100%;display:flex;justify-content:center;align-items:center}.sg-action-container .sg-popup-footer .sg-button{width:100%;background-color:#60b246;text-align:center;line-height:50px;font-size:14px;color:#fff;font-weight:600;cursor:pointer;margin:0}.sg-popup-close-button{background-color:transparent;padding:4px 16px;cursor:pointer}.sg-popup-close-button.close-text{color:#60b246;border:1px solid #60b246}.sg-popup-close-button.close-img img{width:24px}.sg-popup-header .title{margin-left:25px;font-weight:700;color:#282c3f}.sg-action-container .sg-button:focus,.sg-action-container .sg-button:hover{text-decoration:none;outline:0}.sg-overlay.show .sg-bottom-slider #ship-to-different-address,.sg-overlay.show .sg-left-slider #ship-to-different-address{display:none}.sg-field.m-0{margin:0!important}.sg-field{position:relative}.sg-mark-address-container{border-top:1px solid #ddd}.sg-mark-address-container>.sg-field{border:1px solid #ddd;border-top:0}body.has-popup .sg-field label.sg-field-label{position:absolute;left:0;top:24px;padding-left:20px;line-height:20px;font-size:17px;cursor:text;transition:.2s ease;width:100%;color:#93959f;will-change:transform,color,font-size;pointer-events:none;font-weight:400;margin:0}body.has-popup .sg-del-add-card-title.sg-field label.sg-field-label{font-size:24px}body.has-popup .sg-del-add-card-title.sg-field{border:1px solid #ddd}body.has-popup .sg-del-add-card-title.sg-field.has-error{border-color:#ff1010}body.has-popup .sg-field label.sg-field-label.active{font-size:12px;font-weight:500;color:#7e808c;-ms-transform:translateY(-70%);transform:translateY(-70%)}.sg-field.sg-address-container{border:1px solid #ddd;border-top:0;border-bottom:0}.sg-field .sg-error{display:none}.sg-field.has-error .sg-error{color:red;border-bottom:1px solid #ddd;display:block;padding-left:20px;padding-bottom:10px;margin-top:-10px;font-size:16px;font-weight:700}body.has-popup .sg-field:not(.sg-other-address-type) input[type=text]{background-color:transparent;line-height:normal;border:none!important;outline:0;height:70px;width:100%;font-size:17px;margin:0;padding:0 20px;padding-top:22px;box-shadow:none;box-sizing:border-box;border-radius:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.sg-marked-default{padding:14px 0}.sg-marked-default input{outline:0}.sg-marked-default label{cursor:pointer}.sg-address-type{position:relative;border:1px solid #ddd;border-top:0}.sg-address-type .sg-address-inner{display:flex;height:52px;align-items:center;justify-content:center;width:0;transition:350ms ease-in-out;overflow:hidden}.sg-address-type .sg-address-inner.show{width:100%}.address-other-option{position:absolute;width:0;background:#fff;top:0;overflow:hidden;transition:350ms ease-in-out}.address-other-option.show{width:100%}.sg-address-type .sg-address-inner input[type=radio]{display:none}.sg-address-type .sg-address-inner:not(.address-other-option) label{margin:0;padding:12px 0;width:calc(100% / 3);text-align:center;border-right:1px solid #ddd;cursor:pointer;height:100%}.sg-address-type .sg-address-inner:not(.address-other-option) label:last-child{border-right:0}.sg-address-type .sg-address-inner:not(.address-other-option) label:hover{background:#000;color:#fff}.sg-address-type .sg-address-inner:not(.address-other-option) input[type=radio]:checked+label{background:#000;color:#fff}.sg-field.sg-other-address-type{display:flex;align-items:center;width:100%;height:100%;margin:0;align-content:center}label.sg-field.sg-other-address-type .sg-field-label{white-space:nowrap;background:#000;color:#fff;padding:0 19px;height:100%;display:block;display:inline-flex;align-items:center;justify-content:center}label.sg-field.sg-other-address-type .sg-btn{white-space:nowrap;padding:0 19px;height:100%;display:inline-flex;align-items:center;border-left:1px solid #ddd;cursor:pointer}label.sg-field.sg-other-address-type input{background-color:transparent;line-height:normal;border:none!important;outline:0;font-size:17px;margin:0;padding:0 20px;box-shadow:none;box-sizing:border-box;border-radius:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.sg-header-action-container{display:flex;width:24px;justify-content:center;align-items:center;position:absolute;top:20px;right:20px}.sg-menu-action{width:24px;height:24px;text-align:center;display:flex;align-items:center;justify-content:center}.sg-menu-option{cursor:pointer;width:100%}.sg-dropdown-list{display:none;position:absolute;min-width:150px;max-width:250px;background:#fff;right:-9px;top:44px}.sg-dropdown-list.active{display:block;box-shadow:0 -3px 15px 0 #0000001f;border-radius:4px}.sg-dropdown-list.active:before{content:'';background-color:transparent;border-right:8px solid transparent;position:absolute;border-left:8px solid transparent;border-bottom:8px solid #fff;border-top:8px solid transparent;top:-15px;right:18px}.sg-dropdown-list.active:after{content:'';background-color:transparent}.sg-dropdown-item{padding:8px 20px;cursor:pointer}.sg-dropdown-item.danger{color:red}.sg-dropdown-item:hover{background:#f1f1f1}.available-address{border:1px solid #e9e9eb}.available-address.removed{background:#ffb0b02e;border-color:red}.available-address.removed p{color:#bf0202;font-size:14px}.available-address input[type=radio]{display:none}.available-address input[type=radio]+label{display:none;margin:0}.sg-header-action-container .label-overlay{width:calc(100% - 35px);position:absolute;left:0;background:0 0;top:0;bottom:0}.available-address input[type=radio]:checked+label{display:block;position:absolute}.sg-del-add-selected-address{padding:25px;border:1px solid #e9e9eb;cursor:pointer;position:relative;margin-bottom:25px}.sg-del-add-selected-address:hover{box-shadow:1px 3px 9px 0 #0000001a}.sg-del-add-selected-address .change-option{color:#60b246;font-weight:600;font-size:16px;position:absolute;background:#fff;padding:12px;right:9px;top:5px}.sg-del-add-selected-address p{color:#93959f;font-size:14px;margin:0!important}.sg-del-add-selected-address .sg-del-add-type{margin:0;font-size:16px;margin-bottom:9px;font-weight:600}.sg-del-add-title{margin-top:0!important;width:100%;margin-left:0!important}.sg-field.has-error{border:2px solid #ff1010}
  • moovin-delivery/trunk/public/partials/moovin-delivery-location-map-picker-public-display.php

    r2691629 r2774382  
    9898                <?php
    9999                $all_sg_addresses = [];
    100                 if (is_user_logged_in()) {
    101                     $user_id = get_current_user_id();
    102                     $all_sg_addresses = get_user_meta($user_id, 'sg_user_addresses', true);
    103                 } else {
    104                     $all_sg_addresses = WC()->session->get('sg_user_addresses');
    105                 }
     100                $all_sg_addresses = WC()->session->get('sg_user_addresses');
     101           
    106102                if (!empty($all_sg_addresses)) :
    107103                    $default_address_id = $all_sg_addresses['selected'];
  • moovin-delivery/trunk/readme.txt

    r2747828 r2774382  
    66Tested up to: 6.0
    77Requires PHP: 5.6
    8 Stable tag: 1.0.18
     8Stable tag: 1.0.19
    99License: GPLv3
    1010License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    167167* Ajustes menores
    168168
     169= 1.0.19 =
     170* Ajustes de compatibilidad con navegador Firefox
     171* Compatiblidad con templates que modifican página ThankYou Woocommerce
     172
    169173== Upgrade Notice ==
    170174
     
    248252= 1.0.18 =
    249253* Ajustes menores
     254
     255= 1.0.19 =
     256* Ajustes de compatibilidad con navegador Firefox
     257* Compatiblidad con templates que modifican página ThankYou Woocommerce
     258
Note: See TracChangeset for help on using the changeset viewer.