Skip to content

Commit c2ff990

Browse files
author
Leonix
committed
wa-plugins/shipping/courier v.1.5.1
* Improved support of the delivery sheet for the Webasyst 2 interface.
1 parent 55f174d commit c2ff990

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

wa-plugins/shipping/courier/lib/config/plugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
'description' => /*_wp*/('Shipping is restricted to the specific country and region only. Shipping rate is calculated based on either total amount or weight of the shipment.'),
55
'icon' => 'img/courier16.png',
66
'logo' => 'img/courier.png',
7-
'version' => '1.5.0',
7+
'version' => '1.5.1',
88
'vendor' => 'webasyst',
99
'type' => 'todoor',
1010
'backend_custom_fields' => true,

wa-plugins/shipping/courier/templates/form.html

+29-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
<script>
1010
function textAreaAdjust(textarea) {
1111
var $textarea = $(textarea);
12+
{if $wa->whichUi() == '1.3'}
1213
$textarea.css("min-height", 0);
1314
var scroll_h = $textarea[0].scrollHeight;
1415
$textarea.css("min-height", (scroll_h + 10) + "px");
16+
{/if}
1517

1618
var value = nl2br( escape($textarea.val()) );
1719

@@ -30,6 +32,31 @@
3032
return $("<div />").text(string).html();
3133
}
3234
</script>
35+
<style>
36+
.block.double-padded {
37+
padding: 20px;
38+
}
39+
.c-layout {
40+
display: table;
41+
width: 100%;
42+
}
43+
.c-layout.fixed {
44+
table-layout: fixed;
45+
}
46+
.c-layout > .c-column {
47+
display: table-cell;
48+
vertical-align: top;
49+
}
50+
.c-sidebar-column {
51+
width: 40%;
52+
}
53+
.c-comment-section {
54+
margin: 2em 0 0;
55+
}
56+
.c-map-section {
57+
margin: 2em 0 0;
58+
}
59+
</style>
3360
</head>
3461

3562
<body onLoad="textAreaAdjust(document.getElementById('comment'))">
@@ -45,7 +72,7 @@ <h1>{$order.id_str}</h1>
4572
<div class="clear-left"></div>
4673

4774
<!-- order content -->
48-
<ul class="menu-v order-content">
75+
<ul class="menu-v order-content unstyled">
4976
{foreach $order.items as $item}
5077
<li>
5178
{$item.name|escape}
@@ -86,7 +113,7 @@ <h2>{$order.total|wa_format_amount:$order.currency:'%{s}'}</h2>
86113
<h3>{$order.contact.name|escape}</h3>
87114

88115
{if $main_contact_info}
89-
<ul class="menu-v with-icons compact contact-info">
116+
<ul class="menu-v with-icons compact contact-info unstyled">
90117
{foreach $main_contact_info as $top_field}
91118
<li><i class="icon16 {$top_field.id}"></i>{$top_field.value}</li>
92119
{/foreach}

0 commit comments

Comments
 (0)