first commit

This commit is contained in:
2024-07-15 11:28:08 +02:00
commit f52d538ea5
21891 changed files with 6161164 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
.easypack_rates {
max-width: 600px;
}
.easypack_rates td {
max-width: 60px;
}
.easypack_rates .input-text {
width: 100%;
}
.easypack_rates .price {
width: 60px;
}
.easypack_rates .country {
padding-left: 10px;
}
.easypack_rates .action {
width: 90px;
}
.easypack_rates .delete_rate {
width: 100%;
text-align: center;
}
#woocommerce_easypack_cross_border_parcel_machines_rates, #woocommerce_easypack_parcel_machines_cod_rates {
max-width: 600px;
}
#woocommerce_easypack_cross_border_parcel_machines_rates .input-text {
width: 100%;
}
#woocommerce_easypack_parcel_machines_rates {
max-width: 600px;
}
#woocommerce_easypack_parcel_machines_rates .input-text {
width: 100%;
}
#woocommerce_easypack_parcel_machines_cod_rates {
max-width: 600px;
}
#woocommerce_easypack_parcel_machines_cod_rates .price {
width: 70px;
}
#woocommerce_easypack_parcel_machines_cod_rates .input-text {
width: 100%;
}
#woocommerce_easypack_cross_border_courier_rates {
max-width: 800px;
}
#woocommerce_easypack_cross_border_courier_rates .input-text {
width: 100%;
}
#woocommerce_easypack_cross_border_courier_rates .price {
width: 60px;
}
#woocommerce_easypack_cross_border_courier_rates .country {
padding-left: 10px;
}
#easypack_error {
font-weight: bold;
color: red;
}
#easypack_error ul li {
list-style-type: circle;
margin-left: 30px;
}
ul.easypack_error li {
list-style-type: circle;
margin-left: 30px;
}
.form-row label {
display: inline;
}
.form-row input[type=number], .form-row input[type=text], .form-row select {
width: auto;
}

View File

@@ -0,0 +1,74 @@
.easypack-shipping-method-logo img {
max-width: 100;
max-height: 40px;
display: block;
border:none;
}
.sheepla-widget-fullscreen {
position: fixed;
}
.inpost_returns_button {
background:linear-gradient(#FFE462, #FFA900) #FFE462;
border:1px solid #FECB2C;
box-shadow:#666666 0 1px 1px;
color:#000000 !important;
display:inline-block !important;
font-size:18px;
letter-spacing:0;
line-height:18px;
text-decoration:none !important;
text-shadow:#FFFFFF 1px 1px 3px;
text-transform:uppercase;
border-radius:8px;
display:block;
font-size:20px;
margin:20px auto 0;
padding:13px 42px !important;
}
#selected-parcel-machine {
}
.font-height-600 {
font-weight: 600;!important;
}
.hidden {
display: none;!important;
}
#selected-parcel-machine {
min-width: 400px;
}
.italic {
font-style: italic;
}
.easypack-parcel-machine-select {
padding-bottom: 120px;
}
.easypack-shipping-method-logo {
/*top: 13px;*/
position: relative;
}
.woocommerce-checkout-review-order-table .easypack-shipping-method-logo {
position: relative;
top: -3px;
}
.calculated_shipping .easypack-shipping-method-logo {
position: relative;
top: -3px;
}
@media (max-width: 500px) {
#widget-modal {
width: 100% !important;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@@ -0,0 +1,3 @@
<?php
// Silence is golden.
?>

View File

@@ -0,0 +1,39 @@
jQuery(document).ready(function () {
var machine_id_field;
window.easyPackAsyncInit = (function () {
easyPack.init({});
});
jQuery('.settings-geowidget').click(function (e) {
machine_id_field = jQuery(this);
e.preventDefault();
easyPack.init({
apiEndpoint: 'https://api-pl-points.easypack24.net/v1',
defaultLocale: 'pl',
closeTooltip: false,
points: {
types: ['parcel_locker_only']
},
map: {
useGeolocation: true,
initialTypes: ['parcel_locker']
}
});
easyPack.modalMap(function (point) {
machine_id_field.val(point.name);
jQuery('#selected-parcel-machine').removeClass('hidden');
jQuery('#selected-parcel-machine-id').html(parcelMachineAddressDesc);
}, {width: 500, height: 600});
setTimeout(function () {
jQuery("html, body").animate({scrollTop: jQuery('#widget-modal').offset().top}, 1000);
}, 0);
});
});

View File

@@ -0,0 +1,36 @@
jQuery(document).ready(function () {
var initiated = false;
window.easyPackAsyncInit = (function () {
easyPack.init({});
});
//var button = document.getElementById('geowidget_show_map');
jQuery('.settings-geowidget').click(function (e) {
var machine_id_field = jQuery(this);
e.preventDefault();
easyPack.init({
apiEndpoint: 'https://api-pl-points.easypack24.net/v1',
defaultLocale: 'pl',
closeTooltip: false,
points: {
types: ['parcel_locker_only']
},
map: {
useGeolocation: true,
initialTypes: ['parcel_locker']
}
});
easyPack.modalMap(function (point) {
machine_id_field.val(point.name);
jQuery('#selected-parcel-machine').removeClass('hidden');
jQuery('#selected-parcel-machine-id').html(parcelMachineAddressDesc);
}, {width: 500, height: 600});
setTimeout(function () {
jQuery("html, body").animate({scrollTop: jQuery('#widget-modal').offset().top}, 1000);
}, 0);
});
});

View File

@@ -0,0 +1,81 @@
jQuery(document).ready(function(){
function easypack_dispatch_point() {
if ( jQuery('#easypack_api_country').val() == 'pl' || jQuery('#easypack_api_country').val() == 'test-pl' ) {
jQuery('#easypack_dispatch_point_name').closest('table').prev().css('display','block');
jQuery('#easypack_dispatch_point_name').closest('table').css('display','table');
jQuery('#easypack_crossborder_password').closest('tr').css('display','table-row');
}
else {
jQuery('#easypack_dispatch_point_name').closest('table').prev().css('display','none');
jQuery('#easypack_dispatch_point_name').closest('table').css('display','none');
jQuery('#easypack_crossborder_api_url').closest('tr').css('display','none');
jQuery('#easypack_crossborder_password').closest('tr').css('display','none');
jQuery('#easypack_default_package_size').val('A');
jQuery('#easypack_default_package_size').closest('tr').css('display','none');
}
}
easypack_dispatch_point();
jQuery('#easypack_api_country').change(function(){
var url = 'https://api-'+jQuery('#easypack_api_country').val()+'.easypack24.net';
url = url.replace("api-test","test-api");
jQuery('#easypack_api_url').val(url);
easypack_dispatch_point();
easypack_api_change();
if (jQuery('#easypack_api_country').val() == 'gb') {
//alert('ddded');
jQuery('#easypack_api_url').val('https://api-uk.easypack24.net/v4');
}
});
jQuery('#easypack_returns_page_create').click(function() {
var country = jQuery('#easypack_api_country').val();
//alert( country );
var data = {
action: 'easypack',
easypack_action: 'returns_page_create',
country: country,
security: easypack_nonce,
};
jQuery.post(ajaxurl, data, function(response) {
if ( response != 0 ) {
response = JSON.parse(response);
jQuery('#easypack_returns_page').append('<option value="'+response.page_id+'">'+response.page_title+'</option>');
jQuery('#easypack_returns_page').val(response.page_id);
jQuery('#easypack_returns_page').trigger('change');
jQuery('#easypack_returns_page_create_message').html(response.message);
}
});
})
jQuery('#easypack_default_dispatch_point').change(function() {
var data = {
action: 'easypack',
easypack_action: 'dispatch_point',
security: easypack_nonce,
dispatch_point_name: jQuery(this).val(),
};
jQuery.post(ajaxurl, data, function(response) {
if ( response != 0 ) {
response = JSON.parse(response);
jQuery('#easypack_dispatch_point_name').val(response.name);
jQuery('#easypack_dispatch_point_email').val(response.email);
jQuery('#easypack_dispatch_point_phone').val(response.phone);
jQuery('#easypack_dispatch_point_office_hours').val(response.office_hours);
jQuery('#easypack_dispatch_point_street').val(response.address.street);
jQuery('#easypack_dispatch_point_building_no').val(response.address.building_no);
jQuery('#easypack_dispatch_point_flat_no').val(response.address.flat_no);
jQuery('#easypack_dispatch_point_post_code').val(response.address.post_code);
jQuery('#easypack_dispatch_point_city').val(response.address.city);
}
});
})
/*
jQuery(".easypack_cancel_dispatch_order").click(function() {
alert(1);
})
*/
})

View File

@@ -0,0 +1,23 @@
//easypack-widget
//select-link
jQuery(document).ready(function(){
jQuery( '#parcel_machine_id' ).bind( 'change', function() {
jQuery('.easypack-widget').hide();
});
});
function getAddressByPoint($pointObject)
{
var $output = '<span class="parcel-machine-desc">';
$output += $pointObject.name;
$output += '<br>';
$output += $pointObject.address.line1;
$output += '<br>';
$output += $pointObject.address.line2;
$output += '</span>';
return $output;
}