Changeset 2774382
- Timestamp:
- 08/23/2022 06:45:39 PM (3 years ago)
- Location:
- moovin-delivery
- Files:
-
- 88 added
- 9 edited
-
tags/1.0.19 (added)
-
tags/1.0.19/LICENSE.txt (added)
-
tags/1.0.19/admin (added)
-
tags/1.0.19/admin/class-moovin-delivery-admin.php (added)
-
tags/1.0.19/admin/css (added)
-
tags/1.0.19/admin/css/app.css (added)
-
tags/1.0.19/admin/css/bootstrap.min.css (added)
-
tags/1.0.19/admin/css/buttons.bootstrap4.min.css (added)
-
tags/1.0.19/admin/css/dataTables.bootstrap4.min.css (added)
-
tags/1.0.19/admin/css/icons.css (added)
-
tags/1.0.19/admin/css/moovin-delivery-admin.css (added)
-
tags/1.0.19/admin/css/moovin-print-qr.css (added)
-
tags/1.0.19/admin/css/select2.min.css (added)
-
tags/1.0.19/admin/css/sweetalert2.min.css (added)
-
tags/1.0.19/admin/index.php (added)
-
tags/1.0.19/admin/js (added)
-
tags/1.0.19/admin/js/bootstrap.bundle.min.js (added)
-
tags/1.0.19/admin/js/dataTables.bootstrap4.min.js (added)
-
tags/1.0.19/admin/js/global.js (added)
-
tags/1.0.19/admin/js/jquery.blockUI.js (added)
-
tags/1.0.19/admin/js/jquery.dataTables.min.js (added)
-
tags/1.0.19/admin/js/locationpicker.jquery.js (added)
-
tags/1.0.19/admin/js/moovin-delivery-admin.js (added)
-
tags/1.0.19/admin/js/partial (added)
-
tags/1.0.19/admin/js/partial/config.js (added)
-
tags/1.0.19/admin/js/partial/order.js (added)
-
tags/1.0.19/admin/js/partial/tracking.js (added)
-
tags/1.0.19/admin/js/select2.min.js (added)
-
tags/1.0.19/admin/js/simplebar.min.js (added)
-
tags/1.0.19/admin/js/sweetalert2.min.js (added)
-
tags/1.0.19/admin/js/utility.js (added)
-
tags/1.0.19/admin/partials (added)
-
tags/1.0.19/admin/partials/moovin-delivery-admin-config.php (added)
-
tags/1.0.19/admin/partials/moovin-delivery-admin-dashboard.php (added)
-
tags/1.0.19/admin/partials/moovin-delivery-admin-display.php (added)
-
tags/1.0.19/admin/partials/moovin-delivery-admin-orders.php (added)
-
tags/1.0.19/assets (added)
-
tags/1.0.19/assets/css (added)
-
tags/1.0.19/assets/google_key.pdf (added)
-
tags/1.0.19/assets/here_developer.pdf (added)
-
tags/1.0.19/assets/images (added)
-
tags/1.0.19/assets/images/ic_green_alert.png (added)
-
tags/1.0.19/assets/images/ic_logo_moovin.png (added)
-
tags/1.0.19/assets/images/ic_red_alert.png (added)
-
tags/1.0.19/assets/screenshot-1.png (added)
-
tags/1.0.19/assets/screenshot-2.png (added)
-
tags/1.0.19/assets/screenshot-3.png (added)
-
tags/1.0.19/assets/screenshot-4.png (added)
-
tags/1.0.19/assets/screenshot-5.png (added)
-
tags/1.0.19/includes (added)
-
tags/1.0.19/includes/class-moovin-delivery-activator.php (added)
-
tags/1.0.19/includes/class-moovin-delivery-deactivator.php (added)
-
tags/1.0.19/includes/class-moovin-delivery-i18n.php (added)
-
tags/1.0.19/includes/class-moovin-delivery-loader.php (added)
-
tags/1.0.19/includes/class-moovin-delivery.php (added)
-
tags/1.0.19/includes/index.php (added)
-
tags/1.0.19/index.php (added)
-
tags/1.0.19/languages (added)
-
tags/1.0.19/languages/moovin-delivery.pot (added)
-
tags/1.0.19/moovin-delivery.php (added)
-
tags/1.0.19/moovin-shipping-express.php (added)
-
tags/1.0.19/moovin-shipping.php (added)
-
tags/1.0.19/public (added)
-
tags/1.0.19/public/class-moovin-delivery-public.php (added)
-
tags/1.0.19/public/css (added)
-
tags/1.0.19/public/css/moovin-delivery-location-map-picker-public.css (added)
-
tags/1.0.19/public/css/moovin-delivery-location-map-picker-public.min.css (added)
-
tags/1.0.19/public/css/moovin-delivery-public.css (added)
-
tags/1.0.19/public/css/sweetalert2.min.css (added)
-
tags/1.0.19/public/img (added)
-
tags/1.0.19/public/img/icons (added)
-
tags/1.0.19/public/img/icons/close.png (added)
-
tags/1.0.19/public/img/icons/location-finder-grey.png (added)
-
tags/1.0.19/public/img/icons/tik.png (added)
-
tags/1.0.19/public/index.php (added)
-
tags/1.0.19/public/js (added)
-
tags/1.0.19/public/js/global.js (added)
-
tags/1.0.19/public/js/jquery.blockUI.js (added)
-
tags/1.0.19/public/js/moovin-delivery-location-googlemap-picker-public.js (added)
-
tags/1.0.19/public/js/moovin-delivery-location-heremap-picker-public.js (added)
-
tags/1.0.19/public/js/moovin-delivery-public.js (added)
-
tags/1.0.19/public/js/sweetalert2.min.js (added)
-
tags/1.0.19/public/js/utility.js (added)
-
tags/1.0.19/public/partials (added)
-
tags/1.0.19/public/partials/moovin-delivery-location-customised-fields.php (added)
-
tags/1.0.19/public/partials/moovin-delivery-location-map-picker-public-display.php (added)
-
tags/1.0.19/readme.txt (added)
-
tags/1.0.19/uninstall.php (added)
-
trunk/admin/class-moovin-delivery-admin.php (modified) (1 diff)
-
trunk/admin/css/moovin-delivery-admin.css (modified) (1 diff)
-
trunk/includes/class-moovin-delivery.php (modified) (1 diff)
-
trunk/moovin-delivery.php (modified) (2 diffs)
-
trunk/public/class-moovin-delivery-public.php (modified) (7 diffs)
-
trunk/public/css/moovin-delivery-location-map-picker-public.css (modified) (1 diff)
-
trunk/public/css/moovin-delivery-location-map-picker-public.min.css (modified) (1 diff)
-
trunk/public/partials/moovin-delivery-location-map-picker-public-display.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
moovin-delivery/trunk/admin/class-moovin-delivery-admin.php
r2747827 r2774382 1193 1193 } 1194 1194 1195 define( 'MOOVIN_WOOCOMMERCE_AUTO', $woocommerce );1195 // define( 'MOOVIN_WOOCOMMERCE_AUTO', $woocommerce ); 1196 1196 1197 1197 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 1 5 .switch { 2 6 visibility: hidden; -
moovin-delivery/trunk/includes/class-moovin-delivery.php
r2654239 r2774382 195 195 $this->loader->add_filter('woocommerce_shipping_fields', $plugin_public, 'moovin_manage_shipping_address_fields', 999); 196 196 $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); 197 198 198 199 $this->loader->add_filter('woocommerce_package_rates', $plugin_public, 'change_rates', 9999, 2); -
moovin-delivery/trunk/moovin-delivery.php
r2747827 r2774382 17 17 * Plugin URI: https://www.moovin.me/ 18 18 * Description: Vos vendés nosotros entregamos tus paquetes, activa nuestro plugin y Moovin se encargara de entregar tus productos. 19 * Version: 1.0.1 819 * Version: 1.0.19 20 20 * Author: Moovin Developer 21 21 * Author URI: https://www.moovin.me/contacto/ … … 45 45 } 46 46 47 define( 'MOOVIN_DELIVERY_VERSION', '1.0.1 7' );47 define( 'MOOVIN_DELIVERY_VERSION', '1.0.19' ); 48 48 define( 'MOOVIN_PLUGIN_PATH', plugin_dir_path(__FILE__)); 49 49 define( 'MOOVIN_PLUGIN_URL', plugin_dir_url(__FILE__)); -
moovin-delivery/trunk/public/class-moovin-delivery-public.php
r2747827 r2774382 881 881 case "CRC": 882 882 //Woocommerce in CRC colon Currency 883 884 883 foreach($estimation["optionService"] as $row){ 885 884 /* … … 952 951 953 952 if(isset($amountAddInfo[0]["value"])){ 954 $addAmount = $amountAddInfo[0]["value"] ;953 $addAmount = $amountAddInfo[0]["value"] != "" ? $amountAddInfo[0]["value"] : 0; 955 954 } 956 955 … … 1546 1545 $has_default = sanitize_text_field($address->default); 1547 1546 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; 1563 1554 } 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)); 1564 1559 } 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)); 1582 1565 } 1566 1583 1567 1584 1568 ?> … … 1637 1621 $id = sanitize_text_field($_REQUEST['id']); 1638 1622 $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); 1663 1630 } 1631 1664 1632 $result = ''; 1665 1633 foreach ($new_address as $key => $address) { … … 1669 1637 } 1670 1638 1671 1672 1639 if ($result) { 1673 1640 WC()->session->set('moovin_address_selected', json_encode($result)); … … 1678 1645 1679 1646 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]); 1687 1653 } 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); 1704 1659 } 1705 1660 1706 1661 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 1714 1665 } 1715 1666 … … 1779 1730 $fields['address_2']['required'] = false; 1780 1731 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 1782 1732 1783 1733 $fields['city']['required'] = false; -
moovin-delivery/trunk/public/css/moovin-delivery-location-map-picker-public.css
r2566791 r2774382 175 175 } 176 176 177 .sg-action-container .sg-popup-content {177 /* .sg-action-container .sg-popup-content { 178 178 padding: 30px 60px 8px; 179 } 179 } */ 180 180 181 181 .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}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-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 98 98 <?php 99 99 $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 106 102 if (!empty($all_sg_addresses)) : 107 103 $default_address_id = $all_sg_addresses['selected']; -
moovin-delivery/trunk/readme.txt
r2747828 r2774382 6 6 Tested up to: 6.0 7 7 Requires PHP: 5.6 8 Stable tag: 1.0.1 88 Stable tag: 1.0.19 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 167 167 * Ajustes menores 168 168 169 = 1.0.19 = 170 * Ajustes de compatibilidad con navegador Firefox 171 * Compatiblidad con templates que modifican página ThankYou Woocommerce 172 169 173 == Upgrade Notice == 170 174 … … 248 252 = 1.0.18 = 249 253 * 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.