Version Notes
Temando Shipping Extension – Starter Version
• Addition of language file
• Addition of new demo api
• Fix email sent flag on shipped
• Miscellaneous bug fixes
Download this release
Release Info
Developer | Temando |
Extension | Temando_Temando |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
- app/code/community/Temando/Temando/Block/Adminhtml/Manifest.php +1 -1
- app/code/community/Temando/Temando/Block/Adminhtml/Shipment/Edit.php +2 -2
- app/code/community/Temando/Temando/Block/Adminhtml/Shipment/Edit/Tab/Form/Quotes.php +3 -3
- app/code/community/Temando/Temando/Block/Cart/Shipping.php +0 -17
- app/code/community/Temando/Temando/Helper/Data.php +1 -1
- app/code/community/Temando/Temando/Model/Api/Client.php +1 -1
- app/code/community/Temando/Temando/Model/Observer.php +5 -3
- app/code/community/Temando/Temando/Model/Option/Insurance.php +1 -1
- app/code/community/Temando/Temando/Model/Quote.php +9 -9
- app/code/community/Temando/Temando/Model/Shipping/Carrier/Temando.php +1 -1
- app/code/community/Temando/Temando/Model/Shipping/Carrier/Temando/Source/Method.php +1 -1
- app/code/community/Temando/Temando/Model/System/Config/Source.php +1 -1
- app/code/community/Temando/Temando/Model/System/Config/Source/Carbon.php +3 -3
- app/code/community/Temando/Temando/Model/System/Config/Source/Errorprocess.php +2 -2
- app/code/community/Temando/Temando/Model/System/Config/Source/Footprints.php +3 -3
- app/code/community/Temando/Temando/Model/System/Config/Source/Insurance.php +3 -3
- app/code/community/Temando/Temando/Model/System/Config/Source/Labeltype.php +3 -3
- app/code/community/Temando/Temando/Model/System/Config/Source/Payment.php +2 -2
- app/code/community/Temando/Temando/Model/System/Config/Source/Pricing.php +6 -6
- app/code/community/Temando/Temando/Model/System/Config/Source/Rule/Action/Filter.php +4 -4
- app/code/community/Temando/Temando/Model/System/Config/Source/Shipment/Packaging/Mode.php +2 -2
- app/code/community/Temando/Temando/Model/System/Config/Source/Shipment/Service.php +3 -3
- app/code/community/Temando/Temando/controllers/Adminhtml/ManifestController.php +1 -1
- app/code/community/Temando/Temando/controllers/Adminhtml/ShipmentController.php +13 -13
- app/code/community/Temando/Temando/controllers/PcsController.php +4 -65
- app/code/community/Temando/Temando/etc/adminhtml.xml +108 -108
- app/code/community/Temando/Temando/etc/config.xml +222 -204
- app/code/community/Temando/Temando/etc/system.xml +613 -651
- app/design/adminhtml/default/default/layout/temando.xml +84 -84
- app/design/adminhtml/default/default/template/temando/temando/manifest.phtml +26 -26
- app/design/adminhtml/default/default/template/temando/temando/menu.phtml +7 -7
- app/design/adminhtml/default/default/template/temando/temando/origin-avs.phtml +11 -11
- app/design/adminhtml/default/default/template/temando/temando/region.phtml +123 -123
- app/design/adminhtml/default/default/template/temando/temando/shipment.phtml +24 -24
- app/design/adminhtml/default/default/template/temando/temando/shipment/anytime.phtml +76 -76
- app/design/adminhtml/default/default/template/temando/temando/shipment/anywhere.phtml +103 -103
- app/design/adminhtml/default/default/template/temando/temando/shipment/boxes.phtml +166 -166
- app/design/adminhtml/default/default/template/temando/temando/shipment/insurance.phtml +54 -54
- app/design/adminhtml/default/default/template/temando/temando/shipment/origin.phtml +29 -29
- app/design/adminhtml/default/default/template/temando/temando/shipment/products.phtml +56 -56
- app/design/adminhtml/default/default/template/temando/temando/shipment/quotes.phtml +67 -67
- app/design/adminhtml/default/default/template/temando/temando/shipment/status.phtml +52 -52
- app/design/frontend/base/default/layout/temando.xml +102 -102
- app/design/frontend/base/default/template/temando/temando/checkout/cart/shipping.phtml +131 -131
- app/design/frontend/base/default/template/temando/temando/customer/address/edit.phtml +174 -174
- app/design/frontend/base/default/template/temando/temando/onestep/options.phtml +84 -84
- app/design/frontend/base/default/template/temando/temando/onestep/shipping_method.phtml +66 -66
- app/design/frontend/base/default/template/temando/temando/pcs.phtml +19 -19
- app/design/frontend/base/default/template/temando/temando/product/shipping.phtml +52 -52
- app/design/frontend/base/default/template/temando/temando/product/shipping/methods.phtml +26 -26
- app/design/frontend/base/default/template/temando/temando/shipping_method/available.phtml +2 -2
- app/design/frontend/base/default/template/temando/temando/shipping_method/available/options_single.phtml +108 -108
- app/design/frontend/base/default/template/temando/temando/wizard.phtml +125 -125
- app/design/frontend/base/default/template/temando/temando/wizard/account.phtml +80 -80
- app/design/frontend/base/default/template/temando/temando/wizard/carriers.phtml +121 -121
- app/design/frontend/base/default/template/temando/temando/wizard/catalog_product.phtml +91 -91
- app/design/frontend/base/default/template/temando/temando/wizard/countries.phtml +66 -66
- app/design/frontend/base/default/template/temando/temando/wizard/end.phtml +19 -19
- app/design/frontend/base/default/template/temando/temando/wizard/left.phtml +10 -10
- app/design/frontend/base/default/template/temando/temando/wizard/origin.phtml +139 -139
- app/design/frontend/base/default/template/temando/temando/wizard/rule.phtml +55 -55
- app/etc/modules/Temando_Temando.xml +9 -9
- app/locale/en_US/Temando_Temando.csv +622 -0
- js/temando/autocomplete.js +339 -339
- js/temando/avs.js +59 -59
- js/temando/menu.js +13 -13
- package.xml +9 -7
- skin/adminhtml/default/default/js/temando.js +54 -54
- skin/frontend/base/default/js/temando/checkout.js +238 -238
- skin/frontend/base/default/js/temando/product.js +160 -160
app/code/community/Temando/Temando/Block/Adminhtml/Manifest.php
CHANGED
@@ -21,7 +21,7 @@ class Temando_Temando_Block_Adminhtml_Manifest extends Mage_Adminhtml_Block_Widg
|
|
21 |
'onclick' => 'addFormSubmit()'
|
22 |
));
|
23 |
$this->$add_button_method('confirm', array(
|
24 |
-
'label' => Mage::helper('temando')->__('
|
25 |
'onclick' => 'setLocation(\'' . $this->getUrl('*/*/confirm') .'\')',
|
26 |
));
|
27 |
}
|
21 |
'onclick' => 'addFormSubmit()'
|
22 |
));
|
23 |
$this->$add_button_method('confirm', array(
|
24 |
+
'label' => Mage::helper('temando')->__('Confirm Manifests'),
|
25 |
'onclick' => 'setLocation(\'' . $this->getUrl('*/*/confirm') .'\')',
|
26 |
));
|
27 |
}
|
app/code/community/Temando/Temando/Block/Adminhtml/Shipment/Edit.php
CHANGED
@@ -20,11 +20,11 @@ class Temando_Temando_Block_Adminhtml_Shipment_Edit extends Mage_Adminhtml_Block
|
|
20 |
}
|
21 |
|
22 |
$this->$add_button_method('disabled_pickslip', array(
|
23 |
-
'label' => 'Pick Slip',
|
24 |
'id' => 'disabled_pickslip',
|
25 |
'onclick' => 'return false',
|
26 |
'class' => 'go disabled',
|
27 |
-
'title' => 'Available in the Business Extension'
|
28 |
));
|
29 |
|
30 |
if ($this->getShipment()->getStatus() == Temando_Temando_Model_System_Config_Source_Shipment_Status::PENDING) {
|
20 |
}
|
21 |
|
22 |
$this->$add_button_method('disabled_pickslip', array(
|
23 |
+
'label' => Mage::helper('temando')->__('Pick Slip'),
|
24 |
'id' => 'disabled_pickslip',
|
25 |
'onclick' => 'return false',
|
26 |
'class' => 'go disabled',
|
27 |
+
'title' => Mage::helper('temando')->__('Available in the Business Extension')
|
28 |
));
|
29 |
|
30 |
if ($this->getShipment()->getStatus() == Temando_Temando_Model_System_Config_Source_Shipment_Status::PENDING) {
|
app/code/community/Temando/Temando/Block/Adminhtml/Shipment/Edit/Tab/Form/Quotes.php
CHANGED
@@ -38,21 +38,21 @@ class Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Quotes extends Tema
|
|
38 |
$text = '';
|
39 |
|
40 |
if ($this->_cheapest_quote_id == $quote->getId()) {
|
41 |
-
$text .= 'Cheapest';
|
42 |
}
|
43 |
|
44 |
if ($this->_fastest_quote_id == $quote->getId()) {
|
45 |
if ($text) {
|
46 |
$text .= ', ';
|
47 |
}
|
48 |
-
$text .= 'Fastest';
|
49 |
}
|
50 |
|
51 |
if ($this->_customer_selected_quote_id == $quote->getId()) {
|
52 |
if ($text) {
|
53 |
$text .= ', ';
|
54 |
}
|
55 |
-
$text .= 'Customer Selected';
|
56 |
}
|
57 |
|
58 |
return $text;
|
38 |
$text = '';
|
39 |
|
40 |
if ($this->_cheapest_quote_id == $quote->getId()) {
|
41 |
+
$text .= $this->__('Cheapest');
|
42 |
}
|
43 |
|
44 |
if ($this->_fastest_quote_id == $quote->getId()) {
|
45 |
if ($text) {
|
46 |
$text .= ', ';
|
47 |
}
|
48 |
+
$text .= $this->__('Fastest');
|
49 |
}
|
50 |
|
51 |
if ($this->_customer_selected_quote_id == $quote->getId()) {
|
52 |
if ($text) {
|
53 |
$text .= ', ';
|
54 |
}
|
55 |
+
$text .= $this->__('Customer Selected');
|
56 |
}
|
57 |
|
58 |
return $text;
|
app/code/community/Temando/Temando/Block/Cart/Shipping.php
CHANGED
@@ -79,21 +79,4 @@ class Temando_Temando_Block_Cart_Shipping extends Mage_Checkout_Block_Cart_Shipp
|
|
79 |
return $return;
|
80 |
}
|
81 |
|
82 |
-
/**
|
83 |
-
* Translate block sentence
|
84 |
-
*
|
85 |
-
* @return string
|
86 |
-
*/
|
87 |
-
public function __()
|
88 |
-
{
|
89 |
-
$args = func_get_args();
|
90 |
-
if ((count($args) == 1) && ('City' == $args[0])) {
|
91 |
-
$args[0] = 'Suburb';
|
92 |
-
}
|
93 |
-
|
94 |
-
$expr = new Mage_Core_Model_Translate_Expr(array_shift($args), $this->getModuleName());
|
95 |
-
array_unshift($args, $expr);
|
96 |
-
return Mage::app()->getTranslator()->translate($args);
|
97 |
-
}
|
98 |
-
|
99 |
}
|
79 |
return $return;
|
80 |
}
|
81 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
app/code/community/Temando/Temando/Helper/Data.php
CHANGED
@@ -400,7 +400,7 @@ class Temando_Temando_Helper_Data extends Mage_Core_Helper_Abstract {
|
|
400 |
return true;
|
401 |
}
|
402 |
|
403 |
-
$templates = array('PO Box', 'P.O. Box', 'P.O Box', 'PO. Box', 'p o box', 'Post Office');
|
404 |
foreach ($templates as $t) {
|
405 |
if (strpos(strtolower($street), strtolower($t)) !== false) {
|
406 |
return true;
|
400 |
return true;
|
401 |
}
|
402 |
|
403 |
+
$templates = array('PO Box', 'P.O. Box', 'P.O Box', 'PO. Box', 'p o box', 'Post Office', 'Locked Bag', 'Lock Bag', 'Private Bag');
|
404 |
foreach ($templates as $t) {
|
405 |
if (strpos(strtolower($street), strtolower($t)) !== false) {
|
406 |
return true;
|
app/code/community/Temando/Temando/Model/Api/Client.php
CHANGED
@@ -25,7 +25,7 @@ class Temando_Temando_Model_Api_Client extends Mage_Core_Model_Abstract {
|
|
25 |
public function connect($username = null, $password = null, $sandbox = false) {
|
26 |
$this->_is_sand = $sandbox;
|
27 |
if ($sandbox) {
|
28 |
-
$url = "https://
|
29 |
} else {
|
30 |
$url = "https://api.temando.com/schema/2009_06/server.wsdl";
|
31 |
}
|
25 |
public function connect($username = null, $password = null, $sandbox = false) {
|
26 |
$this->_is_sand = $sandbox;
|
27 |
if ($sandbox) {
|
28 |
+
$url = "https://api-demo.temando.com/schema/2009_06/server.wsdl";
|
29 |
} else {
|
30 |
$url = "https://api.temando.com/schema/2009_06/server.wsdl";
|
31 |
}
|
app/code/community/Temando/Temando/Model/Observer.php
CHANGED
@@ -48,7 +48,7 @@ class Temando_Temando_Model_Observer
|
|
48 |
} else {
|
49 |
//STATIC: flat rate / free shipping selected by customer
|
50 |
$temando_shipment
|
51 |
-
->setCustomerSelectedQuoteDescription($selected_quote_id == Temando_Temando_Model_Carrier::FLAT_RATE ? 'Flat Rate' : 'Free Shipping')
|
52 |
->setCustomerSelectedOptions('insurance_N_carbonoffset_N_footprints_N');
|
53 |
|
54 |
if($selected_quote instanceof Temando_Temando_Model_Quote) {
|
@@ -124,8 +124,10 @@ class Temando_Temando_Model_Observer
|
|
124 |
->setReady()
|
125 |
->setAllowedCarriers($allowed_carriers);
|
126 |
|
127 |
-
$quotes = $request->getQuotes()
|
128 |
-
|
|
|
|
|
129 |
}
|
130 |
|
131 |
|
48 |
} else {
|
49 |
//STATIC: flat rate / free shipping selected by customer
|
50 |
$temando_shipment
|
51 |
+
->setCustomerSelectedQuoteDescription($selected_quote_id == Temando_Temando_Model_Carrier::FLAT_RATE ? Mage::helper('temando')->__('Flat Rate') : Mage::helper('temando')->__('Free Shipping'))
|
52 |
->setCustomerSelectedOptions('insurance_N_carbonoffset_N_footprints_N');
|
53 |
|
54 |
if($selected_quote instanceof Temando_Temando_Model_Quote) {
|
124 |
->setReady()
|
125 |
->setAllowedCarriers($allowed_carriers);
|
126 |
|
127 |
+
if ($quotes = $request->getQuotes() !== false) {
|
128 |
+
return Mage::helper('temando/functions')->getCheapestQuote($quotes->getItems());
|
129 |
+
}
|
130 |
+
return null;
|
131 |
}
|
132 |
|
133 |
|
app/code/community/Temando/Temando/Model/Option/Insurance.php
CHANGED
@@ -6,7 +6,7 @@ class Temando_Temando_Model_Option_Insurance extends Temando_Temando_Model_Optio
|
|
6 |
protected $_id = 'insurance';
|
7 |
protected $_name = 'Include Delivery Insurance';
|
8 |
protected $_action_type = 'insurance';
|
9 |
-
protected $_desc = 'For your convenience, the company arranging the transport of your newly purchased item provides you with insurance for a nominal fee
|
10 |
|
11 |
/**
|
12 |
* Sets the current "setting" for insurance.
|
6 |
protected $_id = 'insurance';
|
7 |
protected $_name = 'Include Delivery Insurance';
|
8 |
protected $_action_type = 'insurance';
|
9 |
+
protected $_desc = 'For your convenience, the company arranging the transport of your newly purchased item provides you with insurance for a nominal fee.';
|
10 |
|
11 |
/**
|
12 |
* Sets the current "setting" for insurance.
|
app/code/community/Temando/Temando/Model/Quote.php
CHANGED
@@ -268,23 +268,23 @@ class Temando_Temando_Model_Quote extends Mage_Core_Model_Abstract
|
|
268 |
{
|
269 |
$title = '';
|
270 |
if ($this->getInsuranceIncluded()) {
|
271 |
-
$title .= ', includes insurance';
|
272 |
}
|
273 |
if ($this->getCarbonIncluded()) {
|
274 |
if ($this->getInsuranceIncluded()) {
|
275 |
-
$title .= ' and ';
|
276 |
} else {
|
277 |
-
$title .= ', includes ';
|
278 |
}
|
279 |
-
$title .= ' carbon offset';
|
280 |
}
|
281 |
if ($this->getFootprintsIncluded()) {
|
282 |
if ($this->getInsuranceIncluded() || $this->getCarbonIncluded()) {
|
283 |
-
$title .= ' and ';
|
284 |
} else {
|
285 |
-
$title .= ', includes ';
|
286 |
}
|
287 |
-
$title .= ' footprints';
|
288 |
}
|
289 |
|
290 |
return $title;
|
@@ -298,10 +298,10 @@ class Temando_Temando_Model_Quote extends Mage_Core_Model_Abstract
|
|
298 |
$title .= ' - ' . $this->getEtaTo();
|
299 |
}
|
300 |
|
301 |
-
$title .= ' day';
|
302 |
|
303 |
if ($this->getEtaTo() > 1) {
|
304 |
-
$title .= 's';
|
305 |
}
|
306 |
|
307 |
return $title;
|
268 |
{
|
269 |
$title = '';
|
270 |
if ($this->getInsuranceIncluded()) {
|
271 |
+
$title .= Mage::helper('temando')->__(', includes insurance');
|
272 |
}
|
273 |
if ($this->getCarbonIncluded()) {
|
274 |
if ($this->getInsuranceIncluded()) {
|
275 |
+
$title .= Mage::helper('temando')->__(' and ');
|
276 |
} else {
|
277 |
+
$title .= Mage::helper('temando')->__(', includes ');
|
278 |
}
|
279 |
+
$title .= Mage::helper('temando')->__(' carbon offset');
|
280 |
}
|
281 |
if ($this->getFootprintsIncluded()) {
|
282 |
if ($this->getInsuranceIncluded() || $this->getCarbonIncluded()) {
|
283 |
+
$title .= Mage::helper('temando')->__(' and ');
|
284 |
} else {
|
285 |
+
$title .= Mage::helper('temando')->__(', includes ');
|
286 |
}
|
287 |
+
$title .= Mage::helper('temando')->__(' footprints');
|
288 |
}
|
289 |
|
290 |
return $title;
|
298 |
$title .= ' - ' . $this->getEtaTo();
|
299 |
}
|
300 |
|
301 |
+
$title .= Mage::helper('temando')->__(' day');
|
302 |
|
303 |
if ($this->getEtaTo() > 1) {
|
304 |
+
$title .= Mage::helper('temando')->__('s');
|
305 |
}
|
306 |
|
307 |
return $title;
|
app/code/community/Temando/Temando/Model/Shipping/Carrier/Temando.php
CHANGED
@@ -146,7 +146,7 @@ class Temando_Temando_Model_Shipping_Carrier_Temando
|
|
146 |
$cost = $price;
|
147 |
}
|
148 |
|
149 |
-
$title = $free ? 'Free Shipping' : 'Flat Rate';
|
150 |
$method = Mage::getModel('shipping/rate_result_method')
|
151 |
->setCarrier($this->_code)
|
152 |
->setCarrierTitle($this->_title)
|
146 |
$cost = $price;
|
147 |
}
|
148 |
|
149 |
+
$title = $free ? Mage::helper('temando')->__('Free Shipping') : Mage::helper('temando')->__('Flat Rate');
|
150 |
$method = Mage::getModel('shipping/rate_result_method')
|
151 |
->setCarrier($this->_code)
|
152 |
->setCarrierTitle($this->_title)
|
app/code/community/Temando/Temando/Model/Shipping/Carrier/Temando/Source/Method.php
CHANGED
@@ -24,7 +24,7 @@ class Temando_Temando_Model_Shipping_Carrier_Temando_Source_Method
|
|
24 |
public function getOptions($please_select = false)
|
25 |
{
|
26 |
if ($please_select) {
|
27 |
-
$options = array(null => '--Please Select--');
|
28 |
}
|
29 |
|
30 |
$carriers = Mage::getModel('temando/carrier')->getCollection();
|
24 |
public function getOptions($please_select = false)
|
25 |
{
|
26 |
if ($please_select) {
|
27 |
+
$options = array(null => Mage::helper('temando')->__('--Please Select--'));
|
28 |
}
|
29 |
|
30 |
$carriers = Mage::getModel('temando/carrier')->getCollection();
|
app/code/community/Temando/Temando/Model/System/Config/Source.php
CHANGED
@@ -36,7 +36,7 @@ abstract class Temando_Temando_Model_System_Config_Source
|
|
36 |
{
|
37 |
$options = $this->_options;
|
38 |
if ($please_select) {
|
39 |
-
$options = array(null => '--Please Select--') + $options;
|
40 |
}
|
41 |
return $options;
|
42 |
}
|
36 |
{
|
37 |
$options = $this->_options;
|
38 |
if ($please_select) {
|
39 |
+
$options = array(null => Mage::helper('temando')->__('--Please Select--')) + $options;
|
40 |
}
|
41 |
return $options;
|
42 |
}
|
app/code/community/Temando/Temando/Model/System/Config/Source/Carbon.php
CHANGED
@@ -10,9 +10,9 @@ class Temando_Temando_Model_System_Config_Source_Carbon extends Temando_Temando_
|
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
-
self::DISABLED => 'Disabled',
|
14 |
-
self::OPTIONAL => 'Optional',
|
15 |
-
self::MANDATORY => 'Mandatory',
|
16 |
);
|
17 |
}
|
18 |
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
+
self::DISABLED => Mage::helper('temando')->__('Disabled'),
|
14 |
+
self::OPTIONAL => Mage::helper('temando')->__('Optional'),
|
15 |
+
self::MANDATORY => Mage::helper('temando')->__('Mandatory'),
|
16 |
);
|
17 |
}
|
18 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Errorprocess.php
CHANGED
@@ -9,8 +9,8 @@ class Temando_Temando_Model_System_Config_Source_Errorprocess extends Temando_Te
|
|
9 |
protected function _setupOptions()
|
10 |
{
|
11 |
$this->_options = array(
|
12 |
-
self::FLAT => 'Show flat rate',
|
13 |
-
self::VIEW => 'Show error message',
|
14 |
);
|
15 |
}
|
16 |
|
9 |
protected function _setupOptions()
|
10 |
{
|
11 |
$this->_options = array(
|
12 |
+
self::FLAT => Mage::helper('temando')->__('Show flat rate'),
|
13 |
+
self::VIEW => Mage::helper('temando')->__('Show error message'),
|
14 |
);
|
15 |
}
|
16 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Footprints.php
CHANGED
@@ -10,9 +10,9 @@ class Temando_Temando_Model_System_Config_Source_Footprints extends Temando_Tema
|
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
-
self::DISABLED => 'Disabled',
|
14 |
-
self::OPTIONAL => 'Optional',
|
15 |
-
self::MANDATORY => 'Mandatory',
|
16 |
);
|
17 |
}
|
18 |
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
+
self::DISABLED => Mage::helper('temando')->__('Disabled'),
|
14 |
+
self::OPTIONAL => Mage::helper('temando')->__('Optional'),
|
15 |
+
self::MANDATORY => Mage::helper('temando')->__('Mandatory'),
|
16 |
);
|
17 |
}
|
18 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Insurance.php
CHANGED
@@ -10,9 +10,9 @@ class Temando_Temando_Model_System_Config_Source_Insurance extends Temando_Teman
|
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
-
self::DISABLED => 'Disabled',
|
14 |
-
self::OPTIONAL => 'Optional',
|
15 |
-
self::MANDATORY => 'Mandatory',
|
16 |
);
|
17 |
}
|
18 |
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
+
self::DISABLED => Mage::helper('temando')->__('Disabled'),
|
14 |
+
self::OPTIONAL => Mage::helper('temando')->__('Optional'),
|
15 |
+
self::MANDATORY => Mage::helper('temando')->__('Mandatory'),
|
16 |
);
|
17 |
}
|
18 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Labeltype.php
CHANGED
@@ -10,9 +10,9 @@ class Temando_Temando_Model_System_Config_Source_Labeltype extends Temando_Teman
|
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
-
self::NO => 'No',
|
14 |
-
self::STANDARD => 'Plain Paper',
|
15 |
-
self::THERMAL => 'Thermal',
|
16 |
);
|
17 |
}
|
18 |
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
+
self::NO => Mage::helper('temando')->__('No'),
|
14 |
+
self::STANDARD => Mage::helper('temando')->__('Plain Paper'),
|
15 |
+
self::THERMAL => Mage::helper('temando')->__('Thermal'),
|
16 |
);
|
17 |
}
|
18 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Payment.php
CHANGED
@@ -9,8 +9,8 @@ class Temando_Temando_Model_System_Config_Source_Payment extends Temando_Temando
|
|
9 |
protected function _setupOptions()
|
10 |
{
|
11 |
$this->_options = array(
|
12 |
-
self::CREDIT => 'Credit',
|
13 |
-
self::ACCOUNT => 'Account'
|
14 |
);
|
15 |
}
|
16 |
|
9 |
protected function _setupOptions()
|
10 |
{
|
11 |
$this->_options = array(
|
12 |
+
self::CREDIT => Mage::helper('temando')->__('Credit'),
|
13 |
+
self::ACCOUNT => Mage::helper('temando')->__('Account')
|
14 |
);
|
15 |
}
|
16 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Pricing.php
CHANGED
@@ -13,12 +13,12 @@ class Temando_Temando_Model_System_Config_Source_Pricing extends Temando_Temando
|
|
13 |
protected function _setupOptions()
|
14 |
{
|
15 |
$this->_options = array(
|
16 |
-
self::FREE => 'Free Shipping',
|
17 |
-
self::FLAT_RATE => 'Fixed Price / Flat Rate',
|
18 |
-
self::DYNAMIC => 'Dynamic Pricing (All)',
|
19 |
-
self::DYNAMIC_CHEAPEST => 'Dynamic Pricing (Cheapest only)',
|
20 |
-
self::DYNAMIC_FASTEST => 'Dynamic Pricing (Fastest only)',
|
21 |
-
self::DYNAMIC_FASTEST_AND_CHEAPEST => 'Dynamic Pricing (Cheapest and Fastest only)',
|
22 |
);
|
23 |
}
|
24 |
|
13 |
protected function _setupOptions()
|
14 |
{
|
15 |
$this->_options = array(
|
16 |
+
self::FREE => Mage::helper('temando')->__('Free Shipping'),
|
17 |
+
self::FLAT_RATE => Mage::helper('temando')->__('Fixed Price / Flat Rate'),
|
18 |
+
self::DYNAMIC => Mage::helper('temando')->__('Dynamic Pricing (All)'),
|
19 |
+
self::DYNAMIC_CHEAPEST => Mage::helper('temando')->__('Dynamic Pricing (Cheapest only)'),
|
20 |
+
self::DYNAMIC_FASTEST => Mage::helper('temando')->__('Dynamic Pricing (Fastest only)'),
|
21 |
+
self::DYNAMIC_FASTEST_AND_CHEAPEST => Mage::helper('temando')->__('Dynamic Pricing (Cheapest and Fastest only)'),
|
22 |
);
|
23 |
}
|
24 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Rule/Action/Filter.php
CHANGED
@@ -11,10 +11,10 @@ class Temando_Temando_Model_System_Config_Source_Rule_Action_Filter
|
|
11 |
protected function _setupOptions()
|
12 |
{
|
13 |
$this->_options = array(
|
14 |
-
self::DYNAMIC_ALL => 'All Quotes',
|
15 |
-
self::DYNAMIC_CHEAPEST => 'Cheapest only',
|
16 |
-
self::DYNAMIC_FASTEST => 'Fastest only',
|
17 |
-
self::DYNAMIC_FASTEST_AND_CHEAPEST => 'Cheapest and Fastest only',
|
18 |
);
|
19 |
}
|
20 |
|
11 |
protected function _setupOptions()
|
12 |
{
|
13 |
$this->_options = array(
|
14 |
+
self::DYNAMIC_ALL => Mage::helper('temando')->__('All Quotes'),
|
15 |
+
self::DYNAMIC_CHEAPEST => Mage::helper('temando')->__('Cheapest only'),
|
16 |
+
self::DYNAMIC_FASTEST => Mage::helper('temando')->__('Fastest only'),
|
17 |
+
self::DYNAMIC_FASTEST_AND_CHEAPEST => Mage::helper('temando')->__('Cheapest and Fastest only'),
|
18 |
);
|
19 |
}
|
20 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Shipment/Packaging/Mode.php
CHANGED
@@ -8,8 +8,8 @@ class Temando_Temando_Model_System_Config_Source_Shipment_Packaging_Mode extends
|
|
8 |
protected function _setupOptions()
|
9 |
{
|
10 |
$this->_options = array(
|
11 |
-
self::USE_DEFAULTS => 'Use Defaults',
|
12 |
-
self::AS_DEFINED => 'As Defined',
|
13 |
);
|
14 |
}
|
15 |
|
8 |
protected function _setupOptions()
|
9 |
{
|
10 |
$this->_options = array(
|
11 |
+
self::USE_DEFAULTS => Mage::helper('temando')->__('Use Defaults'),
|
12 |
+
self::AS_DEFINED => Mage::helper('temando')->__('As Defined'),
|
13 |
);
|
14 |
}
|
15 |
|
app/code/community/Temando/Temando/Model/System/Config/Source/Shipment/Service.php
CHANGED
@@ -10,9 +10,9 @@ class Temando_Temando_Model_System_Config_Source_Shipment_Service extends Temand
|
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
-
self::SAME_DAY => 'Same Day',
|
14 |
-
self::EXPRESS => 'Express',
|
15 |
-
self::STANDARD => 'Standard',
|
16 |
);
|
17 |
}
|
18 |
|
10 |
protected function _setupOptions()
|
11 |
{
|
12 |
$this->_options = array(
|
13 |
+
self::SAME_DAY => Mage::helper('temando')->__('Same Day'),
|
14 |
+
self::EXPRESS => Mage::helper('temando')->__('Express'),
|
15 |
+
self::STANDARD => Mage::helper('temando')->__('Standard'),
|
16 |
);
|
17 |
}
|
18 |
|
app/code/community/Temando/Temando/controllers/Adminhtml/ManifestController.php
CHANGED
@@ -106,7 +106,7 @@ class Temando_Temando_Adminhtml_ManifestController extends Mage_Adminhtml_Contro
|
|
106 |
|
107 |
$model->save();
|
108 |
$this->_getSession()
|
109 |
-
->addSuccess($this->__('Manifest successful added for carrier: ' . $carrier_name)
|
110 |
} catch (Exception $e) {
|
111 |
$this->_getSession()
|
112 |
->addError($e->getMessage());
|
106 |
|
107 |
$model->save();
|
108 |
$this->_getSession()
|
109 |
+
->addSuccess($this->__('Manifest successful added for carrier: ') . $carrier_name);
|
110 |
} catch (Exception $e) {
|
111 |
$this->_getSession()
|
112 |
->addError($e->getMessage());
|
app/code/community/Temando/Temando/controllers/Adminhtml/ShipmentController.php
CHANGED
@@ -18,7 +18,7 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
18 |
$notices = array();
|
19 |
|
20 |
if (!count($shipment->getBoxes())) {
|
21 |
-
$notices[] = 'Quotes cannot be refreshed until at least one box is added to the shipment.';
|
22 |
}
|
23 |
|
24 |
foreach ($notices as $notice) {
|
@@ -62,7 +62,7 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
62 |
|
63 |
if ($result['errors']) {
|
64 |
$this->_getSession()
|
65 |
-
->addError('Validation errors:')
|
66 |
->setFormData($data);
|
67 |
foreach ($result['errors'] as $error) {
|
68 |
$this->_getSession()->addError($error);
|
@@ -152,15 +152,15 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
152 |
if ($timestamp) {
|
153 |
$data['ready_date'] = date('Y-m-d', $timestamp);
|
154 |
} else {
|
155 |
-
$return['errors'][] = 'Pick-up date is not a valid date.';
|
156 |
}
|
157 |
}
|
158 |
if (strtotime($data['ready_date'] . ' + 1 day') < date('U')) {
|
159 |
-
$return['notices'][] = 'Pick-up date is in the past.';
|
160 |
unset($data['ready_date']);
|
161 |
}
|
162 |
if (!in_array($data['ready_time'], array('AM', 'PM', ''))) {
|
163 |
-
$return['errors'][] = 'Pick-up time is not a valid selection.';
|
164 |
}
|
165 |
|
166 |
return $return;
|
@@ -180,15 +180,15 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
180 |
$error = null;
|
181 |
|
182 |
if (!$shipment->getId()) {
|
183 |
-
$error = 'Shipment does not exist.';
|
184 |
} else {
|
185 |
if (!$quote->getId()) {
|
186 |
-
$error = 'Selected quote does not exist.';
|
187 |
} else {
|
188 |
foreach ($shipment->getOptions() as $o) {
|
189 |
if (("insurance" == $o->getId()) && ('Y' == $o->getForcedValue())) {
|
190 |
if ('Y' != Mage::helper('temando')->getConfigData('insurance/confirm_' . Mage::helper('temando')->getConfigData('insurance/status'))) {
|
191 |
-
$error = 'Please agree to the insurance terms & conditions at System -> Configuration -> Temando Settings -> Insurance.';
|
192 |
}
|
193 |
}
|
194 |
}
|
@@ -270,7 +270,7 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
270 |
/* @var Mage_Sales_Model_Order_Shipment_Track */
|
271 |
$number = '';
|
272 |
if ($booking_result->consignmentNumber) {
|
273 |
-
$number .= 'Consignment Number: ' . $booking_result->consignmentNumber;
|
274 |
}
|
275 |
|
276 |
if ($booking_result->requestId) {
|
@@ -278,7 +278,7 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
278 |
$number .= "\n<br />";
|
279 |
}
|
280 |
|
281 |
-
$number .= 'Request Id: ' . $booking_result->requestId;
|
282 |
}
|
283 |
|
284 |
$track
|
@@ -295,7 +295,7 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
295 |
->addObject($magento_shipment)
|
296 |
->addObject($magento_shipment->getOrder())
|
297 |
->save();
|
298 |
-
$magento_shipment->sendEmail();
|
299 |
} catch (Mage_Core_Exception $e) {
|
300 |
$error = $e->getMessage();
|
301 |
}
|
@@ -442,7 +442,7 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
442 |
/* @var Mage_Sales_Model_Order_Shipment_Track */
|
443 |
$number = '';
|
444 |
if ($booking_result->consignmentNumber) {
|
445 |
-
$number .= 'Consignment Number: ' . $booking_result->consignmentNumber;
|
446 |
}
|
447 |
|
448 |
if ($booking_result->requestId) {
|
@@ -450,7 +450,7 @@ class Temando_Temando_Adminhtml_ShipmentController extends Mage_Adminhtml_Contro
|
|
450 |
$number .= "\n<br />";
|
451 |
}
|
452 |
|
453 |
-
$number .= 'Request Id: ' . $booking_result->requestId;
|
454 |
}
|
455 |
|
456 |
$track
|
18 |
$notices = array();
|
19 |
|
20 |
if (!count($shipment->getBoxes())) {
|
21 |
+
$notices[] = Mage::helper('temando')->__('Quotes cannot be refreshed until at least one box is added to the shipment.');
|
22 |
}
|
23 |
|
24 |
foreach ($notices as $notice) {
|
62 |
|
63 |
if ($result['errors']) {
|
64 |
$this->_getSession()
|
65 |
+
->addError(Mage::helper('temando')->__('Validation errors:'))
|
66 |
->setFormData($data);
|
67 |
foreach ($result['errors'] as $error) {
|
68 |
$this->_getSession()->addError($error);
|
152 |
if ($timestamp) {
|
153 |
$data['ready_date'] = date('Y-m-d', $timestamp);
|
154 |
} else {
|
155 |
+
$return['errors'][] = Mage::helper('temando')->__('Pick-up date is not a valid date.');
|
156 |
}
|
157 |
}
|
158 |
if (strtotime($data['ready_date'] . ' + 1 day') < date('U')) {
|
159 |
+
$return['notices'][] = Mage::helper('temando')->__('Pick-up date is in the past.');
|
160 |
unset($data['ready_date']);
|
161 |
}
|
162 |
if (!in_array($data['ready_time'], array('AM', 'PM', ''))) {
|
163 |
+
$return['errors'][] = Mage::helper('temando')->__('Pick-up time is not a valid selection.');
|
164 |
}
|
165 |
|
166 |
return $return;
|
180 |
$error = null;
|
181 |
|
182 |
if (!$shipment->getId()) {
|
183 |
+
$error = Mage::helper('temando')->__('Shipment does not exist.');
|
184 |
} else {
|
185 |
if (!$quote->getId()) {
|
186 |
+
$error = Mage::helper('temando')->__('Selected quote does not exist.');
|
187 |
} else {
|
188 |
foreach ($shipment->getOptions() as $o) {
|
189 |
if (("insurance" == $o->getId()) && ('Y' == $o->getForcedValue())) {
|
190 |
if ('Y' != Mage::helper('temando')->getConfigData('insurance/confirm_' . Mage::helper('temando')->getConfigData('insurance/status'))) {
|
191 |
+
$error = Mage::helper('temando')->__('Please agree to the insurance terms & conditions at System -> Configuration -> Temando Settings -> Insurance.');
|
192 |
}
|
193 |
}
|
194 |
}
|
270 |
/* @var Mage_Sales_Model_Order_Shipment_Track */
|
271 |
$number = '';
|
272 |
if ($booking_result->consignmentNumber) {
|
273 |
+
$number .= Mage::helper('temando')->__('Consignment Number: ') . $booking_result->consignmentNumber;
|
274 |
}
|
275 |
|
276 |
if ($booking_result->requestId) {
|
278 |
$number .= "\n<br />";
|
279 |
}
|
280 |
|
281 |
+
$number .= Mage::helper('temando')->__('Request Id: ') . $booking_result->requestId;
|
282 |
}
|
283 |
|
284 |
$track
|
295 |
->addObject($magento_shipment)
|
296 |
->addObject($magento_shipment->getOrder())
|
297 |
->save();
|
298 |
+
$magento_shipment->sendEmail()->setEmailSent(true)->save();
|
299 |
} catch (Mage_Core_Exception $e) {
|
300 |
$error = $e->getMessage();
|
301 |
}
|
442 |
/* @var Mage_Sales_Model_Order_Shipment_Track */
|
443 |
$number = '';
|
444 |
if ($booking_result->consignmentNumber) {
|
445 |
+
$number .= Mage::helper('temando')->__('Consignment Number: ') . $booking_result->consignmentNumber;
|
446 |
}
|
447 |
|
448 |
if ($booking_result->requestId) {
|
450 |
$number .= "\n<br />";
|
451 |
}
|
452 |
|
453 |
+
$number .= Mage::helper('temando')->__('Request Id: ') . $booking_result->requestId;
|
454 |
}
|
455 |
|
456 |
$track
|
app/code/community/Temando/Temando/controllers/PcsController.php
CHANGED
@@ -37,71 +37,10 @@ class Temando_Temando_PcsController extends Mage_Core_Controller_Front_Action
|
|
37 |
$this->renderLayout();
|
38 |
}
|
39 |
|
40 |
-
public function autocomplete($field) {
|
41 |
-
|
42 |
-
$query = $this->getRequest()->getParam('query');
|
43 |
-
|
44 |
-
$country = $this->getRequest()->getParam('country');
|
45 |
-
|
46 |
-
if (!$country || !array_key_exists($country, Mage::helper('temando')->getAllowedCountries())) {
|
47 |
-
return;
|
48 |
-
}
|
49 |
-
|
50 |
-
$stateId = $this->getRequest()->getParam('state_id');
|
51 |
-
|
52 |
-
$this->_result['query'] = $query;
|
53 |
-
|
54 |
-
$collection = Mage::getModel('temando/pcs')->getCollection();
|
55 |
-
$collection
|
56 |
-
->addFieldToFilter('main_table.country_id', $country)
|
57 |
-
->addFieldToFilter($field, array('like' => $query . ' %'));
|
58 |
-
|
59 |
-
if ($stateId) {
|
60 |
-
$collection->addFieldToFilter('main_table.region_id', $stateId);
|
61 |
-
}
|
62 |
-
|
63 |
-
$i = -1;
|
64 |
-
if (count($collection) > 0) {
|
65 |
-
$this->_result['data'] = array();
|
66 |
-
foreach ($collection as $item) {
|
67 |
-
|
68 |
-
$value = $item->getData($field);
|
69 |
-
if (!in_array($value, $this->_result['suggestions'])) {
|
70 |
-
$i++;
|
71 |
-
$this->_result['suggestions'][$i] = $value;
|
72 |
-
$this->_result['data'][$i][] = $item->getData();
|
73 |
-
} else {
|
74 |
-
$this->_result['data'][$i][] = $item->getData();
|
75 |
-
}
|
76 |
-
}
|
77 |
-
}
|
78 |
-
|
79 |
-
|
80 |
-
$core_helper = Mage::helper('core');
|
81 |
-
if (method_exists($core_helper, "jsonEncode")) {
|
82 |
-
return Mage::helper('core')->jsonEncode($this->_result);
|
83 |
-
} else {
|
84 |
-
return Zend_Json::encode($this->_result);
|
85 |
-
}
|
86 |
-
|
87 |
-
}
|
88 |
-
|
89 |
-
public function autocompletezipAction() {
|
90 |
-
|
91 |
-
echo $this->autocomplete('postcode'); die;
|
92 |
-
|
93 |
-
}
|
94 |
-
|
95 |
-
public function autocompletecityAction() {
|
96 |
-
|
97 |
-
echo $this->autocomplete('city'); die;
|
98 |
-
|
99 |
-
}
|
100 |
-
|
101 |
protected function _makeAutocomplete($query, $country = 'AU')
|
102 |
-
{
|
103 |
-
$this->_result['query'] = $query;
|
104 |
-
|
105 |
$this->_getValidator();
|
106 |
$this->_validator->setCountry($country)->setQuery($query);
|
107 |
|
@@ -255,7 +194,7 @@ class Temando_Temando_PcsController extends Mage_Core_Controller_Front_Action
|
|
255 |
|
256 |
$item = $quote->addProduct($product, new Varien_Object($request));
|
257 |
if (!is_object($item)) {
|
258 |
-
throw new Exception('Cannot calculate shipping cost for separate item');
|
259 |
}
|
260 |
$item->setStoreId(Mage::app()->getStore()->getId());
|
261 |
$item->setQty($this->getRequest()->getParam('qty'));
|
37 |
$this->renderLayout();
|
38 |
}
|
39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
protected function _makeAutocomplete($query, $country = 'AU')
|
41 |
+
{
|
42 |
+
$this->_result['query'] = Mage::helper('core')->escapeHtml($query);
|
43 |
+
|
44 |
$this->_getValidator();
|
45 |
$this->_validator->setCountry($country)->setQuery($query);
|
46 |
|
194 |
|
195 |
$item = $quote->addProduct($product, new Varien_Object($request));
|
196 |
if (!is_object($item)) {
|
197 |
+
throw new Exception(Mage::helper('temando')->__('Cannot calculate shipping cost for separate item'));
|
198 |
}
|
199 |
$item->setStoreId(Mage::app()->getStore()->getId());
|
200 |
$item->setQty($this->getRequest()->getParam('qty'));
|
app/code/community/Temando/Temando/etc/adminhtml.xml
CHANGED
@@ -1,108 +1,108 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<menu>
|
4 |
-
<temando translate="title" module="temando">
|
5 |
-
<title>Temando</title>
|
6 |
-
<sort_order>71</sort_order>
|
7 |
-
<children>
|
8 |
-
<shipment translate="title" module="temando">
|
9 |
-
<title>Manage Shipments</title>
|
10 |
-
<sort_order>10</sort_order>
|
11 |
-
<action>temando/adminhtml_shipment</action>
|
12 |
-
</shipment>
|
13 |
-
<manifest translate="title" module="temando">
|
14 |
-
<title>Manage Manifests</title>
|
15 |
-
<sort_order>20</sort_order>
|
16 |
-
<action>temando/adminhtml_manifest</action>
|
17 |
-
</manifest>
|
18 |
-
<configuration translate="title" module="temando">
|
19 |
-
<title>Configuration Settings</title>
|
20 |
-
<sort_order>30</sort_order>
|
21 |
-
<children>
|
22 |
-
<temando_settings translate="title" module="temando">
|
23 |
-
<title>Temando Settings</title>
|
24 |
-
<sort_order>10</sort_order>
|
25 |
-
<action>adminhtml/system_config/edit/section/temando</action>
|
26 |
-
</temando_settings>
|
27 |
-
<shipping_methods>
|
28 |
-
<title>Shipping Methods</title>
|
29 |
-
<sort_order>20</sort_order>
|
30 |
-
<action>adminhtml/system_config/edit/section/carriers</action>
|
31 |
-
</shipping_methods>
|
32 |
-
<wizard>
|
33 |
-
<title>Configuration Wizard</title>
|
34 |
-
<sort_order>30</sort_order>
|
35 |
-
<action>temando/adminhtml_wizard</action>
|
36 |
-
</wizard>
|
37 |
-
</children>
|
38 |
-
</configuration>
|
39 |
-
<multiwarehouse translate="title" module="temando">
|
40 |
-
<title>Multi Warehouse - Professional plan</title>
|
41 |
-
<sort_order>40</sort_order>
|
42 |
-
</multiwarehouse>
|
43 |
-
<advancedrule translate="title" module="temando">
|
44 |
-
<title>Advance Shipping Rules - Professional plan</title>
|
45 |
-
<sort_order>50</sort_order>
|
46 |
-
</advancedrule>
|
47 |
-
<partialshipments translate="title" module="temando">
|
48 |
-
<title>Partial Shipments - Business plan</title>
|
49 |
-
<sort_order>60</sort_order>
|
50 |
-
</partialshipments>
|
51 |
-
</children>
|
52 |
-
</temando>
|
53 |
-
</menu>
|
54 |
-
<acl>
|
55 |
-
<resources>
|
56 |
-
<all>
|
57 |
-
<title>Allow Everything</title>
|
58 |
-
</all>
|
59 |
-
<admin>
|
60 |
-
<children>
|
61 |
-
<temando>
|
62 |
-
<title>Temando</title>
|
63 |
-
<sort_order>10</sort_order>
|
64 |
-
<children>
|
65 |
-
<shipment>
|
66 |
-
<title>Manage Shipments</title>
|
67 |
-
</shipment>
|
68 |
-
<manifest>
|
69 |
-
<title>Manage Manifests</title>
|
70 |
-
</manifest>
|
71 |
-
<configuration>
|
72 |
-
<title>Configuration Settings</title>
|
73 |
-
<children>
|
74 |
-
<temando_settings>
|
75 |
-
<title>Temando Settings</title>
|
76 |
-
</temando_settings>
|
77 |
-
<shipping_methods>
|
78 |
-
<title>Shipping Methods</title>
|
79 |
-
</shipping_methods>
|
80 |
-
</children>
|
81 |
-
</configuration>
|
82 |
-
<multiwarehouse>
|
83 |
-
<title>Multi Warehouse - Professional plan</title>
|
84 |
-
</multiwarehouse>
|
85 |
-
<advancedrule>
|
86 |
-
<title>Advance Shipping Rules - Professional plan</title>
|
87 |
-
</advancedrule>
|
88 |
-
<partialshipments>
|
89 |
-
<title>Partial Shipments - Business plan</title>
|
90 |
-
</partialshipments>
|
91 |
-
</children>
|
92 |
-
</temando>
|
93 |
-
<system>
|
94 |
-
<children>
|
95 |
-
<config>
|
96 |
-
<children>
|
97 |
-
<temando>
|
98 |
-
<title>Temando Settings</title>
|
99 |
-
</temando>
|
100 |
-
</children>
|
101 |
-
</config>
|
102 |
-
</children>
|
103 |
-
</system>
|
104 |
-
</children>
|
105 |
-
</admin>
|
106 |
-
</resources>
|
107 |
-
</acl>
|
108 |
-
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<menu>
|
4 |
+
<temando translate="title" module="temando">
|
5 |
+
<title>Temando</title>
|
6 |
+
<sort_order>71</sort_order>
|
7 |
+
<children>
|
8 |
+
<shipment translate="title" module="temando">
|
9 |
+
<title>Manage Shipments</title>
|
10 |
+
<sort_order>10</sort_order>
|
11 |
+
<action>temando/adminhtml_shipment</action>
|
12 |
+
</shipment>
|
13 |
+
<manifest translate="title" module="temando">
|
14 |
+
<title>Manage Manifests</title>
|
15 |
+
<sort_order>20</sort_order>
|
16 |
+
<action>temando/adminhtml_manifest</action>
|
17 |
+
</manifest>
|
18 |
+
<configuration translate="title" module="temando">
|
19 |
+
<title>Configuration Settings</title>
|
20 |
+
<sort_order>30</sort_order>
|
21 |
+
<children>
|
22 |
+
<temando_settings translate="title" module="temando">
|
23 |
+
<title>Temando Settings</title>
|
24 |
+
<sort_order>10</sort_order>
|
25 |
+
<action>adminhtml/system_config/edit/section/temando</action>
|
26 |
+
</temando_settings>
|
27 |
+
<shipping_methods>
|
28 |
+
<title>Shipping Methods</title>
|
29 |
+
<sort_order>20</sort_order>
|
30 |
+
<action>adminhtml/system_config/edit/section/carriers</action>
|
31 |
+
</shipping_methods>
|
32 |
+
<wizard>
|
33 |
+
<title>Configuration Wizard</title>
|
34 |
+
<sort_order>30</sort_order>
|
35 |
+
<action>temando/adminhtml_wizard</action>
|
36 |
+
</wizard>
|
37 |
+
</children>
|
38 |
+
</configuration>
|
39 |
+
<multiwarehouse translate="title" module="temando">
|
40 |
+
<title>Multi Warehouse - Professional plan</title>
|
41 |
+
<sort_order>40</sort_order>
|
42 |
+
</multiwarehouse>
|
43 |
+
<advancedrule translate="title" module="temando">
|
44 |
+
<title>Advance Shipping Rules - Professional plan</title>
|
45 |
+
<sort_order>50</sort_order>
|
46 |
+
</advancedrule>
|
47 |
+
<partialshipments translate="title" module="temando">
|
48 |
+
<title>Partial Shipments - Business plan</title>
|
49 |
+
<sort_order>60</sort_order>
|
50 |
+
</partialshipments>
|
51 |
+
</children>
|
52 |
+
</temando>
|
53 |
+
</menu>
|
54 |
+
<acl>
|
55 |
+
<resources>
|
56 |
+
<all>
|
57 |
+
<title>Allow Everything</title>
|
58 |
+
</all>
|
59 |
+
<admin>
|
60 |
+
<children>
|
61 |
+
<temando>
|
62 |
+
<title>Temando</title>
|
63 |
+
<sort_order>10</sort_order>
|
64 |
+
<children>
|
65 |
+
<shipment>
|
66 |
+
<title>Manage Shipments</title>
|
67 |
+
</shipment>
|
68 |
+
<manifest>
|
69 |
+
<title>Manage Manifests</title>
|
70 |
+
</manifest>
|
71 |
+
<configuration>
|
72 |
+
<title>Configuration Settings</title>
|
73 |
+
<children>
|
74 |
+
<temando_settings>
|
75 |
+
<title>Temando Settings</title>
|
76 |
+
</temando_settings>
|
77 |
+
<shipping_methods>
|
78 |
+
<title>Shipping Methods</title>
|
79 |
+
</shipping_methods>
|
80 |
+
</children>
|
81 |
+
</configuration>
|
82 |
+
<multiwarehouse>
|
83 |
+
<title>Multi Warehouse - Professional plan</title>
|
84 |
+
</multiwarehouse>
|
85 |
+
<advancedrule>
|
86 |
+
<title>Advance Shipping Rules - Professional plan</title>
|
87 |
+
</advancedrule>
|
88 |
+
<partialshipments>
|
89 |
+
<title>Partial Shipments - Business plan</title>
|
90 |
+
</partialshipments>
|
91 |
+
</children>
|
92 |
+
</temando>
|
93 |
+
<system>
|
94 |
+
<children>
|
95 |
+
<config>
|
96 |
+
<children>
|
97 |
+
<temando>
|
98 |
+
<title>Temando Settings</title>
|
99 |
+
</temando>
|
100 |
+
</children>
|
101 |
+
</config>
|
102 |
+
</children>
|
103 |
+
</system>
|
104 |
+
</children>
|
105 |
+
</admin>
|
106 |
+
</resources>
|
107 |
+
</acl>
|
108 |
+
</config>
|
app/code/community/Temando/Temando/etc/config.xml
CHANGED
@@ -1,204 +1,222 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Temando_Temando>
|
5 |
-
<version>1.1.
|
6 |
-
</Temando_Temando>
|
7 |
-
</modules>
|
8 |
-
<global>
|
9 |
-
<models>
|
10 |
-
<temando>
|
11 |
-
<class>Temando_Temando_Model</class>
|
12 |
-
<resourceModel>temando_mysql4</resourceModel>
|
13 |
-
</temando>
|
14 |
-
<temando_mysql4>
|
15 |
-
<class>Temando_Temando_Model_Mysql4</class>
|
16 |
-
<entities>
|
17 |
-
<box><table>temando_box</table></box>
|
18 |
-
<quote><table>temando_quote</table></quote>
|
19 |
-
<shipment><table>temando_shipment</table></shipment>
|
20 |
-
<manifest><table>temando_manifest</table></manifest>
|
21 |
-
<carrier><table>temando_carrier</table></carrier>
|
22 |
-
</entities>
|
23 |
-
</temando_mysql4>
|
24 |
-
</models>
|
25 |
-
<blocks>
|
26 |
-
<temando>
|
27 |
-
<class>Temando_Temando_Block</class>
|
28 |
-
</temando>
|
29 |
-
<checkout>
|
30 |
-
<rewrite>
|
31 |
-
<cart_shipping>Temando_Temando_Block_Cart_Shipping</cart_shipping>
|
32 |
-
</rewrite>
|
33 |
-
</checkout>
|
34 |
-
</blocks>
|
35 |
-
<helpers>
|
36 |
-
<temando>
|
37 |
-
<class>Temando_Temando_Helper</class>
|
38 |
-
</temando>
|
39 |
-
</helpers>
|
40 |
-
<resources>
|
41 |
-
<temando_setup>
|
42 |
-
<setup>
|
43 |
-
<module>Temando_Temando</module>
|
44 |
-
<class>Mage_Eav_Model_Entity_Setup</class>
|
45 |
-
</setup>
|
46 |
-
<connection>
|
47 |
-
<use>core_setup</use>
|
48 |
-
</connection>
|
49 |
-
</temando_setup>
|
50 |
-
<temando_write>
|
51 |
-
<connection>
|
52 |
-
<use>core_write</use>
|
53 |
-
</connection>
|
54 |
-
</temando_write>
|
55 |
-
<temando_read>
|
56 |
-
<connection>
|
57 |
-
<use>core_read</use>
|
58 |
-
</connection>
|
59 |
-
</temando_read>
|
60 |
-
</resources>
|
61 |
-
<sales>
|
62 |
-
<shipping>
|
63 |
-
<carriers>
|
64 |
-
<temando>
|
65 |
-
<class>Temando_Temando_Model_Shipping_Carrier_Temando</class>
|
66 |
-
</temando>
|
67 |
-
</carriers>
|
68 |
-
</shipping>
|
69 |
-
</sales>
|
70 |
-
<events>
|
71 |
-
<sales_order_place_after>
|
72 |
-
<observers>
|
73 |
-
<temando_sales_order_place_after_handler>
|
74 |
-
<type>model</type>
|
75 |
-
<class>Temando_Temando_Model_Observer</class>
|
76 |
-
<method>createTemandoShipment</method>
|
77 |
-
<args></args>
|
78 |
-
</temando_sales_order_place_after_handler>
|
79 |
-
</observers>
|
80 |
-
</sales_order_place_after>
|
81 |
-
<controller_action_predispatch_checkout_cart_estimatePost>
|
82 |
-
<observers>
|
83 |
-
<retail_product_view>
|
84 |
-
<type>singleton</type>
|
85 |
-
<class>Temando_Temando_Model_Observer</class>
|
86 |
-
<method>hookCartSaveAddress</method>
|
87 |
-
</retail_product_view>
|
88 |
-
</observers>
|
89 |
-
</controller_action_predispatch_checkout_cart_estimatePost>
|
90 |
-
</events>
|
91 |
-
</global>
|
92 |
-
<frontend>
|
93 |
-
<routers>
|
94 |
-
<etemando>
|
95 |
-
<use>standard</use>
|
96 |
-
<args>
|
97 |
-
<module>Temando_Temando</module>
|
98 |
-
<frontName>etemando</frontName>
|
99 |
-
</args>
|
100 |
-
</etemando>
|
101 |
-
</routers>
|
102 |
-
<layout>
|
103 |
-
<updates>
|
104 |
-
<temando>
|
105 |
-
<file>temando.xml</file>
|
106 |
-
</temando>
|
107 |
-
</updates>
|
108 |
-
</layout>
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
<
|
126 |
-
</
|
127 |
-
</
|
128 |
-
</
|
129 |
-
</
|
130 |
-
<
|
131 |
-
<
|
132 |
-
<
|
133 |
-
<
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
<
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
<
|
157 |
-
<
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
<
|
168 |
-
|
169 |
-
|
170 |
-
<
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
<
|
176 |
-
<
|
177 |
-
<
|
178 |
-
|
179 |
-
|
180 |
-
<
|
181 |
-
<
|
182 |
-
|
183 |
-
|
184 |
-
<
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
<
|
190 |
-
<
|
191 |
-
|
192 |
-
|
193 |
-
<
|
194 |
-
<
|
195 |
-
<
|
196 |
-
<
|
197 |
-
<
|
198 |
-
<
|
199 |
-
<
|
200 |
-
<
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Temando_Temando>
|
5 |
+
<version>1.1.3</version>
|
6 |
+
</Temando_Temando>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<models>
|
10 |
+
<temando>
|
11 |
+
<class>Temando_Temando_Model</class>
|
12 |
+
<resourceModel>temando_mysql4</resourceModel>
|
13 |
+
</temando>
|
14 |
+
<temando_mysql4>
|
15 |
+
<class>Temando_Temando_Model_Mysql4</class>
|
16 |
+
<entities>
|
17 |
+
<box><table>temando_box</table></box>
|
18 |
+
<quote><table>temando_quote</table></quote>
|
19 |
+
<shipment><table>temando_shipment</table></shipment>
|
20 |
+
<manifest><table>temando_manifest</table></manifest>
|
21 |
+
<carrier><table>temando_carrier</table></carrier>
|
22 |
+
</entities>
|
23 |
+
</temando_mysql4>
|
24 |
+
</models>
|
25 |
+
<blocks>
|
26 |
+
<temando>
|
27 |
+
<class>Temando_Temando_Block</class>
|
28 |
+
</temando>
|
29 |
+
<checkout>
|
30 |
+
<rewrite>
|
31 |
+
<cart_shipping>Temando_Temando_Block_Cart_Shipping</cart_shipping>
|
32 |
+
</rewrite>
|
33 |
+
</checkout>
|
34 |
+
</blocks>
|
35 |
+
<helpers>
|
36 |
+
<temando>
|
37 |
+
<class>Temando_Temando_Helper</class>
|
38 |
+
</temando>
|
39 |
+
</helpers>
|
40 |
+
<resources>
|
41 |
+
<temando_setup>
|
42 |
+
<setup>
|
43 |
+
<module>Temando_Temando</module>
|
44 |
+
<class>Mage_Eav_Model_Entity_Setup</class>
|
45 |
+
</setup>
|
46 |
+
<connection>
|
47 |
+
<use>core_setup</use>
|
48 |
+
</connection>
|
49 |
+
</temando_setup>
|
50 |
+
<temando_write>
|
51 |
+
<connection>
|
52 |
+
<use>core_write</use>
|
53 |
+
</connection>
|
54 |
+
</temando_write>
|
55 |
+
<temando_read>
|
56 |
+
<connection>
|
57 |
+
<use>core_read</use>
|
58 |
+
</connection>
|
59 |
+
</temando_read>
|
60 |
+
</resources>
|
61 |
+
<sales>
|
62 |
+
<shipping>
|
63 |
+
<carriers>
|
64 |
+
<temando>
|
65 |
+
<class>Temando_Temando_Model_Shipping_Carrier_Temando</class>
|
66 |
+
</temando>
|
67 |
+
</carriers>
|
68 |
+
</shipping>
|
69 |
+
</sales>
|
70 |
+
<events>
|
71 |
+
<sales_order_place_after>
|
72 |
+
<observers>
|
73 |
+
<temando_sales_order_place_after_handler>
|
74 |
+
<type>model</type>
|
75 |
+
<class>Temando_Temando_Model_Observer</class>
|
76 |
+
<method>createTemandoShipment</method>
|
77 |
+
<args></args>
|
78 |
+
</temando_sales_order_place_after_handler>
|
79 |
+
</observers>
|
80 |
+
</sales_order_place_after>
|
81 |
+
<controller_action_predispatch_checkout_cart_estimatePost>
|
82 |
+
<observers>
|
83 |
+
<retail_product_view>
|
84 |
+
<type>singleton</type>
|
85 |
+
<class>Temando_Temando_Model_Observer</class>
|
86 |
+
<method>hookCartSaveAddress</method>
|
87 |
+
</retail_product_view>
|
88 |
+
</observers>
|
89 |
+
</controller_action_predispatch_checkout_cart_estimatePost>
|
90 |
+
</events>
|
91 |
+
</global>
|
92 |
+
<frontend>
|
93 |
+
<routers>
|
94 |
+
<etemando>
|
95 |
+
<use>standard</use>
|
96 |
+
<args>
|
97 |
+
<module>Temando_Temando</module>
|
98 |
+
<frontName>etemando</frontName>
|
99 |
+
</args>
|
100 |
+
</etemando>
|
101 |
+
</routers>
|
102 |
+
<layout>
|
103 |
+
<updates>
|
104 |
+
<temando>
|
105 |
+
<file>temando.xml</file>
|
106 |
+
</temando>
|
107 |
+
</updates>
|
108 |
+
</layout>
|
109 |
+
<translate>
|
110 |
+
<modules>
|
111 |
+
<Temando_Temando>
|
112 |
+
<files>
|
113 |
+
<default>Temando_Temando.csv</default>
|
114 |
+
</files>
|
115 |
+
</Temando_Temando>
|
116 |
+
</modules>
|
117 |
+
</translate>
|
118 |
+
</frontend>
|
119 |
+
<admin>
|
120 |
+
<routers>
|
121 |
+
<temando>
|
122 |
+
<use>admin</use>
|
123 |
+
<args>
|
124 |
+
<module>Temando_Temando</module>
|
125 |
+
<frontName>temando</frontName>
|
126 |
+
</args>
|
127 |
+
</temando>
|
128 |
+
</routers>
|
129 |
+
</admin>
|
130 |
+
<adminhtml>
|
131 |
+
<layout>
|
132 |
+
<updates>
|
133 |
+
<temando>
|
134 |
+
<file>temando.xml</file>
|
135 |
+
</temando>
|
136 |
+
</updates>
|
137 |
+
</layout>
|
138 |
+
<translate>
|
139 |
+
<modules>
|
140 |
+
<Temando_Temando>
|
141 |
+
<files>
|
142 |
+
<default>Temando_Temando.csv</default>
|
143 |
+
</files>
|
144 |
+
</Temando_Temando>
|
145 |
+
</modules>
|
146 |
+
</translate>
|
147 |
+
</adminhtml>
|
148 |
+
<default>
|
149 |
+
<temando>
|
150 |
+
<general>
|
151 |
+
<active><![CDATA[0]]></active>
|
152 |
+
<sandbox><![CDATA[1]]></sandbox>
|
153 |
+
<client><![CDATA[20420]]></client>
|
154 |
+
<username><![CDATA[TEMANDOTEST]]></username>
|
155 |
+
<password><![CDATA[temandopass1]]></password>
|
156 |
+
<title><![CDATA[Temando]]></title>
|
157 |
+
<payment_type><![CDATA[Account]]></payment_type>
|
158 |
+
</general>
|
159 |
+
<options>
|
160 |
+
<show_transit_type><![CDATA[1]]></show_transit_type>
|
161 |
+
<show_transit_time><![CDATA[1]]></show_transit_time>
|
162 |
+
</options>
|
163 |
+
<insurance>
|
164 |
+
<status><![CDATA[optional]]></status>
|
165 |
+
</insurance>
|
166 |
+
<carbon>
|
167 |
+
<status><![CDATA[optional]]></status>
|
168 |
+
</carbon>
|
169 |
+
<footprints>
|
170 |
+
<status><![CDATA[optional]]></status>
|
171 |
+
</footprints>
|
172 |
+
<pricing>
|
173 |
+
<error_process><![CDATA[view]]></error_process>
|
174 |
+
<method><![CDATA[dynamic]]></method>
|
175 |
+
<shipping_fee><![CDATA[0]]></shipping_fee>
|
176 |
+
<handling_fee><![CDATA[0]]></handling_fee>
|
177 |
+
<handling_type><![CDATA[F]]></handling_type>
|
178 |
+
</pricing>
|
179 |
+
<units>
|
180 |
+
<measure><![CDATA[Centimetres]]></measure>
|
181 |
+
<weight><![CDATA[Kilograms]]></weight>
|
182 |
+
</units>
|
183 |
+
<defaults>
|
184 |
+
<class><![CDATA[General Goods]]></class>
|
185 |
+
<subclass><![CDATA[Household Goods]]></subclass>
|
186 |
+
<packaging><![CDATA[0]]></packaging>
|
187 |
+
<fragile><![CDATA[0]]></fragile>
|
188 |
+
<length><![CDATA[10]]></length>
|
189 |
+
<width><![CDATA[10]]></width>
|
190 |
+
<height><![CDATA[10]]></height>
|
191 |
+
</defaults>
|
192 |
+
<origin>
|
193 |
+
<contact_name><![CDATA[Temando User]]></contact_name>
|
194 |
+
<company_name><![CDATA[Temando]]></company_name>
|
195 |
+
<street><![CDATA[Level 4, 140 William Street]]></street>
|
196 |
+
<city><![CDATA[WOOLLOOMOOLOO]]></city>
|
197 |
+
<postcode><![CDATA[2011]]></postcode>
|
198 |
+
<country><![CDATA[AU]]></country>
|
199 |
+
<region><![CDATA[NSW]]></region>
|
200 |
+
<type><![CDATA[Business]]></type>
|
201 |
+
<phone1><![CDATA[02 1234 5678]]></phone1>
|
202 |
+
<email><![CDATA[sales@temando.com]]></email>
|
203 |
+
</origin>
|
204 |
+
</temando>
|
205 |
+
<carriers>
|
206 |
+
<temando>
|
207 |
+
<active>0</active>
|
208 |
+
<model>temando/shipping_carrier_temando</model>
|
209 |
+
<allowed_methods></allowed_methods>
|
210 |
+
<weightunit>Grams</weightunit>
|
211 |
+
<name>Temando</name>
|
212 |
+
<title>Temando</title>
|
213 |
+
<always_use_defaults>0</always_use_defaults>
|
214 |
+
<specificerrmsg>This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.</specificerrmsg>
|
215 |
+
<sallowspecific>1</sallowspecific>
|
216 |
+
<specificcountry>AU</specificcountry>
|
217 |
+
<showmethod></showmethod>
|
218 |
+
<sort_order>0</sort_order>
|
219 |
+
</temando>
|
220 |
+
</carriers>
|
221 |
+
</default>
|
222 |
+
</config>
|
app/code/community/Temando/Temando/etc/system.xml
CHANGED
@@ -1,651 +1,613 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<sections>
|
4 |
-
<temando>
|
5 |
-
<label>Temando Settings</label>
|
6 |
-
<tab>sales</tab>
|
7 |
-
<frontend_type>text</frontend_type>
|
8 |
-
<sort_order>321</sort_order>
|
9 |
-
<show_in_default>1</show_in_default>
|
10 |
-
<show_in_website>1</show_in_website>
|
11 |
-
<show_in_store>1</show_in_store>
|
12 |
-
<groups>
|
13 |
-
<general translate="label">
|
14 |
-
<label>General</label>
|
15 |
-
<frontend_model>temando/adminhtml_system_config_form_fieldset_general</frontend_model>
|
16 |
-
<sort_order>10</sort_order>
|
17 |
-
<show_in_default>1</show_in_default>
|
18 |
-
<show_in_website>1</show_in_website>
|
19 |
-
<show_in_store>1</show_in_store>
|
20 |
-
<comment>
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
</
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
<
|
30 |
-
<
|
31 |
-
|
32 |
-
|
33 |
-
<
|
34 |
-
<
|
35 |
-
<
|
36 |
-
<
|
37 |
-
|
38 |
-
|
39 |
-
<
|
40 |
-
<
|
41 |
-
|
42 |
-
|
43 |
-
<
|
44 |
-
<
|
45 |
-
<
|
46 |
-
<
|
47 |
-
|
48 |
-
|
49 |
-
<
|
50 |
-
<
|
51 |
-
|
52 |
-
|
53 |
-
<
|
54 |
-
<
|
55 |
-
<
|
56 |
-
<
|
57 |
-
|
58 |
-
|
59 |
-
<
|
60 |
-
<
|
61 |
-
|
62 |
-
|
63 |
-
<
|
64 |
-
<
|
65 |
-
<
|
66 |
-
<
|
67 |
-
|
68 |
-
|
69 |
-
<
|
70 |
-
<
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
</
|
79 |
-
|
80 |
-
|
81 |
-
<
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
<
|
90 |
-
<
|
91 |
-
|
92 |
-
|
93 |
-
<
|
94 |
-
<
|
95 |
-
<
|
96 |
-
<
|
97 |
-
|
98 |
-
|
99 |
-
<
|
100 |
-
|
101 |
-
|
102 |
-
<
|
103 |
-
<
|
104 |
-
<
|
105 |
-
<
|
106 |
-
|
107 |
-
|
108 |
-
<
|
109 |
-
|
110 |
-
|
111 |
-
<
|
112 |
-
<
|
113 |
-
<
|
114 |
-
<
|
115 |
-
|
116 |
-
|
117 |
-
<
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
</
|
126 |
-
|
127 |
-
|
128 |
-
<
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
<
|
137 |
-
<
|
138 |
-
<
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
</
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
<
|
184 |
-
<
|
185 |
-
<
|
186 |
-
<
|
187 |
-
<
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
<
|
192 |
-
<
|
193 |
-
<
|
194 |
-
<
|
195 |
-
<
|
196 |
-
<
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
</
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
<
|
216 |
-
<
|
217 |
-
|
218 |
-
|
219 |
-
<
|
220 |
-
<
|
221 |
-
<
|
222 |
-
<
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
<
|
230 |
-
<
|
231 |
-
<
|
232 |
-
<
|
233 |
-
<
|
234 |
-
|
235 |
-
|
236 |
-
<
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
<
|
258 |
-
<
|
259 |
-
<
|
260 |
-
<
|
261 |
-
<
|
262 |
-
<
|
263 |
-
</
|
264 |
-
<
|
265 |
-
<label>
|
266 |
-
<frontend_type>select</frontend_type>
|
267 |
-
<source_model>
|
268 |
-
<sort_order>
|
269 |
-
<show_in_default>1</show_in_default>
|
270 |
-
<show_in_website>1</show_in_website>
|
271 |
-
<show_in_store>
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
</
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
<
|
294 |
-
|
295 |
-
|
296 |
-
<
|
297 |
-
<
|
298 |
-
<
|
299 |
-
<
|
300 |
-
<
|
301 |
-
|
302 |
-
|
303 |
-
<
|
304 |
-
|
305 |
-
|
306 |
-
<
|
307 |
-
<
|
308 |
-
<
|
309 |
-
<
|
310 |
-
<
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
<
|
324 |
-
<label>
|
325 |
-
<
|
326 |
-
<
|
327 |
-
<
|
328 |
-
<
|
329 |
-
<
|
330 |
-
<
|
331 |
-
<
|
332 |
-
</
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
<
|
346 |
-
<frontend_type>text</frontend_type>
|
347 |
-
<
|
348 |
-
<
|
349 |
-
<
|
350 |
-
<
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
<
|
356 |
-
<
|
357 |
-
<
|
358 |
-
<
|
359 |
-
<
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
<
|
364 |
-
<frontend_type>text</frontend_type>
|
365 |
-
<
|
366 |
-
<
|
367 |
-
<
|
368 |
-
<
|
369 |
-
<
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
<
|
383 |
-
<label>
|
384 |
-
<frontend_type>text</frontend_type>
|
385 |
-
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
386 |
-
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
387 |
-
<sort_order>
|
388 |
-
<show_in_default>1</show_in_default>
|
389 |
-
<show_in_website>
|
390 |
-
<show_in_store>0</show_in_store>
|
391 |
-
</
|
392 |
-
<
|
393 |
-
<label>
|
394 |
-
<frontend_type>
|
395 |
-
<
|
396 |
-
<
|
397 |
-
<
|
398 |
-
<
|
399 |
-
|
400 |
-
|
401 |
-
<
|
402 |
-
|
403 |
-
|
404 |
-
<
|
405 |
-
<
|
406 |
-
<
|
407 |
-
<
|
408 |
-
<
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
<
|
414 |
-
<
|
415 |
-
<
|
416 |
-
<
|
417 |
-
<
|
418 |
-
<
|
419 |
-
|
420 |
-
|
421 |
-
<
|
422 |
-
|
423 |
-
|
424 |
-
<
|
425 |
-
<
|
426 |
-
<
|
427 |
-
<
|
428 |
-
<
|
429 |
-
|
430 |
-
|
431 |
-
<
|
432 |
-
|
433 |
-
|
434 |
-
<
|
435 |
-
<
|
436 |
-
<sort_order>
|
437 |
-
<show_in_default>1</show_in_default>
|
438 |
-
<show_in_website>0</show_in_website>
|
439 |
-
<show_in_store>0</show_in_store>
|
440 |
-
</
|
441 |
-
<
|
442 |
-
<label>
|
443 |
-
<frontend_type>text</frontend_type>
|
444 |
-
<
|
445 |
-
<
|
446 |
-
<
|
447 |
-
<
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
<
|
452 |
-
<
|
453 |
-
<
|
454 |
-
<
|
455 |
-
<
|
456 |
-
<
|
457 |
-
<
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
<
|
463 |
-
<
|
464 |
-
<
|
465 |
-
<
|
466 |
-
<
|
467 |
-
<
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
<
|
473 |
-
<
|
474 |
-
<
|
475 |
-
<
|
476 |
-
<
|
477 |
-
<
|
478 |
-
</
|
479 |
-
<
|
480 |
-
<label>
|
481 |
-
<frontend_type>
|
482 |
-
<
|
483 |
-
<
|
484 |
-
<
|
485 |
-
<
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
<
|
491 |
-
<
|
492 |
-
<
|
493 |
-
<
|
494 |
-
<
|
495 |
-
<
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
<
|
501 |
-
<
|
502 |
-
<
|
503 |
-
<
|
504 |
-
<
|
505 |
-
<
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
<
|
511 |
-
<
|
512 |
-
<
|
513 |
-
<
|
514 |
-
<
|
515 |
-
<
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
<
|
534 |
-
<
|
535 |
-
<
|
536 |
-
|
537 |
-
|
538 |
-
<
|
539 |
-
<
|
540 |
-
<
|
541 |
-
|
542 |
-
|
543 |
-
<
|
544 |
-
<
|
545 |
-
<
|
546 |
-
|
547 |
-
|
548 |
-
<
|
549 |
-
<
|
550 |
-
<
|
551 |
-
<
|
552 |
-
|
553 |
-
|
554 |
-
<
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
<
|
573 |
-
<
|
574 |
-
<source_model>adminhtml/
|
575 |
-
<sort_order>
|
576 |
-
<show_in_default>1</show_in_default>
|
577 |
-
<show_in_website>1</show_in_website>
|
578 |
-
<show_in_store>1</show_in_store>
|
579 |
-
</
|
580 |
-
<
|
581 |
-
<label>
|
582 |
-
<frontend_type>
|
583 |
-
<
|
584 |
-
<
|
585 |
-
<
|
586 |
-
<
|
587 |
-
|
588 |
-
|
589 |
-
<
|
590 |
-
|
591 |
-
|
592 |
-
<
|
593 |
-
<
|
594 |
-
<
|
595 |
-
<
|
596 |
-
|
597 |
-
|
598 |
-
<
|
599 |
-
|
600 |
-
|
601 |
-
<
|
602 |
-
<
|
603 |
-
<
|
604 |
-
<
|
605 |
-
<
|
606 |
-
<
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
<show_in_default>1</show_in_default>
|
615 |
-
<show_in_website>1</show_in_website>
|
616 |
-
<show_in_store>1</show_in_store>
|
617 |
-
</free_shipping_enable>
|
618 |
-
<free_shipping_subtotal translate="label">
|
619 |
-
<label>Minimum Order Amount for Free Shipping</label>
|
620 |
-
<frontend_type>text</frontend_type>
|
621 |
-
<sort_order>60</sort_order>
|
622 |
-
<show_in_default>1</show_in_default>
|
623 |
-
<show_in_website>1</show_in_website>
|
624 |
-
<show_in_store>1</show_in_store>
|
625 |
-
</free_shipping_subtotal>
|
626 |
-
<specificerrmsg translate="label">
|
627 |
-
<label>Displayed Error Message</label>
|
628 |
-
<frontend_type>textarea</frontend_type>
|
629 |
-
<config_path>carriers/temando/specificerrmsg</config_path>
|
630 |
-
<sort_order>70</sort_order>
|
631 |
-
<show_in_default>1</show_in_default>
|
632 |
-
<show_in_website>1</show_in_website>
|
633 |
-
<show_in_store>1</show_in_store>
|
634 |
-
</specificerrmsg>
|
635 |
-
<allowed_methods translate="label">
|
636 |
-
<label>Allowed Carriers</label>
|
637 |
-
<frontend_type>multiselect</frontend_type>
|
638 |
-
<config_path>carriers/temando/allowed_methods</config_path>
|
639 |
-
<sort_order>80</sort_order>
|
640 |
-
<source_model>temando/shipping_carrier_temando_source_method</source_model>
|
641 |
-
<show_in_default>1</show_in_default>
|
642 |
-
<show_in_website>1</show_in_website>
|
643 |
-
<show_in_store>1</show_in_store>
|
644 |
-
<comment><![CDATA[Use CTRL + click to select multiple carriers<br/>A higher plan is required to load eParcel Australia Post rates. Please contact <a href="mailto:sales@temando.com">sales@temando.com</a>.]]></comment>
|
645 |
-
</allowed_methods>
|
646 |
-
</fields>
|
647 |
-
</temando>
|
648 |
-
</groups>
|
649 |
-
</carriers>
|
650 |
-
</sections>
|
651 |
-
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<sections>
|
4 |
+
<temando>
|
5 |
+
<label>Temando Settings</label>
|
6 |
+
<tab>sales</tab>
|
7 |
+
<frontend_type>text</frontend_type>
|
8 |
+
<sort_order>321</sort_order>
|
9 |
+
<show_in_default>1</show_in_default>
|
10 |
+
<show_in_website>1</show_in_website>
|
11 |
+
<show_in_store>1</show_in_store>
|
12 |
+
<groups>
|
13 |
+
<general translate="label">
|
14 |
+
<label>General</label>
|
15 |
+
<frontend_model>temando/adminhtml_system_config_form_fieldset_general</frontend_model>
|
16 |
+
<sort_order>10</sort_order>
|
17 |
+
<show_in_default>1</show_in_default>
|
18 |
+
<show_in_website>1</show_in_website>
|
19 |
+
<show_in_store>1</show_in_store>
|
20 |
+
<comment><![CDATA[<div style="padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;">If you don't have a Temando account, you can <a href="https://www.temando.com/register/" target="_blank">Sign Up</a> immediately.</div>]]></comment>
|
21 |
+
<fields>
|
22 |
+
<sandbox translate="label">
|
23 |
+
<label>Sandbox</label>
|
24 |
+
<frontend_type>select</frontend_type>
|
25 |
+
<sort_order>20</sort_order>
|
26 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
27 |
+
<show_in_default>1</show_in_default>
|
28 |
+
<show_in_website>1</show_in_website>
|
29 |
+
<show_in_store>1</show_in_store>
|
30 |
+
<comment><![CDATA[If set to "Yes", the sandbox (testing) service will be used (usually set to "No" on a live site)]]></comment>
|
31 |
+
</sandbox>
|
32 |
+
<client>
|
33 |
+
<label>Client ID</label>
|
34 |
+
<frontend_type>text</frontend_type>
|
35 |
+
<sort_order>30</sort_order>
|
36 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
37 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
38 |
+
<show_in_default>1</show_in_default>
|
39 |
+
<show_in_website>1</show_in_website>
|
40 |
+
<show_in_store>1</show_in_store>
|
41 |
+
</client>
|
42 |
+
<username translate="label">
|
43 |
+
<label>Login ID</label>
|
44 |
+
<frontend_type>text</frontend_type>
|
45 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
46 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
47 |
+
<sort_order>40</sort_order>
|
48 |
+
<show_in_default>1</show_in_default>
|
49 |
+
<show_in_website>1</show_in_website>
|
50 |
+
<show_in_store>1</show_in_store>
|
51 |
+
</username>
|
52 |
+
<password translate="label">
|
53 |
+
<label>Password</label>
|
54 |
+
<frontend_type>password</frontend_type>
|
55 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
56 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
57 |
+
<sort_order>50</sort_order>
|
58 |
+
<show_in_default>1</show_in_default>
|
59 |
+
<show_in_website>1</show_in_website>
|
60 |
+
<show_in_store>1</show_in_store>
|
61 |
+
</password>
|
62 |
+
<payment_type translate="label">
|
63 |
+
<label>Payment Type</label>
|
64 |
+
<frontend_type>select</frontend_type>
|
65 |
+
<source_model>temando/system_config_source_payment</source_model>
|
66 |
+
<sort_order>60</sort_order>
|
67 |
+
<show_in_default>1</show_in_default>
|
68 |
+
<show_in_website>1</show_in_website>
|
69 |
+
<show_in_store>1</show_in_store>
|
70 |
+
<comment><![CDATA[If choosing "credit", please ensure you have sufficient credit in your Temando account]]></comment>
|
71 |
+
</payment_type>
|
72 |
+
</fields>
|
73 |
+
</general>
|
74 |
+
<options translate="label">
|
75 |
+
<label>Options</label>
|
76 |
+
<frontend_type>text</frontend_type>
|
77 |
+
<sort_order>20</sort_order>
|
78 |
+
<show_in_default>1</show_in_default>
|
79 |
+
<show_in_website>1</show_in_website>
|
80 |
+
<show_in_store>1</show_in_store>
|
81 |
+
<fields>
|
82 |
+
<show_product_estimate translate="label">
|
83 |
+
<label>Show Estimate Shipping on Product Page</label>
|
84 |
+
<frontend_type>select</frontend_type>
|
85 |
+
<sort_order>10</sort_order>
|
86 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
87 |
+
<show_in_default>1</show_in_default>
|
88 |
+
<show_in_website>1</show_in_website>
|
89 |
+
<show_in_store>1</show_in_store>
|
90 |
+
<comment><![CDATA[Set to yes to enable a shipping estimation widget on the product page.]]></comment>
|
91 |
+
</show_product_estimate>
|
92 |
+
<label_type translate="label">
|
93 |
+
<label>Shipping Label Type</label>
|
94 |
+
<frontend_type>select</frontend_type>
|
95 |
+
<source_model>temando/system_config_source_labeltype</source_model>
|
96 |
+
<sort_order>20</sort_order>
|
97 |
+
<show_in_default>1</show_in_default>
|
98 |
+
<show_in_website>1</show_in_website>
|
99 |
+
<show_in_store>1</show_in_store>
|
100 |
+
</label_type>
|
101 |
+
<show_transit_type translate="label">
|
102 |
+
<label>Show Transit Type</label>
|
103 |
+
<frontend_type>select</frontend_type>
|
104 |
+
<sort_order>30</sort_order>
|
105 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
106 |
+
<show_in_default>1</show_in_default>
|
107 |
+
<show_in_website>1</show_in_website>
|
108 |
+
<show_in_store>1</show_in_store>
|
109 |
+
</show_transit_type>
|
110 |
+
<show_transit_time translate="label">
|
111 |
+
<label>Show Transit Time</label>
|
112 |
+
<frontend_type>select</frontend_type>
|
113 |
+
<sort_order>40</sort_order>
|
114 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
115 |
+
<show_in_default>1</show_in_default>
|
116 |
+
<show_in_website>1</show_in_website>
|
117 |
+
<show_in_store>1</show_in_store>
|
118 |
+
</show_transit_time>
|
119 |
+
</fields>
|
120 |
+
</options>
|
121 |
+
<insurance translate="label">
|
122 |
+
<label>Insurance</label>
|
123 |
+
<frontend_type>text</frontend_type>
|
124 |
+
<sort_order>30</sort_order>
|
125 |
+
<show_in_default>1</show_in_default>
|
126 |
+
<show_in_website>1</show_in_website>
|
127 |
+
<show_in_store>1</show_in_store>
|
128 |
+
<fields>
|
129 |
+
<status translate="label">
|
130 |
+
<label>Insurance</label>
|
131 |
+
<frontend_type>select</frontend_type>
|
132 |
+
<frontend_model>temando/adminhtml_system_config_form_field_insurance</frontend_model>
|
133 |
+
<sort_order>10</sort_order>
|
134 |
+
<source_model>temando/system_config_source_insurance</source_model>
|
135 |
+
<show_in_default>1</show_in_default>
|
136 |
+
<show_in_website>1</show_in_website>
|
137 |
+
<show_in_store>1</show_in_store>
|
138 |
+
<comment><![CDATA[Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Insurance must be added to all orders.]]></comment>
|
139 |
+
</status>
|
140 |
+
</fields>
|
141 |
+
</insurance>
|
142 |
+
<carbon translate="label">
|
143 |
+
<label>Carbon Offset</label>
|
144 |
+
<frontend_type>text</frontend_type>
|
145 |
+
<sort_order>40</sort_order>
|
146 |
+
<show_in_default>1</show_in_default>
|
147 |
+
<show_in_website>1</show_in_website>
|
148 |
+
<show_in_store>1</show_in_store>
|
149 |
+
<fields>
|
150 |
+
<status translate="label">
|
151 |
+
<label>Carbon Offset</label>
|
152 |
+
<frontend_type>select</frontend_type>
|
153 |
+
<sort_order>10</sort_order>
|
154 |
+
<source_model>temando/system_config_source_carbon</source_model>
|
155 |
+
<show_in_default>1</show_in_default>
|
156 |
+
<show_in_website>1</show_in_website>
|
157 |
+
<show_in_store>1</show_in_store>
|
158 |
+
<comment><![CDATA[Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Carbon offsets are added to all orders.]]></comment>
|
159 |
+
</status>
|
160 |
+
</fields>
|
161 |
+
</carbon>
|
162 |
+
<footprints translate="label">
|
163 |
+
<label>Footprints</label>
|
164 |
+
<frontend_type>text</frontend_type>
|
165 |
+
<sort_order>50</sort_order>
|
166 |
+
<show_in_default>1</show_in_default>
|
167 |
+
<show_in_website>1</show_in_website>
|
168 |
+
<show_in_store>1</show_in_store>
|
169 |
+
<fields>
|
170 |
+
<status translate="label">
|
171 |
+
<label>Footprints</label>
|
172 |
+
<frontend_type>select</frontend_type>
|
173 |
+
<sort_order>10</sort_order>
|
174 |
+
<source_model>temando/system_config_source_footprints</source_model>
|
175 |
+
<show_in_default>1</show_in_default>
|
176 |
+
<show_in_website>1</show_in_website>
|
177 |
+
<show_in_store>1</show_in_store>
|
178 |
+
<comment><![CDATA[Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Footprints charges are added to all orders.]]></comment>
|
179 |
+
</status>
|
180 |
+
</fields>
|
181 |
+
</footprints>
|
182 |
+
<pricing translate="label">
|
183 |
+
<label>Pricing</label>
|
184 |
+
<frontend_type>text</frontend_type>
|
185 |
+
<sort_order>60</sort_order>
|
186 |
+
<show_in_default>1</show_in_default>
|
187 |
+
<show_in_website>1</show_in_website>
|
188 |
+
<show_in_store>1</show_in_store>
|
189 |
+
<fields>
|
190 |
+
<error_process translate="label">
|
191 |
+
<label>Error from Temando processing</label>
|
192 |
+
<frontend_type>select</frontend_type>
|
193 |
+
<source_model>temando/system_config_source_errorprocess</source_model>
|
194 |
+
<sort_order>5</sort_order>
|
195 |
+
<show_in_default>1</show_in_default>
|
196 |
+
<show_in_website>1</show_in_website>
|
197 |
+
<show_in_store>1</show_in_store>
|
198 |
+
<comment><![CDATA[Show error message to customer from Temando or show flat rate shipping method.]]></comment>
|
199 |
+
</error_process>
|
200 |
+
<method translate="label">
|
201 |
+
<label>Pricing Method</label>
|
202 |
+
<frontend_type>select</frontend_type>
|
203 |
+
<source_model>temando/system_config_source_pricing</source_model>
|
204 |
+
<sort_order>10</sort_order>
|
205 |
+
<show_in_default>1</show_in_default>
|
206 |
+
<show_in_website>1</show_in_website>
|
207 |
+
<show_in_store>1</show_in_store>
|
208 |
+
<comment><![CDATA[<strong>Free Shipping</strong> - no charge to customer.<br/><strong>Fixed Price / Flat Rate</strong> - customer always pays the amount set in "Shipping Price" below.<br/><strong>Dynamic Pricing</strong><br/>- <strong>All</strong>: All quotes from carriers in "allowed carriers" above are shown for the customer to choose from.<br/>- <strong>Cheapest</strong>: Only the cheapest quote is shown.<br/>- <strong>Fastest</strong>: Only the fastest quote is shown.<br/>- <strong>Cheapest and Fastest</strong>: The customer can choose between the cheapest or the fastest quote.]]></comment>
|
209 |
+
</method>
|
210 |
+
<shipping_fee translate="label">
|
211 |
+
<label>Shipping Price</label>
|
212 |
+
<frontend_type>text</frontend_type>
|
213 |
+
<sort_order>20</sort_order>
|
214 |
+
<show_in_default>1</show_in_default>
|
215 |
+
<show_in_website>1</show_in_website>
|
216 |
+
<show_in_store>1</show_in_store>
|
217 |
+
</shipping_fee>
|
218 |
+
<handling_fee translate="label">
|
219 |
+
<label>Handling Fee / Markup</label>
|
220 |
+
<frontend_type>text</frontend_type>
|
221 |
+
<sort_order>30</sort_order>
|
222 |
+
<show_in_default>1</show_in_default>
|
223 |
+
<show_in_website>1</show_in_website>
|
224 |
+
<show_in_store>1</show_in_store>
|
225 |
+
</handling_fee>
|
226 |
+
<handling_type translate="label">
|
227 |
+
<label>Handling Fee Calculation</label>
|
228 |
+
<frontend_type>select</frontend_type>
|
229 |
+
<source_model>shipping/source_handlingType</source_model>
|
230 |
+
<sort_order>40</sort_order>
|
231 |
+
<show_in_default>1</show_in_default>
|
232 |
+
<show_in_website>1</show_in_website>
|
233 |
+
<show_in_store>0</show_in_store>
|
234 |
+
</handling_type>
|
235 |
+
<rule_button translate="label">
|
236 |
+
<label></label>
|
237 |
+
<frontend_model>temando/adminhtml_system_config_form_button_rule</frontend_model>
|
238 |
+
<frontend_type>button</frontend_type>
|
239 |
+
<sort_order>50</sort_order>
|
240 |
+
<show_in_default>1</show_in_default>
|
241 |
+
<show_in_website>1</show_in_website>
|
242 |
+
<show_in_store>1</show_in_store>
|
243 |
+
</rule_button>
|
244 |
+
</fields>
|
245 |
+
</pricing>
|
246 |
+
<units translate="label">
|
247 |
+
<label>Units</label>
|
248 |
+
<frontend_type>text</frontend_type>
|
249 |
+
<sort_order>60</sort_order>
|
250 |
+
<show_in_default>1</show_in_default>
|
251 |
+
<show_in_website>1</show_in_website>
|
252 |
+
<show_in_store>1</show_in_store>
|
253 |
+
<fields>
|
254 |
+
<measure translate="label">
|
255 |
+
<label>Measure Unit</label>
|
256 |
+
<frontend_type>select</frontend_type>
|
257 |
+
<source_model>temando/system_config_source_unit_measure</source_model>
|
258 |
+
<sort_order>10</sort_order>
|
259 |
+
<show_in_default>1</show_in_default>
|
260 |
+
<show_in_website>1</show_in_website>
|
261 |
+
<show_in_store>1</show_in_store>
|
262 |
+
<comment><![CDATA[The units used for product measurements]]></comment>
|
263 |
+
</measure>
|
264 |
+
<weight translate="label">
|
265 |
+
<label>Weight Unit</label>
|
266 |
+
<frontend_type>select</frontend_type>
|
267 |
+
<source_model>temando/system_config_source_unit_weight</source_model>
|
268 |
+
<sort_order>20</sort_order>
|
269 |
+
<show_in_default>1</show_in_default>
|
270 |
+
<show_in_website>1</show_in_website>
|
271 |
+
<show_in_store>1</show_in_store>
|
272 |
+
<comment><![CDATA[The units used for product weights]]></comment>
|
273 |
+
</weight>
|
274 |
+
</fields>
|
275 |
+
</units>
|
276 |
+
<defaults translate="label">
|
277 |
+
<label>Packaging</label>
|
278 |
+
<frontend_type>text</frontend_type>
|
279 |
+
<sort_order>70</sort_order>
|
280 |
+
<show_in_default>1</show_in_default>
|
281 |
+
<show_in_website>1</show_in_website>
|
282 |
+
<show_in_store>1</show_in_store>
|
283 |
+
<comment><![CDATA[Default values will be used for all products that do not have product specific dimensions & packaging information configured.]]></comment>
|
284 |
+
<fields>
|
285 |
+
<packaging translate="label">
|
286 |
+
<label>Packaging</label>
|
287 |
+
<frontend_type>select</frontend_type>
|
288 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
289 |
+
<source_model>temando/system_config_source_shipment_packaging</source_model>
|
290 |
+
<sort_order>10</sort_order>
|
291 |
+
<show_in_default>1</show_in_default>
|
292 |
+
<show_in_website>1</show_in_website>
|
293 |
+
<show_in_store>1</show_in_store>
|
294 |
+
</packaging>
|
295 |
+
<fragile translate="label">
|
296 |
+
<label>Fragile</label>
|
297 |
+
<frontend_type>select</frontend_type>
|
298 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
299 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
300 |
+
<sort_order>20</sort_order>
|
301 |
+
<show_in_default>1</show_in_default>
|
302 |
+
<show_in_website>1</show_in_website>
|
303 |
+
<show_in_store>1</show_in_store>
|
304 |
+
</fragile>
|
305 |
+
<length translate="label">
|
306 |
+
<label>Length</label>
|
307 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
308 |
+
<frontend_type>text</frontend_type>
|
309 |
+
<sort_order>30</sort_order>
|
310 |
+
<show_in_default>1</show_in_default>
|
311 |
+
<show_in_website>1</show_in_website>
|
312 |
+
<show_in_store>1</show_in_store>
|
313 |
+
</length>
|
314 |
+
<width translate="label">
|
315 |
+
<label>Width</label>
|
316 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
317 |
+
<frontend_type>text</frontend_type>
|
318 |
+
<sort_order>40</sort_order>
|
319 |
+
<show_in_default>1</show_in_default>
|
320 |
+
<show_in_website>1</show_in_website>
|
321 |
+
<show_in_store>1</show_in_store>
|
322 |
+
</width>
|
323 |
+
<height translate="label">
|
324 |
+
<label>Height</label>
|
325 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
326 |
+
<frontend_type>text</frontend_type>
|
327 |
+
<sort_order>50</sort_order>
|
328 |
+
<show_in_default>1</show_in_default>
|
329 |
+
<show_in_website>1</show_in_website>
|
330 |
+
<show_in_store>1</show_in_store>
|
331 |
+
<comment><![CDATA[If unknown use 10x10x10]]></comment>
|
332 |
+
</height>
|
333 |
+
</fields>
|
334 |
+
</defaults>
|
335 |
+
<origin translate="label">
|
336 |
+
<label>Stock origin (warehouse) details</label>
|
337 |
+
<frontend_type>text</frontend_type>
|
338 |
+
<sort_order>80</sort_order>
|
339 |
+
<show_in_default>1</show_in_default>
|
340 |
+
<show_in_website>0</show_in_website>
|
341 |
+
<show_in_store>0</show_in_store>
|
342 |
+
<comment><![CDATA[Please enter the details of your pick-up location for all products.]]></comment>
|
343 |
+
<fields>
|
344 |
+
<contact_name translate="label">
|
345 |
+
<label>Contact Name</label>
|
346 |
+
<frontend_type>text</frontend_type>
|
347 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
348 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
349 |
+
<sort_order>10</sort_order>
|
350 |
+
<show_in_default>1</show_in_default>
|
351 |
+
<show_in_website>0</show_in_website>
|
352 |
+
<show_in_store>0</show_in_store>
|
353 |
+
</contact_name>
|
354 |
+
<company_name translate="label">
|
355 |
+
<label>Company Name</label>
|
356 |
+
<frontend_type>text</frontend_type>
|
357 |
+
<sort_order>20</sort_order>
|
358 |
+
<show_in_default>1</show_in_default>
|
359 |
+
<show_in_website>0</show_in_website>
|
360 |
+
<show_in_store>0</show_in_store>
|
361 |
+
</company_name>
|
362 |
+
<street translate="label">
|
363 |
+
<label>Street</label>
|
364 |
+
<frontend_type>text</frontend_type>
|
365 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
366 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
367 |
+
<sort_order>30</sort_order>
|
368 |
+
<show_in_default>1</show_in_default>
|
369 |
+
<show_in_website>0</show_in_website>
|
370 |
+
<show_in_store>0</show_in_store>
|
371 |
+
</street>
|
372 |
+
<city translate="label">
|
373 |
+
<label>City</label>
|
374 |
+
<frontend_type>text</frontend_type>
|
375 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
376 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
377 |
+
<sort_order>40</sort_order>
|
378 |
+
<show_in_default>1</show_in_default>
|
379 |
+
<show_in_website>0</show_in_website>
|
380 |
+
<show_in_store>0</show_in_store>
|
381 |
+
</city>
|
382 |
+
<postcode translate="label">
|
383 |
+
<label>Postcode</label>
|
384 |
+
<frontend_type>text</frontend_type>
|
385 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
386 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
387 |
+
<sort_order>50</sort_order>
|
388 |
+
<show_in_default>1</show_in_default>
|
389 |
+
<show_in_website>1</show_in_website>
|
390 |
+
<show_in_store>0</show_in_store>
|
391 |
+
</postcode>
|
392 |
+
<country translate="label">
|
393 |
+
<label>Country</label>
|
394 |
+
<frontend_type>select</frontend_type>
|
395 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
396 |
+
<frontend_class>temando-countries</frontend_class>
|
397 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
398 |
+
<sort_order>60</sort_order>
|
399 |
+
<show_in_default>1</show_in_default>
|
400 |
+
<show_in_website>0</show_in_website>
|
401 |
+
<show_in_store>0</show_in_store>
|
402 |
+
</country>
|
403 |
+
<region translate="label">
|
404 |
+
<label>Region/State</label>
|
405 |
+
<frontend_type>text</frontend_type>
|
406 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
407 |
+
<sort_order>70</sort_order>
|
408 |
+
<show_in_default>1</show_in_default>
|
409 |
+
<show_in_website>0</show_in_website>
|
410 |
+
<show_in_store>0</show_in_store>
|
411 |
+
</region>
|
412 |
+
<type translate="label">
|
413 |
+
<label>Type</label>
|
414 |
+
<frontend_type>select</frontend_type>
|
415 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
416 |
+
<backend_model>temando/system_config_backend_form_field_required_businessresidential</backend_model>
|
417 |
+
<source_model>temando/system_config_source_origin_type</source_model>
|
418 |
+
<sort_order>80</sort_order>
|
419 |
+
<show_in_default>1</show_in_default>
|
420 |
+
<show_in_website>0</show_in_website>
|
421 |
+
<show_in_store>0</show_in_store>
|
422 |
+
</type>
|
423 |
+
<phone1 translate="label">
|
424 |
+
<label>Phone 1</label>
|
425 |
+
<frontend_type>text</frontend_type>
|
426 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
427 |
+
<backend_model>temando/system_config_backend_form_field_required_text</backend_model>
|
428 |
+
<sort_order>90</sort_order>
|
429 |
+
<show_in_default>1</show_in_default>
|
430 |
+
<show_in_website>0</show_in_website>
|
431 |
+
<show_in_store>0</show_in_store>
|
432 |
+
</phone1>
|
433 |
+
<phone2 translate="label">
|
434 |
+
<label>Phone 2</label>
|
435 |
+
<frontend_type>text</frontend_type>
|
436 |
+
<sort_order>100</sort_order>
|
437 |
+
<show_in_default>1</show_in_default>
|
438 |
+
<show_in_website>0</show_in_website>
|
439 |
+
<show_in_store>0</show_in_store>
|
440 |
+
</phone2>
|
441 |
+
<fax translate="label">
|
442 |
+
<label>Fax</label>
|
443 |
+
<frontend_type>text</frontend_type>
|
444 |
+
<sort_order>110</sort_order>
|
445 |
+
<show_in_default>1</show_in_default>
|
446 |
+
<show_in_website>0</show_in_website>
|
447 |
+
<show_in_store>0</show_in_store>
|
448 |
+
</fax>
|
449 |
+
<email translate="label">
|
450 |
+
<label>Email</label>
|
451 |
+
<frontend_type>text</frontend_type>
|
452 |
+
<frontend_model>temando/adminhtml_system_config_form_field_required</frontend_model>
|
453 |
+
<backend_model>temando/system_config_backend_form_field_required_location</backend_model>
|
454 |
+
<sort_order>120</sort_order>
|
455 |
+
<show_in_default>1</show_in_default>
|
456 |
+
<show_in_website>0</show_in_website>
|
457 |
+
<show_in_store>0</show_in_store>
|
458 |
+
</email>
|
459 |
+
<loading_facilities translate="label">
|
460 |
+
<label>Loading Facilities</label>
|
461 |
+
<frontend_type>select</frontend_type>
|
462 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
463 |
+
<sort_order>130</sort_order>
|
464 |
+
<show_in_default>1</show_in_default>
|
465 |
+
<show_in_website>0</show_in_website>
|
466 |
+
<show_in_store>0</show_in_store>
|
467 |
+
<comment><![CDATA[Does the warehouse have loading facilities?]]></comment>
|
468 |
+
</loading_facilities>
|
469 |
+
<forklift translate="label">
|
470 |
+
<label>Forklift</label>
|
471 |
+
<frontend_type>select</frontend_type>
|
472 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
473 |
+
<sort_order>140</sort_order>
|
474 |
+
<show_in_default>1</show_in_default>
|
475 |
+
<show_in_website>0</show_in_website>
|
476 |
+
<show_in_store>0</show_in_store>
|
477 |
+
<comment><![CDATA[Does the warehouse have a forklift?]]></comment>
|
478 |
+
</forklift>
|
479 |
+
<dock translate="label">
|
480 |
+
<label>Dock</label>
|
481 |
+
<frontend_type>select</frontend_type>
|
482 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
483 |
+
<sort_order>150</sort_order>
|
484 |
+
<show_in_default>1</show_in_default>
|
485 |
+
<show_in_website>0</show_in_website>
|
486 |
+
<show_in_store>0</show_in_store>
|
487 |
+
<comment><![CDATA[Does the warehouse have a dock?]]></comment>
|
488 |
+
</dock>
|
489 |
+
<limited_access translate="label">
|
490 |
+
<label>Limited Access</label>
|
491 |
+
<frontend_type>select</frontend_type>
|
492 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
493 |
+
<sort_order>160</sort_order>
|
494 |
+
<show_in_default>1</show_in_default>
|
495 |
+
<show_in_website>0</show_in_website>
|
496 |
+
<show_in_store>0</show_in_store>
|
497 |
+
<comment><![CDATA[Does the warehouse have limited access?]]></comment>
|
498 |
+
</limited_access>
|
499 |
+
<pobox translate="label">
|
500 |
+
<label>PO Box</label>
|
501 |
+
<frontend_type>select</frontend_type>
|
502 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
503 |
+
<sort_order>160</sort_order>
|
504 |
+
<show_in_default>1</show_in_default>
|
505 |
+
<show_in_website>0</show_in_website>
|
506 |
+
<show_in_store>0</show_in_store>
|
507 |
+
<comment><![CDATA[Is the address of this warehouse a postal box?]]></comment>
|
508 |
+
</pobox>
|
509 |
+
<warehouse_button translate="label">
|
510 |
+
<label></label>
|
511 |
+
<frontend_model>temando/adminhtml_system_config_form_button_warehouse</frontend_model>
|
512 |
+
<frontend_type>button</frontend_type>
|
513 |
+
<sort_order>170</sort_order>
|
514 |
+
<show_in_default>1</show_in_default>
|
515 |
+
<show_in_website>1</show_in_website>
|
516 |
+
<show_in_store>1</show_in_store>
|
517 |
+
</warehouse_button>
|
518 |
+
</fields>
|
519 |
+
</origin>
|
520 |
+
</groups>
|
521 |
+
</temando>
|
522 |
+
<carriers>
|
523 |
+
<groups>
|
524 |
+
<temando translate="label">
|
525 |
+
<label>Temando</label>
|
526 |
+
<frontend_type>text</frontend_type>
|
527 |
+
<sort_order>99999</sort_order>
|
528 |
+
<show_in_default>1</show_in_default>
|
529 |
+
<show_in_website>1</show_in_website>
|
530 |
+
<show_in_store>1</show_in_store>
|
531 |
+
<fields>
|
532 |
+
<active translate="label">
|
533 |
+
<label>Enabled</label>
|
534 |
+
<frontend_type>select</frontend_type>
|
535 |
+
<config_path>carriers/temando/active</config_path>
|
536 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
537 |
+
<sort_order>10</sort_order>
|
538 |
+
<show_in_default>1</show_in_default>
|
539 |
+
<show_in_website>1</show_in_website>
|
540 |
+
<show_in_store>1</show_in_store>
|
541 |
+
</active>
|
542 |
+
<sallowspecific translate="label">
|
543 |
+
<label>Ship to applicable countries</label>
|
544 |
+
<frontend_type>select</frontend_type>
|
545 |
+
<config_path>carriers/temando/sallowspecific</config_path>
|
546 |
+
<sort_order>20</sort_order>
|
547 |
+
<frontend_class>shipping-applicable-country</frontend_class>
|
548 |
+
<source_model>adminhtml/system_config_source_shipping_allspecificcountries</source_model>
|
549 |
+
<show_in_default>1</show_in_default>
|
550 |
+
<show_in_website>1</show_in_website>
|
551 |
+
<show_in_store>1</show_in_store>
|
552 |
+
</sallowspecific>
|
553 |
+
<specificcountry translate="label">
|
554 |
+
<label>Ship to specific countries</label>
|
555 |
+
<frontend_type>multiselect</frontend_type>
|
556 |
+
<sort_order>30</sort_order>
|
557 |
+
<source_model>adminhtml/system_config_source_country</source_model>
|
558 |
+
<show_in_default>1</show_in_default>
|
559 |
+
<show_in_website>1</show_in_website>
|
560 |
+
<show_in_store>1</show_in_store>
|
561 |
+
</specificcountry>
|
562 |
+
<showmethod translate="label">
|
563 |
+
<label>Show method if not applicable</label>
|
564 |
+
<frontend_type>select</frontend_type>
|
565 |
+
<sort_order>40</sort_order>
|
566 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
567 |
+
<show_in_default>1</show_in_default>
|
568 |
+
<show_in_website>1</show_in_website>
|
569 |
+
<show_in_store>1</show_in_store>
|
570 |
+
</showmethod>
|
571 |
+
<free_shipping_enable translate="label">
|
572 |
+
<label>Free Shipping with Minimum Order Amount</label>
|
573 |
+
<frontend_type>select</frontend_type>
|
574 |
+
<source_model>adminhtml/system_config_source_enabledisable</source_model>
|
575 |
+
<sort_order>50</sort_order>
|
576 |
+
<show_in_default>1</show_in_default>
|
577 |
+
<show_in_website>1</show_in_website>
|
578 |
+
<show_in_store>1</show_in_store>
|
579 |
+
</free_shipping_enable>
|
580 |
+
<free_shipping_subtotal translate="label">
|
581 |
+
<label>Minimum Order Amount for Free Shipping</label>
|
582 |
+
<frontend_type>text</frontend_type>
|
583 |
+
<sort_order>60</sort_order>
|
584 |
+
<show_in_default>1</show_in_default>
|
585 |
+
<show_in_website>1</show_in_website>
|
586 |
+
<show_in_store>1</show_in_store>
|
587 |
+
</free_shipping_subtotal>
|
588 |
+
<specificerrmsg translate="label">
|
589 |
+
<label>Displayed Error Message</label>
|
590 |
+
<frontend_type>textarea</frontend_type>
|
591 |
+
<config_path>carriers/temando/specificerrmsg</config_path>
|
592 |
+
<sort_order>70</sort_order>
|
593 |
+
<show_in_default>1</show_in_default>
|
594 |
+
<show_in_website>1</show_in_website>
|
595 |
+
<show_in_store>1</show_in_store>
|
596 |
+
</specificerrmsg>
|
597 |
+
<allowed_methods translate="label">
|
598 |
+
<label>Allowed Carriers</label>
|
599 |
+
<frontend_type>multiselect</frontend_type>
|
600 |
+
<config_path>carriers/temando/allowed_methods</config_path>
|
601 |
+
<sort_order>80</sort_order>
|
602 |
+
<source_model>temando/shipping_carrier_temando_source_method</source_model>
|
603 |
+
<show_in_default>1</show_in_default>
|
604 |
+
<show_in_website>1</show_in_website>
|
605 |
+
<show_in_store>1</show_in_store>
|
606 |
+
<comment><![CDATA[Use CTRL + click to select multiple carriers<br/>A higher plan is required to load eParcel Australia Post rates. Please contact <a href="mailto:sales@temando.com">sales@temando.com</a>.]]></comment>
|
607 |
+
</allowed_methods>
|
608 |
+
</fields>
|
609 |
+
</temando>
|
610 |
+
</groups>
|
611 |
+
</carriers>
|
612 |
+
</sections>
|
613 |
+
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/layout/temando.xml
CHANGED
@@ -1,84 +1,84 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layout>
|
3 |
-
|
4 |
-
<default>
|
5 |
-
<reference name="head">
|
6 |
-
<action method="addJs">
|
7 |
-
<script>temando/menu.js</script>
|
8 |
-
</action>
|
9 |
-
</reference>
|
10 |
-
</default>
|
11 |
-
|
12 |
-
<default>
|
13 |
-
<reference name="before_body_end">
|
14 |
-
<block type='core/template' name="tmdmenu" template='temando/temando/menu.phtml' />
|
15 |
-
</reference>
|
16 |
-
</default>
|
17 |
-
|
18 |
-
<adminhtml_system_config_edit>
|
19 |
-
<reference name="head">
|
20 |
-
<action method="addItem">
|
21 |
-
<type>skin_css</type>
|
22 |
-
<name>temando/styles.css</name>
|
23 |
-
</action>
|
24 |
-
<action method="addJs">
|
25 |
-
<script>temando/autocomplete.js</script>
|
26 |
-
</action>
|
27 |
-
<action method="addJs">
|
28 |
-
<script>temando/avs.js</script>
|
29 |
-
</action>
|
30 |
-
<block type="adminhtml/template" template="temando/temando/region.phtml" name="temando_region" output="toHtml" />
|
31 |
-
<block type="adminhtml/template" template="temando/temando/origin-avs.phtml" name="temando_origin_avs" output="toHtml" />
|
32 |
-
</reference>
|
33 |
-
</adminhtml_system_config_edit>
|
34 |
-
|
35 |
-
<temando_adminhtml_shipment_index>
|
36 |
-
<reference name="head">
|
37 |
-
<action method="addItem">
|
38 |
-
<type>skin_css</type>
|
39 |
-
<name>temando/styles.css</name>
|
40 |
-
</action>
|
41 |
-
</reference>
|
42 |
-
<reference name="content">
|
43 |
-
<block type="temando/adminhtml_shipment" name="temando_shipment">
|
44 |
-
<block type="temando/adminhtml_shipment_grid" name="temando_shipment_grid" />
|
45 |
-
</block>
|
46 |
-
</reference>
|
47 |
-
</temando_adminhtml_shipment_index>
|
48 |
-
|
49 |
-
<temando_adminhtml_shipment_edit>
|
50 |
-
<reference name="head">
|
51 |
-
<block type="adminhtml/template" template="temando/temando/region.phtml" name="temando_region" output="toHtml" />
|
52 |
-
<action method="addItem">
|
53 |
-
<type>skin_css</type>
|
54 |
-
<name>temando/styles.css</name>
|
55 |
-
</action>
|
56 |
-
<action method="addJs">
|
57 |
-
<script>temando/autocomplete.js</script>
|
58 |
-
</action>
|
59 |
-
<action method="addJs">
|
60 |
-
<script>temando/avs.js</script>
|
61 |
-
</action>
|
62 |
-
</reference>
|
63 |
-
<reference name="content">
|
64 |
-
<block type="temando/adminhtml_shipment_edit" name="temando_shipment_edit" />
|
65 |
-
</reference>
|
66 |
-
<reference name="left">
|
67 |
-
<block type="temando/adminhtml_shipment_edit_tabs" name="temando_shipment_edit_tabs">
|
68 |
-
<action method="addTab">
|
69 |
-
<name>temando_shipment_edit_tab_form</name>
|
70 |
-
<block>temando/adminhtml_shipment_edit_tab_form</block>
|
71 |
-
</action>
|
72 |
-
</block>
|
73 |
-
</reference>
|
74 |
-
</temando_adminhtml_shipment_edit>
|
75 |
-
|
76 |
-
<temando_adminhtml_manifest_index>
|
77 |
-
<reference name="content">
|
78 |
-
<block type="temando/adminhtml_manifest" template="temando/temando/manifest.phtml" name="temando_manifest">
|
79 |
-
<block type="temando/adminhtml_manifest_filter_form" name="grid.filter.form" />
|
80 |
-
</block>
|
81 |
-
</reference>
|
82 |
-
</temando_adminhtml_manifest_index>
|
83 |
-
|
84 |
-
</layout>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<layout>
|
3 |
+
|
4 |
+
<default>
|
5 |
+
<reference name="head">
|
6 |
+
<action method="addJs">
|
7 |
+
<script>temando/menu.js</script>
|
8 |
+
</action>
|
9 |
+
</reference>
|
10 |
+
</default>
|
11 |
+
|
12 |
+
<default>
|
13 |
+
<reference name="before_body_end">
|
14 |
+
<block type='core/template' name="tmdmenu" template='temando/temando/menu.phtml' />
|
15 |
+
</reference>
|
16 |
+
</default>
|
17 |
+
|
18 |
+
<adminhtml_system_config_edit>
|
19 |
+
<reference name="head">
|
20 |
+
<action method="addItem">
|
21 |
+
<type>skin_css</type>
|
22 |
+
<name>temando/styles.css</name>
|
23 |
+
</action>
|
24 |
+
<action method="addJs">
|
25 |
+
<script>temando/autocomplete.js</script>
|
26 |
+
</action>
|
27 |
+
<action method="addJs">
|
28 |
+
<script>temando/avs.js</script>
|
29 |
+
</action>
|
30 |
+
<block type="adminhtml/template" template="temando/temando/region.phtml" name="temando_region" output="toHtml" />
|
31 |
+
<block type="adminhtml/template" template="temando/temando/origin-avs.phtml" name="temando_origin_avs" output="toHtml" />
|
32 |
+
</reference>
|
33 |
+
</adminhtml_system_config_edit>
|
34 |
+
|
35 |
+
<temando_adminhtml_shipment_index>
|
36 |
+
<reference name="head">
|
37 |
+
<action method="addItem">
|
38 |
+
<type>skin_css</type>
|
39 |
+
<name>temando/styles.css</name>
|
40 |
+
</action>
|
41 |
+
</reference>
|
42 |
+
<reference name="content">
|
43 |
+
<block type="temando/adminhtml_shipment" name="temando_shipment">
|
44 |
+
<block type="temando/adminhtml_shipment_grid" name="temando_shipment_grid" />
|
45 |
+
</block>
|
46 |
+
</reference>
|
47 |
+
</temando_adminhtml_shipment_index>
|
48 |
+
|
49 |
+
<temando_adminhtml_shipment_edit>
|
50 |
+
<reference name="head">
|
51 |
+
<block type="adminhtml/template" template="temando/temando/region.phtml" name="temando_region" output="toHtml" />
|
52 |
+
<action method="addItem">
|
53 |
+
<type>skin_css</type>
|
54 |
+
<name>temando/styles.css</name>
|
55 |
+
</action>
|
56 |
+
<action method="addJs">
|
57 |
+
<script>temando/autocomplete.js</script>
|
58 |
+
</action>
|
59 |
+
<action method="addJs">
|
60 |
+
<script>temando/avs.js</script>
|
61 |
+
</action>
|
62 |
+
</reference>
|
63 |
+
<reference name="content">
|
64 |
+
<block type="temando/adminhtml_shipment_edit" name="temando_shipment_edit" />
|
65 |
+
</reference>
|
66 |
+
<reference name="left">
|
67 |
+
<block type="temando/adminhtml_shipment_edit_tabs" name="temando_shipment_edit_tabs">
|
68 |
+
<action method="addTab">
|
69 |
+
<name>temando_shipment_edit_tab_form</name>
|
70 |
+
<block>temando/adminhtml_shipment_edit_tab_form</block>
|
71 |
+
</action>
|
72 |
+
</block>
|
73 |
+
</reference>
|
74 |
+
</temando_adminhtml_shipment_edit>
|
75 |
+
|
76 |
+
<temando_adminhtml_manifest_index>
|
77 |
+
<reference name="content">
|
78 |
+
<block type="temando/adminhtml_manifest" template="temando/temando/manifest.phtml" name="temando_manifest">
|
79 |
+
<block type="temando/adminhtml_manifest_filter_form" name="grid.filter.form" />
|
80 |
+
</block>
|
81 |
+
</reference>
|
82 |
+
</temando_adminhtml_manifest_index>
|
83 |
+
|
84 |
+
</layout>
|
app/design/adminhtml/default/default/template/temando/temando/manifest.phtml
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
-
<div class="content-header">
|
2 |
-
<table cellspacing="0">
|
3 |
-
<tr>
|
4 |
-
<td style="<?php echo $this->getHeaderWidth() ?>"><?php echo $this->getHeaderHtml() ?></td>
|
5 |
-
<td class="form-buttons"><?php echo $this->getButtonsHtml() ?></td>
|
6 |
-
</tr>
|
7 |
-
</table>
|
8 |
-
</div>
|
9 |
-
<div>
|
10 |
-
<?php echo $this->getChildHtml('grid.filter.form') ?>
|
11 |
-
</div>
|
12 |
-
<div>
|
13 |
-
<?php echo $this->getGridHtml() ?>
|
14 |
-
</div>
|
15 |
-
<script type="text/javascript">
|
16 |
-
function addFormSubmit() {
|
17 |
-
var filters = $$('#add_form input', '#add_form select');
|
18 |
-
var elements = [];
|
19 |
-
for(var i in filters){
|
20 |
-
if(filters[i].value && filters[i].value.length && !filters[i].disabled) elements.push(filters[i]);
|
21 |
-
}
|
22 |
-
var validator = new Validation('add_form');
|
23 |
-
if (validator.validate()) {
|
24 |
-
$('add_form').submit();
|
25 |
-
}
|
26 |
-
}
|
27 |
</script>
|
1 |
+
<div class="content-header">
|
2 |
+
<table cellspacing="0">
|
3 |
+
<tr>
|
4 |
+
<td style="<?php echo $this->getHeaderWidth() ?>"><?php echo $this->getHeaderHtml() ?></td>
|
5 |
+
<td class="form-buttons"><?php echo $this->getButtonsHtml() ?></td>
|
6 |
+
</tr>
|
7 |
+
</table>
|
8 |
+
</div>
|
9 |
+
<div>
|
10 |
+
<?php echo $this->getChildHtml('grid.filter.form') ?>
|
11 |
+
</div>
|
12 |
+
<div>
|
13 |
+
<?php echo $this->getGridHtml() ?>
|
14 |
+
</div>
|
15 |
+
<script type="text/javascript">
|
16 |
+
function addFormSubmit() {
|
17 |
+
var filters = $$('#add_form input', '#add_form select');
|
18 |
+
var elements = [];
|
19 |
+
for(var i in filters){
|
20 |
+
if(filters[i].value && filters[i].value.length && !filters[i].disabled) elements.push(filters[i]);
|
21 |
+
}
|
22 |
+
var validator = new Validation('add_form');
|
23 |
+
if (validator.validate()) {
|
24 |
+
$('add_form').submit();
|
25 |
+
}
|
26 |
+
}
|
27 |
</script>
|
app/design/adminhtml/default/default/template/temando/temando/menu.phtml
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
<script type="text/javascript">
|
2 |
-
//<![CDATA[
|
3 |
-
|
4 |
-
document.observe("dom:loaded", function() {
|
5 |
-
temandoMenu();
|
6 |
-
});
|
7 |
-
//]]>
|
8 |
</script>
|
1 |
+
<script type="text/javascript">
|
2 |
+
//<![CDATA[
|
3 |
+
|
4 |
+
document.observe("dom:loaded", function() {
|
5 |
+
temandoMenu();
|
6 |
+
});
|
7 |
+
//]]>
|
8 |
</script>
|
app/design/adminhtml/default/default/template/temando/temando/origin-avs.phtml
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
<script type="text/javascript">
|
2 |
-
//<![CDATA[
|
3 |
-
var address_validation_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
4 |
-
var originAvs = new Avs(
|
5 |
-
address_validation_url,
|
6 |
-
'temando_origin_postcode',
|
7 |
-
'temando_origin_city',
|
8 |
-
'temando_origin_country'
|
9 |
-
);
|
10 |
-
//]]
|
11 |
-
</script>
|
1 |
+
<script type="text/javascript">
|
2 |
+
//<![CDATA[
|
3 |
+
var address_validation_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
4 |
+
var originAvs = new Avs(
|
5 |
+
address_validation_url,
|
6 |
+
'temando_origin_postcode',
|
7 |
+
'temando_origin_city',
|
8 |
+
'temando_origin_country'
|
9 |
+
);
|
10 |
+
//]]
|
11 |
+
</script>
|
app/design/adminhtml/default/default/template/temando/temando/region.phtml
CHANGED
@@ -1,123 +1,123 @@
|
|
1 |
-
<script type="text/javascript">
|
2 |
-
//<![CDATA[
|
3 |
-
|
4 |
-
var temandoOrigin = Class.create();
|
5 |
-
temandoOrigin.prototype = {
|
6 |
-
initialize : function()
|
7 |
-
{
|
8 |
-
this.reload = false;
|
9 |
-
this.loader = new varienLoader(true);
|
10 |
-
this.regionsUrl = "<?php echo Mage::helper('adminhtml')->getUrl('temando/adminhtml_json/countryRegion') ?>";
|
11 |
-
this.arrRegNames = ['region','state','destination_region'];
|
12 |
-
|
13 |
-
this.bindCountryRegionRelation();
|
14 |
-
},
|
15 |
-
bindCountryRegionRelation : function(parentId)
|
16 |
-
{
|
17 |
-
if(parentId) {
|
18 |
-
// todo: fix bug in IE
|
19 |
-
var countryElements = $$('#'+parentId+' .temando-countries');
|
20 |
-
} else {
|
21 |
-
var countryElements = $$('.temando-countries');
|
22 |
-
}
|
23 |
-
for(var i=0; i<countryElements.size(); i++) {
|
24 |
-
Event.observe(countryElements[i], 'change', this.reloadRegionField.bind(this));
|
25 |
-
this.initRegionField(countryElements[i]);
|
26 |
-
if ($(countryElements[i].id+'_inherit')) {
|
27 |
-
Event.observe($(countryElements[i].id+'_inherit'), 'change', this.enableRegionZip.bind(this));
|
28 |
-
}
|
29 |
-
}
|
30 |
-
},
|
31 |
-
enableRegionZip : function(event)
|
32 |
-
{
|
33 |
-
this.reload = true;
|
34 |
-
var countryElement = Event.element(event);
|
35 |
-
if (countryElement && countryElement.id && !countryElement.checked) {
|
36 |
-
var regionElement = null;
|
37 |
-
for(var i = 0; i<this.arrRegNames.length; i++) {
|
38 |
-
regionElement = $(countryElement.id.replace(/country/, this.arrRegNames[i]));
|
39 |
-
if(regionElement !== null) break;
|
40 |
-
}
|
41 |
-
var zipElement = $(countryElement.id.replace(/country/, 'postcode'));
|
42 |
-
if(zipElement == null) {
|
43 |
-
zipElement = $(countryElement.id.replace(/country_id/, 'postcode'));
|
44 |
-
}
|
45 |
-
if (regionElement && regionElement.checked) {
|
46 |
-
regionElement.click();
|
47 |
-
}
|
48 |
-
if (zipElement && zipElement.checked) {
|
49 |
-
zipElement.click();
|
50 |
-
}
|
51 |
-
}
|
52 |
-
},
|
53 |
-
initRegionField : function(element)
|
54 |
-
{
|
55 |
-
var countryElement = element;
|
56 |
-
if (countryElement && countryElement.id) {
|
57 |
-
var regionElement = $(countryElement.id.replace(/country/, 'region'));
|
58 |
-
if(regionElement == null) {
|
59 |
-
regionElement = $(countryElement.id.replace(/country_id/, 'state'));
|
60 |
-
}
|
61 |
-
if (regionElement) {
|
62 |
-
this.regionElement = regionElement;
|
63 |
-
var url = this.regionsUrl+'parent/'+countryElement.value;
|
64 |
-
this.loader.load(url, {}, this.refreshRegionField.bind(this));
|
65 |
-
}
|
66 |
-
}
|
67 |
-
},
|
68 |
-
reloadRegionField : function(event)
|
69 |
-
{
|
70 |
-
this.reload = true;
|
71 |
-
var countryElement = Event.element(event);
|
72 |
-
if (countryElement && countryElement.id) {
|
73 |
-
var regionElement = null;
|
74 |
-
for(var i = 0; i<this.arrRegNames.length; i++) {
|
75 |
-
regionElement = $(countryElement.id.replace(/country/, this.arrRegNames[i]));
|
76 |
-
if(regionElement !== null) break;
|
77 |
-
}
|
78 |
-
if (regionElement) {
|
79 |
-
this.regionElement = regionElement;
|
80 |
-
var url = this.regionsUrl+'parent/'+countryElement.value;
|
81 |
-
this.loader.load(url, {}, this.refreshRegionField.bind(this));
|
82 |
-
}
|
83 |
-
}
|
84 |
-
},
|
85 |
-
refreshRegionField : function(serverResponse)
|
86 |
-
{
|
87 |
-
if (serverResponse) {
|
88 |
-
var data = eval('(' + serverResponse + ')');
|
89 |
-
var value = this.regionElement.value;
|
90 |
-
var disabled = this.regionElement.disabled;
|
91 |
-
if (data.length) {
|
92 |
-
var html = '<select name="'+this.regionElement.name+'" id="'+this.regionElement.id+'" class="select" title="'+this.regionElement.title+'"'+(disabled?" disabled":"")+'>';
|
93 |
-
for (var i in data) {
|
94 |
-
if(data[i].label) {
|
95 |
-
html+= '<option value="'+data[i].value+'"';
|
96 |
-
if(this.regionElement.value && (this.regionElement.value == data[i].value || this.regionElement.value == data[i].label)) {
|
97 |
-
html+= ' selected';
|
98 |
-
}
|
99 |
-
html+='>'+data[i].label+'<\/option>';
|
100 |
-
}
|
101 |
-
}
|
102 |
-
html+= '<\/select>';
|
103 |
-
|
104 |
-
var parentNode = this.regionElement.parentNode;
|
105 |
-
var regionElementId = this.regionElement.id;
|
106 |
-
parentNode.innerHTML = html;
|
107 |
-
this.regionElement = $(regionElementId);
|
108 |
-
} else if (this.reload) {
|
109 |
-
var html = '<input type="text" name="'+this.regionElement.name+'" id="'+this.regionElement.id+'" class="input-text" title="'+this.regionElement.title+'"'+(disabled?" disabled":"")+'>';
|
110 |
-
var parentNode = this.regionElement.parentNode;
|
111 |
-
var regionElementId = this.regionElement.id;
|
112 |
-
parentNode.innerHTML = html;
|
113 |
-
this.regionElement = $(regionElementId);
|
114 |
-
//this.regionElement.replace(html);
|
115 |
-
}
|
116 |
-
}
|
117 |
-
}
|
118 |
-
}
|
119 |
-
|
120 |
-
temandoAddress = new temandoOrigin();
|
121 |
-
|
122 |
-
//]]
|
123 |
-
</script>
|
1 |
+
<script type="text/javascript">
|
2 |
+
//<![CDATA[
|
3 |
+
|
4 |
+
var temandoOrigin = Class.create();
|
5 |
+
temandoOrigin.prototype = {
|
6 |
+
initialize : function()
|
7 |
+
{
|
8 |
+
this.reload = false;
|
9 |
+
this.loader = new varienLoader(true);
|
10 |
+
this.regionsUrl = "<?php echo Mage::helper('adminhtml')->getUrl('temando/adminhtml_json/countryRegion') ?>";
|
11 |
+
this.arrRegNames = ['region','state','destination_region'];
|
12 |
+
|
13 |
+
this.bindCountryRegionRelation();
|
14 |
+
},
|
15 |
+
bindCountryRegionRelation : function(parentId)
|
16 |
+
{
|
17 |
+
if(parentId) {
|
18 |
+
// todo: fix bug in IE
|
19 |
+
var countryElements = $$('#'+parentId+' .temando-countries');
|
20 |
+
} else {
|
21 |
+
var countryElements = $$('.temando-countries');
|
22 |
+
}
|
23 |
+
for(var i=0; i<countryElements.size(); i++) {
|
24 |
+
Event.observe(countryElements[i], 'change', this.reloadRegionField.bind(this));
|
25 |
+
this.initRegionField(countryElements[i]);
|
26 |
+
if ($(countryElements[i].id+'_inherit')) {
|
27 |
+
Event.observe($(countryElements[i].id+'_inherit'), 'change', this.enableRegionZip.bind(this));
|
28 |
+
}
|
29 |
+
}
|
30 |
+
},
|
31 |
+
enableRegionZip : function(event)
|
32 |
+
{
|
33 |
+
this.reload = true;
|
34 |
+
var countryElement = Event.element(event);
|
35 |
+
if (countryElement && countryElement.id && !countryElement.checked) {
|
36 |
+
var regionElement = null;
|
37 |
+
for(var i = 0; i<this.arrRegNames.length; i++) {
|
38 |
+
regionElement = $(countryElement.id.replace(/country/, this.arrRegNames[i]));
|
39 |
+
if(regionElement !== null) break;
|
40 |
+
}
|
41 |
+
var zipElement = $(countryElement.id.replace(/country/, 'postcode'));
|
42 |
+
if(zipElement == null) {
|
43 |
+
zipElement = $(countryElement.id.replace(/country_id/, 'postcode'));
|
44 |
+
}
|
45 |
+
if (regionElement && regionElement.checked) {
|
46 |
+
regionElement.click();
|
47 |
+
}
|
48 |
+
if (zipElement && zipElement.checked) {
|
49 |
+
zipElement.click();
|
50 |
+
}
|
51 |
+
}
|
52 |
+
},
|
53 |
+
initRegionField : function(element)
|
54 |
+
{
|
55 |
+
var countryElement = element;
|
56 |
+
if (countryElement && countryElement.id) {
|
57 |
+
var regionElement = $(countryElement.id.replace(/country/, 'region'));
|
58 |
+
if(regionElement == null) {
|
59 |
+
regionElement = $(countryElement.id.replace(/country_id/, 'state'));
|
60 |
+
}
|
61 |
+
if (regionElement) {
|
62 |
+
this.regionElement = regionElement;
|
63 |
+
var url = this.regionsUrl+'parent/'+countryElement.value;
|
64 |
+
this.loader.load(url, {}, this.refreshRegionField.bind(this));
|
65 |
+
}
|
66 |
+
}
|
67 |
+
},
|
68 |
+
reloadRegionField : function(event)
|
69 |
+
{
|
70 |
+
this.reload = true;
|
71 |
+
var countryElement = Event.element(event);
|
72 |
+
if (countryElement && countryElement.id) {
|
73 |
+
var regionElement = null;
|
74 |
+
for(var i = 0; i<this.arrRegNames.length; i++) {
|
75 |
+
regionElement = $(countryElement.id.replace(/country/, this.arrRegNames[i]));
|
76 |
+
if(regionElement !== null) break;
|
77 |
+
}
|
78 |
+
if (regionElement) {
|
79 |
+
this.regionElement = regionElement;
|
80 |
+
var url = this.regionsUrl+'parent/'+countryElement.value;
|
81 |
+
this.loader.load(url, {}, this.refreshRegionField.bind(this));
|
82 |
+
}
|
83 |
+
}
|
84 |
+
},
|
85 |
+
refreshRegionField : function(serverResponse)
|
86 |
+
{
|
87 |
+
if (serverResponse) {
|
88 |
+
var data = eval('(' + serverResponse + ')');
|
89 |
+
var value = this.regionElement.value;
|
90 |
+
var disabled = this.regionElement.disabled;
|
91 |
+
if (data.length) {
|
92 |
+
var html = '<select name="'+this.regionElement.name+'" id="'+this.regionElement.id+'" class="select" title="'+this.regionElement.title+'"'+(disabled?" disabled":"")+'>';
|
93 |
+
for (var i in data) {
|
94 |
+
if(data[i].label) {
|
95 |
+
html+= '<option value="'+data[i].value+'"';
|
96 |
+
if(this.regionElement.value && (this.regionElement.value == data[i].value || this.regionElement.value == data[i].label)) {
|
97 |
+
html+= ' selected';
|
98 |
+
}
|
99 |
+
html+='>'+data[i].label+'<\/option>';
|
100 |
+
}
|
101 |
+
}
|
102 |
+
html+= '<\/select>';
|
103 |
+
|
104 |
+
var parentNode = this.regionElement.parentNode;
|
105 |
+
var regionElementId = this.regionElement.id;
|
106 |
+
parentNode.innerHTML = html;
|
107 |
+
this.regionElement = $(regionElementId);
|
108 |
+
} else if (this.reload) {
|
109 |
+
var html = '<input type="text" name="'+this.regionElement.name+'" id="'+this.regionElement.id+'" class="input-text" title="'+this.regionElement.title+'"'+(disabled?" disabled":"")+'>';
|
110 |
+
var parentNode = this.regionElement.parentNode;
|
111 |
+
var regionElementId = this.regionElement.id;
|
112 |
+
parentNode.innerHTML = html;
|
113 |
+
this.regionElement = $(regionElementId);
|
114 |
+
//this.regionElement.replace(html);
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
}
|
119 |
+
|
120 |
+
temandoAddress = new temandoOrigin();
|
121 |
+
|
122 |
+
//]]
|
123 |
+
</script>
|
app/design/adminhtml/default/default/template/temando/temando/shipment.phtml
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form */
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div>
|
7 |
-
<div class="box-left">
|
8 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_status')->setTemplate('temando/temando/shipment/status.phtml')->toHtml(); ?>
|
9 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_anytime')->setTemplate('temando/temando/shipment/anytime.phtml')->toHtml(); ?>
|
10 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_origin')->setTemplate('temando/temando/shipment/origin.phtml')->toHtml(); ?>
|
11 |
-
</div>
|
12 |
-
<div class="box-right">
|
13 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_anywhere')->setTemplate('temando/temando/shipment/anywhere.phtml')->toHtml(); ?>
|
14 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_insurance')->setTemplate('temando/temando/shipment/insurance.phtml')->toHtml(); ?>
|
15 |
-
</div>
|
16 |
-
<div class="clear"></div>
|
17 |
-
|
18 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_products')->setTemplate('temando/temando/shipment/products.phtml')->toHtml(); ?>
|
19 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_boxes')->setTemplate('temando/temando/shipment/boxes.phtml')->toHtml(); ?>
|
20 |
-
|
21 |
-
<?php if ($this->getShipment()->isStatusOpened() && count($this->getQuotes())): ?>
|
22 |
-
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_quotes')->setTemplate('temando/temando/shipment/quotes.phtml')->toHtml(); ?>
|
23 |
-
<?php endif; ?>
|
24 |
-
</div>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form */
|
4 |
+
?>
|
5 |
+
|
6 |
+
<div>
|
7 |
+
<div class="box-left">
|
8 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_status')->setTemplate('temando/temando/shipment/status.phtml')->toHtml(); ?>
|
9 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_anytime')->setTemplate('temando/temando/shipment/anytime.phtml')->toHtml(); ?>
|
10 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_origin')->setTemplate('temando/temando/shipment/origin.phtml')->toHtml(); ?>
|
11 |
+
</div>
|
12 |
+
<div class="box-right">
|
13 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_anywhere')->setTemplate('temando/temando/shipment/anywhere.phtml')->toHtml(); ?>
|
14 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_insurance')->setTemplate('temando/temando/shipment/insurance.phtml')->toHtml(); ?>
|
15 |
+
</div>
|
16 |
+
<div class="clear"></div>
|
17 |
+
|
18 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_products')->setTemplate('temando/temando/shipment/products.phtml')->toHtml(); ?>
|
19 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_boxes')->setTemplate('temando/temando/shipment/boxes.phtml')->toHtml(); ?>
|
20 |
+
|
21 |
+
<?php if ($this->getShipment()->isStatusOpened() && count($this->getQuotes())): ?>
|
22 |
+
<?php echo $this->getLayout()->createBlock('temando/adminhtml_shipment_edit_tab_form_quotes')->setTemplate('temando/temando/shipment/quotes.phtml')->toHtml(); ?>
|
23 |
+
<?php endif; ?>
|
24 |
+
</div>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/anytime.phtml
CHANGED
@@ -1,76 +1,76 @@
|
|
1 |
-
<?php
|
2 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Anytime */
|
3 |
-
?>
|
4 |
-
|
5 |
-
<div class="entry-edit">
|
6 |
-
<div class="entry-edit-head">
|
7 |
-
<h4><?php echo $this->__('Pick-up Date'); ?></h4>
|
8 |
-
</div>
|
9 |
-
<div class="fieldset">
|
10 |
-
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
11 |
-
<table cellspacing="0" class="form-list">
|
12 |
-
<tr>
|
13 |
-
<td class="label"><input type="radio" name="ready" value="" onclick="$('select_pick_up').hide();" id="ready_0" /></td>
|
14 |
-
<td class="value"><label><?php echo $this->__('ASAP'); ?></label></td>
|
15 |
-
</tr>
|
16 |
-
<tr>
|
17 |
-
<td class="label"><input type="radio" name="ready" value="1" onclick="$('select_pick_up').show();" id="ready_1" /></td>
|
18 |
-
<td class="value"><label><?php echo $this->__('Select Date:'); ?></label></td>
|
19 |
-
</tr>
|
20 |
-
</table>
|
21 |
-
<?php endif; ?>
|
22 |
-
<div id="select_pick_up">
|
23 |
-
<table cellspacing="0" class="form-list">
|
24 |
-
<tr>
|
25 |
-
<td class="label"><label><?php echo $this->__('Date'); ?></label></td>
|
26 |
-
<td class="value">
|
27 |
-
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
28 |
-
<input id="ready_date" name="ready_date" value="<?php echo $this->getShipment()->getReadyDate(); ?>" class="input-text" />
|
29 |
-
<img id="ready_date_trigger" alt="Select date" title="Select date" class="v-middle" src="<?php echo $this->getSkinUrl('images/grid-cal.gif'); ?>" />
|
30 |
-
<script type="text/javascript">
|
31 |
-
//<![CDATA[
|
32 |
-
Calendar.setup({
|
33 |
-
inputField: "ready_date",
|
34 |
-
ifFormat: "%Y-%m-%e",
|
35 |
-
showsTime: false,
|
36 |
-
button: "ready_date_trigger",
|
37 |
-
align: "Bl",
|
38 |
-
singleClick : true
|
39 |
-
});
|
40 |
-
//]]>
|
41 |
-
</script>
|
42 |
-
<?php else: ?>
|
43 |
-
<?php echo $this->getShipment()->getReadyDate(); ?>
|
44 |
-
<?php endif; ?>
|
45 |
-
</td>
|
46 |
-
</tr>
|
47 |
-
<tr>
|
48 |
-
<td class="label"><label><?php echo $this->__('Time of Day'); ?></label></td>
|
49 |
-
<td class="value">
|
50 |
-
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
51 |
-
<select id="ready_time" name="ready_time" class="select">
|
52 |
-
<option value=""></option>
|
53 |
-
<?php foreach (Mage::getModel('temando/system_config_source_readytime')->toOptionArray() as $_time): ?>
|
54 |
-
<option value="<?php echo $_time['value']; ?>" <?php if ($_time['value'] == $this->getShipment()->getReadyTime()): ?> selected="selected"<?php endif;?>><?php echo $_time['label']; ?></option>
|
55 |
-
<?php endforeach; ?>
|
56 |
-
</select>
|
57 |
-
<?php else: ?>
|
58 |
-
<?php echo $this->getShipment()->getReadyTime(); ?>
|
59 |
-
<?php endif; ?>
|
60 |
-
</td>
|
61 |
-
</tr>
|
62 |
-
</table>
|
63 |
-
</div>
|
64 |
-
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
65 |
-
<script type="text/javascript">
|
66 |
-
<?php if ($this->getShipment()->getReadyDate()): ?>
|
67 |
-
$('ready_1').checked = true;
|
68 |
-
$('select_pick_up').show();
|
69 |
-
<?php else: ?>
|
70 |
-
$('ready_0').checked = true;
|
71 |
-
$('select_pick_up').hide();
|
72 |
-
<?php endif; ?>
|
73 |
-
</script>
|
74 |
-
<?php endif; ?>
|
75 |
-
</div>
|
76 |
-
</div>
|
1 |
+
<?php
|
2 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Anytime */
|
3 |
+
?>
|
4 |
+
|
5 |
+
<div class="entry-edit">
|
6 |
+
<div class="entry-edit-head">
|
7 |
+
<h4><?php echo $this->__('Pick-up Date'); ?></h4>
|
8 |
+
</div>
|
9 |
+
<div class="fieldset">
|
10 |
+
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
11 |
+
<table cellspacing="0" class="form-list">
|
12 |
+
<tr>
|
13 |
+
<td class="label"><input type="radio" name="ready" value="" onclick="$('select_pick_up').hide();" id="ready_0" /></td>
|
14 |
+
<td class="value"><label><?php echo $this->__('ASAP'); ?></label></td>
|
15 |
+
</tr>
|
16 |
+
<tr>
|
17 |
+
<td class="label"><input type="radio" name="ready" value="1" onclick="$('select_pick_up').show();" id="ready_1" /></td>
|
18 |
+
<td class="value"><label><?php echo $this->__('Select Date:'); ?></label></td>
|
19 |
+
</tr>
|
20 |
+
</table>
|
21 |
+
<?php endif; ?>
|
22 |
+
<div id="select_pick_up">
|
23 |
+
<table cellspacing="0" class="form-list">
|
24 |
+
<tr>
|
25 |
+
<td class="label"><label><?php echo $this->__('Date'); ?></label></td>
|
26 |
+
<td class="value">
|
27 |
+
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
28 |
+
<input id="ready_date" name="ready_date" value="<?php echo $this->getShipment()->getReadyDate(); ?>" class="input-text" />
|
29 |
+
<img id="ready_date_trigger" alt="Select date" title="Select date" class="v-middle" src="<?php echo $this->getSkinUrl('images/grid-cal.gif'); ?>" />
|
30 |
+
<script type="text/javascript">
|
31 |
+
//<![CDATA[
|
32 |
+
Calendar.setup({
|
33 |
+
inputField: "ready_date",
|
34 |
+
ifFormat: "%Y-%m-%e",
|
35 |
+
showsTime: false,
|
36 |
+
button: "ready_date_trigger",
|
37 |
+
align: "Bl",
|
38 |
+
singleClick : true
|
39 |
+
});
|
40 |
+
//]]>
|
41 |
+
</script>
|
42 |
+
<?php else: ?>
|
43 |
+
<?php echo $this->getShipment()->getReadyDate(); ?>
|
44 |
+
<?php endif; ?>
|
45 |
+
</td>
|
46 |
+
</tr>
|
47 |
+
<tr>
|
48 |
+
<td class="label"><label><?php echo $this->__('Time of Day'); ?></label></td>
|
49 |
+
<td class="value">
|
50 |
+
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
51 |
+
<select id="ready_time" name="ready_time" class="select">
|
52 |
+
<option value=""></option>
|
53 |
+
<?php foreach (Mage::getModel('temando/system_config_source_readytime')->toOptionArray() as $_time): ?>
|
54 |
+
<option value="<?php echo $_time['value']; ?>" <?php if ($_time['value'] == $this->getShipment()->getReadyTime()): ?> selected="selected"<?php endif;?>><?php echo $_time['label']; ?></option>
|
55 |
+
<?php endforeach; ?>
|
56 |
+
</select>
|
57 |
+
<?php else: ?>
|
58 |
+
<?php echo $this->getShipment()->getReadyTime(); ?>
|
59 |
+
<?php endif; ?>
|
60 |
+
</td>
|
61 |
+
</tr>
|
62 |
+
</table>
|
63 |
+
</div>
|
64 |
+
<?php if ($this->getShipment()->isStatusOpened()): ?>
|
65 |
+
<script type="text/javascript">
|
66 |
+
<?php if ($this->getShipment()->getReadyDate()): ?>
|
67 |
+
$('ready_1').checked = true;
|
68 |
+
$('select_pick_up').show();
|
69 |
+
<?php else: ?>
|
70 |
+
$('ready_0').checked = true;
|
71 |
+
$('select_pick_up').hide();
|
72 |
+
<?php endif; ?>
|
73 |
+
</script>
|
74 |
+
<?php endif; ?>
|
75 |
+
</div>
|
76 |
+
</div>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/anywhere.phtml
CHANGED
@@ -1,103 +1,103 @@
|
|
1 |
-
<?php
|
2 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Anywhere */
|
3 |
-
$_shipment = $this->getShipment();
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div class="entry-edit">
|
7 |
-
<div class="entry-edit-head">
|
8 |
-
<h4><?php echo $this->__('Destination'); ?></h4>
|
9 |
-
</div>
|
10 |
-
<div class="fieldset">
|
11 |
-
<table cellspacing="0" class="form-list">
|
12 |
-
<tr>
|
13 |
-
<td class="label"><label><?php echo $this->__('Contact Name'); ?></label></td>
|
14 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
15 |
-
<td class="value"><input type="text" id="destination_contact_name" name="destination_contact_name" value="<?php echo $_shipment->getDestinationContactName(); ?>" class="input-text" /></td>
|
16 |
-
<?php else: ?>
|
17 |
-
<td class="value"><?php echo $_shipment->getDestinationContactName(); ?></td>
|
18 |
-
<?php endif; ?>
|
19 |
-
</tr>
|
20 |
-
<tr>
|
21 |
-
<td class="label"><label><?php echo $this->__('Company Name'); ?></label></td>
|
22 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
23 |
-
<td class="value"><input type="text" id="destination_company_name" name="destination_company_name" value="<?php echo $_shipment->getDestinationCompanyName(); ?>" class="input-text" /></td>
|
24 |
-
<?php else: ?>
|
25 |
-
<td class="value"><?php echo $_shipment->getDestinationCompanyName(); ?></td>
|
26 |
-
<?php endif; ?>
|
27 |
-
</tr>
|
28 |
-
<tr>
|
29 |
-
<td class="label"><label><?php echo $this->__('Street'); ?></label></td>
|
30 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
31 |
-
<td class="value"><input type="text" id="destination_street" name="destination_street" value="<?php echo htmlspecialchars($_shipment->getDestinationStreet(), ENT_QUOTES); ?>" class="input-text" /></td>
|
32 |
-
<?php else: ?>
|
33 |
-
<td class="value"><?php echo $_shipment->getDestinationStreet(); ?></td>
|
34 |
-
<?php endif; ?>
|
35 |
-
</tr>
|
36 |
-
<tr>
|
37 |
-
<td class="label"><label><?php echo $this->__('Suburb'); ?></label></td>
|
38 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
39 |
-
<td class="value"><input type="text" id="destination_city" name="destination_city" value="<?php echo $_shipment->getDestinationCity(); ?>" class="input-text" /></td>
|
40 |
-
<?php else: ?>
|
41 |
-
<td class="value"><?php echo $_shipment->getDestinationCity(); ?></td>
|
42 |
-
<?php endif; ?>
|
43 |
-
</tr>
|
44 |
-
<tr>
|
45 |
-
<td class="label"><label><?php echo $this->__('Region'); ?></label></td>
|
46 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
47 |
-
<td class="value"><input type="text" id="destination_region" name="destination_region" value="<?php echo $_shipment->getDestinationRegion(); ?>" class="input-text" /></td>
|
48 |
-
<?php else: ?>
|
49 |
-
<td class="value"><?php echo $_shipment->getDestinationRegion(); ?></td>
|
50 |
-
<?php endif; ?>
|
51 |
-
</tr>
|
52 |
-
<tr>
|
53 |
-
<td class="label"><label><?php echo $this->__('Postcode'); ?></label></td>
|
54 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
55 |
-
<td class="value"><input type="text" id="destination_postcode" name="destination_postcode" value="<?php echo $_shipment->getDestinationPostcode(); ?>" class="input-text" /></td>
|
56 |
-
<?php else: ?>
|
57 |
-
<td class="value"><?php echo $_shipment->getDestinationPostcode(); ?></td>
|
58 |
-
<?php endif; ?>
|
59 |
-
</tr>
|
60 |
-
<tr>
|
61 |
-
<td class="label"><label><?php echo $this->__('Country'); ?></label></td>
|
62 |
-
<td class="value">
|
63 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
64 |
-
<select id="destination_country" name="destination_country" class="select temando-countries">
|
65 |
-
<?php foreach (Mage::getModel('directory/country')->getCollection()->toOptionArray() as $_country): ?>
|
66 |
-
<option value="<?php echo $_country['value']; ?>" <?php if ($_country['value'] == $_shipment->getDestinationCountry()): ?> selected="selected"<?php endif;?>><?php echo $_country['label']; ?></option>
|
67 |
-
<?php endforeach; ?>
|
68 |
-
</select>
|
69 |
-
<?php else: ?>
|
70 |
-
<?php echo Mage::getModel('directory/country')->load($_shipment->getDestinationCountry())->getName(); ?>
|
71 |
-
<?php endif; ?>
|
72 |
-
</td>
|
73 |
-
</tr>
|
74 |
-
<tr>
|
75 |
-
<td class="label"><label><?php echo $this->__('Phone'); ?></label></td>
|
76 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
77 |
-
<td class="value"><input type="text" id="destination_phone" name="destination_phone" value="<?php echo $_shipment->getDestinationPhone(); ?>" class="input-text" /></td>
|
78 |
-
<?php else: ?>
|
79 |
-
<td class="value"><?php echo $_shipment->getDestinationPhone(); ?></td>
|
80 |
-
<?php endif; ?>
|
81 |
-
</tr>
|
82 |
-
<tr>
|
83 |
-
<td class="label"><label><?php echo $this->__('Email'); ?></label></td>
|
84 |
-
<?php if ($_shipment->isStatusOpened()): ?>
|
85 |
-
<td class="value"><input type="text" id="destination_email" name="destination_email" value="<?php echo $_shipment->getDestinationEmail(); ?>" class="input-text" /></td>
|
86 |
-
<?php else: ?>
|
87 |
-
<td class="value"><?php echo $_shipment->getDestinationEmail(); ?></td>
|
88 |
-
<?php endif; ?>
|
89 |
-
</tr>
|
90 |
-
</table>
|
91 |
-
</div>
|
92 |
-
</div>
|
93 |
-
<script type="text/javascript">
|
94 |
-
//<[CDATA[
|
95 |
-
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
96 |
-
var avs = new Avs(
|
97 |
-
shipping_estimator_url,
|
98 |
-
'destination_postcode',
|
99 |
-
'destination_city',
|
100 |
-
'destination_country'
|
101 |
-
);
|
102 |
-
//]]>
|
103 |
-
</script>
|
1 |
+
<?php
|
2 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Anywhere */
|
3 |
+
$_shipment = $this->getShipment();
|
4 |
+
?>
|
5 |
+
|
6 |
+
<div class="entry-edit">
|
7 |
+
<div class="entry-edit-head">
|
8 |
+
<h4><?php echo $this->__('Destination'); ?></h4>
|
9 |
+
</div>
|
10 |
+
<div class="fieldset">
|
11 |
+
<table cellspacing="0" class="form-list">
|
12 |
+
<tr>
|
13 |
+
<td class="label"><label><?php echo $this->__('Contact Name'); ?></label></td>
|
14 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
15 |
+
<td class="value"><input type="text" id="destination_contact_name" name="destination_contact_name" value="<?php echo $_shipment->getDestinationContactName(); ?>" class="input-text" /></td>
|
16 |
+
<?php else: ?>
|
17 |
+
<td class="value"><?php echo $_shipment->getDestinationContactName(); ?></td>
|
18 |
+
<?php endif; ?>
|
19 |
+
</tr>
|
20 |
+
<tr>
|
21 |
+
<td class="label"><label><?php echo $this->__('Company Name'); ?></label></td>
|
22 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
23 |
+
<td class="value"><input type="text" id="destination_company_name" name="destination_company_name" value="<?php echo $_shipment->getDestinationCompanyName(); ?>" class="input-text" /></td>
|
24 |
+
<?php else: ?>
|
25 |
+
<td class="value"><?php echo $_shipment->getDestinationCompanyName(); ?></td>
|
26 |
+
<?php endif; ?>
|
27 |
+
</tr>
|
28 |
+
<tr>
|
29 |
+
<td class="label"><label><?php echo $this->__('Street'); ?></label></td>
|
30 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
31 |
+
<td class="value"><input type="text" id="destination_street" name="destination_street" value="<?php echo htmlspecialchars($_shipment->getDestinationStreet(), ENT_QUOTES); ?>" class="input-text" /></td>
|
32 |
+
<?php else: ?>
|
33 |
+
<td class="value"><?php echo $_shipment->getDestinationStreet(); ?></td>
|
34 |
+
<?php endif; ?>
|
35 |
+
</tr>
|
36 |
+
<tr>
|
37 |
+
<td class="label"><label><?php echo $this->__('Suburb'); ?></label></td>
|
38 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
39 |
+
<td class="value"><input type="text" id="destination_city" name="destination_city" value="<?php echo $_shipment->getDestinationCity(); ?>" class="input-text" /></td>
|
40 |
+
<?php else: ?>
|
41 |
+
<td class="value"><?php echo $_shipment->getDestinationCity(); ?></td>
|
42 |
+
<?php endif; ?>
|
43 |
+
</tr>
|
44 |
+
<tr>
|
45 |
+
<td class="label"><label><?php echo $this->__('Region'); ?></label></td>
|
46 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
47 |
+
<td class="value"><input type="text" id="destination_region" name="destination_region" value="<?php echo $_shipment->getDestinationRegion(); ?>" class="input-text" /></td>
|
48 |
+
<?php else: ?>
|
49 |
+
<td class="value"><?php echo $_shipment->getDestinationRegion(); ?></td>
|
50 |
+
<?php endif; ?>
|
51 |
+
</tr>
|
52 |
+
<tr>
|
53 |
+
<td class="label"><label><?php echo $this->__('Postcode'); ?></label></td>
|
54 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
55 |
+
<td class="value"><input type="text" id="destination_postcode" name="destination_postcode" value="<?php echo $_shipment->getDestinationPostcode(); ?>" class="input-text" /></td>
|
56 |
+
<?php else: ?>
|
57 |
+
<td class="value"><?php echo $_shipment->getDestinationPostcode(); ?></td>
|
58 |
+
<?php endif; ?>
|
59 |
+
</tr>
|
60 |
+
<tr>
|
61 |
+
<td class="label"><label><?php echo $this->__('Country'); ?></label></td>
|
62 |
+
<td class="value">
|
63 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
64 |
+
<select id="destination_country" name="destination_country" class="select temando-countries">
|
65 |
+
<?php foreach (Mage::getModel('directory/country')->getCollection()->toOptionArray() as $_country): ?>
|
66 |
+
<option value="<?php echo $_country['value']; ?>" <?php if ($_country['value'] == $_shipment->getDestinationCountry()): ?> selected="selected"<?php endif;?>><?php echo $_country['label']; ?></option>
|
67 |
+
<?php endforeach; ?>
|
68 |
+
</select>
|
69 |
+
<?php else: ?>
|
70 |
+
<?php echo Mage::getModel('directory/country')->load($_shipment->getDestinationCountry())->getName(); ?>
|
71 |
+
<?php endif; ?>
|
72 |
+
</td>
|
73 |
+
</tr>
|
74 |
+
<tr>
|
75 |
+
<td class="label"><label><?php echo $this->__('Phone'); ?></label></td>
|
76 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
77 |
+
<td class="value"><input type="text" id="destination_phone" name="destination_phone" value="<?php echo $_shipment->getDestinationPhone(); ?>" class="input-text" /></td>
|
78 |
+
<?php else: ?>
|
79 |
+
<td class="value"><?php echo $_shipment->getDestinationPhone(); ?></td>
|
80 |
+
<?php endif; ?>
|
81 |
+
</tr>
|
82 |
+
<tr>
|
83 |
+
<td class="label"><label><?php echo $this->__('Email'); ?></label></td>
|
84 |
+
<?php if ($_shipment->isStatusOpened()): ?>
|
85 |
+
<td class="value"><input type="text" id="destination_email" name="destination_email" value="<?php echo $_shipment->getDestinationEmail(); ?>" class="input-text" /></td>
|
86 |
+
<?php else: ?>
|
87 |
+
<td class="value"><?php echo $_shipment->getDestinationEmail(); ?></td>
|
88 |
+
<?php endif; ?>
|
89 |
+
</tr>
|
90 |
+
</table>
|
91 |
+
</div>
|
92 |
+
</div>
|
93 |
+
<script type="text/javascript">
|
94 |
+
//<[CDATA[
|
95 |
+
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
96 |
+
var avs = new Avs(
|
97 |
+
shipping_estimator_url,
|
98 |
+
'destination_postcode',
|
99 |
+
'destination_city',
|
100 |
+
'destination_country'
|
101 |
+
);
|
102 |
+
//]]>
|
103 |
+
</script>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/boxes.phtml
CHANGED
@@ -1,166 +1,166 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Boxes */
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div class="entry-edit">
|
7 |
-
<div class="entry-edit-head">
|
8 |
-
<h4><?php echo $this->__('Boxes to Ship'); ?></h4>
|
9 |
-
<div class="form-buttons">
|
10 |
-
<table>
|
11 |
-
<tr>
|
12 |
-
<td class="filter-actions a-right last">
|
13 |
-
<button title="Dispatch a single order over multiple shipments" id="disabled_partial_shipment_button" class="scalable disabled" onclick="return false;"><span><?php echo $this->__('Partial Shipment'); ?></span></button>
|
14 |
-
<button id="box_add_button" class="scalable add" onclick="javascript:box_add(); return false;"><span><?php echo $this->__('Add Box'); ?></span></button>
|
15 |
-
<button id="box_clear_button" class="scalable delete" onclick="box_clear(); return false;"><span><?php echo $this->__('Clear'); ?></span></button>
|
16 |
-
<button id="box_import_button" class="scalable" onclick="box_import(); return false;"><span><?php echo $this->__('Import from Above'); ?></span></button>
|
17 |
-
</td>
|
18 |
-
</tr>
|
19 |
-
</table>
|
20 |
-
</div>
|
21 |
-
</div>
|
22 |
-
</div>
|
23 |
-
<div class="grid np">
|
24 |
-
<div class="hor-scroll">
|
25 |
-
<table cellspacing="0" class="box np" id="boxes">
|
26 |
-
<col />
|
27 |
-
<col style="width: 150px;" />
|
28 |
-
<col style="width: 70px;" />
|
29 |
-
<col style="width: 50px;" />
|
30 |
-
<col style="width: 70px;" />
|
31 |
-
<col style="width: 120px;" />
|
32 |
-
<col style="width: 90px;" />
|
33 |
-
<col style="width: 90px;" />
|
34 |
-
<col style="width: 90px;" />
|
35 |
-
<col style="width: 60px;" />
|
36 |
-
<col style="width: 100px;" />
|
37 |
-
<thead>
|
38 |
-
<tr class="headings">
|
39 |
-
<td colspan="5" style="visibility:hidden;">
|
40 |
-
<input type="hidden" id="boxes_deleted" name="boxes_deleted" value="" />
|
41 |
-
</td>
|
42 |
-
<th colspan="4" class="a-center"><?php echo $this->__('Dimensions'); ?></th>
|
43 |
-
</tr>
|
44 |
-
<tr class="headings">
|
45 |
-
<th><?php echo $this->__('Comment'); ?></th>
|
46 |
-
<th class="a-center"><?php echo $this->__('Packaging'); ?></th>
|
47 |
-
<th class="a-center"><?php echo $this->__('Fragile'); ?></th>
|
48 |
-
<th class="a-center"><?php echo $this->__('Qty'); ?></th>
|
49 |
-
<th class="a-center"><?php echo $this->__('Value'); ?> ($)</th>
|
50 |
-
<th class="a-center"><?php echo $this->__('Weight'); ?></th>
|
51 |
-
<th class="a-center"><?php echo $this->__('Length'); ?></th>
|
52 |
-
<th class="a-center"><?php echo $this->__('Width'); ?></th>
|
53 |
-
<th class="a-center"><?php echo $this->__('Height'); ?></th>
|
54 |
-
<th class="a-center"><?php echo $this->__('Unit'); ?></th>
|
55 |
-
<th class="a-center last"><?php echo $this->__('Action'); ?></th>
|
56 |
-
</tr>
|
57 |
-
</thead>
|
58 |
-
<tbody>
|
59 |
-
<?php $_i = 0; foreach ($this->getShipment()->getBoxes() as $_box): /* @var $_box Temando_Temando_Model_Box */ ?>
|
60 |
-
<tr class="<?php echo ++$_i % 2 ? 'odd' : 'even'; ?> existing_box" id="box_row_<?php echo $_i; ?>">
|
61 |
-
|
62 |
-
<td>
|
63 |
-
<input type="hidden" id="box_<?php echo $_i; ?>_id" name="box[<?php echo $_i; ?>][id]" value="<?php echo $_box->getId(); ?>" />
|
64 |
-
<input type="text" id="box_<?php echo $_i; ?>_comment" name="box[<?php echo $_i; ?>][comment]" value="<?php echo $_box->getComment(); ?>" class="input-text" />
|
65 |
-
</td>
|
66 |
-
<td>
|
67 |
-
<select id="box_<?php echo $_i; ?>_packaging" name="box[<?php echo $_i; ?>][packaging]" class="select select-box-packaging">
|
68 |
-
<?php foreach ($this->getPackagingTypes() as $_option): ?>
|
69 |
-
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getPackaging()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
70 |
-
<?php endforeach; ?>
|
71 |
-
</select>
|
72 |
-
</td>
|
73 |
-
<td class="a-center">
|
74 |
-
<select id="box_<?php echo $_i; ?>_fragile" name="box[<?php echo $_i; ?>][fragile]" class="select">
|
75 |
-
<?php foreach (Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray() as $_option): ?>
|
76 |
-
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getFragile()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
77 |
-
<?php endforeach; ?>
|
78 |
-
</select>
|
79 |
-
</td>
|
80 |
-
<td><input type="text" id="box_<?php echo $_i; ?>_qty" name="box[<?php echo $_i; ?>][qty]" value="<?php echo (int)$_box->getQty(); ?>" class="input-text" /></td>
|
81 |
-
<td><input type="text" id="box_<?php echo $_i; ?>_value" name="box[<?php echo $_i; ?>][value]" value="<?php echo sprintf("%01.2f", $_box->getValue()); ?>" class="input-text" /></td>
|
82 |
-
<td>
|
83 |
-
<input type="text" id="box_<?php echo $_i; ?>_weight" name="box[<?php echo $_i; ?>][weight]" value="<?php echo (float) $_box->getWeight(); ?>" class="input-text" style="width: 40px;" />
|
84 |
-
<select id="box_<?php echo $_i; ?>_weight_unit" name="box[<?php echo $_i; ?>][weight_unit]" class="select">
|
85 |
-
<?php foreach (Mage::getModel('temando/system_config_source_unit_weight')->toBriefOptionArray() as $_option): ?>
|
86 |
-
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getWeightUnit()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
87 |
-
<?php endforeach; ?>
|
88 |
-
</select>
|
89 |
-
</td>
|
90 |
-
<td>
|
91 |
-
<input type="text" id="box_<?php echo $_i; ?>_length" name="box[<?php echo $_i; ?>][length]" value="<?php echo (float) $_box->getLength(); ?>" class="input-text" style="width: 30px;" />
|
92 |
-
<span class="box_<?php echo $_i; ?>_measure_unit"><?php echo $this->getMeasureUnitText($_box->getMeasureUnit()); ?></span>
|
93 |
-
</td>
|
94 |
-
<td>
|
95 |
-
<input type="text" id="box_<?php echo $_i; ?>_width" name="box[<?php echo $_i; ?>][width]" value="<?php echo (float) $_box->getWidth(); ?>" class="input-text" style="width: 30px;" />
|
96 |
-
<span class="box_<?php echo $_i; ?>_measure_unit"><?php echo $this->getMeasureUnitText($_box->getMeasureUnit()); ?></span>
|
97 |
-
</td>
|
98 |
-
<td>
|
99 |
-
<input type="text" id="box_<?php echo $_i; ?>_height" name="box[<?php echo $_i; ?>][height]" value="<?php echo (float) $_box->getHeight(); ?>" class="input-text" style="width: 30px;" />
|
100 |
-
<span class="box_<?php echo $_i; ?>_measure_unit"><?php echo $this->getMeasureUnitText($_box->getMeasureUnit()); ?></span>
|
101 |
-
</td>
|
102 |
-
<td class="last">
|
103 |
-
<select id="box_<?php echo $_i; ?>_measure_unit" name="box[<?php echo $_i; ?>][measure_unit]" onchange="$$('.box_<?php echo $_i; ?>_measure_unit').each(function(field) {field.innerHTML = $$('#box_<?php echo $_i; ?>_measure_unit option[value=' + $('box_<?php echo $_i; ?>_measure_unit').value + ']')[0].innerHTML;});" class="select">
|
104 |
-
<?php foreach (Mage::getModel('temando/system_config_source_unit_measure')->toBriefOptionArray() as $_option): ?>
|
105 |
-
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getMeasureUnit()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
106 |
-
<?php endforeach; ?>
|
107 |
-
</select>
|
108 |
-
</td>
|
109 |
-
<td>
|
110 |
-
<button id="box_<?php echo $_i; ?>_remove" class="scalable delete" onclick="box_remove(<?php echo $_i; ?>); return false;"><span><?php echo $this->__('Remove'); ?></span></button>
|
111 |
-
</td>
|
112 |
-
</tr>
|
113 |
-
<?php endforeach; ?>
|
114 |
-
<tr id="blank_box_row" style="display: none;">
|
115 |
-
<td><input type="text" id="box_blank_@@id@@_comment" name="box_blank[@@id@@][comment]" class="input-text" /></td>
|
116 |
-
<td>
|
117 |
-
<select id="box_blank_@@id@@_packaging" name="box_blank[@@id@@][packaging]" class="select select-box-packaging">
|
118 |
-
<?php foreach ($this->getPackagingTypes() as $_option): ?>
|
119 |
-
<option value="<?php echo $_option['value']; ?>"><?php echo $_option['label']; ?></option>
|
120 |
-
<?php endforeach; ?>
|
121 |
-
</select>
|
122 |
-
</td>
|
123 |
-
<td class="a-center">
|
124 |
-
<select id="box_blank_@@id@@_fragile" name="box_blank[@@id@@][fragile]" class="select">
|
125 |
-
<?php foreach (Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray() as $_option): ?>
|
126 |
-
<option value="<?php echo $_option['value']; ?>"><?php echo $_option['label']; ?></option>
|
127 |
-
<?php endforeach; ?>
|
128 |
-
</select>
|
129 |
-
</td>
|
130 |
-
<td><input type="text" id="box_blank_@@id@@_qty" name="box_blank[@@id@@][qty]" class="input-text" /></td>
|
131 |
-
<td><input type="text" id="box_blank_@@id@@_value" name="box_blank[@@id@@][value]" class="input-text" /></td>
|
132 |
-
<td>
|
133 |
-
<input type="text" id="box_blank_@@id@@_weight" name="box_blank[@@id@@][weight]" class="input-text" style="width: 40px;" />
|
134 |
-
<select id="box_blank_@@id@@_weight_unit" name="box_blank[@@id@@][weight_unit]" class="select">
|
135 |
-
<?php foreach (Mage::getModel('temando/system_config_source_unit_weight')->toBriefOptionArray() as $_option): ?>
|
136 |
-
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == Mage::helper('temando')->getConfigData('weight_unit')): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
137 |
-
<?php endforeach; ?>
|
138 |
-
</select>
|
139 |
-
</td>
|
140 |
-
<td>
|
141 |
-
<input type="text" id="box_blank_@@id@@_length" name="box_blank[@@id@@][length]" class="input-text" style="width: 30px;" />
|
142 |
-
<span class="box_blank_@@id@@_measure_unit"><?php echo $this->getMeasureUnitText(Mage::helper('temando')->getConfigData('measure_unit')); ?></span>
|
143 |
-
</td>
|
144 |
-
<td>
|
145 |
-
<input type="text" id="box_blank_@@id@@_width" name="box_blank[@@id@@][width]" class="input-text" style="width: 30px;" />
|
146 |
-
<span class="box_blank_@@id@@_measure_unit"><?php echo $this->getMeasureUnitText(Mage::helper('temando')->getConfigData('measure_unit')); ?></span>
|
147 |
-
</td>
|
148 |
-
<td>
|
149 |
-
<input type="text" id="box_blank_@@id@@_height" name="box_blank[@@id@@][height]" class="input-text" style="width: 30px;" />
|
150 |
-
<span class="box_blank_@@id@@_measure_unit"><?php echo $this->getMeasureUnitText(Mage::helper('temando')->getConfigData('measure_unit')); ?></span>
|
151 |
-
</td>
|
152 |
-
<td class="last">
|
153 |
-
<select id="box_blank_@@id@@_measure_unit" name="box_blank[@@id@@][measure_unit]" onchange="$$('.box_blank_@@id@@_measure_unit').each(function(field) {field.innerHTML = $$('#box_blank_@@id@@_measure_unit option[value=' + $('box_blank_@@id@@_measure_unit').value + ']')[0].innerHTML;});" class="select">
|
154 |
-
<?php foreach (Mage::getModel('temando/system_config_source_unit_measure')->toBriefOptionArray() as $_option): ?>
|
155 |
-
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == Mage::helper('temando')->getConfigData('measure_unit')): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
156 |
-
<?php endforeach; ?>
|
157 |
-
</select>
|
158 |
-
</td>
|
159 |
-
<td>
|
160 |
-
<button id="box_@@id@@_remove" class="scalable delete" onclick="box_remove(@@id@@); return false;"><span><?php echo $this->__('Remove'); ?></span></button>
|
161 |
-
</td>
|
162 |
-
</tr>
|
163 |
-
</tbody>
|
164 |
-
</table>
|
165 |
-
</div>
|
166 |
-
</div>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Boxes */
|
4 |
+
?>
|
5 |
+
|
6 |
+
<div class="entry-edit">
|
7 |
+
<div class="entry-edit-head">
|
8 |
+
<h4><?php echo $this->__('Boxes to Ship'); ?></h4>
|
9 |
+
<div class="form-buttons">
|
10 |
+
<table>
|
11 |
+
<tr>
|
12 |
+
<td class="filter-actions a-right last">
|
13 |
+
<button title="Dispatch a single order over multiple shipments" id="disabled_partial_shipment_button" class="scalable disabled" onclick="return false;"><span><?php echo $this->__('Partial Shipment'); ?></span></button>
|
14 |
+
<button id="box_add_button" class="scalable add" onclick="javascript:box_add(); return false;"><span><?php echo $this->__('Add Box'); ?></span></button>
|
15 |
+
<button id="box_clear_button" class="scalable delete" onclick="box_clear(); return false;"><span><?php echo $this->__('Clear'); ?></span></button>
|
16 |
+
<button id="box_import_button" class="scalable" onclick="box_import(); return false;"><span><?php echo $this->__('Import from Above'); ?></span></button>
|
17 |
+
</td>
|
18 |
+
</tr>
|
19 |
+
</table>
|
20 |
+
</div>
|
21 |
+
</div>
|
22 |
+
</div>
|
23 |
+
<div class="grid np">
|
24 |
+
<div class="hor-scroll">
|
25 |
+
<table cellspacing="0" class="box np" id="boxes">
|
26 |
+
<col />
|
27 |
+
<col style="width: 150px;" />
|
28 |
+
<col style="width: 70px;" />
|
29 |
+
<col style="width: 50px;" />
|
30 |
+
<col style="width: 70px;" />
|
31 |
+
<col style="width: 120px;" />
|
32 |
+
<col style="width: 90px;" />
|
33 |
+
<col style="width: 90px;" />
|
34 |
+
<col style="width: 90px;" />
|
35 |
+
<col style="width: 60px;" />
|
36 |
+
<col style="width: 100px;" />
|
37 |
+
<thead>
|
38 |
+
<tr class="headings">
|
39 |
+
<td colspan="5" style="visibility:hidden;">
|
40 |
+
<input type="hidden" id="boxes_deleted" name="boxes_deleted" value="" />
|
41 |
+
</td>
|
42 |
+
<th colspan="4" class="a-center"><?php echo $this->__('Dimensions'); ?></th>
|
43 |
+
</tr>
|
44 |
+
<tr class="headings">
|
45 |
+
<th><?php echo $this->__('Comment'); ?></th>
|
46 |
+
<th class="a-center"><?php echo $this->__('Packaging'); ?></th>
|
47 |
+
<th class="a-center"><?php echo $this->__('Fragile'); ?></th>
|
48 |
+
<th class="a-center"><?php echo $this->__('Qty'); ?></th>
|
49 |
+
<th class="a-center"><?php echo $this->__('Value'); ?> ($)</th>
|
50 |
+
<th class="a-center"><?php echo $this->__('Weight'); ?></th>
|
51 |
+
<th class="a-center"><?php echo $this->__('Length'); ?></th>
|
52 |
+
<th class="a-center"><?php echo $this->__('Width'); ?></th>
|
53 |
+
<th class="a-center"><?php echo $this->__('Height'); ?></th>
|
54 |
+
<th class="a-center"><?php echo $this->__('Unit'); ?></th>
|
55 |
+
<th class="a-center last"><?php echo $this->__('Action'); ?></th>
|
56 |
+
</tr>
|
57 |
+
</thead>
|
58 |
+
<tbody>
|
59 |
+
<?php $_i = 0; foreach ($this->getShipment()->getBoxes() as $_box): /* @var $_box Temando_Temando_Model_Box */ ?>
|
60 |
+
<tr class="<?php echo ++$_i % 2 ? 'odd' : 'even'; ?> existing_box" id="box_row_<?php echo $_i; ?>">
|
61 |
+
|
62 |
+
<td>
|
63 |
+
<input type="hidden" id="box_<?php echo $_i; ?>_id" name="box[<?php echo $_i; ?>][id]" value="<?php echo $_box->getId(); ?>" />
|
64 |
+
<input type="text" id="box_<?php echo $_i; ?>_comment" name="box[<?php echo $_i; ?>][comment]" value="<?php echo $_box->getComment(); ?>" class="input-text" />
|
65 |
+
</td>
|
66 |
+
<td>
|
67 |
+
<select id="box_<?php echo $_i; ?>_packaging" name="box[<?php echo $_i; ?>][packaging]" class="select select-box-packaging">
|
68 |
+
<?php foreach ($this->getPackagingTypes() as $_option): ?>
|
69 |
+
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getPackaging()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
70 |
+
<?php endforeach; ?>
|
71 |
+
</select>
|
72 |
+
</td>
|
73 |
+
<td class="a-center">
|
74 |
+
<select id="box_<?php echo $_i; ?>_fragile" name="box[<?php echo $_i; ?>][fragile]" class="select">
|
75 |
+
<?php foreach (Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray() as $_option): ?>
|
76 |
+
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getFragile()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
77 |
+
<?php endforeach; ?>
|
78 |
+
</select>
|
79 |
+
</td>
|
80 |
+
<td><input type="text" id="box_<?php echo $_i; ?>_qty" name="box[<?php echo $_i; ?>][qty]" value="<?php echo (int)$_box->getQty(); ?>" class="input-text" /></td>
|
81 |
+
<td><input type="text" id="box_<?php echo $_i; ?>_value" name="box[<?php echo $_i; ?>][value]" value="<?php echo sprintf("%01.2f", $_box->getValue()); ?>" class="input-text" /></td>
|
82 |
+
<td>
|
83 |
+
<input type="text" id="box_<?php echo $_i; ?>_weight" name="box[<?php echo $_i; ?>][weight]" value="<?php echo (float) $_box->getWeight(); ?>" class="input-text" style="width: 40px;" />
|
84 |
+
<select id="box_<?php echo $_i; ?>_weight_unit" name="box[<?php echo $_i; ?>][weight_unit]" class="select">
|
85 |
+
<?php foreach (Mage::getModel('temando/system_config_source_unit_weight')->toBriefOptionArray() as $_option): ?>
|
86 |
+
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getWeightUnit()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
87 |
+
<?php endforeach; ?>
|
88 |
+
</select>
|
89 |
+
</td>
|
90 |
+
<td>
|
91 |
+
<input type="text" id="box_<?php echo $_i; ?>_length" name="box[<?php echo $_i; ?>][length]" value="<?php echo (float) $_box->getLength(); ?>" class="input-text" style="width: 30px;" />
|
92 |
+
<span class="box_<?php echo $_i; ?>_measure_unit"><?php echo $this->getMeasureUnitText($_box->getMeasureUnit()); ?></span>
|
93 |
+
</td>
|
94 |
+
<td>
|
95 |
+
<input type="text" id="box_<?php echo $_i; ?>_width" name="box[<?php echo $_i; ?>][width]" value="<?php echo (float) $_box->getWidth(); ?>" class="input-text" style="width: 30px;" />
|
96 |
+
<span class="box_<?php echo $_i; ?>_measure_unit"><?php echo $this->getMeasureUnitText($_box->getMeasureUnit()); ?></span>
|
97 |
+
</td>
|
98 |
+
<td>
|
99 |
+
<input type="text" id="box_<?php echo $_i; ?>_height" name="box[<?php echo $_i; ?>][height]" value="<?php echo (float) $_box->getHeight(); ?>" class="input-text" style="width: 30px;" />
|
100 |
+
<span class="box_<?php echo $_i; ?>_measure_unit"><?php echo $this->getMeasureUnitText($_box->getMeasureUnit()); ?></span>
|
101 |
+
</td>
|
102 |
+
<td class="last">
|
103 |
+
<select id="box_<?php echo $_i; ?>_measure_unit" name="box[<?php echo $_i; ?>][measure_unit]" onchange="$$('.box_<?php echo $_i; ?>_measure_unit').each(function(field) {field.innerHTML = $$('#box_<?php echo $_i; ?>_measure_unit option[value=' + $('box_<?php echo $_i; ?>_measure_unit').value + ']')[0].innerHTML;});" class="select">
|
104 |
+
<?php foreach (Mage::getModel('temando/system_config_source_unit_measure')->toBriefOptionArray() as $_option): ?>
|
105 |
+
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == $_box->getMeasureUnit()): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
106 |
+
<?php endforeach; ?>
|
107 |
+
</select>
|
108 |
+
</td>
|
109 |
+
<td>
|
110 |
+
<button id="box_<?php echo $_i; ?>_remove" class="scalable delete" onclick="box_remove(<?php echo $_i; ?>); return false;"><span><?php echo $this->__('Remove'); ?></span></button>
|
111 |
+
</td>
|
112 |
+
</tr>
|
113 |
+
<?php endforeach; ?>
|
114 |
+
<tr id="blank_box_row" style="display: none;">
|
115 |
+
<td><input type="text" id="box_blank_@@id@@_comment" name="box_blank[@@id@@][comment]" class="input-text" /></td>
|
116 |
+
<td>
|
117 |
+
<select id="box_blank_@@id@@_packaging" name="box_blank[@@id@@][packaging]" class="select select-box-packaging">
|
118 |
+
<?php foreach ($this->getPackagingTypes() as $_option): ?>
|
119 |
+
<option value="<?php echo $_option['value']; ?>"><?php echo $_option['label']; ?></option>
|
120 |
+
<?php endforeach; ?>
|
121 |
+
</select>
|
122 |
+
</td>
|
123 |
+
<td class="a-center">
|
124 |
+
<select id="box_blank_@@id@@_fragile" name="box_blank[@@id@@][fragile]" class="select">
|
125 |
+
<?php foreach (Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray() as $_option): ?>
|
126 |
+
<option value="<?php echo $_option['value']; ?>"><?php echo $_option['label']; ?></option>
|
127 |
+
<?php endforeach; ?>
|
128 |
+
</select>
|
129 |
+
</td>
|
130 |
+
<td><input type="text" id="box_blank_@@id@@_qty" name="box_blank[@@id@@][qty]" class="input-text" /></td>
|
131 |
+
<td><input type="text" id="box_blank_@@id@@_value" name="box_blank[@@id@@][value]" class="input-text" /></td>
|
132 |
+
<td>
|
133 |
+
<input type="text" id="box_blank_@@id@@_weight" name="box_blank[@@id@@][weight]" class="input-text" style="width: 40px;" />
|
134 |
+
<select id="box_blank_@@id@@_weight_unit" name="box_blank[@@id@@][weight_unit]" class="select">
|
135 |
+
<?php foreach (Mage::getModel('temando/system_config_source_unit_weight')->toBriefOptionArray() as $_option): ?>
|
136 |
+
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == Mage::helper('temando')->getConfigData('weight_unit')): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
137 |
+
<?php endforeach; ?>
|
138 |
+
</select>
|
139 |
+
</td>
|
140 |
+
<td>
|
141 |
+
<input type="text" id="box_blank_@@id@@_length" name="box_blank[@@id@@][length]" class="input-text" style="width: 30px;" />
|
142 |
+
<span class="box_blank_@@id@@_measure_unit"><?php echo $this->getMeasureUnitText(Mage::helper('temando')->getConfigData('measure_unit')); ?></span>
|
143 |
+
</td>
|
144 |
+
<td>
|
145 |
+
<input type="text" id="box_blank_@@id@@_width" name="box_blank[@@id@@][width]" class="input-text" style="width: 30px;" />
|
146 |
+
<span class="box_blank_@@id@@_measure_unit"><?php echo $this->getMeasureUnitText(Mage::helper('temando')->getConfigData('measure_unit')); ?></span>
|
147 |
+
</td>
|
148 |
+
<td>
|
149 |
+
<input type="text" id="box_blank_@@id@@_height" name="box_blank[@@id@@][height]" class="input-text" style="width: 30px;" />
|
150 |
+
<span class="box_blank_@@id@@_measure_unit"><?php echo $this->getMeasureUnitText(Mage::helper('temando')->getConfigData('measure_unit')); ?></span>
|
151 |
+
</td>
|
152 |
+
<td class="last">
|
153 |
+
<select id="box_blank_@@id@@_measure_unit" name="box_blank[@@id@@][measure_unit]" onchange="$$('.box_blank_@@id@@_measure_unit').each(function(field) {field.innerHTML = $$('#box_blank_@@id@@_measure_unit option[value=' + $('box_blank_@@id@@_measure_unit').value + ']')[0].innerHTML;});" class="select">
|
154 |
+
<?php foreach (Mage::getModel('temando/system_config_source_unit_measure')->toBriefOptionArray() as $_option): ?>
|
155 |
+
<option value="<?php echo $_option['value']; ?>"<?php if ($_option['value'] == Mage::helper('temando')->getConfigData('measure_unit')): ?> selected="selected"<?php endif; ?>><?php echo $_option['label']; ?></option>
|
156 |
+
<?php endforeach; ?>
|
157 |
+
</select>
|
158 |
+
</td>
|
159 |
+
<td>
|
160 |
+
<button id="box_@@id@@_remove" class="scalable delete" onclick="box_remove(@@id@@); return false;"><span><?php echo $this->__('Remove'); ?></span></button>
|
161 |
+
</td>
|
162 |
+
</tr>
|
163 |
+
</tbody>
|
164 |
+
</table>
|
165 |
+
</div>
|
166 |
+
</div>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/insurance.phtml
CHANGED
@@ -1,54 +1,54 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Insurance */
|
4 |
-
|
5 |
-
$_shipment = $this->getShipment();
|
6 |
-
$insurance_option = '';
|
7 |
-
foreach ($_shipment->getOptionsArray() as $k => $v) {
|
8 |
-
if ("insurance" == $k) {
|
9 |
-
$insurance_option = $v;
|
10 |
-
break;
|
11 |
-
}
|
12 |
-
}
|
13 |
-
|
14 |
-
$total_goods_value = $this->getTotalGoodsValue();
|
15 |
-
|
16 |
-
?>
|
17 |
-
|
18 |
-
<div class="entry-edit">
|
19 |
-
<div class="entry-edit-head">
|
20 |
-
<h4><?php echo $this->__('Insurance'); ?></h4>
|
21 |
-
</div>
|
22 |
-
<div class="fieldset">
|
23 |
-
<?php switch ($this->getTemandoHelper()->getConfigData('insurance/status')) {
|
24 |
-
case Temando_Temando_Model_System_Config_Source_Insurance::OPTIONAL:
|
25 |
-
if ('Y' == $insurance_option) {
|
26 |
-
echo $this->__('The Buyer has indicated that they would like their shipment insured.');
|
27 |
-
echo "<br />";
|
28 |
-
echo "<span class='label'>Total Goods Value: <b>" . $this->formatCurrency($this->getTotalGoodsValue()) . "</b></span>";
|
29 |
-
echo "<div class='confirm-insurance'><table><tr><td class='c1'><input type='checkbox' name='insurance' value='N' " . ($this->isAdminSelect()?"checked='checked'":"") . " /></td><td class='c2'>I understand that the buyer has requested insurance and may have paid for it already, however, the buyer and I have since mutually agreed to send without insurance.</td></tr></table></div>";
|
30 |
-
} else {
|
31 |
-
echo $this->__('The Buyer indicated that they would not like their shipment insured.');
|
32 |
-
}
|
33 |
-
|
34 |
-
break;
|
35 |
-
case Temando_Temando_Model_System_Config_Source_Insurance::MANDATORY:
|
36 |
-
if ('N' == $insurance_option) {
|
37 |
-
echo $this->__('The Buyer indicated that they would not like their shipment insured.');
|
38 |
-
} else {
|
39 |
-
echo "For your convenience, you have nominated to include insurance for the transport of your sold items for a nominal fee of 1.1% of the purchase price (inclusive of GST).";
|
40 |
-
}
|
41 |
-
|
42 |
-
break;
|
43 |
-
case Temando_Temando_Model_System_Config_Source_Insurance::DISABLED:
|
44 |
-
if ('Y' == $insurance_option) {
|
45 |
-
echo $this->__('The Buyer has indicated that they would like their shipment insured.');
|
46 |
-
} else {
|
47 |
-
echo "<div class='confirm-insurance'><table><tr><td class='c1'><input type='checkbox' name='insurance' value='Y' " . ($this->isAdminSelect()?"checked='checked'":"") . " /></td><td class='c2'>I want to add insurance to this shipment.</td></tr></table></div>";
|
48 |
-
}
|
49 |
-
|
50 |
-
break;
|
51 |
-
}
|
52 |
-
?>
|
53 |
-
</div>
|
54 |
-
</div>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Insurance */
|
4 |
+
|
5 |
+
$_shipment = $this->getShipment();
|
6 |
+
$insurance_option = '';
|
7 |
+
foreach ($_shipment->getOptionsArray() as $k => $v) {
|
8 |
+
if ("insurance" == $k) {
|
9 |
+
$insurance_option = $v;
|
10 |
+
break;
|
11 |
+
}
|
12 |
+
}
|
13 |
+
|
14 |
+
$total_goods_value = $this->getTotalGoodsValue();
|
15 |
+
|
16 |
+
?>
|
17 |
+
|
18 |
+
<div class="entry-edit">
|
19 |
+
<div class="entry-edit-head">
|
20 |
+
<h4><?php echo $this->__('Insurance'); ?></h4>
|
21 |
+
</div>
|
22 |
+
<div class="fieldset">
|
23 |
+
<?php switch ($this->getTemandoHelper()->getConfigData('insurance/status')) {
|
24 |
+
case Temando_Temando_Model_System_Config_Source_Insurance::OPTIONAL:
|
25 |
+
if ('Y' == $insurance_option) {
|
26 |
+
echo $this->__('The Buyer has indicated that they would like their shipment insured.');
|
27 |
+
echo "<br />";
|
28 |
+
echo "<span class='label'>Total Goods Value: <b>" . $this->formatCurrency($this->getTotalGoodsValue()) . "</b></span>";
|
29 |
+
echo "<div class='confirm-insurance'><table><tr><td class='c1'><input type='checkbox' name='insurance' value='N' " . ($this->isAdminSelect()?"checked='checked'":"") . " /></td><td class='c2'>I understand that the buyer has requested insurance and may have paid for it already, however, the buyer and I have since mutually agreed to send without insurance.</td></tr></table></div>";
|
30 |
+
} else {
|
31 |
+
echo $this->__('The Buyer indicated that they would not like their shipment insured.');
|
32 |
+
}
|
33 |
+
|
34 |
+
break;
|
35 |
+
case Temando_Temando_Model_System_Config_Source_Insurance::MANDATORY:
|
36 |
+
if ('N' == $insurance_option) {
|
37 |
+
echo $this->__('The Buyer indicated that they would not like their shipment insured.');
|
38 |
+
} else {
|
39 |
+
echo "For your convenience, you have nominated to include insurance for the transport of your sold items for a nominal fee of 1.1% of the purchase price (inclusive of GST).";
|
40 |
+
}
|
41 |
+
|
42 |
+
break;
|
43 |
+
case Temando_Temando_Model_System_Config_Source_Insurance::DISABLED:
|
44 |
+
if ('Y' == $insurance_option) {
|
45 |
+
echo $this->__('The Buyer has indicated that they would like their shipment insured.');
|
46 |
+
} else {
|
47 |
+
echo "<div class='confirm-insurance'><table><tr><td class='c1'><input type='checkbox' name='insurance' value='Y' " . ($this->isAdminSelect()?"checked='checked'":"") . " /></td><td class='c2'>I want to add insurance to this shipment.</td></tr></table></div>";
|
48 |
+
}
|
49 |
+
|
50 |
+
break;
|
51 |
+
}
|
52 |
+
?>
|
53 |
+
</div>
|
54 |
+
</div>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/origin.phtml
CHANGED
@@ -1,30 +1,30 @@
|
|
1 |
-
<?php
|
2 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Origin */
|
3 |
-
?>
|
4 |
-
<div class="entry-edit">
|
5 |
-
<div class="entry-edit-head">
|
6 |
-
<h4><?php echo $this->__('Origin Location'); ?></h4>
|
7 |
-
<div class="form-buttons">
|
8 |
-
<table>
|
9 |
-
<tr>
|
10 |
-
<td class="filter-actions a-right last">
|
11 |
-
<button title="Available on higher plans" id="disabled_add_warehouse_button" class="scalable add disabled" onclick="return false;"><span><?php echo $this->__('Add additional Warehouses'); ?></span></button>
|
12 |
-
</td>
|
13 |
-
</tr>
|
14 |
-
</table>
|
15 |
-
</div>
|
16 |
-
</div>
|
17 |
-
<div class="fieldset">
|
18 |
-
<table cellspacing="0" class="form-list">
|
19 |
-
<tr>
|
20 |
-
<td class="label"><label><?php echo $this->__('Warehouse'); ?></label></td>
|
21 |
-
<td class="value">
|
22 |
-
<select style="width: 100%" name="warehouse_id" id="warehouse_id">
|
23 |
-
<option value=""> -- </option>
|
24 |
-
<option selected="selected" value="1"><?php echo $this->getWarehouse()->getName(); ?> (<?php echo $this->getWarehouse()->getStreet(); ?>, <?php echo $this->getWarehouse()->getCity(); ?>, <?php echo $this->getWarehouse()->getCountry(); ?>)</option>
|
25 |
-
</select>
|
26 |
-
</td>
|
27 |
-
</tr>
|
28 |
-
</table>
|
29 |
-
</div>
|
30 |
</div>
|
1 |
+
<?php
|
2 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Origin */
|
3 |
+
?>
|
4 |
+
<div class="entry-edit">
|
5 |
+
<div class="entry-edit-head">
|
6 |
+
<h4><?php echo $this->__('Origin Location'); ?></h4>
|
7 |
+
<div class="form-buttons">
|
8 |
+
<table>
|
9 |
+
<tr>
|
10 |
+
<td class="filter-actions a-right last">
|
11 |
+
<button title="Available on higher plans" id="disabled_add_warehouse_button" class="scalable add disabled" onclick="return false;"><span><?php echo $this->__('Add additional Warehouses'); ?></span></button>
|
12 |
+
</td>
|
13 |
+
</tr>
|
14 |
+
</table>
|
15 |
+
</div>
|
16 |
+
</div>
|
17 |
+
<div class="fieldset">
|
18 |
+
<table cellspacing="0" class="form-list">
|
19 |
+
<tr>
|
20 |
+
<td class="label"><label><?php echo $this->__('Warehouse'); ?></label></td>
|
21 |
+
<td class="value">
|
22 |
+
<select style="width: 100%" name="warehouse_id" id="warehouse_id">
|
23 |
+
<option value=""> -- </option>
|
24 |
+
<option selected="selected" value="1"><?php echo $this->getWarehouse()->getName(); ?> (<?php echo $this->getWarehouse()->getStreet(); ?>, <?php echo $this->getWarehouse()->getCity(); ?>, <?php echo $this->getWarehouse()->getCountry(); ?>)</option>
|
25 |
+
</select>
|
26 |
+
</td>
|
27 |
+
</tr>
|
28 |
+
</table>
|
29 |
+
</div>
|
30 |
</div>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/products.phtml
CHANGED
@@ -1,56 +1,56 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Products */
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div class="entry-edit">
|
7 |
-
<div class="entry-edit-head">
|
8 |
-
<h4><?php echo $this->__('Items Ordered'); ?></h4>
|
9 |
-
</div>
|
10 |
-
</div>
|
11 |
-
<div class="grid np">
|
12 |
-
<div class="hor-scroll">
|
13 |
-
<table cellspacing="0" class="box np">
|
14 |
-
<col />
|
15 |
-
<col style="width: 100px;" />
|
16 |
-
<col style="width: 40px;" />
|
17 |
-
<col style="width: 70px;" />
|
18 |
-
<col style="width: 70px;" />
|
19 |
-
<col style="width: 70px;" />
|
20 |
-
<col style="width: 70px;" />
|
21 |
-
<thead>
|
22 |
-
<tr class="headings">
|
23 |
-
<td colspan="4" style="visibility:hidden;"></td>
|
24 |
-
<th colspan="3" class="a-center last"><?php echo $this->__('Dimensions'); ?></th>
|
25 |
-
</tr>
|
26 |
-
<tr class="headings">
|
27 |
-
<th><?php echo $this->__('Product'); ?></th>
|
28 |
-
<th><?php echo $this->__('SKU'); ?></th>
|
29 |
-
<th class="a-center"><?php echo $this->__('Qty'); ?></th>
|
30 |
-
<th class="a-center"><?php echo $this->__('Weight'); ?></th>
|
31 |
-
<th class="a-center"><?php echo $this->__('Length'); ?></th>
|
32 |
-
<th class="a-center last"><?php echo $this->__('Width'); ?></th>
|
33 |
-
<th class="a-center"><?php echo $this->__('Height'); ?></th>
|
34 |
-
</tr>
|
35 |
-
</thead>
|
36 |
-
<?php $_i = 0; foreach ($this->getShipment()->getOrder()->getItemsCollection() as $_item): ?>
|
37 |
-
<tbody>
|
38 |
-
<?php if (!$_item->getParentItem()): /* @var $_item Mage_Sales_Model_Order_Item */ ?>
|
39 |
-
<?php
|
40 |
-
Mage::helper('temando')->applyTemandoParamsToItem($_item);
|
41 |
-
?>
|
42 |
-
<tr class="<?php echo ++$_i % 2 ? 'odd' : 'even'; ?>">
|
43 |
-
<td><?php echo $_item->getName(); ?></td>
|
44 |
-
<td><?php echo $_item->getSku(); ?></td>
|
45 |
-
<td><?php echo (float)$_item->getQtyOrdered(); ?></td>
|
46 |
-
<td><?php echo (float)$_item->getWeight() . ' ' . $this->getWeightUnitText(); ?></td>
|
47 |
-
<td><?php echo (float)$_item->getTemandoLength() . ' ' . $this->getMeasureUnitText(); ?></td>
|
48 |
-
<td><?php echo (float)$_item->getTemandoWidth() . ' ' . $this->getMeasureUnitText(); ?></td>
|
49 |
-
<td class="last"><?php echo (float)$_item->getTemandoHeight() . ' ' . $this->getMeasureUnitText(); ?></td>
|
50 |
-
</tr>
|
51 |
-
<?php endif; ?>
|
52 |
-
</tbody>
|
53 |
-
<?php endforeach; ?>
|
54 |
-
</table>
|
55 |
-
</div>
|
56 |
-
</div>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Products */
|
4 |
+
?>
|
5 |
+
|
6 |
+
<div class="entry-edit">
|
7 |
+
<div class="entry-edit-head">
|
8 |
+
<h4><?php echo $this->__('Items Ordered'); ?></h4>
|
9 |
+
</div>
|
10 |
+
</div>
|
11 |
+
<div class="grid np">
|
12 |
+
<div class="hor-scroll">
|
13 |
+
<table cellspacing="0" class="box np">
|
14 |
+
<col />
|
15 |
+
<col style="width: 100px;" />
|
16 |
+
<col style="width: 40px;" />
|
17 |
+
<col style="width: 70px;" />
|
18 |
+
<col style="width: 70px;" />
|
19 |
+
<col style="width: 70px;" />
|
20 |
+
<col style="width: 70px;" />
|
21 |
+
<thead>
|
22 |
+
<tr class="headings">
|
23 |
+
<td colspan="4" style="visibility:hidden;"></td>
|
24 |
+
<th colspan="3" class="a-center last"><?php echo $this->__('Dimensions'); ?></th>
|
25 |
+
</tr>
|
26 |
+
<tr class="headings">
|
27 |
+
<th><?php echo $this->__('Product'); ?></th>
|
28 |
+
<th><?php echo $this->__('SKU'); ?></th>
|
29 |
+
<th class="a-center"><?php echo $this->__('Qty'); ?></th>
|
30 |
+
<th class="a-center"><?php echo $this->__('Weight'); ?></th>
|
31 |
+
<th class="a-center"><?php echo $this->__('Length'); ?></th>
|
32 |
+
<th class="a-center last"><?php echo $this->__('Width'); ?></th>
|
33 |
+
<th class="a-center"><?php echo $this->__('Height'); ?></th>
|
34 |
+
</tr>
|
35 |
+
</thead>
|
36 |
+
<?php $_i = 0; foreach ($this->getShipment()->getOrder()->getItemsCollection() as $_item): ?>
|
37 |
+
<tbody>
|
38 |
+
<?php if (!$_item->getParentItem()): /* @var $_item Mage_Sales_Model_Order_Item */ ?>
|
39 |
+
<?php
|
40 |
+
Mage::helper('temando')->applyTemandoParamsToItem($_item);
|
41 |
+
?>
|
42 |
+
<tr class="<?php echo ++$_i % 2 ? 'odd' : 'even'; ?>">
|
43 |
+
<td><?php echo $_item->getName(); ?></td>
|
44 |
+
<td><?php echo $_item->getSku(); ?></td>
|
45 |
+
<td><?php echo (float)$_item->getQtyOrdered(); ?></td>
|
46 |
+
<td><?php echo (float)$_item->getWeight() . ' ' . $this->getWeightUnitText(); ?></td>
|
47 |
+
<td><?php echo (float)$_item->getTemandoLength() . ' ' . $this->getMeasureUnitText(); ?></td>
|
48 |
+
<td><?php echo (float)$_item->getTemandoWidth() . ' ' . $this->getMeasureUnitText(); ?></td>
|
49 |
+
<td class="last"><?php echo (float)$_item->getTemandoHeight() . ' ' . $this->getMeasureUnitText(); ?></td>
|
50 |
+
</tr>
|
51 |
+
<?php endif; ?>
|
52 |
+
</tbody>
|
53 |
+
<?php endforeach; ?>
|
54 |
+
</table>
|
55 |
+
</div>
|
56 |
+
</div>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/quotes.phtml
CHANGED
@@ -1,68 +1,68 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Quotes */
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div>
|
7 |
-
<div class="entry-edit">
|
8 |
-
<div class="entry-edit-head">
|
9 |
-
<h4><?php echo $this->__('Available Quotes'); ?></h4>
|
10 |
-
</div>
|
11 |
-
</div>
|
12 |
-
<div class="grid np">
|
13 |
-
<div class="hor-scroll">
|
14 |
-
<table cellspacing="0" class="box np">
|
15 |
-
<col style="width: 200px;" />
|
16 |
-
<col />
|
17 |
-
<col style="width: 120px;" />
|
18 |
-
<col style="width: 200px;" />
|
19 |
-
<col style="width: 150px;" />
|
20 |
-
<col style="width: 120px;" />
|
21 |
-
<thead>
|
22 |
-
<tr class="headings">
|
23 |
-
<th><?php echo $this->__('Carrier'); ?></th>
|
24 |
-
<th><?php echo $this->__('Delivery Method'); ?></th>
|
25 |
-
<th><?php echo $this->__('ETA'); ?></th>
|
26 |
-
<th><?php echo $this->__('Cost'); ?></th>
|
27 |
-
<th><?php echo $this->__('Notes'); ?></th>
|
28 |
-
<th class="last"> </th>
|
29 |
-
</tr>
|
30 |
-
</thead>
|
31 |
-
<?php $_i = 0; foreach ($this->getQuotes() as $_quote): /* @var $_quote Temando_Temando_Model_Quote */ ?>
|
32 |
-
<tbody>
|
33 |
-
<tr class="<?php echo ++$_i % 2 ? 'odd' : 'even'; ?>">
|
34 |
-
<td><?php echo $_quote->getCarrier()->getCompanyName(); ?></td>
|
35 |
-
<td><?php echo $_quote->getDeliveryMethod(); ?></td>
|
36 |
-
<td><?php echo $_quote->getEtaDescription(); ?></td>
|
37 |
-
<td><?php echo $this->formatQuotePrice($_quote); ?></td>
|
38 |
-
<td><?php echo $this->getQuoteNotes($_quote); ?></td>
|
39 |
-
<td class="last">
|
40 |
-
<?php if ($this->getShipment()->isPickup()): ?>
|
41 |
-
<?php if ($this->getShipment()->isReserved() && $this->getShipment()->getAdminSelectedQuoteId() == $_quote->getId()): ?>
|
42 |
-
<a href="<?php echo $this->getUrl('*/*/confirmReservation', array('shipment' => $this->getShipment()->getId(), 'quote' => $_quote->getId())); ?>" onclick="javascript: return checkUnsavedChanges();"><?php echo $this->__('Confirm Reservation'); ?></a>
|
43 |
-
<?php else: ?>
|
44 |
-
<a href="<?php echo $this->getUrl('*/*/makeReservation', array('shipment' => $this->getShipment()->getId(), 'quote' => $_quote->getId())); ?>" onclick="javascript: return checkUnsavedChanges();"><?php echo $this->__('Make Reservation'); ?></a>
|
45 |
-
<?php endif; ?>
|
46 |
-
<?php else: ?>
|
47 |
-
<a href="<?php echo $this->getUrl('*/*/book', array('shipment' => $this->getShipment()->getId(), 'quote' => $_quote->getId())); ?>" onclick="javascript: return checkUnsavedChanges();"><?php echo $this->__('Make Booking'); ?></a>
|
48 |
-
<?php endif; ?>
|
49 |
-
</td>
|
50 |
-
</tr>
|
51 |
-
</tbody>
|
52 |
-
<?php endforeach; ?>
|
53 |
-
</table>
|
54 |
-
</div>
|
55 |
-
</div>
|
56 |
-
</div>
|
57 |
-
<script type="text/javascript">
|
58 |
-
//<![CDATA[
|
59 |
-
function checkUnsavedChanges() {
|
60 |
-
var changed = $$('.changed');
|
61 |
-
if(changed.size() === 1) {
|
62 |
-
//no changes
|
63 |
-
return true;
|
64 |
-
}
|
65 |
-
return confirm('Unsaved changes will be lost. Continue booking?');
|
66 |
-
}
|
67 |
-
//]]>
|
68 |
</script>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Quotes */
|
4 |
+
?>
|
5 |
+
|
6 |
+
<div>
|
7 |
+
<div class="entry-edit">
|
8 |
+
<div class="entry-edit-head">
|
9 |
+
<h4><?php echo $this->__('Available Quotes'); ?></h4>
|
10 |
+
</div>
|
11 |
+
</div>
|
12 |
+
<div class="grid np">
|
13 |
+
<div class="hor-scroll">
|
14 |
+
<table cellspacing="0" class="box np">
|
15 |
+
<col style="width: 200px;" />
|
16 |
+
<col />
|
17 |
+
<col style="width: 120px;" />
|
18 |
+
<col style="width: 200px;" />
|
19 |
+
<col style="width: 150px;" />
|
20 |
+
<col style="width: 120px;" />
|
21 |
+
<thead>
|
22 |
+
<tr class="headings">
|
23 |
+
<th><?php echo $this->__('Carrier'); ?></th>
|
24 |
+
<th><?php echo $this->__('Delivery Method'); ?></th>
|
25 |
+
<th><?php echo $this->__('ETA'); ?></th>
|
26 |
+
<th><?php echo $this->__('Cost'); ?></th>
|
27 |
+
<th><?php echo $this->__('Notes'); ?></th>
|
28 |
+
<th class="last"> </th>
|
29 |
+
</tr>
|
30 |
+
</thead>
|
31 |
+
<?php $_i = 0; foreach ($this->getQuotes() as $_quote): /* @var $_quote Temando_Temando_Model_Quote */ ?>
|
32 |
+
<tbody>
|
33 |
+
<tr class="<?php echo ++$_i % 2 ? 'odd' : 'even'; ?>">
|
34 |
+
<td><?php echo $_quote->getCarrier()->getCompanyName(); ?></td>
|
35 |
+
<td><?php echo $_quote->getDeliveryMethod(); ?></td>
|
36 |
+
<td><?php echo $_quote->getEtaDescription(); ?></td>
|
37 |
+
<td><?php echo $this->formatQuotePrice($_quote); ?></td>
|
38 |
+
<td><?php echo $this->getQuoteNotes($_quote); ?></td>
|
39 |
+
<td class="last">
|
40 |
+
<?php if ($this->getShipment()->isPickup()): ?>
|
41 |
+
<?php if ($this->getShipment()->isReserved() && $this->getShipment()->getAdminSelectedQuoteId() == $_quote->getId()): ?>
|
42 |
+
<a href="<?php echo $this->getUrl('*/*/confirmReservation', array('shipment' => $this->getShipment()->getId(), 'quote' => $_quote->getId())); ?>" onclick="javascript: return checkUnsavedChanges();"><?php echo $this->__('Confirm Reservation'); ?></a>
|
43 |
+
<?php else: ?>
|
44 |
+
<a href="<?php echo $this->getUrl('*/*/makeReservation', array('shipment' => $this->getShipment()->getId(), 'quote' => $_quote->getId())); ?>" onclick="javascript: return checkUnsavedChanges();"><?php echo $this->__('Make Reservation'); ?></a>
|
45 |
+
<?php endif; ?>
|
46 |
+
<?php else: ?>
|
47 |
+
<a href="<?php echo $this->getUrl('*/*/book', array('shipment' => $this->getShipment()->getId(), 'quote' => $_quote->getId())); ?>" onclick="javascript: return checkUnsavedChanges();"><?php echo $this->__('Make Booking'); ?></a>
|
48 |
+
<?php endif; ?>
|
49 |
+
</td>
|
50 |
+
</tr>
|
51 |
+
</tbody>
|
52 |
+
<?php endforeach; ?>
|
53 |
+
</table>
|
54 |
+
</div>
|
55 |
+
</div>
|
56 |
+
</div>
|
57 |
+
<script type="text/javascript">
|
58 |
+
//<![CDATA[
|
59 |
+
function checkUnsavedChanges() {
|
60 |
+
var changed = $$('.changed');
|
61 |
+
if(changed.size() === 1) {
|
62 |
+
//no changes
|
63 |
+
return true;
|
64 |
+
}
|
65 |
+
return confirm('<?php echo $this->__('Unsaved changes will be lost. Continue booking?'); ?>');
|
66 |
+
}
|
67 |
+
//]]>
|
68 |
</script>
|
app/design/adminhtml/default/default/template/temando/temando/shipment/status.phtml
CHANGED
@@ -1,52 +1,52 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Status */
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div class="entry-edit">
|
7 |
-
<div class="entry-edit-head">
|
8 |
-
<h4><?php echo $this->__('Shipment Status'); ?></h4>
|
9 |
-
</div>
|
10 |
-
<div class="fieldset">
|
11 |
-
<table cellspacing="0" class="form-list">
|
12 |
-
<tbody>
|
13 |
-
<?php if ($this->getShipment()->isPickup()): ?>
|
14 |
-
<tr>
|
15 |
-
<td class="label"><label><?php echo $this->__('Selected Pickup Location'); ?></label></td>
|
16 |
-
<td class="value"><strong><?php echo $this->getShipment()->getPickupDescription(); ?></strong></td>
|
17 |
-
</tr>
|
18 |
-
<?php endif; ?>
|
19 |
-
<tr>
|
20 |
-
<td class="label"><label><?php echo $this->__('Shipment Status'); ?></label></td>
|
21 |
-
<td class="value"><strong><?php echo $this->getShipmentStatusText(); ?></strong></td>
|
22 |
-
</tr>
|
23 |
-
<tr>
|
24 |
-
<td class="label"><label><?php echo $this->__('Carrier Selected by Customer'); ?></label></td>
|
25 |
-
<td class="value"><strong><?php echo $this->getCustomerSelectedQuoteDescription(); ?></strong></td>
|
26 |
-
</tr>
|
27 |
-
<?php foreach ($this->getShipment()->getOptions() as $_option): ?>
|
28 |
-
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */?>
|
29 |
-
<tr>
|
30 |
-
<td class="label"><label><?php echo $_option->getName(); ?></label></td>
|
31 |
-
<td class="value"><strong><?php echo $_option->getLabel($_option->getForcedValue()); ?></strong>
|
32 |
-
</tr>
|
33 |
-
<?php endforeach; ?>
|
34 |
-
<tr>
|
35 |
-
<td class="label"><label><?php echo $this->__('Shipping Paid by Customer'); ?></label></td>
|
36 |
-
<td class="value"><strong><?php echo $this->formatCurrency($this->getShipment()->getOrder()->getShippingAmount()); ?></strong></td>
|
37 |
-
</tr>
|
38 |
-
<?php if ($this->getShipment()->getStatus() == Temando_Temando_Model_System_Config_Source_Shipment_Status::BOOKED): ?>
|
39 |
-
<?php $_permutation = $this->getShipment()->getSelectedQuotePermutation(); ?>
|
40 |
-
<tr>
|
41 |
-
<td class="label"><label><?php echo $this->__('Final Carrier Selected'); ?></label></td>
|
42 |
-
<td class="value"><strong><?php echo $_permutation ? $_permutation->getDescription() : $this->getShipment()->getSelectedQuote()->getDescription(); ?></strong></td>
|
43 |
-
</tr>
|
44 |
-
<tr>
|
45 |
-
<td class="label"><label><?php echo $this->__('Final Shipping Amount'); ?></label></td>
|
46 |
-
<td class="value"><strong><?php echo $this->formatCurrency($this->getShipment()->getAnticipatedCost()); ?></strong></td>
|
47 |
-
</tr>
|
48 |
-
<?php endif; ?>
|
49 |
-
</tbody>
|
50 |
-
</table>
|
51 |
-
</div>
|
52 |
-
</div>
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/* @var $this Temando_Temando_Block_Adminhtml_Shipment_Edit_Tab_Form_Status */
|
4 |
+
?>
|
5 |
+
|
6 |
+
<div class="entry-edit">
|
7 |
+
<div class="entry-edit-head">
|
8 |
+
<h4><?php echo $this->__('Shipment Status'); ?></h4>
|
9 |
+
</div>
|
10 |
+
<div class="fieldset">
|
11 |
+
<table cellspacing="0" class="form-list">
|
12 |
+
<tbody>
|
13 |
+
<?php if ($this->getShipment()->isPickup()): ?>
|
14 |
+
<tr>
|
15 |
+
<td class="label"><label><?php echo $this->__('Selected Pickup Location'); ?></label></td>
|
16 |
+
<td class="value"><strong><?php echo $this->getShipment()->getPickupDescription(); ?></strong></td>
|
17 |
+
</tr>
|
18 |
+
<?php endif; ?>
|
19 |
+
<tr>
|
20 |
+
<td class="label"><label><?php echo $this->__('Shipment Status'); ?></label></td>
|
21 |
+
<td class="value"><strong><?php echo $this->getShipmentStatusText(); ?></strong></td>
|
22 |
+
</tr>
|
23 |
+
<tr>
|
24 |
+
<td class="label"><label><?php echo $this->__('Carrier Selected by Customer'); ?></label></td>
|
25 |
+
<td class="value"><strong><?php echo $this->getCustomerSelectedQuoteDescription(); ?></strong></td>
|
26 |
+
</tr>
|
27 |
+
<?php foreach ($this->getShipment()->getOptions() as $_option): ?>
|
28 |
+
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */?>
|
29 |
+
<tr>
|
30 |
+
<td class="label"><label><?php echo $_option->getName(); ?></label></td>
|
31 |
+
<td class="value"><strong><?php echo $_option->getLabel($_option->getForcedValue()); ?></strong>
|
32 |
+
</tr>
|
33 |
+
<?php endforeach; ?>
|
34 |
+
<tr>
|
35 |
+
<td class="label"><label><?php echo $this->__('Shipping Paid by Customer'); ?></label></td>
|
36 |
+
<td class="value"><strong><?php echo $this->formatCurrency($this->getShipment()->getOrder()->getShippingAmount()); ?></strong></td>
|
37 |
+
</tr>
|
38 |
+
<?php if ($this->getShipment()->getStatus() == Temando_Temando_Model_System_Config_Source_Shipment_Status::BOOKED): ?>
|
39 |
+
<?php $_permutation = $this->getShipment()->getSelectedQuotePermutation(); ?>
|
40 |
+
<tr>
|
41 |
+
<td class="label"><label><?php echo $this->__('Final Carrier Selected'); ?></label></td>
|
42 |
+
<td class="value"><strong><?php echo $_permutation ? $_permutation->getDescription() : $this->getShipment()->getSelectedQuote()->getDescription(); ?></strong></td>
|
43 |
+
</tr>
|
44 |
+
<tr>
|
45 |
+
<td class="label"><label><?php echo $this->__('Final Shipping Amount'); ?></label></td>
|
46 |
+
<td class="value"><strong><?php echo $this->formatCurrency($this->getShipment()->getAnticipatedCost()); ?></strong></td>
|
47 |
+
</tr>
|
48 |
+
<?php endif; ?>
|
49 |
+
</tbody>
|
50 |
+
</table>
|
51 |
+
</div>
|
52 |
+
</div>
|
app/design/frontend/base/default/layout/temando.xml
CHANGED
@@ -1,102 +1,102 @@
|
|
1 |
-
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
-
<layout>
|
3 |
-
|
4 |
-
<default>
|
5 |
-
<reference name="head">
|
6 |
-
<action method="addJs"><script>temando/autocomplete.js</script></action>
|
7 |
-
<action method="addJs"><script>temando/avs.js</script></action>
|
8 |
-
<action method="addCss"><stylesheet>css/temando/autocomplete.css</stylesheet></action>
|
9 |
-
</reference>
|
10 |
-
</default>
|
11 |
-
|
12 |
-
<default>
|
13 |
-
<reference name="before_body_end">
|
14 |
-
<block type='core/template' name="pcs" template='temando/temando/pcs.phtml' />
|
15 |
-
</reference>
|
16 |
-
</default>
|
17 |
-
|
18 |
-
<etemando_pcs_product>
|
19 |
-
<reference name="root">
|
20 |
-
<block type="temando/product_shipping_methods" name="root" template="temando/temando/product/shipping/methods.phtml"/>
|
21 |
-
</reference>
|
22 |
-
</etemando_pcs_product>
|
23 |
-
|
24 |
-
<etemando_wizard_index>
|
25 |
-
<label>Temando Wizard</label>
|
26 |
-
<reference name="root">
|
27 |
-
<action method="setTemplate">
|
28 |
-
<template>temando/temando/wizard.phtml</template>
|
29 |
-
</action>
|
30 |
-
<block type="page/html" template="temando/temando/wizard/left.phtml" name="temando-left" as="temando-left"/>
|
31 |
-
<block type="temando/wizard_html" template="temando/temando/wizard/account.phtml" name="content" as="content"/>
|
32 |
-
</reference>
|
33 |
-
</etemando_wizard_index>
|
34 |
-
|
35 |
-
<checkout_onepage_index>
|
36 |
-
<reference name="head">
|
37 |
-
<action method="addItem">
|
38 |
-
<type>skin_js</type>
|
39 |
-
<name>js/temando/checkout.js</name>
|
40 |
-
</action>
|
41 |
-
<action method="addCss">
|
42 |
-
<stylesheet>css/temando/styles.css</stylesheet>
|
43 |
-
</action>
|
44 |
-
</reference>
|
45 |
-
<reference name="checkout.onepage.shipping_method.available">
|
46 |
-
<block name="checkout.onepage.shipping_method.available" type="temando/onepage_shipping_method_available" template="temando/temando/shipping_method/available.phtml">
|
47 |
-
<block name="checkout.onepage.shipping_method.available.single" as="options_single" type="temando/onepage_shipping_method_available_single" template="temando/temando/shipping_method/available/options_single.phtml" />
|
48 |
-
</block>
|
49 |
-
</reference>
|
50 |
-
</checkout_onepage_index>
|
51 |
-
|
52 |
-
<checkout_onepage_shippingmethod>
|
53 |
-
<reference name="root">
|
54 |
-
<block name="root" type="temando/onepage_shipping_method_available" template="temando/temando/shipping_method/available.phtml" >
|
55 |
-
<block name="checkout.onepage.shipping_method.available.single" as="options_single" type="temando/onepage_shipping_method_available_single" template="temando/temando/shipping_method/available/options_single.phtml" />
|
56 |
-
</block>
|
57 |
-
</reference>
|
58 |
-
</checkout_onepage_shippingmethod>
|
59 |
-
|
60 |
-
<checkout_cart_index>
|
61 |
-
<reference name="checkout.cart.shipping">
|
62 |
-
<action method="setTemplate" ifconfig='carriers/temando/active'>
|
63 |
-
<template>temando/temando/checkout/cart/shipping.phtml</template>
|
64 |
-
</action>
|
65 |
-
</reference>
|
66 |
-
|
67 |
-
</checkout_cart_index>
|
68 |
-
|
69 |
-
<catalog_product_view>
|
70 |
-
<reference name="head">
|
71 |
-
<action method="addItem">
|
72 |
-
<type>skin_js</type>
|
73 |
-
<name>js/temando/product.js</name>
|
74 |
-
</action>
|
75 |
-
<action method="addCss">
|
76 |
-
<stylesheet>css/temando/product.css</stylesheet>
|
77 |
-
</action>
|
78 |
-
</reference>
|
79 |
-
<reference name="right">
|
80 |
-
<block type="temando/product_shipping" name="temando.product.shipping" before="-" template="temando/temando/product/shipping.phtml"/>
|
81 |
-
</reference>
|
82 |
-
</catalog_product_view>
|
83 |
-
|
84 |
-
<customer_address_form>
|
85 |
-
<reference name="my.account.wrapper">
|
86 |
-
<block type="customer/address_edit" name="customer_address_edit" template="temando/temando/customer/address/edit.phtml"/>
|
87 |
-
</reference>
|
88 |
-
</customer_address_form>
|
89 |
-
|
90 |
-
<checkout_multishipping_customer_address translate="label">
|
91 |
-
<reference name="customer_address_edit">
|
92 |
-
<block type="customer/address_edit" name="customer_address_edit" template="temando/temando/customer/address/edit.phtml"/>
|
93 |
-
</reference>
|
94 |
-
</checkout_multishipping_customer_address>
|
95 |
-
|
96 |
-
<paypal_express_review>
|
97 |
-
<reference name="before_body_end">
|
98 |
-
<remove name="pcs" />
|
99 |
-
</reference>
|
100 |
-
</paypal_express_review>
|
101 |
-
|
102 |
-
</layout>
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<layout>
|
3 |
+
|
4 |
+
<default>
|
5 |
+
<reference name="head">
|
6 |
+
<action method="addJs"><script>temando/autocomplete.js</script></action>
|
7 |
+
<action method="addJs"><script>temando/avs.js</script></action>
|
8 |
+
<action method="addCss"><stylesheet>css/temando/autocomplete.css</stylesheet></action>
|
9 |
+
</reference>
|
10 |
+
</default>
|
11 |
+
|
12 |
+
<default>
|
13 |
+
<reference name="before_body_end">
|
14 |
+
<block type='core/template' name="pcs" template='temando/temando/pcs.phtml' />
|
15 |
+
</reference>
|
16 |
+
</default>
|
17 |
+
|
18 |
+
<etemando_pcs_product>
|
19 |
+
<reference name="root">
|
20 |
+
<block type="temando/product_shipping_methods" name="root" template="temando/temando/product/shipping/methods.phtml"/>
|
21 |
+
</reference>
|
22 |
+
</etemando_pcs_product>
|
23 |
+
|
24 |
+
<etemando_wizard_index>
|
25 |
+
<label>Temando Wizard</label>
|
26 |
+
<reference name="root">
|
27 |
+
<action method="setTemplate">
|
28 |
+
<template>temando/temando/wizard.phtml</template>
|
29 |
+
</action>
|
30 |
+
<block type="page/html" template="temando/temando/wizard/left.phtml" name="temando-left" as="temando-left"/>
|
31 |
+
<block type="temando/wizard_html" template="temando/temando/wizard/account.phtml" name="content" as="content"/>
|
32 |
+
</reference>
|
33 |
+
</etemando_wizard_index>
|
34 |
+
|
35 |
+
<checkout_onepage_index>
|
36 |
+
<reference name="head">
|
37 |
+
<action method="addItem">
|
38 |
+
<type>skin_js</type>
|
39 |
+
<name>js/temando/checkout.js</name>
|
40 |
+
</action>
|
41 |
+
<action method="addCss">
|
42 |
+
<stylesheet>css/temando/styles.css</stylesheet>
|
43 |
+
</action>
|
44 |
+
</reference>
|
45 |
+
<reference name="checkout.onepage.shipping_method.available">
|
46 |
+
<block name="checkout.onepage.shipping_method.available" type="temando/onepage_shipping_method_available" template="temando/temando/shipping_method/available.phtml">
|
47 |
+
<block name="checkout.onepage.shipping_method.available.single" as="options_single" type="temando/onepage_shipping_method_available_single" template="temando/temando/shipping_method/available/options_single.phtml" />
|
48 |
+
</block>
|
49 |
+
</reference>
|
50 |
+
</checkout_onepage_index>
|
51 |
+
|
52 |
+
<checkout_onepage_shippingmethod>
|
53 |
+
<reference name="root">
|
54 |
+
<block name="root" type="temando/onepage_shipping_method_available" template="temando/temando/shipping_method/available.phtml" >
|
55 |
+
<block name="checkout.onepage.shipping_method.available.single" as="options_single" type="temando/onepage_shipping_method_available_single" template="temando/temando/shipping_method/available/options_single.phtml" />
|
56 |
+
</block>
|
57 |
+
</reference>
|
58 |
+
</checkout_onepage_shippingmethod>
|
59 |
+
|
60 |
+
<checkout_cart_index>
|
61 |
+
<reference name="checkout.cart.shipping">
|
62 |
+
<action method="setTemplate" ifconfig='carriers/temando/active'>
|
63 |
+
<template>temando/temando/checkout/cart/shipping.phtml</template>
|
64 |
+
</action>
|
65 |
+
</reference>
|
66 |
+
|
67 |
+
</checkout_cart_index>
|
68 |
+
|
69 |
+
<catalog_product_view>
|
70 |
+
<reference name="head">
|
71 |
+
<action method="addItem">
|
72 |
+
<type>skin_js</type>
|
73 |
+
<name>js/temando/product.js</name>
|
74 |
+
</action>
|
75 |
+
<action method="addCss">
|
76 |
+
<stylesheet>css/temando/product.css</stylesheet>
|
77 |
+
</action>
|
78 |
+
</reference>
|
79 |
+
<reference name="right">
|
80 |
+
<block type="temando/product_shipping" name="temando.product.shipping" before="-" template="temando/temando/product/shipping.phtml"/>
|
81 |
+
</reference>
|
82 |
+
</catalog_product_view>
|
83 |
+
|
84 |
+
<customer_address_form>
|
85 |
+
<reference name="my.account.wrapper">
|
86 |
+
<block type="customer/address_edit" name="customer_address_edit" template="temando/temando/customer/address/edit.phtml"/>
|
87 |
+
</reference>
|
88 |
+
</customer_address_form>
|
89 |
+
|
90 |
+
<checkout_multishipping_customer_address translate="label">
|
91 |
+
<reference name="customer_address_edit">
|
92 |
+
<block type="customer/address_edit" name="customer_address_edit" template="temando/temando/customer/address/edit.phtml"/>
|
93 |
+
</reference>
|
94 |
+
</checkout_multishipping_customer_address>
|
95 |
+
|
96 |
+
<paypal_express_review>
|
97 |
+
<reference name="before_body_end">
|
98 |
+
<remove name="pcs" />
|
99 |
+
</reference>
|
100 |
+
</paypal_express_review>
|
101 |
+
|
102 |
+
</layout>
|
app/design/frontend/base/default/template/temando/temando/checkout/cart/shipping.phtml
CHANGED
@@ -1,132 +1,132 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package base_default
|
23 |
-
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<?php
|
28 |
-
/**
|
29 |
-
* @see Mage_Checkout_Block_Cart_Shipping
|
30 |
-
*/
|
31 |
-
?>
|
32 |
-
<div class="shipping">
|
33 |
-
<h2><?php echo $this->__('Estimate Shipping and Tax') ?></h2>
|
34 |
-
<div class="shipping-form">
|
35 |
-
<form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
|
36 |
-
<p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
|
37 |
-
<ul id="shipping_estimation" class="form-list">
|
38 |
-
<li>
|
39 |
-
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
40 |
-
<div class="input-box">
|
41 |
-
<?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
|
42 |
-
</div>
|
43 |
-
</li>
|
44 |
-
<li>
|
45 |
-
<label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label>
|
46 |
-
<div class="input-box">
|
47 |
-
<input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->htmlEscape($this->getEstimateCity()) ?>" />
|
48 |
-
</div>
|
49 |
-
</li>
|
50 |
-
<li>
|
51 |
-
<label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>><?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?><?php echo $this->__('Zip/Postal Code') ?></label>
|
52 |
-
<div class="input-box">
|
53 |
-
<input class="input-text validate-postcode<?php if ($this->isZipCodeRequired()):?> required-entry<?php endif;?>" type="text" id="postcode" name="estimate_postcode" value="<?php echo $this->htmlEscape($this->getEstimatePostcode()) ?>" />
|
54 |
-
</div>
|
55 |
-
</li>
|
56 |
-
</ul>
|
57 |
-
|
58 |
-
<div class="buttons-set">
|
59 |
-
<button type="button" title="<?php echo $this->__('Get a Quote') ?>" onclick="coShippingMethodForm.submit()" class="button"><span><span><?php echo $this->__('Get a Quote') ?></span></span></button>
|
60 |
-
</div>
|
61 |
-
</form>
|
62 |
-
|
63 |
-
<?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
64 |
-
<form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
|
65 |
-
<dl class="sp-methods">
|
66 |
-
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
67 |
-
<dt><?php echo $this->getCarrierName($code) ?></dt>
|
68 |
-
<dd>
|
69 |
-
<ul>
|
70 |
-
<?php foreach ($_rates as $_rate): ?>
|
71 |
-
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
|
72 |
-
<?php if ($_rate->getErrorMessage()): ?>
|
73 |
-
<?php echo $_rate->getErrorMessage() ?>
|
74 |
-
<?php else: ?>
|
75 |
-
<input name="estimate_method" type="radio" value="<?php echo $this->htmlEscape($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
|
76 |
-
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
|
77 |
-
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
78 |
-
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
79 |
-
<?php echo $_excl; ?>
|
80 |
-
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
81 |
-
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
82 |
-
<?php endif; ?>
|
83 |
-
</label>
|
84 |
-
<?php endif ?>
|
85 |
-
</li>
|
86 |
-
<?php endforeach; ?>
|
87 |
-
</ul>
|
88 |
-
</dd>
|
89 |
-
<?php endforeach; ?>
|
90 |
-
</dl>
|
91 |
-
<div class="buttons-set">
|
92 |
-
<button type="submit" title="<?php echo $this->__('Update Total') ?>" class="button" name="do" value="<?php echo $this->__('Update Total') ?>"><span><span><?php echo $this->__('Update Total') ?></span></span></button>
|
93 |
-
</div>
|
94 |
-
</form>
|
95 |
-
<?php endif; ?>
|
96 |
-
<script type="text/javascript">
|
97 |
-
//<![CDATA[
|
98 |
-
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
99 |
-
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
100 |
-
|
101 |
-
coShippingMethodForm.submit = function () {
|
102 |
-
var country = $F('country');
|
103 |
-
var optionalZip = false;
|
104 |
-
|
105 |
-
for (i=0; i < countriesWithOptionalZip.length; i++) {
|
106 |
-
if (countriesWithOptionalZip[i] == country) {
|
107 |
-
optionalZip = true;
|
108 |
-
}
|
109 |
-
}
|
110 |
-
if (optionalZip) {
|
111 |
-
$('postcode').removeClassName('required-entry');
|
112 |
-
}
|
113 |
-
else {
|
114 |
-
$('postcode').addClassName('required-entry');
|
115 |
-
}
|
116 |
-
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
117 |
-
}
|
118 |
-
//]]>
|
119 |
-
</script>
|
120 |
-
</div>
|
121 |
-
</div>
|
122 |
-
<script type="text/javascript">
|
123 |
-
//<[CDATA[
|
124 |
-
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
125 |
-
var avs = new Avs(
|
126 |
-
shipping_estimator_url,
|
127 |
-
'postcode',
|
128 |
-
'city',
|
129 |
-
'country'
|
130 |
-
);
|
131 |
-
//]]>
|
132 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* @see Mage_Checkout_Block_Cart_Shipping
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<div class="shipping">
|
33 |
+
<h2><?php echo $this->__('Estimate Shipping and Tax') ?></h2>
|
34 |
+
<div class="shipping-form">
|
35 |
+
<form action="<?php echo $this->getUrl('checkout/cart/estimatePost') ?>" method="post" id="shipping-zip-form">
|
36 |
+
<p><?php echo $this->__('Enter your destination to get a shipping estimate.') ?></p>
|
37 |
+
<ul id="shipping_estimation" class="form-list">
|
38 |
+
<li>
|
39 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
40 |
+
<div class="input-box">
|
41 |
+
<?php echo Mage::getBlockSingleton('directory/data')->getCountryHtmlSelect($this->getEstimateCountryId()) ?>
|
42 |
+
</div>
|
43 |
+
</li>
|
44 |
+
<li>
|
45 |
+
<label for="city"<?php if ($this->isCityRequired()) echo ' class="required"' ?>><?php if ($this->isCityRequired()) echo '<em>*</em>' ?><?php echo $this->__('City') ?></label>
|
46 |
+
<div class="input-box">
|
47 |
+
<input class="input-text<?php if ($this->isCityRequired()):?> required-entry<?php endif;?>" id="city" type="text" name="estimate_city" value="<?php echo $this->htmlEscape($this->getEstimateCity()) ?>" />
|
48 |
+
</div>
|
49 |
+
</li>
|
50 |
+
<li>
|
51 |
+
<label for="postcode"<?php if ($this->isZipCodeRequired()) echo ' class="required"' ?>><?php if ($this->isZipCodeRequired()) echo '<em>*</em>' ?><?php echo $this->__('Zip/Postal Code') ?></label>
|
52 |
+
<div class="input-box">
|
53 |
+
<input class="input-text validate-postcode<?php if ($this->isZipCodeRequired()):?> required-entry<?php endif;?>" type="text" id="postcode" name="estimate_postcode" value="<?php echo $this->htmlEscape($this->getEstimatePostcode()) ?>" />
|
54 |
+
</div>
|
55 |
+
</li>
|
56 |
+
</ul>
|
57 |
+
|
58 |
+
<div class="buttons-set">
|
59 |
+
<button type="button" title="<?php echo $this->__('Get a Quote') ?>" onclick="coShippingMethodForm.submit()" class="button"><span><span><?php echo $this->__('Get a Quote') ?></span></span></button>
|
60 |
+
</div>
|
61 |
+
</form>
|
62 |
+
|
63 |
+
<?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
64 |
+
<form id="co-shipping-method-form" action="<?php echo $this->getUrl('checkout/cart/estimateUpdatePost') ?>">
|
65 |
+
<dl class="sp-methods">
|
66 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
67 |
+
<dt><?php echo $this->getCarrierName($code) ?></dt>
|
68 |
+
<dd>
|
69 |
+
<ul>
|
70 |
+
<?php foreach ($_rates as $_rate): ?>
|
71 |
+
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
|
72 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
73 |
+
<?php echo $_rate->getErrorMessage() ?>
|
74 |
+
<?php else: ?>
|
75 |
+
<input name="estimate_method" type="radio" value="<?php echo $this->htmlEscape($_rate->getCode()) ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio" />
|
76 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
|
77 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
78 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
79 |
+
<?php echo $_excl; ?>
|
80 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
81 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
82 |
+
<?php endif; ?>
|
83 |
+
</label>
|
84 |
+
<?php endif ?>
|
85 |
+
</li>
|
86 |
+
<?php endforeach; ?>
|
87 |
+
</ul>
|
88 |
+
</dd>
|
89 |
+
<?php endforeach; ?>
|
90 |
+
</dl>
|
91 |
+
<div class="buttons-set">
|
92 |
+
<button type="submit" title="<?php echo $this->__('Update Total') ?>" class="button" name="do" value="<?php echo $this->__('Update Total') ?>"><span><span><?php echo $this->__('Update Total') ?></span></span></button>
|
93 |
+
</div>
|
94 |
+
</form>
|
95 |
+
<?php endif; ?>
|
96 |
+
<script type="text/javascript">
|
97 |
+
//<![CDATA[
|
98 |
+
var coShippingMethodForm = new VarienForm('shipping-zip-form');
|
99 |
+
var countriesWithOptionalZip = <?php echo $this->helper('directory')->getCountriesWithOptionalZip(true) ?>;
|
100 |
+
|
101 |
+
coShippingMethodForm.submit = function () {
|
102 |
+
var country = $F('country');
|
103 |
+
var optionalZip = false;
|
104 |
+
|
105 |
+
for (i=0; i < countriesWithOptionalZip.length; i++) {
|
106 |
+
if (countriesWithOptionalZip[i] == country) {
|
107 |
+
optionalZip = true;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
if (optionalZip) {
|
111 |
+
$('postcode').removeClassName('required-entry');
|
112 |
+
}
|
113 |
+
else {
|
114 |
+
$('postcode').addClassName('required-entry');
|
115 |
+
}
|
116 |
+
return VarienForm.prototype.submit.bind(coShippingMethodForm)();
|
117 |
+
}
|
118 |
+
//]]>
|
119 |
+
</script>
|
120 |
+
</div>
|
121 |
+
</div>
|
122 |
+
<script type="text/javascript">
|
123 |
+
//<[CDATA[
|
124 |
+
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
125 |
+
var avs = new Avs(
|
126 |
+
shipping_estimator_url,
|
127 |
+
'postcode',
|
128 |
+
'city',
|
129 |
+
'country'
|
130 |
+
);
|
131 |
+
//]]>
|
132 |
</script>
|
app/design/frontend/base/default/template/temando/temando/customer/address/edit.phtml
CHANGED
@@ -1,175 +1,175 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package base_default
|
23 |
-
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<?php
|
28 |
-
/**
|
29 |
-
* Edit customer address template
|
30 |
-
*
|
31 |
-
* @see Mage_Customer_Block_Address_Edit
|
32 |
-
*/
|
33 |
-
?>
|
34 |
-
<?php if($this->getTitle()): ?>
|
35 |
-
<div class="page-title">
|
36 |
-
<h1><?php echo $this->getTitle() ?></h1>
|
37 |
-
</div>
|
38 |
-
<?php endif; ?>
|
39 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
40 |
-
<form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
|
41 |
-
<div class="fieldset">
|
42 |
-
<?php echo $this->getBlockHtml('formkey')?>
|
43 |
-
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
44 |
-
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
45 |
-
<h2 class="legend"><?php echo $this->__('Contact Information') ?></h2>
|
46 |
-
<ul class="form-list">
|
47 |
-
<li class="fields">
|
48 |
-
<?php echo $this->getNameBlockHtml() ?>
|
49 |
-
</li>
|
50 |
-
<li class="wide">
|
51 |
-
<label for="company"><?php echo $this->__('Company') ?></label>
|
52 |
-
<div class="input-box">
|
53 |
-
<input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
54 |
-
</div>
|
55 |
-
</li>
|
56 |
-
<li class="fields">
|
57 |
-
<div class="field">
|
58 |
-
<label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
59 |
-
<div class="input-box">
|
60 |
-
<input type="text" name="telephone" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="telephone" />
|
61 |
-
</div>
|
62 |
-
</div>
|
63 |
-
<div class="field">
|
64 |
-
<label for="fax"><?php echo $this->__('Fax') ?></label>
|
65 |
-
<div class="input-box">
|
66 |
-
<input type="text" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" />
|
67 |
-
</div>
|
68 |
-
</div>
|
69 |
-
</li>
|
70 |
-
</ul>
|
71 |
-
</div>
|
72 |
-
<div class="fieldset">
|
73 |
-
<h2 class="legend"><?php echo $this->__('Address') ?></h2>
|
74 |
-
<ul class="form-list">
|
75 |
-
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
76 |
-
<li class="wide">
|
77 |
-
<label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
|
78 |
-
<div class="input-box">
|
79 |
-
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text <?php echo $_streetValidationClass ?>" />
|
80 |
-
</div>
|
81 |
-
</li>
|
82 |
-
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
83 |
-
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
84 |
-
<li class="wide">
|
85 |
-
<div class="input-box">
|
86 |
-
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address %s', $_i) ?>" id="street_<?php echo $_i ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
87 |
-
</div>
|
88 |
-
</li>
|
89 |
-
<?php endfor; ?>
|
90 |
-
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
91 |
-
<li class="wide">
|
92 |
-
<label for="vat_id"><?php echo $this->__('VAT Number') ?></label>
|
93 |
-
<div class="input-box">
|
94 |
-
<input type="text" name="vat_id" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo $this->__('VAT Number') ?>" id="vat_id" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
95 |
-
</div>
|
96 |
-
</li>
|
97 |
-
<?php endif; ?>
|
98 |
-
<li class="fields">
|
99 |
-
<div class="field">
|
100 |
-
<label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
101 |
-
<div class="input-box">
|
102 |
-
<input type="text" name="city" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />
|
103 |
-
</div>
|
104 |
-
</div>
|
105 |
-
<div class="field">
|
106 |
-
<label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
107 |
-
<div class="input-box">
|
108 |
-
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
109 |
-
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
110 |
-
</select>
|
111 |
-
<script type="text/javascript">
|
112 |
-
//<![CDATA[
|
113 |
-
$('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
114 |
-
//]]>
|
115 |
-
</script>
|
116 |
-
<input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" />
|
117 |
-
</div>
|
118 |
-
</div>
|
119 |
-
</li>
|
120 |
-
<li class="fields">
|
121 |
-
<div class="field">
|
122 |
-
<label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
123 |
-
<div class="input-box">
|
124 |
-
<input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
125 |
-
</div>
|
126 |
-
</div>
|
127 |
-
<div class="field">
|
128 |
-
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
129 |
-
<div class="input-box">
|
130 |
-
<?php echo $this->getCountryHtmlSelect() ?>
|
131 |
-
</div>
|
132 |
-
</div>
|
133 |
-
</li>
|
134 |
-
<li<?php if($this->canSetAsDefaultBilling()) echo ' class="control"' ?>>
|
135 |
-
<?php if($this->isDefaultBilling()): ?>
|
136 |
-
<strong><?php echo $this->__('Default Billing Address') ?></strong>
|
137 |
-
<?php elseif($this->canSetAsDefaultBilling()): ?>
|
138 |
-
<input type="checkbox" id="primary_billing" name="default_billing" value="1" title="<?php echo $this->__('Use as My Default Billing Address') ?>" class="checkbox" /><label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
|
139 |
-
<?php else: ?>
|
140 |
-
<input type="hidden" name="default_billing" value="1" />
|
141 |
-
<?php endif; ?>
|
142 |
-
</li>
|
143 |
-
<li<?php if($this->canSetAsDefaultShipping()) echo ' class="control"' ?>>
|
144 |
-
<?php if($this->isDefaultShipping()): ?>
|
145 |
-
<strong><?php echo $this->__('Default Shipping Address') ?></strong>
|
146 |
-
<?php elseif($this->canSetAsDefaultShipping()): ?>
|
147 |
-
<input type="checkbox" id="primary_shipping" name="default_shipping" value="1" title="<?php echo $this->__('Use as My Default Shipping Address') ?>" class="checkbox" /><label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
|
148 |
-
<?php else: ?>
|
149 |
-
<input type="hidden" name="default_shipping" value="1" />
|
150 |
-
<?php endif; ?>
|
151 |
-
</li>
|
152 |
-
</ul>
|
153 |
-
</div>
|
154 |
-
<div class="buttons-set">
|
155 |
-
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
156 |
-
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
157 |
-
<button type="submit" title="<?php echo $this->__('Save Address') ?>" class="button"><span><span><?php echo $this->__('Save Address') ?></span></span></button>
|
158 |
-
</div>
|
159 |
-
</form>
|
160 |
-
<script type="text/javascript">
|
161 |
-
//<![CDATA[
|
162 |
-
var dataForm = new VarienForm('form-validate', true);
|
163 |
-
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
|
164 |
-
//]]>
|
165 |
-
</script>
|
166 |
-
<script type="text/javascript">
|
167 |
-
//<![CDATA[
|
168 |
-
new Avs(
|
169 |
-
"<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>",
|
170 |
-
'zip',
|
171 |
-
'city',
|
172 |
-
'country'
|
173 |
-
);
|
174 |
-
//]]>
|
175 |
</script>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package base_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Edit customer address template
|
30 |
+
*
|
31 |
+
* @see Mage_Customer_Block_Address_Edit
|
32 |
+
*/
|
33 |
+
?>
|
34 |
+
<?php if($this->getTitle()): ?>
|
35 |
+
<div class="page-title">
|
36 |
+
<h1><?php echo $this->getTitle() ?></h1>
|
37 |
+
</div>
|
38 |
+
<?php endif; ?>
|
39 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
40 |
+
<form action="<?php echo $this->getSaveUrl() ?>" method="post" id="form-validate">
|
41 |
+
<div class="fieldset">
|
42 |
+
<?php echo $this->getBlockHtml('formkey')?>
|
43 |
+
<input type="hidden" name="success_url" value="<?php echo $this->getSuccessUrl() ?>" />
|
44 |
+
<input type="hidden" name="error_url" value="<?php echo $this->getErrorUrl() ?>" />
|
45 |
+
<h2 class="legend"><?php echo $this->__('Contact Information') ?></h2>
|
46 |
+
<ul class="form-list">
|
47 |
+
<li class="fields">
|
48 |
+
<?php echo $this->getNameBlockHtml() ?>
|
49 |
+
</li>
|
50 |
+
<li class="wide">
|
51 |
+
<label for="company"><?php echo $this->__('Company') ?></label>
|
52 |
+
<div class="input-box">
|
53 |
+
<input type="text" name="company" id="company" title="<?php echo $this->__('Company') ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getCompany()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('company') ?>" />
|
54 |
+
</div>
|
55 |
+
</li>
|
56 |
+
<li class="fields">
|
57 |
+
<div class="field">
|
58 |
+
<label for="telephone" class="required"><em>*</em><?php echo $this->__('Telephone') ?></label>
|
59 |
+
<div class="input-box">
|
60 |
+
<input type="text" name="telephone" value="<?php echo $this->escapeHtml($this->getAddress()->getTelephone()) ?>" title="<?php echo $this->__('Telephone') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('telephone') ?>" id="telephone" />
|
61 |
+
</div>
|
62 |
+
</div>
|
63 |
+
<div class="field">
|
64 |
+
<label for="fax"><?php echo $this->__('Fax') ?></label>
|
65 |
+
<div class="input-box">
|
66 |
+
<input type="text" name="fax" id="fax" title="<?php echo $this->__('Fax') ?>" value="<?php echo $this->escapeHtml($this->getAddress()->getFax()) ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('fax') ?>" />
|
67 |
+
</div>
|
68 |
+
</div>
|
69 |
+
</li>
|
70 |
+
</ul>
|
71 |
+
</div>
|
72 |
+
<div class="fieldset">
|
73 |
+
<h2 class="legend"><?php echo $this->__('Address') ?></h2>
|
74 |
+
<ul class="form-list">
|
75 |
+
<?php $_streetValidationClass = $this->helper('customer/address')->getAttributeValidationClass('street'); ?>
|
76 |
+
<li class="wide">
|
77 |
+
<label for="street_1" class="required"><em>*</em><?php echo $this->__('Street Address') ?></label>
|
78 |
+
<div class="input-box">
|
79 |
+
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet(1)) ?>" title="<?php echo $this->__('Street Address') ?>" id="street_1" class="input-text <?php echo $_streetValidationClass ?>" />
|
80 |
+
</div>
|
81 |
+
</li>
|
82 |
+
<?php $_streetValidationClass = trim(str_replace('required-entry', '', $_streetValidationClass)); ?>
|
83 |
+
<?php for ($_i = 2, $_n = $this->helper('customer/address')->getStreetLines(); $_i <= $_n; $_i++): ?>
|
84 |
+
<li class="wide">
|
85 |
+
<div class="input-box">
|
86 |
+
<input type="text" name="street[]" value="<?php echo $this->escapeHtml($this->getAddress()->getStreet($_i)) ?>" title="<?php echo $this->__('Street Address %s', $_i) ?>" id="street_<?php echo $_i ?>" class="input-text <?php echo $_streetValidationClass ?>" />
|
87 |
+
</div>
|
88 |
+
</li>
|
89 |
+
<?php endfor; ?>
|
90 |
+
<?php if ($this->helper('customer/address')->isVatAttributeVisible()) : ?>
|
91 |
+
<li class="wide">
|
92 |
+
<label for="vat_id"><?php echo $this->__('VAT Number') ?></label>
|
93 |
+
<div class="input-box">
|
94 |
+
<input type="text" name="vat_id" value="<?php echo $this->escapeHtml($this->getAddress()->getVatId()) ?>" title="<?php echo $this->__('VAT Number') ?>" id="vat_id" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('vat_id') ?>" />
|
95 |
+
</div>
|
96 |
+
</li>
|
97 |
+
<?php endif; ?>
|
98 |
+
<li class="fields">
|
99 |
+
<div class="field">
|
100 |
+
<label for="city" class="required"><em>*</em><?php echo $this->__('City') ?></label>
|
101 |
+
<div class="input-box">
|
102 |
+
<input type="text" name="city" value="<?php echo $this->escapeHtml($this->getAddress()->getCity()) ?>" title="<?php echo $this->__('City') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('city') ?>" id="city" />
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<div class="field">
|
106 |
+
<label for="region_id" class="required"><em>*</em><?php echo $this->__('State/Province') ?></label>
|
107 |
+
<div class="input-box">
|
108 |
+
<select id="region_id" name="region_id" title="<?php echo $this->__('State/Province') ?>" class="validate-select" style="display:none;">
|
109 |
+
<option value=""><?php echo $this->__('Please select region, state or province') ?></option>
|
110 |
+
</select>
|
111 |
+
<script type="text/javascript">
|
112 |
+
//<![CDATA[
|
113 |
+
$('region_id').setAttribute('defaultValue', "<?php echo $this->getAddress()->getRegionId() ?>");
|
114 |
+
//]]>
|
115 |
+
</script>
|
116 |
+
<input type="text" id="region" name="region" value="<?php echo $this->escapeHtml($this->getAddress()->getRegion()) ?>" title="<?php echo $this->__('State/Province') ?>" class="input-text <?php echo $this->helper('customer/address')->getAttributeValidationClass('region') ?>" />
|
117 |
+
</div>
|
118 |
+
</div>
|
119 |
+
</li>
|
120 |
+
<li class="fields">
|
121 |
+
<div class="field">
|
122 |
+
<label for="zip" class="required"><em>*</em><?php echo $this->__('Zip/Postal Code') ?></label>
|
123 |
+
<div class="input-box">
|
124 |
+
<input type="text" name="postcode" value="<?php echo $this->escapeHtml($this->getAddress()->getPostcode()) ?>" title="<?php echo $this->__('Zip/Postal Code') ?>" id="zip" class="input-text validate-zip-international <?php echo $this->helper('customer/address')->getAttributeValidationClass('postcode') ?>" />
|
125 |
+
</div>
|
126 |
+
</div>
|
127 |
+
<div class="field">
|
128 |
+
<label for="country" class="required"><em>*</em><?php echo $this->__('Country') ?></label>
|
129 |
+
<div class="input-box">
|
130 |
+
<?php echo $this->getCountryHtmlSelect() ?>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
</li>
|
134 |
+
<li<?php if($this->canSetAsDefaultBilling()) echo ' class="control"' ?>>
|
135 |
+
<?php if($this->isDefaultBilling()): ?>
|
136 |
+
<strong><?php echo $this->__('Default Billing Address') ?></strong>
|
137 |
+
<?php elseif($this->canSetAsDefaultBilling()): ?>
|
138 |
+
<input type="checkbox" id="primary_billing" name="default_billing" value="1" title="<?php echo $this->__('Use as My Default Billing Address') ?>" class="checkbox" /><label for="primary_billing"><?php echo $this->__('Use as my default billing address') ?></label>
|
139 |
+
<?php else: ?>
|
140 |
+
<input type="hidden" name="default_billing" value="1" />
|
141 |
+
<?php endif; ?>
|
142 |
+
</li>
|
143 |
+
<li<?php if($this->canSetAsDefaultShipping()) echo ' class="control"' ?>>
|
144 |
+
<?php if($this->isDefaultShipping()): ?>
|
145 |
+
<strong><?php echo $this->__('Default Shipping Address') ?></strong>
|
146 |
+
<?php elseif($this->canSetAsDefaultShipping()): ?>
|
147 |
+
<input type="checkbox" id="primary_shipping" name="default_shipping" value="1" title="<?php echo $this->__('Use as My Default Shipping Address') ?>" class="checkbox" /><label for="primary_shipping"><?php echo $this->__('Use as my default shipping address') ?></label>
|
148 |
+
<?php else: ?>
|
149 |
+
<input type="hidden" name="default_shipping" value="1" />
|
150 |
+
<?php endif; ?>
|
151 |
+
</li>
|
152 |
+
</ul>
|
153 |
+
</div>
|
154 |
+
<div class="buttons-set">
|
155 |
+
<p class="required"><?php echo $this->__('* Required Fields') ?></p>
|
156 |
+
<p class="back-link"><a href="<?php echo $this->escapeUrl($this->getBackUrl()) ?>"><small>« </small><?php echo $this->__('Back') ?></a></p>
|
157 |
+
<button type="submit" title="<?php echo $this->__('Save Address') ?>" class="button"><span><span><?php echo $this->__('Save Address') ?></span></span></button>
|
158 |
+
</div>
|
159 |
+
</form>
|
160 |
+
<script type="text/javascript">
|
161 |
+
//<![CDATA[
|
162 |
+
var dataForm = new VarienForm('form-validate', true);
|
163 |
+
new RegionUpdater('country', 'region', 'region_id', <?php echo $this->helper('directory')->getRegionJson() ?>, undefined, 'zip');
|
164 |
+
//]]>
|
165 |
+
</script>
|
166 |
+
<script type="text/javascript">
|
167 |
+
//<![CDATA[
|
168 |
+
new Avs(
|
169 |
+
"<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>",
|
170 |
+
'zip',
|
171 |
+
'city',
|
172 |
+
'country'
|
173 |
+
);
|
174 |
+
//]]>
|
175 |
</script>
|
app/design/frontend/base/default/template/temando/temando/onestep/options.phtml
CHANGED
@@ -1,85 +1,85 @@
|
|
1 |
-
<?php
|
2 |
-
/* @var $this Temando_Temando_Block_Onepage_Shipping_Method_Available_Single */
|
3 |
-
$_rates = $this->getTemandoShippingRates();
|
4 |
-
$_options = $this->getOptions();
|
5 |
-
$sole = $this->getSole();
|
6 |
-
?>
|
7 |
-
|
8 |
-
<?php foreach ($_rates as $_rate): ?>
|
9 |
-
<dt style="margin-bottom: 5px;">
|
10 |
-
|
11 |
-
<?php if ($_rate->getErrorMessage()): ?>
|
12 |
-
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
13 |
-
<?php else: ?>
|
14 |
-
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" class="validate-one-required-by-name <?php echo $this->getClassFromRateCode($_rate->getCode())?>"<?php if($sole) echo ' checked="checked"' ?>/>
|
15 |
-
<label for="s_method_<?php echo $_rate->getCode() ?>"><!--<b><?php echo $this->getCarrierName(Temando_Temando_Model_Hybrid::CARRIER_CODE) ?>:</b>--> <?php echo $_rate->getMethodTitle() ?>
|
16 |
-
<strong>
|
17 |
-
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
18 |
-
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
19 |
-
|
20 |
-
<?php echo $_excl; ?>
|
21 |
-
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
22 |
-
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
23 |
-
<?php endif; ?>
|
24 |
-
</strong>
|
25 |
-
</label>
|
26 |
-
<?php endif ?>
|
27 |
-
</dt>
|
28 |
-
<?php endforeach; ?>
|
29 |
-
<div id="temando_checkboxes">
|
30 |
-
<br />
|
31 |
-
<table class='insurance'>
|
32 |
-
<tr>
|
33 |
-
<?php foreach($_options as $_option_id => $_option): ?>
|
34 |
-
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
35 |
-
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
36 |
-
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
37 |
-
<td class='c1' style="display: none;">
|
38 |
-
<?php else : ?>
|
39 |
-
<td class='c1'>
|
40 |
-
<?php endif; ?>
|
41 |
-
<input
|
42 |
-
type="checkbox"
|
43 |
-
<?php if ($_option->getForcedValue() !== Temando_Temando_Model_Option_Boolean::NO): ?>
|
44 |
-
checked="checked"
|
45 |
-
<?php endif; ?>
|
46 |
-
id="temando_checkbox_<?php echo $_option_id; ?>"
|
47 |
-
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::YES): ?>
|
48 |
-
disabled="disabled"
|
49 |
-
<?php endif; ?>
|
50 |
-
class="checkbox"
|
51 |
-
/>
|
52 |
-
<label for="temando_checkbox_<?php echo $_option_id; ?>">
|
53 |
-
<?php echo $_option->getName(); ?>
|
54 |
-
</label>
|
55 |
-
<?php endif; ?>
|
56 |
-
</td>
|
57 |
-
<?php endforeach; ?>
|
58 |
-
</tr>
|
59 |
-
<tr>
|
60 |
-
<?php foreach($this->getOptions() as $_option_id => $_option): ?>
|
61 |
-
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
62 |
-
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
63 |
-
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
64 |
-
<td class='c2' style="display: none;">
|
65 |
-
<?php else : ?>
|
66 |
-
<td class='c2'>
|
67 |
-
<?php endif; ?>
|
68 |
-
<?php echo $_option->getDescription(); ?>
|
69 |
-
<?php endif; ?>
|
70 |
-
</td>
|
71 |
-
<?php endforeach; ?>
|
72 |
-
</tr>
|
73 |
-
</table>
|
74 |
-
</div>
|
75 |
-
<script type="text/javascript">
|
76 |
-
//<![CDATA[
|
77 |
-
$$('#temando_checkboxes input[type=checkbox]').each(function (control) {
|
78 |
-
Event.observe(control, 'click', function () {
|
79 |
-
option_update_onestep(control);
|
80 |
-
})
|
81 |
-
});
|
82 |
-
// Hide Temando quotes that don't match the checked options
|
83 |
-
option_update_onestep();
|
84 |
-
//]]>
|
85 |
</script>
|
1 |
+
<?php
|
2 |
+
/* @var $this Temando_Temando_Block_Onepage_Shipping_Method_Available_Single */
|
3 |
+
$_rates = $this->getTemandoShippingRates();
|
4 |
+
$_options = $this->getOptions();
|
5 |
+
$sole = $this->getSole();
|
6 |
+
?>
|
7 |
+
|
8 |
+
<?php foreach ($_rates as $_rate): ?>
|
9 |
+
<dt style="margin-bottom: 5px;">
|
10 |
+
|
11 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
12 |
+
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
13 |
+
<?php else: ?>
|
14 |
+
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" class="validate-one-required-by-name <?php echo $this->getClassFromRateCode($_rate->getCode())?>"<?php if($sole) echo ' checked="checked"' ?>/>
|
15 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><!--<b><?php echo $this->getCarrierName(Temando_Temando_Model_Hybrid::CARRIER_CODE) ?>:</b>--> <?php echo $_rate->getMethodTitle() ?>
|
16 |
+
<strong>
|
17 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
18 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
19 |
+
|
20 |
+
<?php echo $_excl; ?>
|
21 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
22 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
23 |
+
<?php endif; ?>
|
24 |
+
</strong>
|
25 |
+
</label>
|
26 |
+
<?php endif ?>
|
27 |
+
</dt>
|
28 |
+
<?php endforeach; ?>
|
29 |
+
<div id="temando_checkboxes">
|
30 |
+
<br />
|
31 |
+
<table class='insurance'>
|
32 |
+
<tr>
|
33 |
+
<?php foreach($_options as $_option_id => $_option): ?>
|
34 |
+
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
35 |
+
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
36 |
+
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
37 |
+
<td class='c1' style="display: none;">
|
38 |
+
<?php else : ?>
|
39 |
+
<td class='c1'>
|
40 |
+
<?php endif; ?>
|
41 |
+
<input
|
42 |
+
type="checkbox"
|
43 |
+
<?php if ($_option->getForcedValue() !== Temando_Temando_Model_Option_Boolean::NO): ?>
|
44 |
+
checked="checked"
|
45 |
+
<?php endif; ?>
|
46 |
+
id="temando_checkbox_<?php echo $_option_id; ?>"
|
47 |
+
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::YES): ?>
|
48 |
+
disabled="disabled"
|
49 |
+
<?php endif; ?>
|
50 |
+
class="checkbox"
|
51 |
+
/>
|
52 |
+
<label for="temando_checkbox_<?php echo $_option_id; ?>">
|
53 |
+
<?php echo $_option->getName(); ?>
|
54 |
+
</label>
|
55 |
+
<?php endif; ?>
|
56 |
+
</td>
|
57 |
+
<?php endforeach; ?>
|
58 |
+
</tr>
|
59 |
+
<tr>
|
60 |
+
<?php foreach($this->getOptions() as $_option_id => $_option): ?>
|
61 |
+
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
62 |
+
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
63 |
+
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
64 |
+
<td class='c2' style="display: none;">
|
65 |
+
<?php else : ?>
|
66 |
+
<td class='c2'>
|
67 |
+
<?php endif; ?>
|
68 |
+
<?php echo $_option->getDescription(); ?>
|
69 |
+
<?php endif; ?>
|
70 |
+
</td>
|
71 |
+
<?php endforeach; ?>
|
72 |
+
</tr>
|
73 |
+
</table>
|
74 |
+
</div>
|
75 |
+
<script type="text/javascript">
|
76 |
+
//<![CDATA[
|
77 |
+
$$('#temando_checkboxes input[type=checkbox]').each(function (control) {
|
78 |
+
Event.observe(control, 'click', function () {
|
79 |
+
option_update_onestep(control);
|
80 |
+
})
|
81 |
+
});
|
82 |
+
// Hide Temando quotes that don't match the checked options
|
83 |
+
option_update_onestep();
|
84 |
+
//]]>
|
85 |
</script>
|
app/design/frontend/base/default/template/temando/temando/onestep/shipping_method.phtml
CHANGED
@@ -1,66 +1,66 @@
|
|
1 |
-
<?php
|
2 |
-
/* @var $this Temando_Temando_Block_Onepage_Shipping_Method_Available_Single */
|
3 |
-
$sole = $this->getSole();
|
4 |
-
?>
|
5 |
-
|
6 |
-
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
|
7 |
-
<strong><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></strong>
|
8 |
-
<?php else: ?>
|
9 |
-
<?php if (count($_shippingRateGroups)=='1' && Mage::getStoreConfig('onestepcheckout/general/hide_shipping_method')):?>
|
10 |
-
<dl class="shipment-methods" style="display: none">
|
11 |
-
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
12 |
-
<dd><?php echo $this->getCarrierName($code) ?></dd>
|
13 |
-
<?php foreach ($_rates as $_rate): ?>
|
14 |
-
<dt style="margin-bottom: 5px;">
|
15 |
-
<?php if ($_rate->getErrorMessage()): ?>
|
16 |
-
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
17 |
-
<?php else: ?>
|
18 |
-
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" />
|
19 |
-
<label for="s_method_<?php echo $_rate->getCode() ?>"><!--<b><?php echo $this->getCarrierName($code) ?>:</b>--> <?php echo $_rate->getMethodTitle() ?>
|
20 |
-
<strong>
|
21 |
-
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
22 |
-
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
23 |
-
<?php echo $_excl; ?>
|
24 |
-
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
25 |
-
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
26 |
-
<?php endif; ?>
|
27 |
-
</strong>
|
28 |
-
</label>
|
29 |
-
<?php endif ?>
|
30 |
-
</dt>
|
31 |
-
<?php endforeach; ?>
|
32 |
-
<?php endforeach; ?>
|
33 |
-
</dl>
|
34 |
-
<?php else: ?>
|
35 |
-
<dl class="shipment-methods">
|
36 |
-
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
37 |
-
<dd><?php echo $this->getCarrierName($code) ?></dd>
|
38 |
-
<?php if($code == Temando_Temando_Model_Hybrid::CARRIER_CODE): ?>
|
39 |
-
<?php echo $this->getChildHtml('options') ?>
|
40 |
-
<?php else: ?>
|
41 |
-
<?php foreach ($_rates as $_rate): ?>
|
42 |
-
<dt style="margin-bottom: 5px;">
|
43 |
-
|
44 |
-
<?php if ($_rate->getErrorMessage()): ?>
|
45 |
-
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
46 |
-
<?php else: ?>
|
47 |
-
<input name="shipping_method" type="radio" class="validate-one-required-by-name" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod() || $sole) echo ' checked="checked"' ?> />
|
48 |
-
<label for="s_method_<?php echo $_rate->getCode() ?>"><!--<b><?php echo $this->getCarrierName($code) ?>:</b>--> <?php echo $_rate->getMethodTitle() ?>
|
49 |
-
<strong>
|
50 |
-
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
51 |
-
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
52 |
-
|
53 |
-
<?php echo $_excl; ?>
|
54 |
-
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
55 |
-
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
56 |
-
<?php endif; ?>
|
57 |
-
</strong>
|
58 |
-
</label>
|
59 |
-
<?php endif ?>
|
60 |
-
</dt>
|
61 |
-
<?php endforeach; ?>
|
62 |
-
<?php endif; ?>
|
63 |
-
<?php endforeach; ?>
|
64 |
-
</dl>
|
65 |
-
<?php endif; ?>
|
66 |
-
<?php endif; ?>
|
1 |
+
<?php
|
2 |
+
/* @var $this Temando_Temando_Block_Onepage_Shipping_Method_Available_Single */
|
3 |
+
$sole = $this->getSole();
|
4 |
+
?>
|
5 |
+
|
6 |
+
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
|
7 |
+
<strong><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></strong>
|
8 |
+
<?php else: ?>
|
9 |
+
<?php if (count($_shippingRateGroups)=='1' && Mage::getStoreConfig('onestepcheckout/general/hide_shipping_method')):?>
|
10 |
+
<dl class="shipment-methods" style="display: none">
|
11 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
12 |
+
<dd><?php echo $this->getCarrierName($code) ?></dd>
|
13 |
+
<?php foreach ($_rates as $_rate): ?>
|
14 |
+
<dt style="margin-bottom: 5px;">
|
15 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
16 |
+
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
17 |
+
<?php else: ?>
|
18 |
+
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" />
|
19 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><!--<b><?php echo $this->getCarrierName($code) ?>:</b>--> <?php echo $_rate->getMethodTitle() ?>
|
20 |
+
<strong>
|
21 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
22 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
23 |
+
<?php echo $_excl; ?>
|
24 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
25 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
26 |
+
<?php endif; ?>
|
27 |
+
</strong>
|
28 |
+
</label>
|
29 |
+
<?php endif ?>
|
30 |
+
</dt>
|
31 |
+
<?php endforeach; ?>
|
32 |
+
<?php endforeach; ?>
|
33 |
+
</dl>
|
34 |
+
<?php else: ?>
|
35 |
+
<dl class="shipment-methods">
|
36 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
37 |
+
<dd><?php echo $this->getCarrierName($code) ?></dd>
|
38 |
+
<?php if($code == Temando_Temando_Model_Hybrid::CARRIER_CODE): ?>
|
39 |
+
<?php echo $this->getChildHtml('options') ?>
|
40 |
+
<?php else: ?>
|
41 |
+
<?php foreach ($_rates as $_rate): ?>
|
42 |
+
<dt style="margin-bottom: 5px;">
|
43 |
+
|
44 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
45 |
+
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
46 |
+
<?php else: ?>
|
47 |
+
<input name="shipping_method" type="radio" class="validate-one-required-by-name" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod() || $sole) echo ' checked="checked"' ?> />
|
48 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><!--<b><?php echo $this->getCarrierName($code) ?>:</b>--> <?php echo $_rate->getMethodTitle() ?>
|
49 |
+
<strong>
|
50 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
51 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
52 |
+
|
53 |
+
<?php echo $_excl; ?>
|
54 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
55 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
56 |
+
<?php endif; ?>
|
57 |
+
</strong>
|
58 |
+
</label>
|
59 |
+
<?php endif ?>
|
60 |
+
</dt>
|
61 |
+
<?php endforeach; ?>
|
62 |
+
<?php endif; ?>
|
63 |
+
<?php endforeach; ?>
|
64 |
+
</dl>
|
65 |
+
<?php endif; ?>
|
66 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/temando/temando/pcs.phtml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
-
<script type="text/javascript">
|
2 |
-
|
3 |
-
<?php if (Mage::getStoreConfig('carriers/temando/active')): ?>
|
4 |
-
new Avs(
|
5 |
-
"<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>",
|
6 |
-
'billing:postcode',
|
7 |
-
'billing:city',
|
8 |
-
'billing:country_id'
|
9 |
-
);
|
10 |
-
|
11 |
-
new Avs(
|
12 |
-
"<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>",
|
13 |
-
'shipping:postcode',
|
14 |
-
'shipping:city',
|
15 |
-
'shipping:country_id'
|
16 |
-
);
|
17 |
-
<?php endif;?>
|
18 |
-
|
19 |
-
</script>
|
1 |
+
<script type="text/javascript">
|
2 |
+
|
3 |
+
<?php if (Mage::getStoreConfig('carriers/temando/active')): ?>
|
4 |
+
new Avs(
|
5 |
+
"<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>",
|
6 |
+
'billing:postcode',
|
7 |
+
'billing:city',
|
8 |
+
'billing:country_id'
|
9 |
+
);
|
10 |
+
|
11 |
+
new Avs(
|
12 |
+
"<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>",
|
13 |
+
'shipping:postcode',
|
14 |
+
'shipping:city',
|
15 |
+
'shipping:country_id'
|
16 |
+
);
|
17 |
+
<?php endif;?>
|
18 |
+
|
19 |
+
</script>
|
app/design/frontend/base/default/template/temando/temando/product/shipping.phtml
CHANGED
@@ -1,53 +1,53 @@
|
|
1 |
-
<?php if (Mage::getStoreConfig('carriers/temando/active') && Mage::helper('temando')->getConfigData('options/show_product_estimate')): ?>
|
2 |
-
<div class="block block-shipping">
|
3 |
-
<div class="block-title">
|
4 |
-
<strong><span><?php echo $this->__('Estimate Shipping') ?></span></strong>
|
5 |
-
</div>
|
6 |
-
<div class="block-content">
|
7 |
-
<div class='estimate-form'>
|
8 |
-
<form action="" name="estimate_form" method="post" onsubmit="javascript: return false;">
|
9 |
-
<ul>
|
10 |
-
<li class="fields">
|
11 |
-
<div class="city-container">
|
12 |
-
<label for="city"><?php echo $this->__('Suburb/City'); ?></label>
|
13 |
-
<input type='text' name='city' id='city' value='<?php echo $this->getCity(); ?>' class="input-text" />
|
14 |
-
</div>
|
15 |
-
</li>
|
16 |
-
<li class="fields">
|
17 |
-
<div class="postcode-container">
|
18 |
-
<label for="postcode"><?php echo $this->__('Postal Code'); ?></label>
|
19 |
-
<input type='text' name='postcode' id='postcode' value='<?php echo $this->getPostcode(); ?>' class="input-text" />
|
20 |
-
</div>
|
21 |
-
</li>
|
22 |
-
<li class="fields">
|
23 |
-
<label for="country_id"><?php echo $this->__('Country'); ?></label>
|
24 |
-
<select id="country_id" name="country_id">
|
25 |
-
<?php foreach($this->getCountryOptions() as $code => $name): ?>
|
26 |
-
<option value="<?php echo $code ?>"><?php echo $name ?></option>
|
27 |
-
<?php endforeach; ?>
|
28 |
-
</select>
|
29 |
-
</li>
|
30 |
-
</ul>
|
31 |
-
<input type='hidden' name='product_id' id='product_id' value='<?php echo $this->getProductId(); ?>' />
|
32 |
-
<input type='hidden' name='options' id='options' value='<?php echo $this->getOptions(); ?>' />
|
33 |
-
<div class='estimate-button'>
|
34 |
-
<button type="button" title="<?php echo $this->__('Get a Quote'); ?>" class="button" onclick="getShippingRates()">
|
35 |
-
<span>
|
36 |
-
<span><?php echo $this->__('Get a Quote'); ?></span>
|
37 |
-
</span>
|
38 |
-
</button>
|
39 |
-
</div>
|
40 |
-
<div id='estimate_items'>
|
41 |
-
</div>
|
42 |
-
</form>
|
43 |
-
</div>
|
44 |
-
</div>
|
45 |
-
</div>
|
46 |
-
<script type="text/javascript">
|
47 |
-
//<![CDATA[
|
48 |
-
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/product', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
49 |
-
var avs_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
50 |
-
var avs = new Avs( avs_url, 'postcode', 'city', 'country_id');
|
51 |
-
//]]>
|
52 |
-
</script>
|
53 |
<?php endif; ?>
|
1 |
+
<?php if (Mage::getStoreConfig('carriers/temando/active') && Mage::helper('temando')->getConfigData('options/show_product_estimate')): ?>
|
2 |
+
<div class="block block-shipping">
|
3 |
+
<div class="block-title">
|
4 |
+
<strong><span><?php echo $this->__('Estimate Shipping') ?></span></strong>
|
5 |
+
</div>
|
6 |
+
<div class="block-content">
|
7 |
+
<div class='estimate-form'>
|
8 |
+
<form action="" name="estimate_form" method="post" onsubmit="javascript: return false;">
|
9 |
+
<ul>
|
10 |
+
<li class="fields">
|
11 |
+
<div class="city-container">
|
12 |
+
<label for="city"><?php echo $this->__('Suburb/City'); ?></label>
|
13 |
+
<input type='text' name='city' id='city' value='<?php echo $this->getCity(); ?>' class="input-text" />
|
14 |
+
</div>
|
15 |
+
</li>
|
16 |
+
<li class="fields">
|
17 |
+
<div class="postcode-container">
|
18 |
+
<label for="postcode"><?php echo $this->__('Postal Code'); ?></label>
|
19 |
+
<input type='text' name='postcode' id='postcode' value='<?php echo $this->getPostcode(); ?>' class="input-text" />
|
20 |
+
</div>
|
21 |
+
</li>
|
22 |
+
<li class="fields">
|
23 |
+
<label for="country_id"><?php echo $this->__('Country'); ?></label>
|
24 |
+
<select id="country_id" name="country_id">
|
25 |
+
<?php foreach($this->getCountryOptions() as $code => $name): ?>
|
26 |
+
<option value="<?php echo $code ?>"><?php echo $name ?></option>
|
27 |
+
<?php endforeach; ?>
|
28 |
+
</select>
|
29 |
+
</li>
|
30 |
+
</ul>
|
31 |
+
<input type='hidden' name='product_id' id='product_id' value='<?php echo $this->getProductId(); ?>' />
|
32 |
+
<input type='hidden' name='options' id='options' value='<?php echo $this->getOptions(); ?>' />
|
33 |
+
<div class='estimate-button'>
|
34 |
+
<button type="button" title="<?php echo $this->__('Get a Quote'); ?>" class="button" onclick="getShippingRates()">
|
35 |
+
<span>
|
36 |
+
<span><?php echo $this->__('Get a Quote'); ?></span>
|
37 |
+
</span>
|
38 |
+
</button>
|
39 |
+
</div>
|
40 |
+
<div id='estimate_items'>
|
41 |
+
</div>
|
42 |
+
</form>
|
43 |
+
</div>
|
44 |
+
</div>
|
45 |
+
</div>
|
46 |
+
<script type="text/javascript">
|
47 |
+
//<![CDATA[
|
48 |
+
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/product', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
49 |
+
var avs_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
50 |
+
var avs = new Avs( avs_url, 'postcode', 'city', 'country_id');
|
51 |
+
//]]>
|
52 |
+
</script>
|
53 |
<?php endif; ?>
|
app/design/frontend/base/default/template/temando/temando/product/shipping/methods.phtml
CHANGED
@@ -1,27 +1,27 @@
|
|
1 |
-
<?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
2 |
-
<?php Mage::log($_shippingRateGroups, null, 'temando.log', true); ?>
|
3 |
-
<dl class="sp-methods">
|
4 |
-
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
5 |
-
<dt><?php echo $this->getCarrierName($code) ?></dt>
|
6 |
-
<dd>
|
7 |
-
<ul>
|
8 |
-
<?php foreach ($_rates->getAllRates() as $_rate): ?>
|
9 |
-
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
|
10 |
-
<?php if ($_rate->getErrorMessage()): ?>
|
11 |
-
<?php echo $_rate->getErrorMessage() ?>
|
12 |
-
<?php else: ?>
|
13 |
-
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
|
14 |
-
<?php $_excl = $this->formatPrice($_rate->getPrice()); ?>
|
15 |
-
<?php echo $_excl; ?>
|
16 |
-
<?php /* if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
17 |
-
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
18 |
-
<?php endif; */ ?>
|
19 |
-
</label>
|
20 |
-
<?php endif ?>
|
21 |
-
</li>
|
22 |
-
<?php endforeach; ?>
|
23 |
-
</ul>
|
24 |
-
</dd>
|
25 |
-
<?php endforeach; ?>
|
26 |
-
</dl>
|
27 |
<?php endif; ?>
|
1 |
+
<?php if (($_shippingRateGroups = $this->getEstimateRates())): ?>
|
2 |
+
<?php Mage::log($_shippingRateGroups, null, 'temando.log', true); ?>
|
3 |
+
<dl class="sp-methods">
|
4 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
5 |
+
<dt><?php echo $this->getCarrierName($code) ?></dt>
|
6 |
+
<dd>
|
7 |
+
<ul>
|
8 |
+
<?php foreach ($_rates->getAllRates() as $_rate): ?>
|
9 |
+
<li<?php if ($_rate->getErrorMessage()) echo ' class="error-msg"';?>>
|
10 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
11 |
+
<?php echo $_rate->getErrorMessage() ?>
|
12 |
+
<?php else: ?>
|
13 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
|
14 |
+
<?php $_excl = $this->formatPrice($_rate->getPrice()); ?>
|
15 |
+
<?php echo $_excl; ?>
|
16 |
+
<?php /* if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
17 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
18 |
+
<?php endif; */ ?>
|
19 |
+
</label>
|
20 |
+
<?php endif ?>
|
21 |
+
</li>
|
22 |
+
<?php endforeach; ?>
|
23 |
+
</ul>
|
24 |
+
</dd>
|
25 |
+
<?php endforeach; ?>
|
26 |
+
</dl>
|
27 |
<?php endif; ?>
|
app/design/frontend/base/default/template/temando/temando/shipping_method/available.phtml
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
-
<?php /*@var $this Temando_Temando_Block_Onepage_Shipping_Method_Available */ ?>
|
2 |
-
<?php echo $this->getChildHtml('options_single'); ?>
|
1 |
+
<?php /*@var $this Temando_Temando_Block_Onepage_Shipping_Method_Available */ ?>
|
2 |
+
<?php echo $this->getChildHtml('options_single'); ?>
|
app/design/frontend/base/default/template/temando/temando/shipping_method/available/options_single.phtml
CHANGED
@@ -1,108 +1,108 @@
|
|
1 |
-
<?php
|
2 |
-
/* @var $this Temando_Temando_Block_Onepage_Shipping_Method_Available_Single */
|
3 |
-
$_options = $this->getOptions();
|
4 |
-
$_sole = $this->getSole();
|
5 |
-
$shippingMe = array();
|
6 |
-
?>
|
7 |
-
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
|
8 |
-
<p><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></p>
|
9 |
-
<?php else: ?>
|
10 |
-
|
11 |
-
<dl class="sp-methods">
|
12 |
-
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
13 |
-
<dt><?php echo $this->getCarrierName($code) ?></dt>
|
14 |
-
<dd>
|
15 |
-
<ul>
|
16 |
-
<?php foreach ($_rates as $_rate): ?>
|
17 |
-
<?php $shippingMe[] = "'".$_rate->getCode()."':".(float)$_rate->getPrice(); ?>
|
18 |
-
<li>
|
19 |
-
<?php if ($_rate->getErrorMessage()): ?>
|
20 |
-
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
21 |
-
<?php else: ?>
|
22 |
-
<?php if ($_sole) : ?>
|
23 |
-
<span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
|
24 |
-
<?php else: ?>
|
25 |
-
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio <?php echo $this->getClassFromRateCode($_rate->getCode())?>" onchange="return includingShipping('<?php echo $_rate->getCode();?>');"/>
|
26 |
-
<?php if ($_rate->getCode()===$this->getAddressShippingMethod()): ?>
|
27 |
-
<script type="text/javascript">
|
28 |
-
//<![CDATA[
|
29 |
-
lastPrice = <?php echo (float)$_rate->getPrice(); ?>;
|
30 |
-
//]]>
|
31 |
-
</script>
|
32 |
-
<?php endif; ?>
|
33 |
-
<?php endif; ?>
|
34 |
-
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
|
35 |
-
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
36 |
-
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
37 |
-
<?php echo $_excl; ?>
|
38 |
-
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
39 |
-
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
40 |
-
<?php endif; ?>
|
41 |
-
</label>
|
42 |
-
<?php endif; ?>
|
43 |
-
</li>
|
44 |
-
<?php endforeach; ?>
|
45 |
-
<?php if($code == 'temando'): ?>
|
46 |
-
<div id="temando_checkboxes">
|
47 |
-
<br />
|
48 |
-
<table class='insurance'>
|
49 |
-
<tr>
|
50 |
-
<?php foreach($_options as $_option_id => $_option): ?>
|
51 |
-
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
52 |
-
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
53 |
-
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
54 |
-
<td class='c1' style="display: none;">
|
55 |
-
<?php else : ?>
|
56 |
-
<td class='c1'>
|
57 |
-
<?php endif; ?>
|
58 |
-
<input
|
59 |
-
type="checkbox"
|
60 |
-
<?php if ($_option->getForcedValue() !== Temando_Temando_Model_Option_Boolean::NO): ?>
|
61 |
-
checked="checked"
|
62 |
-
<?php endif; ?>
|
63 |
-
id="temando_checkbox_<?php echo $_option_id; ?>"
|
64 |
-
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::YES): ?>
|
65 |
-
disabled="disabled"
|
66 |
-
<?php endif; ?>
|
67 |
-
class="checkbox"
|
68 |
-
/>
|
69 |
-
<label for="temando_checkbox_<?php echo $_option_id; ?>">
|
70 |
-
<?php echo $_option->getName(); ?>
|
71 |
-
</label>
|
72 |
-
<?php endif; ?>
|
73 |
-
</td>
|
74 |
-
<?php endforeach; ?>
|
75 |
-
</tr>
|
76 |
-
<tr>
|
77 |
-
<?php foreach($_options as $_option_id => $_option): ?>
|
78 |
-
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
79 |
-
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
80 |
-
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
81 |
-
<td class='c2' style="display: none;">
|
82 |
-
<?php else : ?>
|
83 |
-
<td class='c2'>
|
84 |
-
<?php endif; ?>
|
85 |
-
<?php echo $_option->getDescription(); ?>
|
86 |
-
<?php endif; ?>
|
87 |
-
</td>
|
88 |
-
<?php endforeach; ?>
|
89 |
-
</tr>
|
90 |
-
</table>
|
91 |
-
</div>
|
92 |
-
<script type="text/javascript">
|
93 |
-
//<![CDATA[
|
94 |
-
$$('#temando_checkboxes input[type=checkbox]').each(function (control) {
|
95 |
-
Event.observe(control, 'click', function () {
|
96 |
-
option_update(<?php echo $_sole ? 'true' : 'false' ?>);
|
97 |
-
})
|
98 |
-
});
|
99 |
-
// Hide Temando quotes that don't match the checked options
|
100 |
-
option_update(<?php echo $_sole ? 'true' : 'false' ?>);
|
101 |
-
//]]>
|
102 |
-
</script>
|
103 |
-
<?php endif; ?>
|
104 |
-
</ul>
|
105 |
-
</dd>
|
106 |
-
<?php endforeach; ?>
|
107 |
-
</dl>
|
108 |
-
<?php endif; ?>
|
1 |
+
<?php
|
2 |
+
/* @var $this Temando_Temando_Block_Onepage_Shipping_Method_Available_Single */
|
3 |
+
$_options = $this->getOptions();
|
4 |
+
$_sole = $this->getSole();
|
5 |
+
$shippingMe = array();
|
6 |
+
?>
|
7 |
+
<?php if (!($_shippingRateGroups = $this->getShippingRates())): ?>
|
8 |
+
<p><?php echo $this->__('Sorry, no quotes are available for this order at this time.') ?></p>
|
9 |
+
<?php else: ?>
|
10 |
+
|
11 |
+
<dl class="sp-methods">
|
12 |
+
<?php foreach ($_shippingRateGroups as $code => $_rates): ?>
|
13 |
+
<dt><?php echo $this->getCarrierName($code) ?></dt>
|
14 |
+
<dd>
|
15 |
+
<ul>
|
16 |
+
<?php foreach ($_rates as $_rate): ?>
|
17 |
+
<?php $shippingMe[] = "'".$_rate->getCode()."':".(float)$_rate->getPrice(); ?>
|
18 |
+
<li>
|
19 |
+
<?php if ($_rate->getErrorMessage()): ?>
|
20 |
+
<ul class="messages"><li class="error-msg"><ul><li><?php echo $_rate->getErrorMessage() ?></li></ul></li></ul>
|
21 |
+
<?php else: ?>
|
22 |
+
<?php if ($_sole) : ?>
|
23 |
+
<span class="no-display"><input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>" checked="checked" /></span>
|
24 |
+
<?php else: ?>
|
25 |
+
<input name="shipping_method" type="radio" value="<?php echo $_rate->getCode() ?>" id="s_method_<?php echo $_rate->getCode() ?>"<?php if($_rate->getCode()===$this->getAddressShippingMethod()) echo ' checked="checked"' ?> class="radio <?php echo $this->getClassFromRateCode($_rate->getCode())?>" onchange="return includingShipping('<?php echo $_rate->getCode();?>');"/>
|
26 |
+
<?php if ($_rate->getCode()===$this->getAddressShippingMethod()): ?>
|
27 |
+
<script type="text/javascript">
|
28 |
+
//<![CDATA[
|
29 |
+
lastPrice = <?php echo (float)$_rate->getPrice(); ?>;
|
30 |
+
//]]>
|
31 |
+
</script>
|
32 |
+
<?php endif; ?>
|
33 |
+
<?php endif; ?>
|
34 |
+
<label for="s_method_<?php echo $_rate->getCode() ?>"><?php echo $_rate->getMethodTitle() ?>
|
35 |
+
<?php $_excl = $this->getShippingPrice($_rate->getPrice(), $this->helper('tax')->displayShippingPriceIncludingTax()); ?>
|
36 |
+
<?php $_incl = $this->getShippingPrice($_rate->getPrice(), true); ?>
|
37 |
+
<?php echo $_excl; ?>
|
38 |
+
<?php if ($this->helper('tax')->displayShippingBothPrices() && $_incl != $_excl): ?>
|
39 |
+
(<?php echo $this->__('Incl. Tax'); ?> <?php echo $_incl; ?>)
|
40 |
+
<?php endif; ?>
|
41 |
+
</label>
|
42 |
+
<?php endif; ?>
|
43 |
+
</li>
|
44 |
+
<?php endforeach; ?>
|
45 |
+
<?php if($code == 'temando'): ?>
|
46 |
+
<div id="temando_checkboxes">
|
47 |
+
<br />
|
48 |
+
<table class='insurance'>
|
49 |
+
<tr>
|
50 |
+
<?php foreach($_options as $_option_id => $_option): ?>
|
51 |
+
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
52 |
+
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
53 |
+
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
54 |
+
<td class='c1' style="display: none;">
|
55 |
+
<?php else : ?>
|
56 |
+
<td class='c1'>
|
57 |
+
<?php endif; ?>
|
58 |
+
<input
|
59 |
+
type="checkbox"
|
60 |
+
<?php if ($_option->getForcedValue() !== Temando_Temando_Model_Option_Boolean::NO): ?>
|
61 |
+
checked="checked"
|
62 |
+
<?php endif; ?>
|
63 |
+
id="temando_checkbox_<?php echo $_option_id; ?>"
|
64 |
+
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::YES): ?>
|
65 |
+
disabled="disabled"
|
66 |
+
<?php endif; ?>
|
67 |
+
class="checkbox"
|
68 |
+
/>
|
69 |
+
<label for="temando_checkbox_<?php echo $_option_id; ?>">
|
70 |
+
<?php echo $_option->getName(); ?>
|
71 |
+
</label>
|
72 |
+
<?php endif; ?>
|
73 |
+
</td>
|
74 |
+
<?php endforeach; ?>
|
75 |
+
</tr>
|
76 |
+
<tr>
|
77 |
+
<?php foreach($_options as $_option_id => $_option): ?>
|
78 |
+
<?php /* @var $_option Temando_Temando_Model_Option_Abstract */ ?>
|
79 |
+
<?php if ($_option instanceof Temando_Temando_Model_Option_Boolean): ?>
|
80 |
+
<?php if ($_option->getForcedValue() === Temando_Temando_Model_Option_Boolean::NO): ?>
|
81 |
+
<td class='c2' style="display: none;">
|
82 |
+
<?php else : ?>
|
83 |
+
<td class='c2'>
|
84 |
+
<?php endif; ?>
|
85 |
+
<?php echo $_option->getDescription(); ?>
|
86 |
+
<?php endif; ?>
|
87 |
+
</td>
|
88 |
+
<?php endforeach; ?>
|
89 |
+
</tr>
|
90 |
+
</table>
|
91 |
+
</div>
|
92 |
+
<script type="text/javascript">
|
93 |
+
//<![CDATA[
|
94 |
+
$$('#temando_checkboxes input[type=checkbox]').each(function (control) {
|
95 |
+
Event.observe(control, 'click', function () {
|
96 |
+
option_update(<?php echo $_sole ? 'true' : 'false' ?>);
|
97 |
+
})
|
98 |
+
});
|
99 |
+
// Hide Temando quotes that don't match the checked options
|
100 |
+
option_update(<?php echo $_sole ? 'true' : 'false' ?>);
|
101 |
+
//]]>
|
102 |
+
</script>
|
103 |
+
<?php endif; ?>
|
104 |
+
</ul>
|
105 |
+
</dd>
|
106 |
+
<?php endforeach; ?>
|
107 |
+
</dl>
|
108 |
+
<?php endif; ?>
|
app/design/frontend/base/default/template/temando/temando/wizard.phtml
CHANGED
@@ -1,125 +1,125 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Magento
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
-
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
-
* It is also available through the world-wide-web at this URL:
|
10 |
-
* http://opensource.org/licenses/afl-3.0.php
|
11 |
-
* If you did not receive a copy of the license and are unable to
|
12 |
-
* obtain it through the world-wide-web, please send an email
|
13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
-
*
|
15 |
-
* DISCLAIMER
|
16 |
-
*
|
17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
-
* versions in the future. If you wish to customize Magento for your
|
19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
-
*
|
21 |
-
* @category design
|
22 |
-
* @package default_default
|
23 |
-
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
-
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
-
*/
|
26 |
-
?>
|
27 |
-
<?php
|
28 |
-
/**
|
29 |
-
* Template for Mage_Page_Block_Html
|
30 |
-
*/
|
31 |
-
?>
|
32 |
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
33 |
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
34 |
-
<head>
|
35 |
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
36 |
-
<title><?php echo Mage::helper('install')->__('Temando Configuration Wizard') ?></title>
|
37 |
-
|
38 |
-
<link rel="icon" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/favicon.ico'; ?>" type="image/x-icon" />
|
39 |
-
<link rel="shortcut icon" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/favicon.ico'; ?>" type="image/x-icon" />
|
40 |
-
|
41 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>prototype/prototype.js"></script>
|
42 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>prototype/validation.js"></script>
|
43 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>scriptaculous/effects.js"></script>
|
44 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>mage/translate.js" ></script>
|
45 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>varien/js.js"></script>
|
46 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>varien/form.js"></script>
|
47 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>temando/avs.js"></script>
|
48 |
-
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>temando/autocomplete.js"></script>
|
49 |
-
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/reset.css'; ?>" type="text/css" media="all" />
|
50 |
-
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/boxes.css'; ?>" type="text/css" media="all" />
|
51 |
-
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/clears.css'; ?>" type="text/css" media="all" />
|
52 |
-
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'frontend/base/default/css/temando/autocomplete.css'; ?>" type="text/css" media="all" />
|
53 |
-
<!--[if IE]><link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/iestyles.css'; ?>" type="text/css" media="all" /><![endif]-->
|
54 |
-
<!--[if lt IE 7]><link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/ie7minus.css'; ?>" type="text/css" media="all" /><![endif]-->
|
55 |
-
|
56 |
-
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
|
57 |
-
|
58 |
-
</head>
|
59 |
-
|
60 |
-
<body>
|
61 |
-
<!-- [start] header -->
|
62 |
-
<div class="header">
|
63 |
-
<div class="header-top-container">
|
64 |
-
<div class="header-top">
|
65 |
-
<h1 id="logo">
|
66 |
-
<a href="<?php echo $this->getUrl('') ?>"><img src="<?php echo $this->getSkinUrl('images/logo.gif') ?>" title="<?php echo Mage::helper('install')->__('Magento') ?>" alt="<?php echo Mage::helper('install')->__('Magento') ?>" /></a>
|
67 |
-
</h1>
|
68 |
-
|
69 |
-
<?php echo $this->getChildHtml('topSearch') ?>
|
70 |
-
|
71 |
-
<div class="quick-access">
|
72 |
-
<div class="account-access">
|
73 |
-
<strong> <?php echo $this->getWelcome() ?></strong> <?php echo $this->getChildHtml('topLeftLinks') ?>
|
74 |
-
</div>
|
75 |
-
<div class="shop-access">
|
76 |
-
<?php echo $this->getChildHtml('topRightLinks') ?>
|
77 |
-
</div>
|
78 |
-
</div>
|
79 |
-
|
80 |
-
</div>
|
81 |
-
</div>
|
82 |
-
<?php echo $this->getChildHtml('topMenu') ?>
|
83 |
-
</div>
|
84 |
-
<!-- [end] header -->
|
85 |
-
|
86 |
-
<!-- [start] middle -->
|
87 |
-
<?php echo $this->getChildHtml('store') ?>
|
88 |
-
<div class="middle-container">
|
89 |
-
<div class="middle col-2-left-layout">
|
90 |
-
<?php echo $this->getChildHtml('breadcrumbs') ?>
|
91 |
-
|
92 |
-
<!-- [start] left -->
|
93 |
-
<div class="col-left side-col">
|
94 |
-
<?php echo $this->getChildHtml('temando-left') ?>
|
95 |
-
</div>
|
96 |
-
<div id="main" class="col-main">
|
97 |
-
<!-- [start] global messages -->
|
98 |
-
<?php echo $this->getChildHtml('global_messages') ?>
|
99 |
-
<!-- [end] global messages -->
|
100 |
-
<!-- [start] content -->
|
101 |
-
<?php echo $this->getChildHtml('content') ?>
|
102 |
-
<!-- [end] content -->
|
103 |
-
</div>
|
104 |
-
</div>
|
105 |
-
<!-- [end] center -->
|
106 |
-
</div>
|
107 |
-
<!-- [end] middle -->
|
108 |
-
|
109 |
-
<!-- [start] footer -->
|
110 |
-
<div class="footer-container">
|
111 |
-
<div class="footer">
|
112 |
-
<p class="legality">
|
113 |
-
<?php echo Mage::helper('install')->__('Help Us to Keep Magento Healthy') ?> - <a href="http://www.magentocommerce.com/bug-tracking" id="bug_tracking_link"><strong><?php echo Mage::helper('install')->__('Report All Bugs') ?></strong></a> <?php echo Mage::helper('install')->__('(ver. %s)', Mage::getVersion()) ?><br/>
|
114 |
-
<script type="text/javascript">
|
115 |
-
//<![CDATA[
|
116 |
-
$('bug_tracking_link').target = "varien_external";
|
117 |
-
//]]>
|
118 |
-
</script>
|
119 |
-
<?php echo Mage::helper('install')->__('Magento is a trademark of Magento Inc. Copyright © %s Magento Inc.', date('Y')) ?>
|
120 |
-
</p>
|
121 |
-
</div>
|
122 |
-
</div>
|
123 |
-
<!-- [end] footer -->
|
124 |
-
</body>
|
125 |
-
</html>
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Academic Free License (AFL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE_AFL.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/afl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category design
|
22 |
+
* @package default_default
|
23 |
+
* @copyright Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
25 |
+
*/
|
26 |
+
?>
|
27 |
+
<?php
|
28 |
+
/**
|
29 |
+
* Template for Mage_Page_Block_Html
|
30 |
+
*/
|
31 |
+
?>
|
32 |
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
33 |
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
34 |
+
<head>
|
35 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
36 |
+
<title><?php echo Mage::helper('install')->__('Temando Configuration Wizard') ?></title>
|
37 |
+
|
38 |
+
<link rel="icon" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/favicon.ico'; ?>" type="image/x-icon" />
|
39 |
+
<link rel="shortcut icon" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/favicon.ico'; ?>" type="image/x-icon" />
|
40 |
+
|
41 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>prototype/prototype.js"></script>
|
42 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>prototype/validation.js"></script>
|
43 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>scriptaculous/effects.js"></script>
|
44 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>mage/translate.js" ></script>
|
45 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>varien/js.js"></script>
|
46 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>varien/form.js"></script>
|
47 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>temando/avs.js"></script>
|
48 |
+
<script type="text/javascript" src="<?php echo $this->getJsUrl() ?>temando/autocomplete.js"></script>
|
49 |
+
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/reset.css'; ?>" type="text/css" media="all" />
|
50 |
+
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/boxes.css'; ?>" type="text/css" media="all" />
|
51 |
+
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/clears.css'; ?>" type="text/css" media="all" />
|
52 |
+
<link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'frontend/base/default/css/temando/autocomplete.css'; ?>" type="text/css" media="all" />
|
53 |
+
<!--[if IE]><link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/iestyles.css'; ?>" type="text/css" media="all" /><![endif]-->
|
54 |
+
<!--[if lt IE 7]><link rel="stylesheet" href="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN) . 'install/default/default/css/ie7minus.css'; ?>" type="text/css" media="all" /><![endif]-->
|
55 |
+
|
56 |
+
<?php echo $this->helper('core/js')->getTranslatorScript() ?>
|
57 |
+
|
58 |
+
</head>
|
59 |
+
|
60 |
+
<body>
|
61 |
+
<!-- [start] header -->
|
62 |
+
<div class="header">
|
63 |
+
<div class="header-top-container">
|
64 |
+
<div class="header-top">
|
65 |
+
<h1 id="logo">
|
66 |
+
<a href="<?php echo $this->getUrl('') ?>"><img src="<?php echo $this->getSkinUrl('images/logo.gif') ?>" title="<?php echo Mage::helper('install')->__('Magento') ?>" alt="<?php echo Mage::helper('install')->__('Magento') ?>" /></a>
|
67 |
+
</h1>
|
68 |
+
|
69 |
+
<?php echo $this->getChildHtml('topSearch') ?>
|
70 |
+
|
71 |
+
<div class="quick-access">
|
72 |
+
<div class="account-access">
|
73 |
+
<strong> <?php echo $this->getWelcome() ?></strong> <?php echo $this->getChildHtml('topLeftLinks') ?>
|
74 |
+
</div>
|
75 |
+
<div class="shop-access">
|
76 |
+
<?php echo $this->getChildHtml('topRightLinks') ?>
|
77 |
+
</div>
|
78 |
+
</div>
|
79 |
+
|
80 |
+
</div>
|
81 |
+
</div>
|
82 |
+
<?php echo $this->getChildHtml('topMenu') ?>
|
83 |
+
</div>
|
84 |
+
<!-- [end] header -->
|
85 |
+
|
86 |
+
<!-- [start] middle -->
|
87 |
+
<?php echo $this->getChildHtml('store') ?>
|
88 |
+
<div class="middle-container">
|
89 |
+
<div class="middle col-2-left-layout">
|
90 |
+
<?php echo $this->getChildHtml('breadcrumbs') ?>
|
91 |
+
|
92 |
+
<!-- [start] left -->
|
93 |
+
<div class="col-left side-col">
|
94 |
+
<?php echo $this->getChildHtml('temando-left') ?>
|
95 |
+
</div>
|
96 |
+
<div id="main" class="col-main">
|
97 |
+
<!-- [start] global messages -->
|
98 |
+
<?php echo $this->getChildHtml('global_messages') ?>
|
99 |
+
<!-- [end] global messages -->
|
100 |
+
<!-- [start] content -->
|
101 |
+
<?php echo $this->getChildHtml('content') ?>
|
102 |
+
<!-- [end] content -->
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
<!-- [end] center -->
|
106 |
+
</div>
|
107 |
+
<!-- [end] middle -->
|
108 |
+
|
109 |
+
<!-- [start] footer -->
|
110 |
+
<div class="footer-container">
|
111 |
+
<div class="footer">
|
112 |
+
<p class="legality">
|
113 |
+
<?php echo Mage::helper('install')->__('Help Us to Keep Magento Healthy') ?> - <a href="http://www.magentocommerce.com/bug-tracking" id="bug_tracking_link"><strong><?php echo Mage::helper('install')->__('Report All Bugs') ?></strong></a> <?php echo Mage::helper('install')->__('(ver. %s)', Mage::getVersion()) ?><br/>
|
114 |
+
<script type="text/javascript">
|
115 |
+
//<![CDATA[
|
116 |
+
$('bug_tracking_link').target = "varien_external";
|
117 |
+
//]]>
|
118 |
+
</script>
|
119 |
+
<?php echo Mage::helper('install')->__('Magento is a trademark of Magento Inc. Copyright © %s Magento Inc.', date('Y')) ?>
|
120 |
+
</p>
|
121 |
+
</div>
|
122 |
+
</div>
|
123 |
+
<!-- [end] footer -->
|
124 |
+
</body>
|
125 |
+
</html>
|
app/design/frontend/base/default/template/temando/temando/wizard/account.phtml
CHANGED
@@ -1,80 +1,80 @@
|
|
1 |
-
<div class="page-head">
|
2 |
-
<h3><?php echo $this->__('Temando Account Details') ?></h3>
|
3 |
-
</div>
|
4 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
-
<h4
|
6 |
-
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
-
<fieldset class="group-select wide">
|
8 |
-
<legend><?php echo $this->__('Account Details') ?></legend>
|
9 |
-
<h4 class="legend"><?php echo $this->__('Account Details') ?></h4>
|
10 |
-
<ul>
|
11 |
-
<li>
|
12 |
-
<div class="input-box">
|
13 |
-
<label for="sandbox"><?php echo $this->__('Mode') ?> <span class="required">*</span></label><br/>
|
14 |
-
</div>
|
15 |
-
<div class="input-box">
|
16 |
-
<?php echo $this->getHtmlSelect('mode'); ?>
|
17 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
18 |
-
<small><?php echo $this->__('Sandbox is used for testing.') ?></small>
|
19 |
-
</p>
|
20 |
-
</div>
|
21 |
-
|
22 |
-
</li>
|
23 |
-
<li>
|
24 |
-
<div class="input-box">
|
25 |
-
<label for="general_client"><?php echo $this->__('Client ID') ?> <span class="required">*</span></label><br/>
|
26 |
-
</div>
|
27 |
-
<div class="input-box">
|
28 |
-
<input type="text" name="general_client" value="<?php echo Mage::helper('temando')->getConfigData('general/client'); ?>" class="required-entry input-text">
|
29 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
30 |
-
<small><?php echo $this->__('If you are unsure contact <a href="mailto:support@temando.com">support@temando.com</a>.') ?></small>
|
31 |
-
</p>
|
32 |
-
</div>
|
33 |
-
</li>
|
34 |
-
<li>
|
35 |
-
<div class="input-box">
|
36 |
-
<label for="general_username"><?php echo $this->__('Login ID') ?> <span class="required">*</span></label><br/>
|
37 |
-
</div>
|
38 |
-
<div class="input-box">
|
39 |
-
<input type="text" name="general_username" value="<?php echo Mage::helper('temando')->getConfigData('general/username'); ?>" class="required-entry input-text">
|
40 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
41 |
-
<small><?php echo $this->__('The Login ID created when setting up your Temando.com profile.') ?></small>
|
42 |
-
</p>
|
43 |
-
</div>
|
44 |
-
</li>
|
45 |
-
<li>
|
46 |
-
<div class="input-box">
|
47 |
-
<label for="general_password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br/>
|
48 |
-
</div>
|
49 |
-
<div class="input-box">
|
50 |
-
<input type="password" name="general_password" value="<?php echo Mage::helper('temando')->getConfigData('general/password'); ?>" class="required-entry input-text">
|
51 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
52 |
-
<small><?php echo $this->__('The password created when setting up your Temando.com profile.') ?></small>
|
53 |
-
</p>
|
54 |
-
</div>
|
55 |
-
</li>
|
56 |
-
<li>
|
57 |
-
<div class="input-box">
|
58 |
-
<label for="payment_type"><?php echo $this->__('Payment Type') ?> <span class="required">*</span></label><br/>
|
59 |
-
</div>
|
60 |
-
<div class="input-box">
|
61 |
-
<?php echo $this->getHtmlSelect('payment'); ?>
|
62 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
63 |
-
<small><?php echo $this->__('Account for those with a pre-approved Trade Account, otherwise select Credit.') ?></small>
|
64 |
-
</p>
|
65 |
-
</div>
|
66 |
-
|
67 |
-
</li>
|
68 |
-
</ul>
|
69 |
-
</fieldset>
|
70 |
-
<div class="button-set">
|
71 |
-
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
72 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
73 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
74 |
-
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
75 |
-
</div>
|
76 |
-
</form>
|
77 |
-
<script type="text/javascript">
|
78 |
-
var dataForm = new VarienForm('form-validate');
|
79 |
-
</script>
|
80 |
-
|
1 |
+
<div class="page-head">
|
2 |
+
<h3><?php echo $this->__('Temando Account Details') ?></h3>
|
3 |
+
</div>
|
4 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
+
<h4><?php echo $this->__('We have provided you with test credentials. To go live, enter your unique details.'); ?></h4>
|
6 |
+
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
+
<fieldset class="group-select wide">
|
8 |
+
<legend><?php echo $this->__('Account Details') ?></legend>
|
9 |
+
<h4 class="legend"><?php echo $this->__('Account Details') ?></h4>
|
10 |
+
<ul>
|
11 |
+
<li>
|
12 |
+
<div class="input-box">
|
13 |
+
<label for="sandbox"><?php echo $this->__('Mode') ?> <span class="required">*</span></label><br/>
|
14 |
+
</div>
|
15 |
+
<div class="input-box">
|
16 |
+
<?php echo $this->getHtmlSelect('mode'); ?>
|
17 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
18 |
+
<small><?php echo $this->__('Sandbox is used for testing.') ?></small>
|
19 |
+
</p>
|
20 |
+
</div>
|
21 |
+
|
22 |
+
</li>
|
23 |
+
<li>
|
24 |
+
<div class="input-box">
|
25 |
+
<label for="general_client"><?php echo $this->__('Client ID') ?> <span class="required">*</span></label><br/>
|
26 |
+
</div>
|
27 |
+
<div class="input-box">
|
28 |
+
<input type="text" name="general_client" value="<?php echo Mage::helper('temando')->getConfigData('general/client'); ?>" class="required-entry input-text">
|
29 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
30 |
+
<small><?php echo $this->__('If you are unsure contact <a href="mailto:support@temando.com">support@temando.com</a>.') ?></small>
|
31 |
+
</p>
|
32 |
+
</div>
|
33 |
+
</li>
|
34 |
+
<li>
|
35 |
+
<div class="input-box">
|
36 |
+
<label for="general_username"><?php echo $this->__('Login ID') ?> <span class="required">*</span></label><br/>
|
37 |
+
</div>
|
38 |
+
<div class="input-box">
|
39 |
+
<input type="text" name="general_username" value="<?php echo Mage::helper('temando')->getConfigData('general/username'); ?>" class="required-entry input-text">
|
40 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
41 |
+
<small><?php echo $this->__('The Login ID created when setting up your Temando.com profile.') ?></small>
|
42 |
+
</p>
|
43 |
+
</div>
|
44 |
+
</li>
|
45 |
+
<li>
|
46 |
+
<div class="input-box">
|
47 |
+
<label for="general_password"><?php echo $this->__('Password') ?> <span class="required">*</span></label><br/>
|
48 |
+
</div>
|
49 |
+
<div class="input-box">
|
50 |
+
<input type="password" name="general_password" value="<?php echo Mage::helper('temando')->getConfigData('general/password'); ?>" class="required-entry input-text">
|
51 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
52 |
+
<small><?php echo $this->__('The password created when setting up your Temando.com profile.') ?></small>
|
53 |
+
</p>
|
54 |
+
</div>
|
55 |
+
</li>
|
56 |
+
<li>
|
57 |
+
<div class="input-box">
|
58 |
+
<label for="payment_type"><?php echo $this->__('Payment Type') ?> <span class="required">*</span></label><br/>
|
59 |
+
</div>
|
60 |
+
<div class="input-box">
|
61 |
+
<?php echo $this->getHtmlSelect('payment'); ?>
|
62 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
63 |
+
<small><?php echo $this->__('Account for those with a pre-approved Trade Account, otherwise select Credit.') ?></small>
|
64 |
+
</p>
|
65 |
+
</div>
|
66 |
+
|
67 |
+
</li>
|
68 |
+
</ul>
|
69 |
+
</fieldset>
|
70 |
+
<div class="button-set">
|
71 |
+
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
72 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
73 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
74 |
+
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
75 |
+
</div>
|
76 |
+
</form>
|
77 |
+
<script type="text/javascript">
|
78 |
+
var dataForm = new VarienForm('form-validate');
|
79 |
+
</script>
|
80 |
+
|
app/design/frontend/base/default/template/temando/temando/wizard/carriers.phtml
CHANGED
@@ -1,121 +1,121 @@
|
|
1 |
-
<div class="page-head">
|
2 |
-
<h3><?php echo $this->__('Allowed Carriers') ?></h3>
|
3 |
-
</div>
|
4 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
-
<h4
|
6 |
-
<p style="font-size: 11px;">Please note you can only select carriers with (Bulk) next to the name if you have organised a permanent pickup through Temando.</p>
|
7 |
-
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
8 |
-
<fieldset class="group-select wide">
|
9 |
-
<legend><?php echo $this->__('Allowed Carriers') ?></legend>
|
10 |
-
<h4 class="legend"><?php echo $this->__('Allowed Carriers') ?></h4>
|
11 |
-
<ul>
|
12 |
-
<li>
|
13 |
-
<div class="input-box">
|
14 |
-
<label for="allowed_methods"><?php echo $this->__('Allowed Carriers') ?> <span class="required">*</span></label><br/>
|
15 |
-
</div>
|
16 |
-
<div class="input-box">
|
17 |
-
<?php echo $this->getHtmlSelect('allowedCarriers'); ?>
|
18 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
19 |
-
<small><?php echo $this->__('Click the name of the carrier/s you want.') ?></small>
|
20 |
-
</p>
|
21 |
-
</div>
|
22 |
-
|
23 |
-
</li>
|
24 |
-
|
25 |
-
</ul>
|
26 |
-
</fieldset>
|
27 |
-
<fieldset class="group-select wide">
|
28 |
-
<legend><?php echo $this->__('Additional Carriers') ?></legend>
|
29 |
-
<h4 class="legend"><?php echo $this->__('Additional Carriers') ?></h4>
|
30 |
-
<h5
|
31 |
-
<ul>
|
32 |
-
<li>
|
33 |
-
<div class="input-box">
|
34 |
-
<label for="checkbox"><?php echo $this->__('Contact me with additional info') ?></label><br/>
|
35 |
-
</div>
|
36 |
-
<div class="input-box">
|
37 |
-
<input type="checkbox" id="email_checkbox" name="email_checkbox" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_checkbox') ? $this->getTmdSession('temando_wizard_carriers', 'email_checkbox') : 1; ?>" <?php
|
38 |
-
if ($this->getTmdSession('temando_wizard_carriers', 'email_checkbox') == '1') {
|
39 |
-
echo ' checked="checked"';
|
40 |
-
}
|
41 |
-
?>class="input-text">
|
42 |
-
</div>
|
43 |
-
</li>
|
44 |
-
<li id="email_box_1">
|
45 |
-
<div class="input-box">
|
46 |
-
<label for="email_full_name"><?php echo $this->__('Full Name') ?> <span class="required">*</span></label><br/>
|
47 |
-
</div>
|
48 |
-
<div class="input-box">
|
49 |
-
<input type="text" id="email_full_name" name="email_full_name" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_full_name'); ?>" class="input-text">
|
50 |
-
</div>
|
51 |
-
</li>
|
52 |
-
<li id="email_box_2">
|
53 |
-
<div class="input-box">
|
54 |
-
<label for="email_email_address"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br/>
|
55 |
-
</div>
|
56 |
-
<div class="input-box">
|
57 |
-
<input type="text" id="email_email_address" name="email_email_address" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_email_address'); ?>" class="input-text validate-email">
|
58 |
-
</div>
|
59 |
-
</li>
|
60 |
-
<li id="email_box_3">
|
61 |
-
<div class="input-box">
|
62 |
-
<label for="email_phone"><?php echo $this->__('Phone') ?> <span class="required">*</span></label><br/>
|
63 |
-
</div>
|
64 |
-
<div class="input-box">
|
65 |
-
<input type="text" id="email_phone" name="email_phone" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_phone'); ?>" class="input-text">
|
66 |
-
</div>
|
67 |
-
</li>
|
68 |
-
|
69 |
-
</ul>
|
70 |
-
</fieldset>
|
71 |
-
<div class="button-set">
|
72 |
-
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
73 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
74 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
75 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
76 |
-
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
77 |
-
</div>
|
78 |
-
</form>
|
79 |
-
|
80 |
-
<script type="text/javascript">
|
81 |
-
var dataForm = new VarienForm('form-validate');
|
82 |
-
if ($('email_checkbox').checked) {
|
83 |
-
$('email_full_name').addClassName('required-entry');
|
84 |
-
$('email_email_address').addClassName('required-entry');
|
85 |
-
$('email_phone').addClassName('required-entry');
|
86 |
-
$('email_box_1').show();
|
87 |
-
$('email_box_2').show();
|
88 |
-
$('email_box_3').show();
|
89 |
-
} else {
|
90 |
-
$('email_full_name').removeClassName('required-entry');
|
91 |
-
$('email_email_address').removeClassName('required-entry');
|
92 |
-
$('email_phone').removeClassName('required-entry');
|
93 |
-
$('email_box_1').hide();
|
94 |
-
$('email_box_2').hide();
|
95 |
-
$('email_box_3').hide();
|
96 |
-
}
|
97 |
-
</script>
|
98 |
-
<script type="text/javascript">
|
99 |
-
//<![CDATA[
|
100 |
-
|
101 |
-
Event.observe($('email_checkbox'), 'change', function() {
|
102 |
-
if ($('email_checkbox').checked) {
|
103 |
-
$('email_full_name').addClassName('required-entry');
|
104 |
-
$('email_email_address').addClassName('required-entry');
|
105 |
-
$('email_phone').addClassName('required-entry');
|
106 |
-
$('email_box_1').show();
|
107 |
-
$('email_box_2').show();
|
108 |
-
$('email_box_3').show();
|
109 |
-
} else {
|
110 |
-
$('email_full_name').removeClassName('required-entry');
|
111 |
-
$('email_email_address').removeClassName('required-entry');
|
112 |
-
$('email_phone').removeClassName('required-entry');
|
113 |
-
$('email_box_1').hide();
|
114 |
-
$('email_box_2').hide();
|
115 |
-
$('email_box_3').hide();
|
116 |
-
}
|
117 |
-
});
|
118 |
-
//]]>
|
119 |
-
</script>
|
120 |
-
|
121 |
-
|
1 |
+
<div class="page-head">
|
2 |
+
<h3><?php echo $this->__('Allowed Carriers') ?></h3>
|
3 |
+
</div>
|
4 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
+
<h4><?php echo $this->__('Allows you to specify which carriers you will receive quotes from.'); ?></h4>
|
6 |
+
<p style="font-size: 11px;">Please note you can only select carriers with (Bulk) next to the name if you have organised a permanent pickup through Temando.</p>
|
7 |
+
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
8 |
+
<fieldset class="group-select wide">
|
9 |
+
<legend><?php echo $this->__('Allowed Carriers') ?></legend>
|
10 |
+
<h4 class="legend"><?php echo $this->__('Allowed Carriers') ?></h4>
|
11 |
+
<ul>
|
12 |
+
<li>
|
13 |
+
<div class="input-box">
|
14 |
+
<label for="allowed_methods"><?php echo $this->__('Allowed Carriers') ?> <span class="required">*</span></label><br/>
|
15 |
+
</div>
|
16 |
+
<div class="input-box">
|
17 |
+
<?php echo $this->getHtmlSelect('allowedCarriers'); ?>
|
18 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
19 |
+
<small><?php echo $this->__('Click the name of the carrier/s you want.') ?></small>
|
20 |
+
</p>
|
21 |
+
</div>
|
22 |
+
|
23 |
+
</li>
|
24 |
+
|
25 |
+
</ul>
|
26 |
+
</fieldset>
|
27 |
+
<fieldset class="group-select wide">
|
28 |
+
<legend><?php echo $this->__('Additional Carriers') ?></legend>
|
29 |
+
<h4 class="legend"><?php echo $this->__('Additional Carriers') ?></h4>
|
30 |
+
<h5><?php echo $this->__('Additional carriers are available with BYO rates'); ?></h5>
|
31 |
+
<ul>
|
32 |
+
<li>
|
33 |
+
<div class="input-box">
|
34 |
+
<label for="checkbox"><?php echo $this->__('Contact me with additional info') ?></label><br/>
|
35 |
+
</div>
|
36 |
+
<div class="input-box">
|
37 |
+
<input type="checkbox" id="email_checkbox" name="email_checkbox" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_checkbox') ? $this->getTmdSession('temando_wizard_carriers', 'email_checkbox') : 1; ?>" <?php
|
38 |
+
if ($this->getTmdSession('temando_wizard_carriers', 'email_checkbox') == '1') {
|
39 |
+
echo ' checked="checked"';
|
40 |
+
}
|
41 |
+
?>class="input-text">
|
42 |
+
</div>
|
43 |
+
</li>
|
44 |
+
<li id="email_box_1">
|
45 |
+
<div class="input-box">
|
46 |
+
<label for="email_full_name"><?php echo $this->__('Full Name') ?> <span class="required">*</span></label><br/>
|
47 |
+
</div>
|
48 |
+
<div class="input-box">
|
49 |
+
<input type="text" id="email_full_name" name="email_full_name" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_full_name'); ?>" class="input-text">
|
50 |
+
</div>
|
51 |
+
</li>
|
52 |
+
<li id="email_box_2">
|
53 |
+
<div class="input-box">
|
54 |
+
<label for="email_email_address"><?php echo $this->__('Email Address') ?> <span class="required">*</span></label><br/>
|
55 |
+
</div>
|
56 |
+
<div class="input-box">
|
57 |
+
<input type="text" id="email_email_address" name="email_email_address" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_email_address'); ?>" class="input-text validate-email">
|
58 |
+
</div>
|
59 |
+
</li>
|
60 |
+
<li id="email_box_3">
|
61 |
+
<div class="input-box">
|
62 |
+
<label for="email_phone"><?php echo $this->__('Phone') ?> <span class="required">*</span></label><br/>
|
63 |
+
</div>
|
64 |
+
<div class="input-box">
|
65 |
+
<input type="text" id="email_phone" name="email_phone" value="<?php echo $this->getTmdSession('temando_wizard_carriers', 'email_phone'); ?>" class="input-text">
|
66 |
+
</div>
|
67 |
+
</li>
|
68 |
+
|
69 |
+
</ul>
|
70 |
+
</fieldset>
|
71 |
+
<div class="button-set">
|
72 |
+
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
73 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
74 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
75 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
76 |
+
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
77 |
+
</div>
|
78 |
+
</form>
|
79 |
+
|
80 |
+
<script type="text/javascript">
|
81 |
+
var dataForm = new VarienForm('form-validate');
|
82 |
+
if ($('email_checkbox').checked) {
|
83 |
+
$('email_full_name').addClassName('required-entry');
|
84 |
+
$('email_email_address').addClassName('required-entry');
|
85 |
+
$('email_phone').addClassName('required-entry');
|
86 |
+
$('email_box_1').show();
|
87 |
+
$('email_box_2').show();
|
88 |
+
$('email_box_3').show();
|
89 |
+
} else {
|
90 |
+
$('email_full_name').removeClassName('required-entry');
|
91 |
+
$('email_email_address').removeClassName('required-entry');
|
92 |
+
$('email_phone').removeClassName('required-entry');
|
93 |
+
$('email_box_1').hide();
|
94 |
+
$('email_box_2').hide();
|
95 |
+
$('email_box_3').hide();
|
96 |
+
}
|
97 |
+
</script>
|
98 |
+
<script type="text/javascript">
|
99 |
+
//<![CDATA[
|
100 |
+
|
101 |
+
Event.observe($('email_checkbox'), 'change', function() {
|
102 |
+
if ($('email_checkbox').checked) {
|
103 |
+
$('email_full_name').addClassName('required-entry');
|
104 |
+
$('email_email_address').addClassName('required-entry');
|
105 |
+
$('email_phone').addClassName('required-entry');
|
106 |
+
$('email_box_1').show();
|
107 |
+
$('email_box_2').show();
|
108 |
+
$('email_box_3').show();
|
109 |
+
} else {
|
110 |
+
$('email_full_name').removeClassName('required-entry');
|
111 |
+
$('email_email_address').removeClassName('required-entry');
|
112 |
+
$('email_phone').removeClassName('required-entry');
|
113 |
+
$('email_box_1').hide();
|
114 |
+
$('email_box_2').hide();
|
115 |
+
$('email_box_3').hide();
|
116 |
+
}
|
117 |
+
});
|
118 |
+
//]]>
|
119 |
+
</script>
|
120 |
+
|
121 |
+
|
app/design/frontend/base/default/template/temando/temando/wizard/catalog_product.phtml
CHANGED
@@ -1,91 +1,91 @@
|
|
1 |
-
<div class="page-head">
|
2 |
-
<h3><?php echo $this->__('Catalog/Product') ?></h3>
|
3 |
-
</div>
|
4 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
-
<h4
|
6 |
-
<p style="font-size: 11px;"
|
7 |
-
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
8 |
-
<fieldset class="group-select wide">
|
9 |
-
<legend><?php echo $this->__('Units') ?></legend>
|
10 |
-
<h4 class="legend"><?php echo $this->__('Units') ?></h4>
|
11 |
-
<p style="font-size: 11px; color:#666;"
|
12 |
-
<ul>
|
13 |
-
<li>
|
14 |
-
<div class="input-box">
|
15 |
-
<label for="measure"><?php echo $this->__('Measure Unit') ?> <span class="required">*</span></label><br/>
|
16 |
-
</div>
|
17 |
-
<div class="input-box">
|
18 |
-
<?php echo $this->getHtmlSelect('measureUnits'); ?>
|
19 |
-
</div>
|
20 |
-
|
21 |
-
</li>
|
22 |
-
<li>
|
23 |
-
<div class="input-box">
|
24 |
-
<label for="weight"><?php echo $this->__('Weight Unit') ?> <span class="required">*</span></label><br/>
|
25 |
-
</div>
|
26 |
-
<div class="input-box">
|
27 |
-
<?php echo $this->getHtmlSelect('weightUnits'); ?>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
</li>
|
31 |
-
</ul>
|
32 |
-
</fieldset>
|
33 |
-
<fieldset class="group-select wide">
|
34 |
-
<legend><?php echo $this->__('Default Packaing') ?></legend>
|
35 |
-
<h4 class="legend"><?php echo $this->__('Default Packaing') ?></h4>
|
36 |
-
<p style="font-size: 11px; color:#666;"
|
37 |
-
<ul>
|
38 |
-
<li>
|
39 |
-
<div class="input-box">
|
40 |
-
<label for="packaging"><?php echo $this->__('Packaging Type') ?> <span class="required">*</span></label><br/>
|
41 |
-
</div>
|
42 |
-
<div class="input-box">
|
43 |
-
<?php echo $this->getHtmlSelect('packagingType'); ?>
|
44 |
-
</div>
|
45 |
-
</li>
|
46 |
-
<li>
|
47 |
-
<div class="input-box">
|
48 |
-
<label for="fragile"><?php echo $this->__('Fragile') ?> <span class="required">*</span></label><br/>
|
49 |
-
</div>
|
50 |
-
<div class="input-box">
|
51 |
-
<?php echo $this->getHtmlSelect('fragile'); ?>
|
52 |
-
</div>
|
53 |
-
</li>
|
54 |
-
<li>
|
55 |
-
<div class="input-box">
|
56 |
-
<label for="length"><?php echo $this->__('Length') ?> <span class="required">*</span></label><br/>
|
57 |
-
</div>
|
58 |
-
<div class="input-box">
|
59 |
-
<input type="text" name="defaults_length" value="<?php echo Mage::helper('temando')->getConfigData('defaults/length'); ?>" class="required-entry input-text">
|
60 |
-
</div>
|
61 |
-
</li>
|
62 |
-
<li>
|
63 |
-
<div class="input-box">
|
64 |
-
<label for="width"><?php echo $this->__('Width') ?> <span class="required">*</span></label><br/>
|
65 |
-
</div>
|
66 |
-
<div class="input-box">
|
67 |
-
<input type="text" name="defaults_width" value="<?php echo Mage::helper('temando')->getConfigData('defaults/width'); ?>" class="required-entry input-text">
|
68 |
-
</div>
|
69 |
-
</li>
|
70 |
-
<li>
|
71 |
-
<div class="input-box">
|
72 |
-
<label for="height"><?php echo $this->__('Height') ?> <span class="required">*</span></label><br/>
|
73 |
-
</div>
|
74 |
-
<div class="input-box">
|
75 |
-
<input type="text" name="defaults_height" value="<?php echo Mage::helper('temando')->getConfigData('defaults/height'); ?>" class="required-entry input-text">
|
76 |
-
</div>
|
77 |
-
</li>
|
78 |
-
</ul>
|
79 |
-
</fieldset>
|
80 |
-
<div class="button-set">
|
81 |
-
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
82 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
83 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
84 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
85 |
-
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
86 |
-
</div>
|
87 |
-
</form>
|
88 |
-
<script type="text/javascript">
|
89 |
-
var dataForm = new VarienForm('form-validate');
|
90 |
-
</script>
|
91 |
-
|
1 |
+
<div class="page-head">
|
2 |
+
<h3><?php echo $this->__('Catalog/Product') ?></h3>
|
3 |
+
</div>
|
4 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
+
<h4><?php echo $this->__('This area relates to the unique packaging of your products.'); ?></h4>
|
6 |
+
<p style="font-size: 11px;"><?php echo $this->__('Ensure you populate your Temando tab in the Magento Catalog section.'); ?></p>
|
7 |
+
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
8 |
+
<fieldset class="group-select wide">
|
9 |
+
<legend><?php echo $this->__('Units') ?></legend>
|
10 |
+
<h4 class="legend"><?php echo $this->__('Units') ?></h4>
|
11 |
+
<p style="font-size: 11px; color:#666;"><?php echo $this->__('Corresponds to the numerical values entered against each of your products in the catalogue.'); ?></p>
|
12 |
+
<ul>
|
13 |
+
<li>
|
14 |
+
<div class="input-box">
|
15 |
+
<label for="measure"><?php echo $this->__('Measure Unit') ?> <span class="required">*</span></label><br/>
|
16 |
+
</div>
|
17 |
+
<div class="input-box">
|
18 |
+
<?php echo $this->getHtmlSelect('measureUnits'); ?>
|
19 |
+
</div>
|
20 |
+
|
21 |
+
</li>
|
22 |
+
<li>
|
23 |
+
<div class="input-box">
|
24 |
+
<label for="weight"><?php echo $this->__('Weight Unit') ?> <span class="required">*</span></label><br/>
|
25 |
+
</div>
|
26 |
+
<div class="input-box">
|
27 |
+
<?php echo $this->getHtmlSelect('weightUnits'); ?>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
</li>
|
31 |
+
</ul>
|
32 |
+
</fieldset>
|
33 |
+
<fieldset class="group-select wide">
|
34 |
+
<legend><?php echo $this->__('Default Packaing') ?></legend>
|
35 |
+
<h4 class="legend"><?php echo $this->__('Default Packaing') ?></h4>
|
36 |
+
<p style="font-size: 11px; color:#666;"><?php echo $this->__('The default package you create will be used for a product if you have not pre-defined dimensions of a product in the Temando Tab of the Catalog section.') ?></p>
|
37 |
+
<ul>
|
38 |
+
<li>
|
39 |
+
<div class="input-box">
|
40 |
+
<label for="packaging"><?php echo $this->__('Packaging Type') ?> <span class="required">*</span></label><br/>
|
41 |
+
</div>
|
42 |
+
<div class="input-box">
|
43 |
+
<?php echo $this->getHtmlSelect('packagingType'); ?>
|
44 |
+
</div>
|
45 |
+
</li>
|
46 |
+
<li>
|
47 |
+
<div class="input-box">
|
48 |
+
<label for="fragile"><?php echo $this->__('Fragile') ?> <span class="required">*</span></label><br/>
|
49 |
+
</div>
|
50 |
+
<div class="input-box">
|
51 |
+
<?php echo $this->getHtmlSelect('fragile'); ?>
|
52 |
+
</div>
|
53 |
+
</li>
|
54 |
+
<li>
|
55 |
+
<div class="input-box">
|
56 |
+
<label for="length"><?php echo $this->__('Length') ?> <span class="required">*</span></label><br/>
|
57 |
+
</div>
|
58 |
+
<div class="input-box">
|
59 |
+
<input type="text" name="defaults_length" value="<?php echo Mage::helper('temando')->getConfigData('defaults/length'); ?>" class="required-entry input-text">
|
60 |
+
</div>
|
61 |
+
</li>
|
62 |
+
<li>
|
63 |
+
<div class="input-box">
|
64 |
+
<label for="width"><?php echo $this->__('Width') ?> <span class="required">*</span></label><br/>
|
65 |
+
</div>
|
66 |
+
<div class="input-box">
|
67 |
+
<input type="text" name="defaults_width" value="<?php echo Mage::helper('temando')->getConfigData('defaults/width'); ?>" class="required-entry input-text">
|
68 |
+
</div>
|
69 |
+
</li>
|
70 |
+
<li>
|
71 |
+
<div class="input-box">
|
72 |
+
<label for="height"><?php echo $this->__('Height') ?> <span class="required">*</span></label><br/>
|
73 |
+
</div>
|
74 |
+
<div class="input-box">
|
75 |
+
<input type="text" name="defaults_height" value="<?php echo Mage::helper('temando')->getConfigData('defaults/height'); ?>" class="required-entry input-text">
|
76 |
+
</div>
|
77 |
+
</li>
|
78 |
+
</ul>
|
79 |
+
</fieldset>
|
80 |
+
<div class="button-set">
|
81 |
+
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
82 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
83 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
84 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
85 |
+
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
86 |
+
</div>
|
87 |
+
</form>
|
88 |
+
<script type="text/javascript">
|
89 |
+
var dataForm = new VarienForm('form-validate');
|
90 |
+
</script>
|
91 |
+
|
app/design/frontend/base/default/template/temando/temando/wizard/countries.phtml
CHANGED
@@ -1,66 +1,66 @@
|
|
1 |
-
<div class="page-head">
|
2 |
-
<h3><?php echo $this->__('Allowed Countries') ?></h3>
|
3 |
-
</div>
|
4 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
-
<h4
|
6 |
-
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
-
<fieldset class="group-select wide">
|
8 |
-
<legend><?php echo $this->__('Allowed Countries') ?></legend>
|
9 |
-
<h4 class="legend"><?php echo $this->__('Allowed Countries') ?></h4>
|
10 |
-
<ul>
|
11 |
-
<li>
|
12 |
-
<div class="input-box">
|
13 |
-
<label for="allowed_methods"><?php echo $this->__('Mode') ?> <span class="required">*</span></label><br/>
|
14 |
-
</div>
|
15 |
-
<div class="input-box">
|
16 |
-
<?php echo $this->getHtmlSelect('allowedCountries'); ?>
|
17 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
18 |
-
<small><?php echo $this->__('Select Allowed Countries to allow all enabled countries. Select Specific Countries to pick & choose (ensure Australia is selected). ') ?></small>
|
19 |
-
</p>
|
20 |
-
</div>
|
21 |
-
</li>
|
22 |
-
<li id="specificcountry_box">
|
23 |
-
<div class="input-box">
|
24 |
-
<label for="specificcountry"><?php echo $this->__('Specific Countries') ?> <span class="required">*</span></label><br/>
|
25 |
-
</div>
|
26 |
-
<div class="input-box">
|
27 |
-
<?php echo $this->getHtmlSelect('specificCountries'); ?>
|
28 |
-
</div>
|
29 |
-
</li>
|
30 |
-
</ul>
|
31 |
-
</fieldset>
|
32 |
-
<div class="button-set">
|
33 |
-
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
34 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
35 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
36 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
37 |
-
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
38 |
-
</div>
|
39 |
-
</form>
|
40 |
-
<script type="text/javascript">
|
41 |
-
var dataForm = new VarienForm('form-validate');
|
42 |
-
if ($('sallowspecific').value == '1') {
|
43 |
-
$('sallowspecific').setValue('1');
|
44 |
-
$('specificcountry').addClassName('required-entry');
|
45 |
-
$('specificcountry_box').show();
|
46 |
-
} else {
|
47 |
-
$('sallowspecific').setValue('0');
|
48 |
-
$('specificcountry').removeClassName('required-entry');
|
49 |
-
$('specificcountry_box').hide();
|
50 |
-
}
|
51 |
-
</script>
|
52 |
-
<script type="text/javascript">
|
53 |
-
//<![CDATA[
|
54 |
-
|
55 |
-
Event.observe($('sallowspecific'), 'change', function() {
|
56 |
-
if ($('sallowspecific').value == '1') {
|
57 |
-
$('specificcountry').addClassName('required-entry');
|
58 |
-
$('specificcountry_box').show();
|
59 |
-
} else {
|
60 |
-
$('specificcountry').removeClassName('required-entry');
|
61 |
-
$('specificcountry_box').hide();
|
62 |
-
}
|
63 |
-
});
|
64 |
-
//]]>
|
65 |
-
</script>
|
66 |
-
|
1 |
+
<div class="page-head">
|
2 |
+
<h3><?php echo $this->__('Allowed Countries') ?></h3>
|
3 |
+
</div>
|
4 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
+
<h4><?php echo $this->__('Defines the countries you are using Temando to ship from and to.'); ?></h4>
|
6 |
+
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
+
<fieldset class="group-select wide">
|
8 |
+
<legend><?php echo $this->__('Allowed Countries') ?></legend>
|
9 |
+
<h4 class="legend"><?php echo $this->__('Allowed Countries') ?></h4>
|
10 |
+
<ul>
|
11 |
+
<li>
|
12 |
+
<div class="input-box">
|
13 |
+
<label for="allowed_methods"><?php echo $this->__('Mode') ?> <span class="required">*</span></label><br/>
|
14 |
+
</div>
|
15 |
+
<div class="input-box">
|
16 |
+
<?php echo $this->getHtmlSelect('allowedCountries'); ?>
|
17 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
18 |
+
<small><?php echo $this->__('Select Allowed Countries to allow all enabled countries. Select Specific Countries to pick & choose (ensure Australia is selected). ') ?></small>
|
19 |
+
</p>
|
20 |
+
</div>
|
21 |
+
</li>
|
22 |
+
<li id="specificcountry_box">
|
23 |
+
<div class="input-box">
|
24 |
+
<label for="specificcountry"><?php echo $this->__('Specific Countries') ?> <span class="required">*</span></label><br/>
|
25 |
+
</div>
|
26 |
+
<div class="input-box">
|
27 |
+
<?php echo $this->getHtmlSelect('specificCountries'); ?>
|
28 |
+
</div>
|
29 |
+
</li>
|
30 |
+
</ul>
|
31 |
+
</fieldset>
|
32 |
+
<div class="button-set">
|
33 |
+
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
34 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
35 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
36 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
37 |
+
<button class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
38 |
+
</div>
|
39 |
+
</form>
|
40 |
+
<script type="text/javascript">
|
41 |
+
var dataForm = new VarienForm('form-validate');
|
42 |
+
if ($('sallowspecific').value == '1') {
|
43 |
+
$('sallowspecific').setValue('1');
|
44 |
+
$('specificcountry').addClassName('required-entry');
|
45 |
+
$('specificcountry_box').show();
|
46 |
+
} else {
|
47 |
+
$('sallowspecific').setValue('0');
|
48 |
+
$('specificcountry').removeClassName('required-entry');
|
49 |
+
$('specificcountry_box').hide();
|
50 |
+
}
|
51 |
+
</script>
|
52 |
+
<script type="text/javascript">
|
53 |
+
//<![CDATA[
|
54 |
+
|
55 |
+
Event.observe($('sallowspecific'), 'change', function() {
|
56 |
+
if ($('sallowspecific').value == '1') {
|
57 |
+
$('specificcountry').addClassName('required-entry');
|
58 |
+
$('specificcountry_box').show();
|
59 |
+
} else {
|
60 |
+
$('specificcountry').removeClassName('required-entry');
|
61 |
+
$('specificcountry_box').hide();
|
62 |
+
}
|
63 |
+
});
|
64 |
+
//]]>
|
65 |
+
</script>
|
66 |
+
|
app/design/frontend/base/default/template/temando/temando/wizard/end.phtml
CHANGED
@@ -1,19 +1,19 @@
|
|
1 |
-
<div class="page-head">
|
2 |
-
<h3><?php echo $this->__('Configuration Complete') ?></h3>
|
3 |
-
</div>
|
4 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
-
Congratulations, you’ve just correctly configured Temando!<br/>
|
6 |
-
We have produced a selection of great guides and <a href="https://www.temando.com/education-centre/faq/magento" target="_new">FAQ’s</a> to help get you up and running.<br/>
|
7 |
-
If you have any further questions please contact our <a href="https://dashboard.temando.com/support" target="_new">customer support team</a>.<br/><br/>
|
8 |
-
|
9 |
-
Interested in exploring the full functionality of Temando? Contact our sales team
|
10 |
-
<form action="<?php echo $this->getPostUrl() ?>" method="get" id="form-validate">
|
11 |
-
<div class="button-set">
|
12 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current'=>true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
13 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Exit') ?></span></button>
|
14 |
-
</div>
|
15 |
-
</form>
|
16 |
-
<script type="text/javascript">
|
17 |
-
var dataForm = new VarienForm('form-validate');
|
18 |
-
</script>
|
19 |
-
|
1 |
+
<div class="page-head">
|
2 |
+
<h3><?php echo $this->__('Configuration Complete') ?></h3>
|
3 |
+
</div>
|
4 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
+
Congratulations, you’ve just correctly configured Temando!<br/>
|
6 |
+
We have produced a selection of great guides and <a href="https://www.temando.com/education-centre/faq/magento" target="_new">FAQ’s</a> to help get you up and running.<br/>
|
7 |
+
If you have any further questions please contact our <a href="https://dashboard.temando.com/support" target="_new">customer support team</a>.<br/><br/>
|
8 |
+
|
9 |
+
Interested in exploring the full functionality of Temando? Contact our sales team
|
10 |
+
<form action="<?php echo $this->getPostUrl() ?>" method="get" id="form-validate">
|
11 |
+
<div class="button-set">
|
12 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current'=>true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
13 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Exit') ?></span></button>
|
14 |
+
</div>
|
15 |
+
</form>
|
16 |
+
<script type="text/javascript">
|
17 |
+
var dataForm = new VarienForm('form-validate');
|
18 |
+
</script>
|
19 |
+
|
app/design/frontend/base/default/template/temando/temando/wizard/left.phtml
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
<div style="border:1px solid #ccc; background:#f6f6f6;">
|
2 |
-
<h2 style="margin-bottom:0; border-bottom:1px solid #ccc; padding:4px 10px; color:#3c5974; font-size:1.4em;"
|
3 |
-
<ol style="padding:10px; border-top:1px solid #fff;">
|
4 |
-
<?php $step = Mage::getSingleton('core/session')->getTemandoWizardStep(); ?>
|
5 |
-
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::ACCOUNT) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php };
|
6 |
-
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::CARRIERS) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php };
|
7 |
-
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::CATALOG_PRODUCT) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php };
|
8 |
-
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::ORIGIN) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php };
|
9 |
-
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::RULE) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php };
|
10 |
-
</ol>
|
11 |
</div>
|
1 |
+
<div style="border:1px solid #ccc; background:#f6f6f6;">
|
2 |
+
<h2 style="margin-bottom:0; border-bottom:1px solid #ccc; padding:4px 10px; color:#3c5974; font-size:1.4em;"><?php echo $this->__('Configuration'); ?></h2>
|
3 |
+
<ol style="padding:10px; border-top:1px solid #fff;">
|
4 |
+
<?php $step = Mage::getSingleton('core/session')->getTemandoWizardStep(); ?>
|
5 |
+
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::ACCOUNT) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php }; ?><?php echo $this->__('Account Details'); ?></li>
|
6 |
+
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::CARRIERS) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php }; ?><?php echo $this->__('Allowed Carriers'); ?></li>
|
7 |
+
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::CATALOG_PRODUCT) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php }; ?><?php echo $this->__('Catalog/Product'); ?></li>
|
8 |
+
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::ORIGIN) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php }; ?><?php echo $this->__('Origin Location'); ?></li>
|
9 |
+
<?php if ($step == Temando_Temando_Model_System_Config_Source_Wizard::RULE) { ?><li style="color:green; font-weight:bold; "><?php } else { ?><li><?php }; ?><?php echo $this->__('Shipping Rule'); ?></li>
|
10 |
+
</ol>
|
11 |
</div>
|
app/design/frontend/base/default/template/temando/temando/wizard/origin.phtml
CHANGED
@@ -1,140 +1,140 @@
|
|
1 |
-
<div class="page-head">
|
2 |
-
<h3><?php echo $this->__('Origin Location') ?></h3>
|
3 |
-
</div>
|
4 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
-
<h4
|
6 |
-
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
-
<fieldset class="group-select wide">
|
8 |
-
<legend><?php echo $this->__('Name & Address') ?></legend>
|
9 |
-
<h4 class="legend"><?php echo $this->__('Name & Address') ?></h4>
|
10 |
-
<ul>
|
11 |
-
<li>
|
12 |
-
<div class="input-box">
|
13 |
-
<label for="company_name"><?php echo $this->__('Company Name') ?> <span class="required">*</span></label><br/>
|
14 |
-
</div>
|
15 |
-
<div class="input-box">
|
16 |
-
<input type="text" id="origin_company_name" name="origin_company_name" value="<?php echo Mage::helper('temando')->getConfigData('origin/company_name'); ?>" class="required-entry input-text">
|
17 |
-
|
18 |
-
</div>
|
19 |
-
|
20 |
-
</li>
|
21 |
-
<li>
|
22 |
-
<div class="input-box">
|
23 |
-
<label for="origin_street"><?php echo $this->__('Street') ?> <span class="required">*</span></label><br/>
|
24 |
-
</div>
|
25 |
-
<div class="input-box">
|
26 |
-
<input type="text" id="origin_street" name="origin_street" value="<?php echo Mage::helper('temando')->getConfigData('origin/street'); ?>" class="required-entry input-text">
|
27 |
-
</div>
|
28 |
-
|
29 |
-
</li>
|
30 |
-
<li>
|
31 |
-
<div class="input-box">
|
32 |
-
<label for="origin_city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br/>
|
33 |
-
</div>
|
34 |
-
<div class="input-box">
|
35 |
-
<input type="text" id="origin_city" name="origin_city" value="<?php echo Mage::helper('temando')->getConfigData('origin/city'); ?>" class="required-entry input-text">
|
36 |
-
</div>
|
37 |
-
|
38 |
-
</li>
|
39 |
-
<li>
|
40 |
-
<div class="input-box">
|
41 |
-
<label for="origin_postcode"><?php echo $this->__('ZIP/Postal Code') ?> <span class="required">*</span></label><br/>
|
42 |
-
</div>
|
43 |
-
<div class="input-box">
|
44 |
-
<input type="text" id="origin_postcode" name="origin_postcode" value="<?php echo Mage::helper('temando')->getConfigData('origin/postcode'); ?>" class="required-entry input-text">
|
45 |
-
</div>
|
46 |
-
|
47 |
-
</li>
|
48 |
-
<li>
|
49 |
-
<div class="input-box">
|
50 |
-
<label for="origin_country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br/>
|
51 |
-
</div>
|
52 |
-
<div class="input-box">
|
53 |
-
<?php echo $this->getHtmlSelect('countries'); ?>
|
54 |
-
</div>
|
55 |
-
|
56 |
-
</li>
|
57 |
-
<li>
|
58 |
-
<div class="input-box">
|
59 |
-
<label for="origin_region"><?php echo $this->__('Region') ?> <span class="required">*</span></label><br/>
|
60 |
-
|
61 |
-
</div>
|
62 |
-
<div class="input-box">
|
63 |
-
<?php echo $this->getHtmlSelect('regions'); ?>
|
64 |
-
<input type="hidden" id="region_name" name="region_name">
|
65 |
-
</div>
|
66 |
-
</li>
|
67 |
-
</ul>
|
68 |
-
</fieldset>
|
69 |
-
<fieldset class="group-select wide">
|
70 |
-
<legend><?php echo $this->__('Contact Details') ?></legend>
|
71 |
-
<h4 class="legend"><?php echo $this->__('Contact Details') ?></h4>
|
72 |
-
<ul>
|
73 |
-
<li>
|
74 |
-
<div class="input-box">
|
75 |
-
<label for="origin_contact_name"><?php echo $this->__('Contact Name') ?> <span class="required">*</span></label><br/>
|
76 |
-
</div>
|
77 |
-
<div class="input-box">
|
78 |
-
<input type="text" id="origin_contact_name" name="origin_contact_name" value="<?php echo Mage::helper('temando')->getConfigData('origin/contact_name'); ?>" class="required-entry input-text">
|
79 |
-
</div>
|
80 |
-
</li>
|
81 |
-
<li>
|
82 |
-
<div class="input-box">
|
83 |
-
<label for="origin_email"><?php echo $this->__('Contact Email') ?> <span class="required">*</span></label><br/>
|
84 |
-
|
85 |
-
</div>
|
86 |
-
<div class="input-box">
|
87 |
-
<input type="text" id="origin_email" name="origin_email" value="<?php echo Mage::helper('temando')->getConfigData('origin/email'); ?>" class="required-entry input-text">
|
88 |
-
</div>
|
89 |
-
</li>
|
90 |
-
<li>
|
91 |
-
<div class="input-box">
|
92 |
-
<label for="origin_phone1"><?php echo $this->__('Phone 1') ?> <span class="required">*</span></label><br/>
|
93 |
-
|
94 |
-
</div>
|
95 |
-
<div class="input-box">
|
96 |
-
<input type="text" id="origin_phone1" name="origin_phone1" value="<?php echo Mage::helper('temando')->getConfigData('origin/phone1'); ?>" class="required-entry input-text">
|
97 |
-
</div>
|
98 |
-
</li>
|
99 |
-
<li>
|
100 |
-
<div class="input-box">
|
101 |
-
<label for="origin_phone2"><?php echo $this->__('Phone 2') ?></label><br/>
|
102 |
-
|
103 |
-
</div>
|
104 |
-
<div class="input-box">
|
105 |
-
<input type="text" id="origin_phone2" name="origin_phone2" value="<?php echo Mage::helper('temando')->getConfigData('origin/phone2'); ?>" class="input-text">
|
106 |
-
</div>
|
107 |
-
</li>
|
108 |
-
<li>
|
109 |
-
<div class="input-box">
|
110 |
-
<label for="origin_fax"><?php echo $this->__('Fax') ?></label><br/>
|
111 |
-
</div>
|
112 |
-
<div class="input-box">
|
113 |
-
<input type="text" id="origin_fax" name="origin_fax" value="<?php echo Mage::helper('temando')->getConfigData('origin/fax'); ?>" class="input-text">
|
114 |
-
</div>
|
115 |
-
</li>
|
116 |
-
</ul>
|
117 |
-
</fieldset>
|
118 |
-
<div class="button-set">
|
119 |
-
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
120 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
121 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
122 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
123 |
-
<button id="button" class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
124 |
-
</div>
|
125 |
-
</form>
|
126 |
-
<script type="text/javascript">
|
127 |
-
var dataForm = new VarienForm('form-validate');
|
128 |
-
var OriginRegionUpdater = new RegionUpdater('origin_country', 'region_name', 'origin_region', <?php echo $this->helper('temando/wizard')->getRegionJson() ?>, undefined, 'origin_postcode');
|
129 |
-
</script>
|
130 |
-
<script type="text/javascript">
|
131 |
-
//<[CDATA[
|
132 |
-
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
133 |
-
var avs = new Avs(
|
134 |
-
shipping_estimator_url,
|
135 |
-
'origin_postcode',
|
136 |
-
'origin_city',
|
137 |
-
'origin_country'
|
138 |
-
);
|
139 |
-
//]]>
|
140 |
</script>
|
1 |
+
<div class="page-head">
|
2 |
+
<h3><?php echo $this->__('Origin Location') ?></h3>
|
3 |
+
</div>
|
4 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
+
<h4><?php echo $this->__('Temando will return quotes based on the origin location address.') ?></h4>
|
6 |
+
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
+
<fieldset class="group-select wide">
|
8 |
+
<legend><?php echo $this->__('Name & Address') ?></legend>
|
9 |
+
<h4 class="legend"><?php echo $this->__('Name & Address') ?></h4>
|
10 |
+
<ul>
|
11 |
+
<li>
|
12 |
+
<div class="input-box">
|
13 |
+
<label for="company_name"><?php echo $this->__('Company Name') ?> <span class="required">*</span></label><br/>
|
14 |
+
</div>
|
15 |
+
<div class="input-box">
|
16 |
+
<input type="text" id="origin_company_name" name="origin_company_name" value="<?php echo Mage::helper('temando')->getConfigData('origin/company_name'); ?>" class="required-entry input-text">
|
17 |
+
|
18 |
+
</div>
|
19 |
+
|
20 |
+
</li>
|
21 |
+
<li>
|
22 |
+
<div class="input-box">
|
23 |
+
<label for="origin_street"><?php echo $this->__('Street') ?> <span class="required">*</span></label><br/>
|
24 |
+
</div>
|
25 |
+
<div class="input-box">
|
26 |
+
<input type="text" id="origin_street" name="origin_street" value="<?php echo Mage::helper('temando')->getConfigData('origin/street'); ?>" class="required-entry input-text">
|
27 |
+
</div>
|
28 |
+
|
29 |
+
</li>
|
30 |
+
<li>
|
31 |
+
<div class="input-box">
|
32 |
+
<label for="origin_city"><?php echo $this->__('City') ?> <span class="required">*</span></label><br/>
|
33 |
+
</div>
|
34 |
+
<div class="input-box">
|
35 |
+
<input type="text" id="origin_city" name="origin_city" value="<?php echo Mage::helper('temando')->getConfigData('origin/city'); ?>" class="required-entry input-text">
|
36 |
+
</div>
|
37 |
+
|
38 |
+
</li>
|
39 |
+
<li>
|
40 |
+
<div class="input-box">
|
41 |
+
<label for="origin_postcode"><?php echo $this->__('ZIP/Postal Code') ?> <span class="required">*</span></label><br/>
|
42 |
+
</div>
|
43 |
+
<div class="input-box">
|
44 |
+
<input type="text" id="origin_postcode" name="origin_postcode" value="<?php echo Mage::helper('temando')->getConfigData('origin/postcode'); ?>" class="required-entry input-text">
|
45 |
+
</div>
|
46 |
+
|
47 |
+
</li>
|
48 |
+
<li>
|
49 |
+
<div class="input-box">
|
50 |
+
<label for="origin_country"><?php echo $this->__('Country') ?> <span class="required">*</span></label><br/>
|
51 |
+
</div>
|
52 |
+
<div class="input-box">
|
53 |
+
<?php echo $this->getHtmlSelect('countries'); ?>
|
54 |
+
</div>
|
55 |
+
|
56 |
+
</li>
|
57 |
+
<li>
|
58 |
+
<div class="input-box">
|
59 |
+
<label for="origin_region"><?php echo $this->__('Region') ?> <span class="required">*</span></label><br/>
|
60 |
+
|
61 |
+
</div>
|
62 |
+
<div class="input-box">
|
63 |
+
<?php echo $this->getHtmlSelect('regions'); ?>
|
64 |
+
<input type="hidden" id="region_name" name="region_name">
|
65 |
+
</div>
|
66 |
+
</li>
|
67 |
+
</ul>
|
68 |
+
</fieldset>
|
69 |
+
<fieldset class="group-select wide">
|
70 |
+
<legend><?php echo $this->__('Contact Details') ?></legend>
|
71 |
+
<h4 class="legend"><?php echo $this->__('Contact Details') ?></h4>
|
72 |
+
<ul>
|
73 |
+
<li>
|
74 |
+
<div class="input-box">
|
75 |
+
<label for="origin_contact_name"><?php echo $this->__('Contact Name') ?> <span class="required">*</span></label><br/>
|
76 |
+
</div>
|
77 |
+
<div class="input-box">
|
78 |
+
<input type="text" id="origin_contact_name" name="origin_contact_name" value="<?php echo Mage::helper('temando')->getConfigData('origin/contact_name'); ?>" class="required-entry input-text">
|
79 |
+
</div>
|
80 |
+
</li>
|
81 |
+
<li>
|
82 |
+
<div class="input-box">
|
83 |
+
<label for="origin_email"><?php echo $this->__('Contact Email') ?> <span class="required">*</span></label><br/>
|
84 |
+
|
85 |
+
</div>
|
86 |
+
<div class="input-box">
|
87 |
+
<input type="text" id="origin_email" name="origin_email" value="<?php echo Mage::helper('temando')->getConfigData('origin/email'); ?>" class="required-entry input-text">
|
88 |
+
</div>
|
89 |
+
</li>
|
90 |
+
<li>
|
91 |
+
<div class="input-box">
|
92 |
+
<label for="origin_phone1"><?php echo $this->__('Phone 1') ?> <span class="required">*</span></label><br/>
|
93 |
+
|
94 |
+
</div>
|
95 |
+
<div class="input-box">
|
96 |
+
<input type="text" id="origin_phone1" name="origin_phone1" value="<?php echo Mage::helper('temando')->getConfigData('origin/phone1'); ?>" class="required-entry input-text">
|
97 |
+
</div>
|
98 |
+
</li>
|
99 |
+
<li>
|
100 |
+
<div class="input-box">
|
101 |
+
<label for="origin_phone2"><?php echo $this->__('Phone 2') ?></label><br/>
|
102 |
+
|
103 |
+
</div>
|
104 |
+
<div class="input-box">
|
105 |
+
<input type="text" id="origin_phone2" name="origin_phone2" value="<?php echo Mage::helper('temando')->getConfigData('origin/phone2'); ?>" class="input-text">
|
106 |
+
</div>
|
107 |
+
</li>
|
108 |
+
<li>
|
109 |
+
<div class="input-box">
|
110 |
+
<label for="origin_fax"><?php echo $this->__('Fax') ?></label><br/>
|
111 |
+
</div>
|
112 |
+
<div class="input-box">
|
113 |
+
<input type="text" id="origin_fax" name="origin_fax" value="<?php echo Mage::helper('temando')->getConfigData('origin/fax'); ?>" class="input-text">
|
114 |
+
</div>
|
115 |
+
</li>
|
116 |
+
</ul>
|
117 |
+
</fieldset>
|
118 |
+
<div class="button-set">
|
119 |
+
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
120 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
121 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
122 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
123 |
+
<button id="button" class="form-button" type="submit"><span><?php echo $this->__('Continue') ?></span></button>
|
124 |
+
</div>
|
125 |
+
</form>
|
126 |
+
<script type="text/javascript">
|
127 |
+
var dataForm = new VarienForm('form-validate');
|
128 |
+
var OriginRegionUpdater = new RegionUpdater('origin_country', 'region_name', 'origin_region', <?php echo $this->helper('temando/wizard')->getRegionJson() ?>, undefined, 'origin_postcode');
|
129 |
+
</script>
|
130 |
+
<script type="text/javascript">
|
131 |
+
//<[CDATA[
|
132 |
+
var shipping_estimator_url = '<?php echo $this->getUrl('etemando/pcs/autocompletecart', array('_secure' => Mage::app()->getStore()->isCurrentlySecure())); ?>';
|
133 |
+
var avs = new Avs(
|
134 |
+
shipping_estimator_url,
|
135 |
+
'origin_postcode',
|
136 |
+
'origin_city',
|
137 |
+
'origin_country'
|
138 |
+
);
|
139 |
+
//]]>
|
140 |
</script>
|
app/design/frontend/base/default/template/temando/temando/wizard/rule.phtml
CHANGED
@@ -1,55 +1,55 @@
|
|
1 |
-
<div class="page-head">
|
2 |
-
<h3><?php echo $this->__('Shipping Rule') ?></h3>
|
3 |
-
</div>
|
4 |
-
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
-
<h4
|
6 |
-
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
-
<fieldset class="group-select wide">
|
8 |
-
<legend><?php echo $this->__('Type') ?></legend>
|
9 |
-
<h4 class="legend"><?php echo $this->__('Type') ?></h4>
|
10 |
-
<ul>
|
11 |
-
<li>
|
12 |
-
<div class="input-box">
|
13 |
-
<label for="pricing_method"><?php echo $this->__('Shipping Rate Type') ?> <span class="required">*</span></label><br/>
|
14 |
-
</div>
|
15 |
-
<div class="input-box">
|
16 |
-
<?php echo $this->getHtmlSelect('ruleType'); ?>
|
17 |
-
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
18 |
-
<small>
|
19 |
-
<?php echo $this->__('Free Shipping - no charge to customer.') ?><br/>
|
20 |
-
<?php echo $this->__('Fixed Price / Flat Rate - customer always pays the amount set in "Shipping Price" below.') ?><br/>
|
21 |
-
<?php echo $this->__('Dynamic Pricing') ?><br/>
|
22 |
-
<?php echo $this->__('- All: All quotes from carriers in "allowed carriers" above are shown for the customer to choose from.') ?><br/>
|
23 |
-
<?php echo $this->__('- Cheapest: Only the cheapest quote is shown.') ?><br/>
|
24 |
-
<?php echo $this->__('- Fastest: Only the fastest quote is shown.') ?><br/>
|
25 |
-
<?php echo $this->__('- Cheapest and Fastest: The customer can choose between the cheapest or the fastest quote.') ?><br/>
|
26 |
-
</small>
|
27 |
-
</p>
|
28 |
-
</div>
|
29 |
-
|
30 |
-
</li>
|
31 |
-
</ul>
|
32 |
-
</fieldset>
|
33 |
-
<fieldset class="group-select wide" id="static">
|
34 |
-
<legend><?php echo $this->__('Static Rule Configuration') ?></legend>
|
35 |
-
<h4 class="legend"><?php echo $this->__('Static Rule Configuration') ?></h4>
|
36 |
-
<ul>
|
37 |
-
<li>
|
38 |
-
<div class="input-box">
|
39 |
-
<label for="pricing_shipping_fee"><?php echo $this->__('Shipping Price') ?> <span class="required">*</span></label><br/>
|
40 |
-
</div>
|
41 |
-
<div class="input-box">
|
42 |
-
<input type="text" name="pricing_shipping_fee" id="pricing_shipping_fee" value="<?php echo Mage::helper('temando')->getConfigData('pricing/shipping_fee'); ?>" class="required-entry input-text">
|
43 |
-
</div>
|
44 |
-
|
45 |
-
</li>
|
46 |
-
</ul>
|
47 |
-
</fieldset>
|
48 |
-
<div class="button-set">
|
49 |
-
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
50 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
51 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
52 |
-
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
53 |
-
<button class="form-button" type="submit"><span><?php echo $this->__('Finish') ?></span></button>
|
54 |
-
</div>
|
55 |
-
</form>
|
1 |
+
<div class="page-head">
|
2 |
+
<h3><?php echo $this->__('Shipping Rule') ?></h3>
|
3 |
+
</div>
|
4 |
+
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
|
5 |
+
<h4><?php echo $this->__('Create a shipping rule to customise the quotes displayed to your customers.'); ?></h4>
|
6 |
+
<form action="<?php echo $this->getUrl('*/*/save', array('_current' => true)) ?>" method="post" id="form-validate">
|
7 |
+
<fieldset class="group-select wide">
|
8 |
+
<legend><?php echo $this->__('Type') ?></legend>
|
9 |
+
<h4 class="legend"><?php echo $this->__('Type') ?></h4>
|
10 |
+
<ul>
|
11 |
+
<li>
|
12 |
+
<div class="input-box">
|
13 |
+
<label for="pricing_method"><?php echo $this->__('Shipping Rate Type') ?> <span class="required">*</span></label><br/>
|
14 |
+
</div>
|
15 |
+
<div class="input-box">
|
16 |
+
<?php echo $this->getHtmlSelect('ruleType'); ?>
|
17 |
+
<p style="margin-top:4px; line-height:1.3em; color:#666;">
|
18 |
+
<small>
|
19 |
+
<?php echo $this->__('Free Shipping - no charge to customer.') ?><br/>
|
20 |
+
<?php echo $this->__('Fixed Price / Flat Rate - customer always pays the amount set in "Shipping Price" below.') ?><br/>
|
21 |
+
<?php echo $this->__('Dynamic Pricing') ?><br/>
|
22 |
+
<?php echo $this->__('- All: All quotes from carriers in "allowed carriers" above are shown for the customer to choose from.') ?><br/>
|
23 |
+
<?php echo $this->__('- Cheapest: Only the cheapest quote is shown.') ?><br/>
|
24 |
+
<?php echo $this->__('- Fastest: Only the fastest quote is shown.') ?><br/>
|
25 |
+
<?php echo $this->__('- Cheapest and Fastest: The customer can choose between the cheapest or the fastest quote.') ?><br/>
|
26 |
+
</small>
|
27 |
+
</p>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
</li>
|
31 |
+
</ul>
|
32 |
+
</fieldset>
|
33 |
+
<fieldset class="group-select wide" id="static">
|
34 |
+
<legend><?php echo $this->__('Static Rule Configuration') ?></legend>
|
35 |
+
<h4 class="legend"><?php echo $this->__('Static Rule Configuration') ?></h4>
|
36 |
+
<ul>
|
37 |
+
<li>
|
38 |
+
<div class="input-box">
|
39 |
+
<label for="pricing_shipping_fee"><?php echo $this->__('Shipping Price') ?> <span class="required">*</span></label><br/>
|
40 |
+
</div>
|
41 |
+
<div class="input-box">
|
42 |
+
<input type="text" name="pricing_shipping_fee" id="pricing_shipping_fee" value="<?php echo Mage::helper('temando')->getConfigData('pricing/shipping_fee'); ?>" class="required-entry input-text">
|
43 |
+
</div>
|
44 |
+
|
45 |
+
</li>
|
46 |
+
</ul>
|
47 |
+
</fieldset>
|
48 |
+
<div class="button-set">
|
49 |
+
<p class="required">* <?php echo $this->__('Required Fields') ?></p>
|
50 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getCancelUrl(); ?>');"><span><?php echo $this->__('Cancel') ?></span></button>
|
51 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/back', array('_current' => true)) ?>');"><span><?php echo $this->__('Back') ?></span></button>
|
52 |
+
<button class="form-button" type="button" onclick="setLocation('<?php echo $this->getUrl('*/*/skip', array('_current' => true)) ?>');"><span><?php echo $this->__('Skip') ?></span></button>
|
53 |
+
<button class="form-button" type="submit"><span><?php echo $this->__('Finish') ?></span></button>
|
54 |
+
</div>
|
55 |
+
</form>
|
app/etc/modules/Temando_Temando.xml
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Temando_Temando>
|
5 |
-
<active>true</active>
|
6 |
-
<codePool>community</codePool>
|
7 |
-
</Temando_Temando>
|
8 |
-
</modules>
|
9 |
-
</config>
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Temando_Temando>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
</Temando_Temando>
|
8 |
+
</modules>
|
9 |
+
</config>
|
app/locale/en_US/Temando_Temando.csv
ADDED
@@ -0,0 +1,622 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"Temando","Temando"
|
2 |
+
"General","General"
|
3 |
+
"HS Code Information","HS Code Information"
|
4 |
+
"SKU","SKU"
|
5 |
+
"Origin Country","Origin Country"
|
6 |
+
"Destination Country","Destination Country"
|
7 |
+
"HS Code","HS Code"
|
8 |
+
"HS Code Configuration","HS Code Configuration"
|
9 |
+
"CSV Import","CSV Import"
|
10 |
+
"HS Code Import","HS Code Import"
|
11 |
+
"Select CSV File","Select CSV File"
|
12 |
+
"Save and Continue Edit","Save and Continue Edit"
|
13 |
+
"Edit HS Code '%s'","Edit HS Code '%s'"
|
14 |
+
"New HS Code","New HS Code"
|
15 |
+
"Sku","Sku"
|
16 |
+
"CSV","CSV"
|
17 |
+
"Delete Selected HS Codes","Delete Selected HS Codes"
|
18 |
+
"Import CSV File","Import CSV File"
|
19 |
+
"Create New Manifest - Please note, to manifest you must have a permanent pickup. Contact <a href="mailto:sales@temando.com">sales@temando.com</a> for more information.","Create New Manifest - Please note, to manifest you must have a permanent pickup. Contact <a href="mailto:sales@temando.com">sales@temando.com</a> for more information."
|
20 |
+
"Location","Location"
|
21 |
+
"Carrier","Carrier"
|
22 |
+
"Date","Date"
|
23 |
+
"Created At","Created At"
|
24 |
+
"Type","Type"
|
25 |
+
"Manifest Document","Manifest Document"
|
26 |
+
"Download","Download"
|
27 |
+
"Label Document","Label Document"
|
28 |
+
"Confirm","Confirm"
|
29 |
+
"Are you sure?","Are you sure?"
|
30 |
+
"Package Information","Package Information"
|
31 |
+
"Name","Name"
|
32 |
+
"Packaging Type","Packaging Type"
|
33 |
+
"Length","Length"
|
34 |
+
"Width","Width"
|
35 |
+
"Height","Height"
|
36 |
+
"Measure Unit","Measure Unit"
|
37 |
+
"Weight Unit","Weight Unit"
|
38 |
+
"Package Configuration","Package Configuration"
|
39 |
+
"Edit Package '%s'","Edit Package '%s'"
|
40 |
+
"New Package","New Package"
|
41 |
+
"Actions","Actions"
|
42 |
+
"Actions Configuration","Actions Configuration"
|
43 |
+
"Shipping Rate Type","Shipping Rate Type"
|
44 |
+
"Static Rate Configuration","Static Rate Configuration"
|
45 |
+
"Static Rate Value","Static Rate Value"
|
46 |
+
"Applies to free shipping and flat rate.","Applies to free shipping and flat rate."
|
47 |
+
"Static Rate Label","Static Rate Label"
|
48 |
+
"As displayed to a customer. Applies to free shipping & flat rate.","As displayed to a customer. Applies to free shipping & flat rate."
|
49 |
+
"Dynamic Rate Configuration","Dynamic Rate Configuration"
|
50 |
+
"Carriers","Carriers"
|
51 |
+
"Display Filter","Display Filter"
|
52 |
+
"AusPost Filter","AusPost Filter"
|
53 |
+
"Rate Adjustment Type","Rate Adjustment Type"
|
54 |
+
"Rate Adjustment Value","Rate Adjustment Value"
|
55 |
+
"For min/max, enter range as min:max (ie \'5.95:10.95\' to keep shipping price between $5.95 - $10.95)","For min/max, enter range as min:max (ie \'5.95:10.95\' to keep shipping price between $5.95 - $10.95)"
|
56 |
+
"Show Carrier Name","Show Carrier Name"
|
57 |
+
"Yes","Yes"
|
58 |
+
"No","No"
|
59 |
+
"Show Transit Type","Show Transit Type"
|
60 |
+
"Show Transit Time","Show Transit Time"
|
61 |
+
"Alternative Method Title","Alternative Method Title"
|
62 |
+
"Appears in place of carrier name when \'Show Carrier Name\' is off","Appears in place of carrier name when \'Show Carrier Name\' is off"
|
63 |
+
"Restrict Shipping Configuration","Restrict Shipping Configuration"
|
64 |
+
"Note","Note"
|
65 |
+
"Displayed to a customer when shipping is restricted.","Displayed to a customer when shipping is restricted."
|
66 |
+
"Conditions","Conditions"
|
67 |
+
"Cart attribute conditions (leave blank for any).","Cart attribute conditions (leave blank for any)."
|
68 |
+
"Time/Day conditions (leave blank for any).","Time/Day conditions (leave blank for any)."
|
69 |
+
"Order Placed Day","Order Placed Day"
|
70 |
+
"Order Placed (time)","Order Placed (time)"
|
71 |
+
"Time","Time"
|
72 |
+
"24HH:MM:SS","24HH:MM:SS"
|
73 |
+
"Rule Information","Rule Information"
|
74 |
+
"General Information","General Information"
|
75 |
+
"Rule Name","Rule Name"
|
76 |
+
"Status","Status"
|
77 |
+
"Enabled","Enabled"
|
78 |
+
"Disabled","Disabled"
|
79 |
+
"Shipment Urgency","Shipment Urgency"
|
80 |
+
"From Date","From Date"
|
81 |
+
"To Date","To Date"
|
82 |
+
"Priority","Priority"
|
83 |
+
"Stop further rules processing.","Stop further rules processing."
|
84 |
+
"Rules with higher number in priority field will not be processed if set to \'Yes\'","Rules with higher number in priority field will not be processed if set to \'Yes\'"
|
85 |
+
"Stores","Stores"
|
86 |
+
"NOT LOGGED IN","NOT LOGGED IN"
|
87 |
+
"Customer Groups","Customer Groups"
|
88 |
+
"Shipping Rule Configuration","Shipping Rule Configuration"
|
89 |
+
"Edit Rule '%s'","Edit Rule '%s'"
|
90 |
+
"New Shipping Rule","New Shipping Rule"
|
91 |
+
"Date Start","Date Start"
|
92 |
+
"Date Expire","Date Expire"
|
93 |
+
"Type","Type"
|
94 |
+
"Stop Other Rules","Stop Other Rules"
|
95 |
+
"Enable Rules","Enable Rules"
|
96 |
+
"Disable Rules","Disable Rules"
|
97 |
+
"Delete Rules","Delete Rules"
|
98 |
+
"Are you sure you want to delete selected shipping rules?","Are you sure you want to delete selected shipping rules?"
|
99 |
+
"View Consignment","View Consignment"
|
100 |
+
"View Commercial Invoice","View Commercial Invoice"
|
101 |
+
"Ship with Temando","Ship with Temando"
|
102 |
+
"Cheapest","Cheapest"
|
103 |
+
"Fastest","Fastest"
|
104 |
+
"Customer Selected","Customer Selected"
|
105 |
+
"Selected for Booking","Selected for Booking"
|
106 |
+
"Information","Information"
|
107 |
+
"Shipment #","Shipment #"
|
108 |
+
"Ship to Name","Ship to Name"
|
109 |
+
"Date Shipped","Date Shipped"
|
110 |
+
"Total Qty","Total Qty"
|
111 |
+
"Action","Action"
|
112 |
+
"Shipments","Shipments"
|
113 |
+
"Shipment View","Shipment View"
|
114 |
+
"None selected","None selected"
|
115 |
+
"Pick Slip","Pick Slip"
|
116 |
+
"Save and Get Quotes","Save and Get Quotes"
|
117 |
+
"No Consignment","No Consignment"
|
118 |
+
"Order # %s | %s","Order # %s | %s"
|
119 |
+
"Urgency","Urgency"
|
120 |
+
"Order #","Order #"
|
121 |
+
"Purchased On","Purchased On"
|
122 |
+
"Anticipated Cost","Anticipated Cost"
|
123 |
+
"Shipping Paid","Shipping Paid"
|
124 |
+
"Customer Selected Quote","Customer Selected Quote"
|
125 |
+
"Admin Selected Quote","Admin Selected Quote"
|
126 |
+
"Origin","Origin"
|
127 |
+
"View","View"
|
128 |
+
"Book Shipments","Book Shipments"
|
129 |
+
"Book selected shipments?","Book selected shipments?"
|
130 |
+
"Remove Shipments","Remove Shipments"
|
131 |
+
"Remove selected shipments?","Remove selected shipments?"
|
132 |
+
"Retrieve Consignment Label","Retrieve Consignment Label"
|
133 |
+
"Retrieve Pick Slip","Retrieve Pick Slip"
|
134 |
+
"Taxes & Duties Information","Taxes & Duties Information"
|
135 |
+
"Taxes & Duties Configuration","Taxes & Duties Configuration"
|
136 |
+
"Edit '%s' to '%s' Tax Type","Edit '%s' to '%s' Tax Type"
|
137 |
+
"New Record","New Record"
|
138 |
+
"Tax/Duty Type","Tax/Duty Type"
|
139 |
+
"Delete Selected Records","Delete Selected Records"
|
140 |
+
"Temando Profile","Temando Profile"
|
141 |
+
"Mode","Mode"
|
142 |
+
"*Use System Configuration","*Use System Configuration"
|
143 |
+
"As Defined","As Defined"
|
144 |
+
"Sandbox","Sandbox"
|
145 |
+
"Client ID","Client ID"
|
146 |
+
"Username","Username"
|
147 |
+
"Password","Password"
|
148 |
+
"Payment Type","Payment Type"
|
149 |
+
"Extra Information","Extra Information"
|
150 |
+
"Extra Location Information","Extra Location Information"
|
151 |
+
"Loading Facilities","Loading Facilities"
|
152 |
+
"Does the warehouse have loading facilities?","Does the warehouse have loading facilities?"
|
153 |
+
"Does the warehouse have a dock?","Does the warehouse have a dock?"
|
154 |
+
"Forklift","Forklift"
|
155 |
+
"Does the warehouse have a forklift?","Does the warehouse have a forklift?"
|
156 |
+
"If set to ""Yes"", the sandbox (testing) service will be used (usually set to ""No"" on a live site)","If set to ""Yes"", the sandbox (testing) service will be used (usually set to ""No"" on a live site)"
|
157 |
+
"Limited Access","Limited Access"
|
158 |
+
"Does the warehouse have limited access?","Does the warehouse have limited access?"
|
159 |
+
"Postal Box","Postal Box"
|
160 |
+
"Is the address of this warehouse a postal box?","Is the address of this warehouse a postal box?"
|
161 |
+
"Label Type","Label Type"
|
162 |
+
"Consignment document type associated with this warehouse.","Consignment document type associated with this warehouse."
|
163 |
+
"Company Name","Company Name"
|
164 |
+
"Location Type","Location Type"
|
165 |
+
"Address & Contact","Address & Contact"
|
166 |
+
"Address Details","Address Details"
|
167 |
+
"Street","Street"
|
168 |
+
"City","City"
|
169 |
+
"ZIP/Postal Code","Zip Code"
|
170 |
+
"Country","Country"
|
171 |
+
"Region","Region"
|
172 |
+
"Contact Details","Contact Details"
|
173 |
+
"Contact Name","Contact Name"
|
174 |
+
"Contact Email","Contact Email"
|
175 |
+
"Phone 1","Phone 1"
|
176 |
+
"Phone 2","Phone 2"
|
177 |
+
"Fax","Fax"
|
178 |
+
"User ID","User ID"
|
179 |
+
"First Name","First Name"
|
180 |
+
"Last Name","Last Name"
|
181 |
+
"Email","Email"
|
182 |
+
"Role","Role"
|
183 |
+
"Position","Position"
|
184 |
+
"Zones","Zones"
|
185 |
+
"Use CTRL + click to assign multiple zones.","Use CTRL + click to assign multiple zones."
|
186 |
+
"Users Permissions","Users Permissions"
|
187 |
+
"Edit Warehouse '%s'","Edit Warehouse '%s'"
|
188 |
+
"New Warehouse","New Warehouse"
|
189 |
+
"ZIP/Postcode","Zip Code"
|
190 |
+
"Postcode","Zip Code"
|
191 |
+
"Enable Warehouses","Enable Warehouses"
|
192 |
+
"Disable Warehouses","Disable Warehouses"
|
193 |
+
"Delete Warehouses","Delete Warehouses"
|
194 |
+
"Are you sure you want to delete selected warehouses?","Are you sure you want to delete selected warehouses?"
|
195 |
+
"Zone Information","Zone Information"
|
196 |
+
"Postal Code Ranges","Zip Code Ranges"
|
197 |
+
"Use colon to specify range, comma to separate ranges.","Use colon to specify range, comma to separate ranges."
|
198 |
+
"Zone Configuration","Zone Configuration"
|
199 |
+
"Edit Zone '%s'","Edit Zone '%s'"
|
200 |
+
"New Zone","New Zone"
|
201 |
+
"Range","Range"
|
202 |
+
"Manage HS Codes","Manage HS Codes"
|
203 |
+
"Add New HS Code","Add New HS Code"
|
204 |
+
"Manage Manifests","Manage Manifests"
|
205 |
+
"Add Manifest","Add Manifest"
|
206 |
+
"Confirm Manifests","Confirm Manifests"
|
207 |
+
"Manage Custom Packages","Manage Custom Packages"
|
208 |
+
"Add New Package","Add New Package"
|
209 |
+
"Manage Shipping Rules","Manage Shipping Rules"
|
210 |
+
"Add New Shipping Rule","Add New Shipping Rule"
|
211 |
+
"Manage Shipments","Manage Shipments"
|
212 |
+
"Manage Taxes & Duties","Manage Taxes & Duties"
|
213 |
+
"Add New Record","Add New Record"
|
214 |
+
"Manage Warehouses","Manage Warehouses"
|
215 |
+
"Add New Warehouse","Add New Warehouse"
|
216 |
+
"Manage Zones","Manage Zones"
|
217 |
+
"Add New Zone","Add New Zone"
|
218 |
+
"Suburb","City"
|
219 |
+
"Live","Live"
|
220 |
+
"Credit","Credit"
|
221 |
+
"Account","Account"
|
222 |
+
"All Allowed Countries","All Allowed Countries"
|
223 |
+
"Specific Countries","Specific Countries"
|
224 |
+
"Payment","Payment"
|
225 |
+
"Allow Specific Countries","Allow Specific Countries"
|
226 |
+
"Specific Country","Specific Country"
|
227 |
+
"Allowed Carriers","Allowed Carriers"
|
228 |
+
"Packaging","Packaging"
|
229 |
+
"Fragile","Fragile"
|
230 |
+
"Rule Type","Rule Type"
|
231 |
+
"Dynamic Rule Carriers","Dynamic Rule Carriers"
|
232 |
+
"-- Please select --","-- Please select --"
|
233 |
+
"Invalid HS Code File Format","Invalid HS Code File Format"
|
234 |
+
"An error occurred while importing hs codes.","An error occurred while importing hs codes."
|
235 |
+
"Import finished with errors:<br/> %s","Import finished with errors:<br/> %s"
|
236 |
+
"Invalid HS Code format in the Row #%s","Invalid HS Code format in the Row #%s"
|
237 |
+
"Invalid SKU "%s" in the Row #%s.","Invalid SKU "%s" in the Row #%s."
|
238 |
+
"Invalid Origin Country "%s" in the Row #%s.","Invalid Origin Country "%s" in the Row #%s."
|
239 |
+
"Invalid Destination Country "%s" in the Row #%s.","Invalid Destination Country "%s" in the Row #%s."
|
240 |
+
"Missing or invalid HS Code in the Row #%s.","Missing or invalid HS Code in the Row #%s."
|
241 |
+
"Duplicate Row #%s (SKU "%s", Origin Country "%s", Destination Country "%s" and HS Code "%s").","Duplicate Row #%s (SKU "%s", Origin Country "%s", Destination Country "%s" and HS Code "%s")."
|
242 |
+
"Products","Products"
|
243 |
+
"Qty","Qty"
|
244 |
+
"SKU: ","SKU: "
|
245 |
+
"Weight","Weight"
|
246 |
+
"TEMANDO PICK SLIP","TEMANDO PICK SLIP"
|
247 |
+
"Order # ","Order # "
|
248 |
+
"Order Date: ","Order Date: "
|
249 |
+
"Sold to:","Sold to:"
|
250 |
+
"Ship to:","Ship to:"
|
251 |
+
"Payment Method:","Payment Method:"
|
252 |
+
"Payment Method","Payment Method"
|
253 |
+
"Shipping Method:","Shipping Method:"
|
254 |
+
"Total Shipping Charges","Total Shipping Charges"
|
255 |
+
"Shipping Instructions: ","Shipping Instructions: "
|
256 |
+
"Title","Title"
|
257 |
+
"Number","Number"
|
258 |
+
"Custom Value","Custom Value"
|
259 |
+
"Conditions Combination","Conditions Combination"
|
260 |
+
"Cart Item Attribute","Cart Item Attribute"
|
261 |
+
"Product Attribute","Product Attribute"
|
262 |
+
"FOUND","FOUND"
|
263 |
+
"NOT FOUND","NOT FOUND"
|
264 |
+
"If an item is %s in the cart with %s of these conditions true:","If an item is %s in the cart with %s of these conditions true:"
|
265 |
+
"total quantity","total quantity"
|
266 |
+
"total amount","total amount"
|
267 |
+
"is","is"
|
268 |
+
"is not","is not"
|
269 |
+
"equals or greater than","equals or greater than"
|
270 |
+
"equals or less than","equals or less than"
|
271 |
+
"greater than","greater than"
|
272 |
+
"less than","less than"
|
273 |
+
"is one of","is one of"
|
274 |
+
"is not one of","is not one of"
|
275 |
+
"If %s %s %s for a subselection of items in cart matching %s of these conditions:","If %s %s %s for a subselection of items in cart matching %s of these conditions:"
|
276 |
+
"Subtotal","Subtotal"
|
277 |
+
"Subtotal with Discount","Subtotal with Discount"
|
278 |
+
"Total Items Quantity","Total Items Quantity"
|
279 |
+
"Total Weight","Total Weight"
|
280 |
+
"Shipping Postcode","Shipping Zip Code"
|
281 |
+
"Shipping Region","Shipping Region"
|
282 |
+
"Shipping State/Province","Shipping State/Province"
|
283 |
+
"Shipping Country","Shipping Country"
|
284 |
+
"Product attribute combination","Product attribute combination"
|
285 |
+
"Products subselection","Products subselection"
|
286 |
+
"Cart Attribute","Cart Attribute"
|
287 |
+
"Quantity in cart","Quantity in cart"
|
288 |
+
"Price in cart","Price in cart"
|
289 |
+
"Row total in cart","Row total in cart"
|
290 |
+
"--Please Select--","--Please Select--"
|
291 |
+
"Free Shipping","Free Shipping"
|
292 |
+
"Flat Rate","Flat Rate"
|
293 |
+
"An error occurred while fetching the shipment status.","An error occurred while fetching the shipment status."
|
294 |
+
"Please select a location type from the list.","Please select a location type from the list."
|
295 |
+
"Please select a country from the list.","Please select a country from the list."
|
296 |
+
"Individual","Individual"
|
297 |
+
"Company","Company"
|
298 |
+
"Business","Business"
|
299 |
+
"Residential","Residential"
|
300 |
+
"Use Magento","Use Magento"
|
301 |
+
"Use Temando","Use Temando"
|
302 |
+
" -- "," -- "
|
303 |
+
"Markup (fixed)","Markup (fixed)"
|
304 |
+
"Markup (percentage)","Markup (percentage)"
|
305 |
+
"Subsidy (fixed)","Subsidy (fixed)"
|
306 |
+
"Subsidy (percentage)","Subsidy (percentage)"
|
307 |
+
"Min/Max Range","Min/Max Range"
|
308 |
+
"Override","Override"
|
309 |
+
"Standard & Express","Standard & Express"
|
310 |
+
"Standard only","Standard only"
|
311 |
+
"Express only","Express only"
|
312 |
+
"All Quotes","All Quotes"
|
313 |
+
"Cheapest only","Cheapest only"
|
314 |
+
"Fastest only","Fastest only"
|
315 |
+
"Cheapest and Fastest only","Cheapest and Fastest only"
|
316 |
+
"before","before"
|
317 |
+
"after","after"
|
318 |
+
"Zone","Zone"
|
319 |
+
"Dynamic","Dynamic"
|
320 |
+
"Restrict","Restrict"
|
321 |
+
"Use Defaults","Use Defaults"
|
322 |
+
"Same Day","Same Day"
|
323 |
+
"Express","Express"
|
324 |
+
"Standard","Standard"
|
325 |
+
"Pending","Pending"
|
326 |
+
"Partially Booked","Partially Booked"
|
327 |
+
"Booked","Booked"
|
328 |
+
"Optional","Optional"
|
329 |
+
"Mandatory","Mandatory"
|
330 |
+
"Show flat rate","Show flat rate"
|
331 |
+
"Show error message","Show error message"
|
332 |
+
"Show custom message","Show custom message"
|
333 |
+
"Plain Paper","Plain Paper"
|
334 |
+
"Thermal","Thermal"
|
335 |
+
"Fixed Price / Flat Rate","Fixed Price / Flat Rate"
|
336 |
+
"Dynamic Pricing (All)","Dynamic Pricing (All)"
|
337 |
+
"Dynamic Pricing (Cheapest only)","Dynamic Pricing (Cheapest only)"
|
338 |
+
"Dynamic Pricing (Fastest only)","Dynamic Pricing (Fastest only)"
|
339 |
+
"Dynamic Pricing (Cheapest and Fastest only)","Dynamic Pricing (Cheapest and Fastest only)"
|
340 |
+
"AM","AM"
|
341 |
+
"PM","PM"
|
342 |
+
", includes insurance",", includes insurance"
|
343 |
+
" and "," and "
|
344 |
+
", includes ",", includes "
|
345 |
+
" carbon offset"," carbon offset"
|
346 |
+
" footprints"," footprints"
|
347 |
+
" day"," day"
|
348 |
+
"s","s"
|
349 |
+
"End Date must be greater than Start Date.","End Date must be greater than Start Date."
|
350 |
+
"Websites must be specified.","Websites must be specified."
|
351 |
+
"Customer Groups must be specified.","Customer Groups must be specified."
|
352 |
+
"Record does not exist","Record does not exist"
|
353 |
+
"Error saving record","Error saving record"
|
354 |
+
"Record was successfully saved.","Record was successfully saved."
|
355 |
+
"Error saving HS Code. SKU not found or combination already exists.","Error saving HS Code. SKU not found or combination already exists."
|
356 |
+
"No data found to save","No data found to save"
|
357 |
+
"The record has been deleted.","The record has been deleted."
|
358 |
+
"Unable to find the record to delete.","Unable to find the record to delete."
|
359 |
+
"Please select at least one record.","Please select at least one record."
|
360 |
+
"Record ID %d not found.","Record ID %d not found."
|
361 |
+
"Total of %d record(s) have been deleted.","Total of %d record(s) have been deleted."
|
362 |
+
"Import successful - all rows imported.","Import successful - all rows imported."
|
363 |
+
"Please select CSV file.","Please select CSV file."
|
364 |
+
"Manifest successful added for carrier: ","Manifest successful added for carrier: "
|
365 |
+
"Manage Packaging","Manage Packaging"
|
366 |
+
"Package does not exist","Package does not exist"
|
367 |
+
"Error saving package data","Error saving package data"
|
368 |
+
"Package successfully saved.","Package successfully saved."
|
369 |
+
"Package has been deleted.","Package has been deleted."
|
370 |
+
"Unable to find the package to delete.","Unable to find the package to delete."
|
371 |
+
"Manage Rules","Manage Rules"
|
372 |
+
"Rule does not exist","Rule does not exist"
|
373 |
+
"Wrong rule specified.","Wrong rule specified."
|
374 |
+
"The rule has been saved.","The rule has been saved."
|
375 |
+
"An error occurred while saving the rule data. Please review your entries and try again.","An error occurred while saving the rule data. Please review your entries and try again."
|
376 |
+
"The rule has been deleted.","The rule has been deleted."
|
377 |
+
"Unable to find the rule to delete.","Unable to find the rule to delete."
|
378 |
+
"Invalid mode specified for mass status action.","Invalid mode specified for mass status action."
|
379 |
+
"No rules selected.","No rules selected."
|
380 |
+
"Rule ID %d not found.","Rule ID %d not found."
|
381 |
+
"Total of %d rules %s.","Total of %d rules %s."
|
382 |
+
"Shipment Manager","Shipment Manager"
|
383 |
+
"You are not allowed to edit this shipment.","You are not allowed to edit this shipment."
|
384 |
+
"Quotes cannot be refreshed until at least one box is added to the shipment.","Quotes cannot be refreshed until at least one box is added to the shipment."
|
385 |
+
"Shipment does not exist.","Shipment does not exist."
|
386 |
+
"Validation errors:","Validation errors:"
|
387 |
+
"The shipment data has been saved.","The shipment data has been saved."
|
388 |
+
"Pick-up date is not a valid date.","Pick-up date is not a valid date."
|
389 |
+
"Pick-up date is in the past.","Pick-up date is in the past."
|
390 |
+
"Pick-up time is not a valid selection.","Pick-up time is not a valid selection."
|
391 |
+
"Please select valid warehouse from available origin locations.","Please select valid warehouse from available origin locations."
|
392 |
+
"Order # %s cannot be shipped.","Order # %s cannot be shipped."
|
393 |
+
"Selected quote is no longer available. Please refresh quotes by saving the shipment and try again.","Selected quote is no longer available. Please refresh quotes by saving the shipment and try again."
|
394 |
+
"Please agree to the insurance terms & conditions at System -> Configuration -> Temando Settings -> Insurance.","Please agree to the insurance terms & conditions at System -> Configuration -> Temando Settings -> Insurance."
|
395 |
+
"There are no items to be shipped. Please review \'Qty to Ship\' fields and try again.","There are no items to be shipped. Please review \'Qty to Ship\' fields and try again."
|
396 |
+
"Shipment booked.","Shipment booked."
|
397 |
+
"Quote pre-selected for booking.","Quote pre-selected for booking."
|
398 |
+
"Shipment ID or quote ID not found.","Shipment ID or quote ID not found."
|
399 |
+
"No shipments selected for removal.","No shipments selected for removal."
|
400 |
+
"Shipment ID %s not found.","Shipment ID %s not found."
|
401 |
+
"Total of %d shipments removed.","Total of %d shipments removed."
|
402 |
+
"Please select at least one shipment.","Please select at least one shipment."
|
403 |
+
"Consignment label not found for selected shipments.","Consignment label not found for selected shipments."
|
404 |
+
"Consignment label can be retrieved for booked shipments only.","Consignment label can be retrieved for booked shipments only."
|
405 |
+
"No shipments selected for booking.","No shipments selected for booking."
|
406 |
+
"Shipment ID %s no longer exists.","Shipment ID %s no longer exists."
|
407 |
+
"Order #%s: cannot be shipped.","Order #%s: cannot be shipped."
|
408 |
+
"Order #%s: no quote selected for booking or selected quote no longer exists.","Order #%s: no quote selected for booking or selected quote no longer exists."
|
409 |
+
"Order #%s: shipment already booked.","Order #%s: shipment already booked."
|
410 |
+
"Order #%s: Shipment booked.","Order #%s: Shipment booked."
|
411 |
+
"Order #%s: ","Order #%s: "
|
412 |
+
"Error retrieving pick slips. More infomration in exception log.","Error retrieving pick slips. More infomration in exception log."
|
413 |
+
"No orders selected for pick slip retrieval.","No orders selected for pick slip retrieval."
|
414 |
+
"Error saving record. Please check origin and destination country combination is unique and try again.","Error saving record. Please check origin and destination country combination is unique and try again."
|
415 |
+
"Warehouse does not exist","Warehouse does not exist"
|
416 |
+
"Error saving warehouse","Error saving warehouse"
|
417 |
+
"An error occured when synchronizing with temando.com","An error occured when synchronizing with temando.com"
|
418 |
+
"Warehouse was successfully saved.","Warehouse was successfully saved."
|
419 |
+
"The warehouse has been deleted.","The warehouse has been deleted."
|
420 |
+
"Error deleting warehouse.","Error deleting warehouse."
|
421 |
+
"Invalid warehouse id supplied. Warehouse does not exist.","Invalid warehouse id supplied. Warehouse does not exist."
|
422 |
+
"Invalid mode specified for mass status action.","Invalid mode specified for mass status action."
|
423 |
+
"No warehouses selected.","No warehouses selected."
|
424 |
+
"Warehouse ID %s not found.","Warehouse ID %s not found."
|
425 |
+
"Total of %d warehouses %s.","Total of %d warehouses %s."
|
426 |
+
"Zone does not exist","Zone does not exist"
|
427 |
+
"Error saving zone","Error saving zone"
|
428 |
+
"Zone was successfully saved.","Zone was successfully saved."
|
429 |
+
"The zone has been deleted.","The zone has been deleted."
|
430 |
+
"Unable to find the zone to delete.","Unable to find the zone to delete."
|
431 |
+
"No zones selected for deletion.","No zones selected for deletion."
|
432 |
+
"Zone ID %s not found.","Zone ID %s not found."
|
433 |
+
"Total of %d record(s) have been deleted.","Total of %d record(s) have been deleted."
|
434 |
+
"Cannot calculate shipping cost for separate item","Cannot calculate shipping cost for separate item"
|
435 |
+
"Temando Packaging","Temando Packaging"
|
436 |
+
"Packaging Mode","Packaging Mode"
|
437 |
+
"Commercial Invoice - International Freight","Commercial Invoice - International Freight"
|
438 |
+
"Product Description","Product Description"
|
439 |
+
"Composition","Composition"
|
440 |
+
"Country of Manufacture","Country of Manufacture"
|
441 |
+
"Country of Origin","Country of Origin"
|
442 |
+
"Package Details","Package Details"
|
443 |
+
"Description","Description"
|
444 |
+
"Package Type","Package Type"
|
445 |
+
"Value","Value"
|
446 |
+
"Pick-up Date","Pick-up Date"
|
447 |
+
"ASAP","ASAP"
|
448 |
+
"Select Date:","Select Date:"
|
449 |
+
"Time of Day","Time of Day"
|
450 |
+
"Destination","Destination"
|
451 |
+
"Destination Type","Destination Type"
|
452 |
+
"Phone","Phone"
|
453 |
+
"Items Ordered","Items Ordered"
|
454 |
+
"Dimensions","Dimensions"
|
455 |
+
"Product","Product"
|
456 |
+
"Qty to Ship","Qty to Ship"
|
457 |
+
"Article Value (%s)","Article Value (%s)"
|
458 |
+
"Article Description","Article Description"
|
459 |
+
"Ordered","Ordered"
|
460 |
+
"Shipped","Shipped"
|
461 |
+
"Boxes to Ship","Boxes to Ship"
|
462 |
+
"Add Box","Add Box"
|
463 |
+
"Import from Above","Import from Above"
|
464 |
+
"Article Allocation","Article Allocation"
|
465 |
+
"Row ID","Row ID"
|
466 |
+
"Comment","Comment"
|
467 |
+
"Remove","Remove"
|
468 |
+
"Close [X]","Close [X]"
|
469 |
+
"Shipping Instructions & Comments","Shipping Instructions & Comments"
|
470 |
+
"Instructions","Instructions"
|
471 |
+
"Deliver By","Deliver By"
|
472 |
+
"Deliver by Date","Deliver by Date"
|
473 |
+
"The Buyer has indicated that they would like their shipment insured.","The Buyer has indicated that they would like their shipment insured."
|
474 |
+
"The Buyer indicated that they would not like their shipment insured.","The Buyer indicated that they would not like their shipment insured."
|
475 |
+
"Customer Selected Delivery Options","Customer Selected Delivery Options"
|
476 |
+
"Origin Location","Origin Location"
|
477 |
+
"Warehouse","Warehouse"
|
478 |
+
"Available Quotes","Available Quotes"
|
479 |
+
"Delivery Method","Delivery Method"
|
480 |
+
"ETA","ETA"
|
481 |
+
"Cost","Cost"
|
482 |
+
"Notes","Notes"
|
483 |
+
"Make Booking","Make Booking"
|
484 |
+
"Select for Booking","Select for Booking"
|
485 |
+
"Book Quote","Book Quote"
|
486 |
+
"Select Quote","Select Quote"
|
487 |
+
"Confirm Reservation","Confirm Reservation"
|
488 |
+
"Make Reservation","Make Reservation"
|
489 |
+
"Unsaved changes will be lost. Continue booking?","Unsaved changes will be lost. Continue booking?"
|
490 |
+
"Shipment Status","Shipment Status"
|
491 |
+
"Selected Pickup Location","Selected Pickup Location"
|
492 |
+
"Carrier Selected by Customer","Carrier Selected by Customer"
|
493 |
+
"Shipping Paid by Customer","Shipping Paid by Customer"
|
494 |
+
"Final Carrier Selected","Final Carrier Selected"
|
495 |
+
"Final Shipping Amount","Final Shipping Amount"
|
496 |
+
"Estimate Shipping and Tax","Estimate Shipping and Tax"
|
497 |
+
"Enter your destination to get a shipping estimate.","Enter your destination to get a shipping estimate."
|
498 |
+
"Get a Quote","Get a Quote"
|
499 |
+
"Incl. Tax","Incl. Tax"
|
500 |
+
"Update Total","Update Total"
|
501 |
+
"The latest I need my order.","The latest I need my order."
|
502 |
+
"Shipping Instructions","Shipping Instructions"
|
503 |
+
"Maximum 30 characters.","Maximum 30 characters."
|
504 |
+
"Maximum 5000 characters.","Maximum 5000 characters."
|
505 |
+
"Sorry, no quotes are available for this order at this time.","Sorry, no quotes are available for this order at this time."
|
506 |
+
"Delivery Options","Delivery Options"
|
507 |
+
"Extra Delivery Options","Extra Delivery Options"
|
508 |
+
"Estimate Shipping","Estimate Shipping"
|
509 |
+
"Suburb/City","City"
|
510 |
+
"Postal Code","Zip Code"
|
511 |
+
"Temando Account Details","Temando Account Details"
|
512 |
+
"Account Details","Account Details"
|
513 |
+
"Sandbox is used for testing.","Sandbox is used for testing."
|
514 |
+
"Login ID","Login ID"
|
515 |
+
"The Login ID created when setting up your Temando.com profile.","The Login ID created when setting up your Temando.com profile."
|
516 |
+
"The password created when setting up your Temando.com profile.","The password created when setting up your Temando.com profile."
|
517 |
+
"Account for those with a pre-approved Trade Account, otherwise select Credit.","Account for those with a pre-approved Trade Account, otherwise select Credit."
|
518 |
+
"Required Fields","Required Fields"
|
519 |
+
"Cancel","Cancel"
|
520 |
+
"Skip","Skip"
|
521 |
+
"Continue","Continue"
|
522 |
+
"Click the name of the carrier/s you want.","Click the name of the carrier/s you want."
|
523 |
+
"Additional Carriers","Additional Carriers"
|
524 |
+
"Additional carriers are available with BYO rates","Additional carriers are available with BYO rates"
|
525 |
+
"Contact me with additional info","Contact me with additional info"
|
526 |
+
"Full Name","Full Name"
|
527 |
+
"Email Address","Email Address"
|
528 |
+
"Back","Back"
|
529 |
+
"Catalog/Product","Catalog/Product"
|
530 |
+
"This area relates to the unique packaging of your products.","This area relates to the unique packaging of your products."
|
531 |
+
"Allows you to specify which carriers you will receive quotes from.","Allows you to specify which carriers you will receive quotes from."
|
532 |
+
"We have provided you with test credentials. To go live, enter your unique details.","We have provided you with test credentials. To go live, enter your unique details."
|
533 |
+
"Allowed Countries","Allowed Countries"
|
534 |
+
"Defines the countries you are using Temando to ship from and to.","Defines the countries you are using Temando to ship from and to."
|
535 |
+
"Configuration Complete","Configuration Complete"
|
536 |
+
"Ship-To Countries","Ship-To Countries"
|
537 |
+
"Shipping Rule","Shipping Rule"
|
538 |
+
"Name & Address","Name & Address"
|
539 |
+
"Temando will return quotes based on the origin location address. Additional locations can be added in the Manage Warehouses tab.","Temando will return quotes based on the origin location address. Additional locations can be added in the Manage Warehouses tab."
|
540 |
+
"Temando will return quotes based on the origin location address.","Temando will return quotes based on the origin location address."
|
541 |
+
"Create a shipping rule to customise the quotes displayed to your customers.","Create a shipping rule to customise the quotes displayed to your customers."
|
542 |
+
"Flat Rate – One price for all shipments","Flat Rate – One price for all shipments"
|
543 |
+
"Dynamic – Allows carrier selection and display filter","Dynamic – Allows carrier selection and display filter"
|
544 |
+
"Dynamic Rule Configuration","Dynamic Rule Configuration"
|
545 |
+
"Select the carriers you would like the rule to use","Select the carriers you would like the rule to use"
|
546 |
+
"Static Rule Configuration","Static Rule Configuration"
|
547 |
+
"Flat Rate Value","Flat Rate Value"
|
548 |
+
"Temando Configuration Wizard","Temando Configuration Wizard"
|
549 |
+
"Temando Settings","Temando Settings"
|
550 |
+
"If set to ""Yes"", the sandbox (testing) service will be used (usually set to ""No"" on a live site)","If set to ""Yes"", the sandbox (testing) service will be used (usually set to ""No"" on a live site)"
|
551 |
+
"<div style=""padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;"">If you don't have a Temando account, you can <a href=""https://www.temando.com/register/"" target=""_blank"">Sign Up</a> immediately.</div>","<div style=""padding:10px;background-color:#fff;border:1px solid #ddd;margin-bottom:7px;"">If you don't have a Temando account, you can <a href=""https://www.temando.com/register/"" target=""_blank"">Sign Up</a> immediately.</div>"
|
552 |
+
"If choosing ""credit"", please ensure you have sufficient credit in your Temando account","If choosing ""credit"", please ensure you have sufficient credit in your Temando account"
|
553 |
+
"Options","Options"
|
554 |
+
"Show Estimate Shipping on Product Page","Show Estimate Shipping on Product Page"
|
555 |
+
"Set to yes to enable a shipping estimation widget on the product page.","Set to yes to enable a shipping estimation widget on the product page."
|
556 |
+
"Shipping Label Type","Shipping Label Type"
|
557 |
+
"Error from Temando processing","Error from Temando processing"
|
558 |
+
"Show Temando error message, custom message or a flat rate shipping method when error occurs.","Show Temando error message, custom message or a flat rate shipping method when error occurs."
|
559 |
+
"Custom error message displayed when error is returned from Temando.","Custom error message displayed when error is returned from Temando."
|
560 |
+
"Custom error message","Custom error message"
|
561 |
+
"Checkout Options","Checkout Options"
|
562 |
+
"Show Delivery Options","Show Delivery Options"
|
563 |
+
"Show extra delivery options on checkout page?","Show extra delivery options on checkout page?"
|
564 |
+
"Container Swing Lifter","Container Swing Lifter"
|
565 |
+
"Applies to business deliveries only.","Applies to business deliveries only."
|
566 |
+
"Loading Dock","Loading Dock"
|
567 |
+
"Tailgate Lifter","Tailgate Lifter"
|
568 |
+
"Unattended Delivery","Unattended Delivery"
|
569 |
+
"Heavy Lift","Heavy Lift"
|
570 |
+
"Show Shipping Instructions","Show Shipping Instructions"
|
571 |
+
"Show Customer Comment","Show Customer Comment"
|
572 |
+
"Show 'Deliver By' Calendar","Show 'Deliver By' Calendar
|
573 |
+
"Allow PO Box Deliveries","Allow PO Box Deliveries"
|
574 |
+
"Allow shipping to PO Box addresses?","Allow shipping to PO Box addresses?"
|
575 |
+
"The error message displayed when delivery to PO Box address is restricted.","The error message displayed when delivery to PO Box address is restricted."
|
576 |
+
"Insurance","Insurance"
|
577 |
+
"Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Insurance must be added to all orders.","Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Insurance must be added to all orders."
|
578 |
+
"Carbon Offset","Carbon Offset"
|
579 |
+
"Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Carbon offsets are added to all orders.","Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Carbon offsets are added to all orders."
|
580 |
+
"Footprints","Footprints"
|
581 |
+
"Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Footprints are added to all orders.","Disabled - This option is unavailable to users.<br/>Optional - The option is presented during checkout.<br/>Mandatory - Footprints are added to all orders."
|
582 |
+
"Temando Manage Shipments - Filters","Temando Manage Shipments - Filters"
|
583 |
+
"Order Status","Order Status"
|
584 |
+
"Use CTRL + click to select multiple statuses<br/>Refers to <strong>Temando - Manage Shipments</strong> panel.<br/>Shipments linked to an order with selected status are <strong>NOT</strong> displayed on Temando - Manage Shipments grid.","Use CTRL + click to select multiple statuses<br/>Refers to <strong>Temando - Manage Shipments</strong> panel.<br/>Shipments linked to an order with selected status are <strong>NOT</strong> displayed on Temando - Manage Shipments grid."
|
585 |
+
"The units used for product measurements","The units used for product measurements"
|
586 |
+
"The units used for product weights","The units used for product weights"
|
587 |
+
"Default values will be used for all products that do not have product specific dimensions & packaging information configured.","Default values will be used for all products that do not have product specific dimensions & packaging information configured."
|
588 |
+
"Consolidation","Consolidation"
|
589 |
+
"Use packaging details defined in Magento or automated consolidation via Temando API.","Use packaging details defined in Magento or automated consolidation via Temando API."
|
590 |
+
"If unknown use 10x10x10","If unknown use 10x10x10"
|
591 |
+
"The heading above the list of Temando shipping methods during checkout.","The heading above the list of Temando shipping methods during checkout."
|
592 |
+
"Ship to applicable countries","Ship to applicable countries"
|
593 |
+
"Ship to specific countries","Ship to specific countries"
|
594 |
+
"Show method if not applicable","Show method if not applicable"
|
595 |
+
"Free Shipping with Minimum Order Amount","Free Shipping with Minimum Order Amount"
|
596 |
+
"Minimum Order Amount for Free Shipping","Minimum Order Amount for Free Shipping"
|
597 |
+
"Displayed Error Message","Displayed Error Message"
|
598 |
+
"Use CTRL + click to select multiple carriers<br/>To load eParcel Australia Post rates please contact <a href=""mailto:sales@temando.com"">sales@temando.com</a>.","Use CTRL + click to select multiple carriers<br/>To load eParcel Australia Post rates please contact <a href=""mailto:sales@temando.com"">sales@temando.com</a>."
|
599 |
+
"Locations","Locations"
|
600 |
+
"Rule Engine","Rule Engine"
|
601 |
+
"International","International"
|
602 |
+
"Manage Taxes & Duties","Manage Taxes & Duties"
|
603 |
+
"Configuration Settings","Configuration Settings"
|
604 |
+
"Shipping Methods","Shipping Methods"
|
605 |
+
"Configuration Wizard","Configuration Wizard"
|
606 |
+
"This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us.","This shipping method is currently unavailable. If you would like to ship using this shipping method, please contact us."
|
607 |
+
"Available in the Business Extension","Available in the Business Extension"
|
608 |
+
"Consignment Number: ","Consignment Number: "
|
609 |
+
"Request Id: ","Request Id: "
|
610 |
+
"Show error message to customer from Temando or show flat rate shipping method.","Show error message to customer from Temando or show flat rate shipping method."
|
611 |
+
"<strong>Free Shipping</strong> - no charge to customer.<br/><strong>Fixed Price / Flat Rate</strong> - customer always pays the amount set in ""Shipping Price"" below.<br/><strong>Dynamic Pricing</strong><br/>- <strong>All</strong>: All quotes from carriers in ""allowed carriers"" above are shown for the customer to choose from.<br/>- <strong>Cheapest</strong>: Only the cheapest quote is shown.<br/>- <strong>Fastest</strong>: Only the fastest quote is shown.<br/>- <strong>Cheapest and Fastest</strong>: The customer can choose between the cheapest or the fastest quote.","<strong>Free Shipping</strong> - no charge to customer.<br/><strong>Fixed Price / Flat Rate</strong> - customer always pays the amount set in ""Shipping Price"" below.<br/><strong>Dynamic Pricing</strong><br/>- <strong>All</strong>: All quotes from carriers in ""allowed carriers"" above are shown for the customer to choose from.<br/>- <strong>Cheapest</strong>: Only the cheapest quote is shown.<br/>- <strong>Fastest</strong>: Only the fastest quote is shown.<br/>- <strong>Cheapest and Fastest</strong>: The customer can choose between the cheapest or the fastest quote."
|
612 |
+
"Pricing Method","Pricing Method"
|
613 |
+
"Shipping Price","Shipping Price"
|
614 |
+
"Handling Fee / Markup","Handling Fee / Markup"
|
615 |
+
"Handling Fee Calculation","Handling Fee Calculation"
|
616 |
+
"Stock origin (warehouse) details","Stock origin (warehouse) details"
|
617 |
+
"Please enter the details of your pick-up location for all products.","Please enter the details of your pick-up location for all products."
|
618 |
+
"Use CTRL + click to select multiple carriers<br/>A higher plan is required to load eParcel Australia Post rates. Please contact <a href=""mailto:sales@temando.com"">sales@temando.com</a>.","Use CTRL + click to select multiple carriers<br/>A higher plan is required to load eParcel Australia Post rates. Please contact <a href=""mailto:sales@temando.com"">sales@temando.com</a>."
|
619 |
+
"Ensure you populate your Temando tab in the Magento Catalog section.","Ensure you populate your Temando tab in the Magento Catalog section."
|
620 |
+
"Corresponds to the numerical values entered against each of your products in the catalogue.","Corresponds to the numerical values entered against each of your products in the catalogue."
|
621 |
+
"The default package you create will be used for a product if you have not pre-defined dimensions of a product in the Temando Tab of the Catalog section.","The default package you create will be used for a product if you have not pre-defined dimensions of a product in the Temando Tab of the Catalog section."
|
622 |
+
"Configuration","Configuration"
|
js/temando/autocomplete.js
CHANGED
@@ -1,339 +1,339 @@
|
|
1 |
-
/*
|
2 |
-
*
|
3 |
-
* Ajax Autocomplete for Prototype, version 1.0.4
|
4 |
-
* (c) 2010 Tomas Kirda
|
5 |
-
*
|
6 |
-
* Ajax Autocomplete for Prototype is freely distributable under the terms of an MIT-style license.
|
7 |
-
* For details, see the web site: http://www.devbridge.com/projects/autocomplete/
|
8 |
-
*
|
9 |
-
*/
|
10 |
-
|
11 |
-
var Autocomplete = function(el, options){
|
12 |
-
this.el = $(el);
|
13 |
-
this.id = this.el.identify();
|
14 |
-
this.el.setAttribute('autocomplete','off');
|
15 |
-
this.suggestions = [];
|
16 |
-
this.data = [];
|
17 |
-
this.badQueries = [];
|
18 |
-
this.selectedIndex = -1;
|
19 |
-
this.currentValue = this.el.value;
|
20 |
-
this.intervalId = 0;
|
21 |
-
this.cachedResponse = [];
|
22 |
-
this.instanceId = null;
|
23 |
-
this.onChangeInterval = null;
|
24 |
-
this.ignoreValueChange = false;
|
25 |
-
this.serviceUrl = options.serviceUrl;
|
26 |
-
this.options = {
|
27 |
-
autoSubmit:false,
|
28 |
-
minChars:1,
|
29 |
-
maxHeight:300,
|
30 |
-
deferRequestBy:300,
|
31 |
-
width:200,
|
32 |
-
container:null,
|
33 |
-
suggestPositioning: 'absolute;'
|
34 |
-
};
|
35 |
-
this.countryEl = options.countryEl;
|
36 |
-
if(options){ Object.extend(this.options, options); }
|
37 |
-
if(Autocomplete.isDomLoaded){
|
38 |
-
this.initialize();
|
39 |
-
}else{
|
40 |
-
Event.observe(document, 'dom:loaded', this.initialize.bind(this), false);
|
41 |
-
}
|
42 |
-
};
|
43 |
-
|
44 |
-
Autocomplete.instances = [];
|
45 |
-
Autocomplete.isDomLoaded = false;
|
46 |
-
|
47 |
-
Autocomplete.getInstance = function(id){
|
48 |
-
var instances = Autocomplete.instances;
|
49 |
-
var i = instances.length;
|
50 |
-
while(i--){ if(instances[i].id === id){ return instances[i]; }}
|
51 |
-
};
|
52 |
-
|
53 |
-
Autocomplete.highlight = function(value, re){
|
54 |
-
return value.replace(re, function(match){ return '<strong>' + match + '<\/strong>' });
|
55 |
-
};
|
56 |
-
|
57 |
-
Autocomplete.prototype = {
|
58 |
-
|
59 |
-
killerFn: null,
|
60 |
-
|
61 |
-
initialize: function() {
|
62 |
-
var me = this;
|
63 |
-
this.killerFn = function(e) {
|
64 |
-
if (!$(Event.element(e)).up('.autocomplete')) {
|
65 |
-
me.killSuggestions();
|
66 |
-
me.disableKillerFn();
|
67 |
-
this.onAway();
|
68 |
-
}
|
69 |
-
} .bindAsEventListener(this);
|
70 |
-
|
71 |
-
if (!this.options.width) { this.options.width = this.el.getWidth(); }
|
72 |
-
|
73 |
-
var div = new Element('div', { style: 'position:'+this.options.suggestPositioning});
|
74 |
-
div.update('<div class="autocomplete-w1"><div class="autocomplete-w2"><div class="autocomplete" id="Autocomplete_' + this.id + '" style="display:none; width:' + this.options.width + 'px;"></div></div></div>');
|
75 |
-
|
76 |
-
this.options.container = $(this.options.container);
|
77 |
-
if (this.options.container) {
|
78 |
-
this.options.container.appendChild(div);
|
79 |
-
this.fixPosition = function() { };
|
80 |
-
} else {
|
81 |
-
document.body.appendChild(div);
|
82 |
-
}
|
83 |
-
|
84 |
-
this.mainContainerId = div.identify();
|
85 |
-
this.container = $('Autocomplete_' + this.id);
|
86 |
-
this.fixPosition();
|
87 |
-
|
88 |
-
Event.observe(this.el, window.opera ? 'keypress':'keydown', this.onKeyPress.bind(this));
|
89 |
-
Event.observe(this.el, 'keyup', this.onKeyUp.bind(this));
|
90 |
-
Event.observe(this.el, 'blur', this.enableKillerFn.bind(this));
|
91 |
-
Event.observe(this.el, 'focus', this.fixPosition.bind(this));
|
92 |
-
this.container.setStyle({ maxHeight: this.options.maxHeight + 'px' });
|
93 |
-
this.instanceId = Autocomplete.instances.push(this) - 1;
|
94 |
-
},
|
95 |
-
|
96 |
-
fixPosition: function() {
|
97 |
-
var offset = this.el.cumulativeOffset();
|
98 |
-
$(this.mainContainerId).setStyle({ top: (offset.top + this.el.getHeight()) + 'px', left: offset.left + 'px' });
|
99 |
-
},
|
100 |
-
|
101 |
-
enableKillerFn: function() {
|
102 |
-
Event.observe(document.body, 'click', this.killerFn);
|
103 |
-
},
|
104 |
-
|
105 |
-
disableKillerFn: function() {
|
106 |
-
Event.stopObserving(document.body, 'click', this.killerFn);
|
107 |
-
},
|
108 |
-
|
109 |
-
killSuggestions: function() {
|
110 |
-
this.stopKillSuggestions();
|
111 |
-
this.intervalId = window.setInterval(function() { this.hide(); this.stopKillSuggestions(); } .bind(this), 300);
|
112 |
-
},
|
113 |
-
|
114 |
-
stopKillSuggestions: function() {
|
115 |
-
window.clearInterval(this.intervalId);
|
116 |
-
},
|
117 |
-
|
118 |
-
onKeyPress: function(e) {
|
119 |
-
if (!this.enabled) { return; }
|
120 |
-
// return will exit the function
|
121 |
-
// and event will not fire
|
122 |
-
switch (e.keyCode) {
|
123 |
-
case Event.KEY_ESC:
|
124 |
-
this.el.value = this.currentValue;
|
125 |
-
this.hide();
|
126 |
-
break;
|
127 |
-
case Event.KEY_TAB:
|
128 |
-
case Event.KEY_RETURN:
|
129 |
-
if (this.selectedIndex === -1) {
|
130 |
-
this.hide();
|
131 |
-
return;
|
132 |
-
}
|
133 |
-
this.select(this.selectedIndex);
|
134 |
-
if (e.keyCode === Event.KEY_TAB) { return; }
|
135 |
-
break;
|
136 |
-
case Event.KEY_UP:
|
137 |
-
this.moveUp();
|
138 |
-
break;
|
139 |
-
case Event.KEY_DOWN:
|
140 |
-
this.moveDown();
|
141 |
-
break;
|
142 |
-
default:
|
143 |
-
return;
|
144 |
-
}
|
145 |
-
Event.stop(e);
|
146 |
-
},
|
147 |
-
|
148 |
-
onKeyUp: function(e) {
|
149 |
-
switch (e.keyCode) {
|
150 |
-
case Event.KEY_UP:
|
151 |
-
case Event.KEY_DOWN:
|
152 |
-
return;
|
153 |
-
}
|
154 |
-
clearInterval(this.onChangeInterval);
|
155 |
-
if (this.currentValue !== this.el.value) {
|
156 |
-
if (this.options.deferRequestBy > 0) {
|
157 |
-
// Defer lookup in case when value changes very quickly:
|
158 |
-
this.onChangeInterval = setInterval((function() {
|
159 |
-
this.onValueChange();
|
160 |
-
}).bind(this), this.options.deferRequestBy);
|
161 |
-
} else {
|
162 |
-
this.onValueChange();
|
163 |
-
}
|
164 |
-
}
|
165 |
-
},
|
166 |
-
|
167 |
-
onValueChange: function() {
|
168 |
-
clearInterval(this.onChangeInterval);
|
169 |
-
this.currentValue = this.el.value;
|
170 |
-
this.selectedIndex = -1;
|
171 |
-
if (this.ignoreValueChange) {
|
172 |
-
this.ignoreValueChange = false;
|
173 |
-
return;
|
174 |
-
}
|
175 |
-
if (this.currentValue === '' || this.currentValue.length < this.options.minChars) {
|
176 |
-
this.hide();
|
177 |
-
} else {
|
178 |
-
this.getSuggestions();
|
179 |
-
}
|
180 |
-
},
|
181 |
-
|
182 |
-
getSuggestions: function() {
|
183 |
-
if(this.countryEl != null) {
|
184 |
-
var cr = this.cachedResponse[this.currentValue+$(this.countryEl).value];
|
185 |
-
} else {
|
186 |
-
var cr = this.cachedResponse[this.currentValue];
|
187 |
-
}
|
188 |
-
if (cr && Object.isArray(cr.suggestions)) {
|
189 |
-
this.suggestions = cr.suggestions;
|
190 |
-
this.data = cr.data;
|
191 |
-
this.suggest();
|
192 |
-
} else if (!this.isBadQuery(this.currentValue)) {
|
193 |
-
this.onLoadStart();
|
194 |
-
if(this.countryEl != null) {
|
195 |
-
new Ajax.Request(this.serviceUrl, {
|
196 |
-
parameters: { query: this.currentValue, country: $(this.countryEl).value },
|
197 |
-
onComplete: this.processResponse.bind(this),
|
198 |
-
method: 'get'
|
199 |
-
});
|
200 |
-
} else {
|
201 |
-
new Ajax.Request(this.serviceUrl, {
|
202 |
-
parameters: { query: this.currentValue },
|
203 |
-
onComplete: this.processResponse.bind(this),
|
204 |
-
method: 'get'
|
205 |
-
});
|
206 |
-
}
|
207 |
-
}
|
208 |
-
},
|
209 |
-
|
210 |
-
isBadQuery: function(q) {
|
211 |
-
var i = this.badQueries.length;
|
212 |
-
while (i--) {
|
213 |
-
if (q.indexOf(this.badQueries[i]) === 0) { return true; }
|
214 |
-
}
|
215 |
-
return false;
|
216 |
-
},
|
217 |
-
|
218 |
-
hide: function() {
|
219 |
-
this.enabled = false;
|
220 |
-
this.selectedIndex = -1;
|
221 |
-
this.container.hide();
|
222 |
-
},
|
223 |
-
|
224 |
-
suggest: function() {
|
225 |
-
if (this.suggestions.length === 0) {
|
226 |
-
this.hide();
|
227 |
-
return;
|
228 |
-
}
|
229 |
-
var content = [];
|
230 |
-
var re = new RegExp('\\b' + this.currentValue.match(/\w+/g).join('|\\b'), 'gi');
|
231 |
-
this.suggestions.each(function(value, i) {
|
232 |
-
content.push((this.selectedIndex === i ? '<div class="selected"' : '<div'), ' title="', value, '" onclick="Autocomplete.instances[', this.instanceId, '].select(', i, ');" onmouseover="Autocomplete.instances[', this.instanceId, '].activate(', i, ');">', Autocomplete.highlight(value, re), '</div>');
|
233 |
-
} .bind(this));
|
234 |
-
this.enabled = true;
|
235 |
-
this.container.update(content.join('')).show();
|
236 |
-
},
|
237 |
-
|
238 |
-
processResponse: function(xhr) {
|
239 |
-
this.onLoadComplete();
|
240 |
-
var response;
|
241 |
-
try {
|
242 |
-
response = xhr.responseText.evalJSON();
|
243 |
-
if (!Object.isArray(response.data)) { response.data = []; }
|
244 |
-
} catch (err) { return; }
|
245 |
-
if(this.countryEl != null) {
|
246 |
-
this.cachedResponse[response.query+$(this.countryEl).value] = response;
|
247 |
-
} else {
|
248 |
-
this.cachedResponse[response.query] = response;
|
249 |
-
}
|
250 |
-
if (response.suggestions.length === 0) { this.badQueries.push(response.query); }
|
251 |
-
if (response.query === this.currentValue) {
|
252 |
-
this.suggestions = response.suggestions;
|
253 |
-
this.data = response.data;
|
254 |
-
this.suggest();
|
255 |
-
}
|
256 |
-
},
|
257 |
-
|
258 |
-
activate: function(index) {
|
259 |
-
var divs = this.container.childNodes;
|
260 |
-
var activeItem;
|
261 |
-
// Clear previous selection:
|
262 |
-
if (this.selectedIndex !== -1 && divs.length > this.selectedIndex) {
|
263 |
-
divs[this.selectedIndex].className = '';
|
264 |
-
}
|
265 |
-
this.selectedIndex = index;
|
266 |
-
if (this.selectedIndex !== -1 && divs.length > this.selectedIndex) {
|
267 |
-
activeItem = divs[this.selectedIndex]
|
268 |
-
activeItem.className = 'selected';
|
269 |
-
}
|
270 |
-
return activeItem;
|
271 |
-
},
|
272 |
-
|
273 |
-
deactivate: function(div, index) {
|
274 |
-
div.className = '';
|
275 |
-
if (this.selectedIndex === index) { this.selectedIndex = -1; }
|
276 |
-
},
|
277 |
-
|
278 |
-
select: function(i) {
|
279 |
-
var selectedValue = this.suggestions[i];
|
280 |
-
if (selectedValue) {
|
281 |
-
this.el.value = selectedValue;
|
282 |
-
if (this.options.autoSubmit && this.el.form) {
|
283 |
-
this.el.form.submit();
|
284 |
-
}
|
285 |
-
this.ignoreValueChange = true;
|
286 |
-
this.hide();
|
287 |
-
this.onSelect(i);
|
288 |
-
}
|
289 |
-
},
|
290 |
-
|
291 |
-
moveUp: function() {
|
292 |
-
if (this.selectedIndex === -1) { return; }
|
293 |
-
if (this.selectedIndex === 0) {
|
294 |
-
this.container.childNodes[0].className = '';
|
295 |
-
this.selectedIndex = -1;
|
296 |
-
this.el.value = this.currentValue;
|
297 |
-
return;
|
298 |
-
}
|
299 |
-
this.adjustScroll(this.selectedIndex - 1);
|
300 |
-
},
|
301 |
-
|
302 |
-
moveDown: function() {
|
303 |
-
if (this.selectedIndex === (this.suggestions.length - 1)) { return; }
|
304 |
-
this.adjustScroll(this.selectedIndex + 1);
|
305 |
-
},
|
306 |
-
|
307 |
-
adjustScroll: function(i) {
|
308 |
-
var container = this.container;
|
309 |
-
var activeItem = this.activate(i);
|
310 |
-
var offsetTop = activeItem.offsetTop;
|
311 |
-
var upperBound = container.scrollTop;
|
312 |
-
var lowerBound = upperBound + this.options.maxHeight - 25;
|
313 |
-
if (offsetTop < upperBound) {
|
314 |
-
container.scrollTop = offsetTop;
|
315 |
-
} else if (offsetTop > lowerBound) {
|
316 |
-
container.scrollTop = offsetTop - this.options.maxHeight + 25;
|
317 |
-
}
|
318 |
-
this.el.value = this.suggestions[i];
|
319 |
-
},
|
320 |
-
|
321 |
-
onSelect: function(i) {
|
322 |
-
(this.options.onSelect || Prototype.emptyFunction)(this.suggestions[i], this.data[i], this.options);
|
323 |
-
},
|
324 |
-
|
325 |
-
onLoadStart: function() {
|
326 |
-
(this.options.onLoadStart || Prototype.emptyFunction)(this.options);
|
327 |
-
},
|
328 |
-
|
329 |
-
onLoadComplete: function() {
|
330 |
-
(this.options.onLoadComplete || Prototype.emptyFunction)(this.options);
|
331 |
-
},
|
332 |
-
|
333 |
-
onAway: function() {
|
334 |
-
(this.options.onAway || Prototype.emptyFunction)(this.options);
|
335 |
-
}
|
336 |
-
|
337 |
-
};
|
338 |
-
|
339 |
-
Event.observe(document, 'dom:loaded', function(){ Autocomplete.isDomLoaded = true; }, false);
|
1 |
+
/*
|
2 |
+
*
|
3 |
+
* Ajax Autocomplete for Prototype, version 1.0.4
|
4 |
+
* (c) 2010 Tomas Kirda
|
5 |
+
*
|
6 |
+
* Ajax Autocomplete for Prototype is freely distributable under the terms of an MIT-style license.
|
7 |
+
* For details, see the web site: http://www.devbridge.com/projects/autocomplete/
|
8 |
+
*
|
9 |
+
*/
|
10 |
+
|
11 |
+
var Autocomplete = function(el, options){
|
12 |
+
this.el = $(el);
|
13 |
+
this.id = this.el.identify();
|
14 |
+
this.el.setAttribute('autocomplete','off');
|
15 |
+
this.suggestions = [];
|
16 |
+
this.data = [];
|
17 |
+
this.badQueries = [];
|
18 |
+
this.selectedIndex = -1;
|
19 |
+
this.currentValue = this.el.value;
|
20 |
+
this.intervalId = 0;
|
21 |
+
this.cachedResponse = [];
|
22 |
+
this.instanceId = null;
|
23 |
+
this.onChangeInterval = null;
|
24 |
+
this.ignoreValueChange = false;
|
25 |
+
this.serviceUrl = options.serviceUrl;
|
26 |
+
this.options = {
|
27 |
+
autoSubmit:false,
|
28 |
+
minChars:1,
|
29 |
+
maxHeight:300,
|
30 |
+
deferRequestBy:300,
|
31 |
+
width:200,
|
32 |
+
container:null,
|
33 |
+
suggestPositioning: 'absolute;'
|
34 |
+
};
|
35 |
+
this.countryEl = options.countryEl;
|
36 |
+
if(options){ Object.extend(this.options, options); }
|
37 |
+
if(Autocomplete.isDomLoaded){
|
38 |
+
this.initialize();
|
39 |
+
}else{
|
40 |
+
Event.observe(document, 'dom:loaded', this.initialize.bind(this), false);
|
41 |
+
}
|
42 |
+
};
|
43 |
+
|
44 |
+
Autocomplete.instances = [];
|
45 |
+
Autocomplete.isDomLoaded = false;
|
46 |
+
|
47 |
+
Autocomplete.getInstance = function(id){
|
48 |
+
var instances = Autocomplete.instances;
|
49 |
+
var i = instances.length;
|
50 |
+
while(i--){ if(instances[i].id === id){ return instances[i]; }}
|
51 |
+
};
|
52 |
+
|
53 |
+
Autocomplete.highlight = function(value, re){
|
54 |
+
return value.replace(re, function(match){ return '<strong>' + match + '<\/strong>' });
|
55 |
+
};
|
56 |
+
|
57 |
+
Autocomplete.prototype = {
|
58 |
+
|
59 |
+
killerFn: null,
|
60 |
+
|
61 |
+
initialize: function() {
|
62 |
+
var me = this;
|
63 |
+
this.killerFn = function(e) {
|
64 |
+
if (!$(Event.element(e)).up('.autocomplete')) {
|
65 |
+
me.killSuggestions();
|
66 |
+
me.disableKillerFn();
|
67 |
+
this.onAway();
|
68 |
+
}
|
69 |
+
} .bindAsEventListener(this);
|
70 |
+
|
71 |
+
if (!this.options.width) { this.options.width = this.el.getWidth(); }
|
72 |
+
|
73 |
+
var div = new Element('div', { style: 'position:'+this.options.suggestPositioning});
|
74 |
+
div.update('<div class="autocomplete-w1"><div class="autocomplete-w2"><div class="autocomplete" id="Autocomplete_' + this.id + '" style="display:none; width:' + this.options.width + 'px;"></div></div></div>');
|
75 |
+
|
76 |
+
this.options.container = $(this.options.container);
|
77 |
+
if (this.options.container) {
|
78 |
+
this.options.container.appendChild(div);
|
79 |
+
this.fixPosition = function() { };
|
80 |
+
} else {
|
81 |
+
document.body.appendChild(div);
|
82 |
+
}
|
83 |
+
|
84 |
+
this.mainContainerId = div.identify();
|
85 |
+
this.container = $('Autocomplete_' + this.id);
|
86 |
+
this.fixPosition();
|
87 |
+
|
88 |
+
Event.observe(this.el, window.opera ? 'keypress':'keydown', this.onKeyPress.bind(this));
|
89 |
+
Event.observe(this.el, 'keyup', this.onKeyUp.bind(this));
|
90 |
+
Event.observe(this.el, 'blur', this.enableKillerFn.bind(this));
|
91 |
+
Event.observe(this.el, 'focus', this.fixPosition.bind(this));
|
92 |
+
this.container.setStyle({ maxHeight: this.options.maxHeight + 'px' });
|
93 |
+
this.instanceId = Autocomplete.instances.push(this) - 1;
|
94 |
+
},
|
95 |
+
|
96 |
+
fixPosition: function() {
|
97 |
+
var offset = this.el.cumulativeOffset();
|
98 |
+
$(this.mainContainerId).setStyle({ top: (offset.top + this.el.getHeight()) + 'px', left: offset.left + 'px' });
|
99 |
+
},
|
100 |
+
|
101 |
+
enableKillerFn: function() {
|
102 |
+
Event.observe(document.body, 'click', this.killerFn);
|
103 |
+
},
|
104 |
+
|
105 |
+
disableKillerFn: function() {
|
106 |
+
Event.stopObserving(document.body, 'click', this.killerFn);
|
107 |
+
},
|
108 |
+
|
109 |
+
killSuggestions: function() {
|
110 |
+
this.stopKillSuggestions();
|
111 |
+
this.intervalId = window.setInterval(function() { this.hide(); this.stopKillSuggestions(); } .bind(this), 300);
|
112 |
+
},
|
113 |
+
|
114 |
+
stopKillSuggestions: function() {
|
115 |
+
window.clearInterval(this.intervalId);
|
116 |
+
},
|
117 |
+
|
118 |
+
onKeyPress: function(e) {
|
119 |
+
if (!this.enabled) { return; }
|
120 |
+
// return will exit the function
|
121 |
+
// and event will not fire
|
122 |
+
switch (e.keyCode) {
|
123 |
+
case Event.KEY_ESC:
|
124 |
+
this.el.value = this.currentValue;
|
125 |
+
this.hide();
|
126 |
+
break;
|
127 |
+
case Event.KEY_TAB:
|
128 |
+
case Event.KEY_RETURN:
|
129 |
+
if (this.selectedIndex === -1) {
|
130 |
+
this.hide();
|
131 |
+
return;
|
132 |
+
}
|
133 |
+
this.select(this.selectedIndex);
|
134 |
+
if (e.keyCode === Event.KEY_TAB) { return; }
|
135 |
+
break;
|
136 |
+
case Event.KEY_UP:
|
137 |
+
this.moveUp();
|
138 |
+
break;
|
139 |
+
case Event.KEY_DOWN:
|
140 |
+
this.moveDown();
|
141 |
+
break;
|
142 |
+
default:
|
143 |
+
return;
|
144 |
+
}
|
145 |
+
Event.stop(e);
|
146 |
+
},
|
147 |
+
|
148 |
+
onKeyUp: function(e) {
|
149 |
+
switch (e.keyCode) {
|
150 |
+
case Event.KEY_UP:
|
151 |
+
case Event.KEY_DOWN:
|
152 |
+
return;
|
153 |
+
}
|
154 |
+
clearInterval(this.onChangeInterval);
|
155 |
+
if (this.currentValue !== this.el.value) {
|
156 |
+
if (this.options.deferRequestBy > 0) {
|
157 |
+
// Defer lookup in case when value changes very quickly:
|
158 |
+
this.onChangeInterval = setInterval((function() {
|
159 |
+
this.onValueChange();
|
160 |
+
}).bind(this), this.options.deferRequestBy);
|
161 |
+
} else {
|
162 |
+
this.onValueChange();
|
163 |
+
}
|
164 |
+
}
|
165 |
+
},
|
166 |
+
|
167 |
+
onValueChange: function() {
|
168 |
+
clearInterval(this.onChangeInterval);
|
169 |
+
this.currentValue = this.el.value;
|
170 |
+
this.selectedIndex = -1;
|
171 |
+
if (this.ignoreValueChange) {
|
172 |
+
this.ignoreValueChange = false;
|
173 |
+
return;
|
174 |
+
}
|
175 |
+
if (this.currentValue === '' || this.currentValue.length < this.options.minChars) {
|
176 |
+
this.hide();
|
177 |
+
} else {
|
178 |
+
this.getSuggestions();
|
179 |
+
}
|
180 |
+
},
|
181 |
+
|
182 |
+
getSuggestions: function() {
|
183 |
+
if(this.countryEl != null) {
|
184 |
+
var cr = this.cachedResponse[this.currentValue+$(this.countryEl).value];
|
185 |
+
} else {
|
186 |
+
var cr = this.cachedResponse[this.currentValue];
|
187 |
+
}
|
188 |
+
if (cr && Object.isArray(cr.suggestions)) {
|
189 |
+
this.suggestions = cr.suggestions;
|
190 |
+
this.data = cr.data;
|
191 |
+
this.suggest();
|
192 |
+
} else if (!this.isBadQuery(this.currentValue)) {
|
193 |
+
this.onLoadStart();
|
194 |
+
if(this.countryEl != null) {
|
195 |
+
new Ajax.Request(this.serviceUrl, {
|
196 |
+
parameters: { query: this.currentValue, country: $(this.countryEl).value },
|
197 |
+
onComplete: this.processResponse.bind(this),
|
198 |
+
method: 'get'
|
199 |
+
});
|
200 |
+
} else {
|
201 |
+
new Ajax.Request(this.serviceUrl, {
|
202 |
+
parameters: { query: this.currentValue },
|
203 |
+
onComplete: this.processResponse.bind(this),
|
204 |
+
method: 'get'
|
205 |
+
});
|
206 |
+
}
|
207 |
+
}
|
208 |
+
},
|
209 |
+
|
210 |
+
isBadQuery: function(q) {
|
211 |
+
var i = this.badQueries.length;
|
212 |
+
while (i--) {
|
213 |
+
if (q.indexOf(this.badQueries[i]) === 0) { return true; }
|
214 |
+
}
|
215 |
+
return false;
|
216 |
+
},
|
217 |
+
|
218 |
+
hide: function() {
|
219 |
+
this.enabled = false;
|
220 |
+
this.selectedIndex = -1;
|
221 |
+
this.container.hide();
|
222 |
+
},
|
223 |
+
|
224 |
+
suggest: function() {
|
225 |
+
if (this.suggestions.length === 0) {
|
226 |
+
this.hide();
|
227 |
+
return;
|
228 |
+
}
|
229 |
+
var content = [];
|
230 |
+
var re = new RegExp('\\b' + this.currentValue.match(/\w+/g).join('|\\b'), 'gi');
|
231 |
+
this.suggestions.each(function(value, i) {
|
232 |
+
content.push((this.selectedIndex === i ? '<div class="selected"' : '<div'), ' title="', value, '" onclick="Autocomplete.instances[', this.instanceId, '].select(', i, ');" onmouseover="Autocomplete.instances[', this.instanceId, '].activate(', i, ');">', Autocomplete.highlight(value, re), '</div>');
|
233 |
+
} .bind(this));
|
234 |
+
this.enabled = true;
|
235 |
+
this.container.update(content.join('')).show();
|
236 |
+
},
|
237 |
+
|
238 |
+
processResponse: function(xhr) {
|
239 |
+
this.onLoadComplete();
|
240 |
+
var response;
|
241 |
+
try {
|
242 |
+
response = xhr.responseText.evalJSON();
|
243 |
+
if (!Object.isArray(response.data)) { response.data = []; }
|
244 |
+
} catch (err) { return; }
|
245 |
+
if(this.countryEl != null) {
|
246 |
+
this.cachedResponse[response.query+$(this.countryEl).value] = response;
|
247 |
+
} else {
|
248 |
+
this.cachedResponse[response.query] = response;
|
249 |
+
}
|
250 |
+
if (response.suggestions.length === 0) { this.badQueries.push(response.query); }
|
251 |
+
if (response.query === this.currentValue) {
|
252 |
+
this.suggestions = response.suggestions;
|
253 |
+
this.data = response.data;
|
254 |
+
this.suggest();
|
255 |
+
}
|
256 |
+
},
|
257 |
+
|
258 |
+
activate: function(index) {
|
259 |
+
var divs = this.container.childNodes;
|
260 |
+
var activeItem;
|
261 |
+
// Clear previous selection:
|
262 |
+
if (this.selectedIndex !== -1 && divs.length > this.selectedIndex) {
|
263 |
+
divs[this.selectedIndex].className = '';
|
264 |
+
}
|
265 |
+
this.selectedIndex = index;
|
266 |
+
if (this.selectedIndex !== -1 && divs.length > this.selectedIndex) {
|
267 |
+
activeItem = divs[this.selectedIndex]
|
268 |
+
activeItem.className = 'selected';
|
269 |
+
}
|
270 |
+
return activeItem;
|
271 |
+
},
|
272 |
+
|
273 |
+
deactivate: function(div, index) {
|
274 |
+
div.className = '';
|
275 |
+
if (this.selectedIndex === index) { this.selectedIndex = -1; }
|
276 |
+
},
|
277 |
+
|
278 |
+
select: function(i) {
|
279 |
+
var selectedValue = this.suggestions[i];
|
280 |
+
if (selectedValue) {
|
281 |
+
this.el.value = selectedValue;
|
282 |
+
if (this.options.autoSubmit && this.el.form) {
|
283 |
+
this.el.form.submit();
|
284 |
+
}
|
285 |
+
this.ignoreValueChange = true;
|
286 |
+
this.hide();
|
287 |
+
this.onSelect(i);
|
288 |
+
}
|
289 |
+
},
|
290 |
+
|
291 |
+
moveUp: function() {
|
292 |
+
if (this.selectedIndex === -1) { return; }
|
293 |
+
if (this.selectedIndex === 0) {
|
294 |
+
this.container.childNodes[0].className = '';
|
295 |
+
this.selectedIndex = -1;
|
296 |
+
this.el.value = this.currentValue;
|
297 |
+
return;
|
298 |
+
}
|
299 |
+
this.adjustScroll(this.selectedIndex - 1);
|
300 |
+
},
|
301 |
+
|
302 |
+
moveDown: function() {
|
303 |
+
if (this.selectedIndex === (this.suggestions.length - 1)) { return; }
|
304 |
+
this.adjustScroll(this.selectedIndex + 1);
|
305 |
+
},
|
306 |
+
|
307 |
+
adjustScroll: function(i) {
|
308 |
+
var container = this.container;
|
309 |
+
var activeItem = this.activate(i);
|
310 |
+
var offsetTop = activeItem.offsetTop;
|
311 |
+
var upperBound = container.scrollTop;
|
312 |
+
var lowerBound = upperBound + this.options.maxHeight - 25;
|
313 |
+
if (offsetTop < upperBound) {
|
314 |
+
container.scrollTop = offsetTop;
|
315 |
+
} else if (offsetTop > lowerBound) {
|
316 |
+
container.scrollTop = offsetTop - this.options.maxHeight + 25;
|
317 |
+
}
|
318 |
+
this.el.value = this.suggestions[i];
|
319 |
+
},
|
320 |
+
|
321 |
+
onSelect: function(i) {
|
322 |
+
(this.options.onSelect || Prototype.emptyFunction)(this.suggestions[i], this.data[i], this.options);
|
323 |
+
},
|
324 |
+
|
325 |
+
onLoadStart: function() {
|
326 |
+
(this.options.onLoadStart || Prototype.emptyFunction)(this.options);
|
327 |
+
},
|
328 |
+
|
329 |
+
onLoadComplete: function() {
|
330 |
+
(this.options.onLoadComplete || Prototype.emptyFunction)(this.options);
|
331 |
+
},
|
332 |
+
|
333 |
+
onAway: function() {
|
334 |
+
(this.options.onAway || Prototype.emptyFunction)(this.options);
|
335 |
+
}
|
336 |
+
|
337 |
+
};
|
338 |
+
|
339 |
+
Event.observe(document, 'dom:loaded', function(){ Autocomplete.isDomLoaded = true; }, false);
|
js/temando/avs.js
CHANGED
@@ -1,60 +1,60 @@
|
|
1 |
-
var Avs = Class.create();
|
2 |
-
|
3 |
-
Avs.prototype = {
|
4 |
-
initialize: function(service_url, pcode, suburb, country){
|
5 |
-
this.serviceUrl = service_url;
|
6 |
-
this.prepareAutocomplete(pcode, pcode, suburb, country);
|
7 |
-
this.prepareAutocomplete(suburb, pcode, suburb, country);
|
8 |
-
this.registerCountryListener(country, pcode);
|
9 |
-
},
|
10 |
-
prepareAutocomplete: function(el, pcode, suburb, country) {
|
11 |
-
if($(el)) {
|
12 |
-
new Autocomplete(el, {
|
13 |
-
serviceUrl: this.serviceUrl,
|
14 |
-
countryEl: country,
|
15 |
-
onSelect: function(value, data) {
|
16 |
-
$(suburb).value = data[0].city;
|
17 |
-
$(pcode).value = data[0].postcode;
|
18 |
-
fireEvent($(pcode), 'change');
|
19 |
-
},
|
20 |
-
onLoadStart: function() {
|
21 |
-
$(el).addClassName('avs-active');
|
22 |
-
},
|
23 |
-
onLoadComplete: function() {
|
24 |
-
$(el).removeClassName('avs-active');
|
25 |
-
},
|
26 |
-
onAway: function() { }
|
27 |
-
});
|
28 |
-
}
|
29 |
-
},
|
30 |
-
registerCountryListener: function(countryId, pcodeId) {
|
31 |
-
if($(countryId)) {
|
32 |
-
Event.observe(countryId, 'change', function() {
|
33 |
-
if($(countryId).value == "GB") {
|
34 |
-
$(pcodeId).addClassName('validate-postcode-gb');
|
35 |
-
} else {
|
36 |
-
$(pcodeId).removeClassName('validate-postcode-gb');
|
37 |
-
}
|
38 |
-
});
|
39 |
-
}
|
40 |
-
}
|
41 |
-
};
|
42 |
-
|
43 |
-
if(typeof Validation != 'undefined') {
|
44 |
-
Validation.add('validate-postcode-gb', 'Please enter a valid UK postcode.', function(v) {
|
45 |
-
return Validation.get('IsEmpty').test(v) || /(^[A-Z]{1,2}[0-9R][0-9A-Z]?[\s]?[0-9][ABD-HJLNP-UW-Z]{2}$)/i.test(v);
|
46 |
-
});
|
47 |
-
}
|
48 |
-
|
49 |
-
function fireEvent(element, event) {
|
50 |
-
if (document.addEventListener) {
|
51 |
-
// dispatch for firefox, IE9+ & others
|
52 |
-
var evt = document.createEvent("HTMLEvents");
|
53 |
-
evt.initEvent(event, true, true); // event type,bubbling,cancelable
|
54 |
-
return !element.dispatchEvent(evt);
|
55 |
-
} else {
|
56 |
-
// dispatch for IE < 9
|
57 |
-
var evt = document.createEventObject();
|
58 |
-
return element.fireEvent('on' + event, evt);
|
59 |
-
}
|
60 |
}
|
1 |
+
var Avs = Class.create();
|
2 |
+
|
3 |
+
Avs.prototype = {
|
4 |
+
initialize: function(service_url, pcode, suburb, country){
|
5 |
+
this.serviceUrl = service_url;
|
6 |
+
this.prepareAutocomplete(pcode, pcode, suburb, country);
|
7 |
+
this.prepareAutocomplete(suburb, pcode, suburb, country);
|
8 |
+
this.registerCountryListener(country, pcode);
|
9 |
+
},
|
10 |
+
prepareAutocomplete: function(el, pcode, suburb, country) {
|
11 |
+
if($(el)) {
|
12 |
+
new Autocomplete(el, {
|
13 |
+
serviceUrl: this.serviceUrl,
|
14 |
+
countryEl: country,
|
15 |
+
onSelect: function(value, data) {
|
16 |
+
$(suburb).value = data[0].city;
|
17 |
+
$(pcode).value = data[0].postcode;
|
18 |
+
fireEvent($(pcode), 'change');
|
19 |
+
},
|
20 |
+
onLoadStart: function() {
|
21 |
+
$(el).addClassName('avs-active');
|
22 |
+
},
|
23 |
+
onLoadComplete: function() {
|
24 |
+
$(el).removeClassName('avs-active');
|
25 |
+
},
|
26 |
+
onAway: function() { }
|
27 |
+
});
|
28 |
+
}
|
29 |
+
},
|
30 |
+
registerCountryListener: function(countryId, pcodeId) {
|
31 |
+
if($(countryId)) {
|
32 |
+
Event.observe(countryId, 'change', function() {
|
33 |
+
if($(countryId).value == "GB") {
|
34 |
+
$(pcodeId).addClassName('validate-postcode-gb');
|
35 |
+
} else {
|
36 |
+
$(pcodeId).removeClassName('validate-postcode-gb');
|
37 |
+
}
|
38 |
+
});
|
39 |
+
}
|
40 |
+
}
|
41 |
+
};
|
42 |
+
|
43 |
+
if(typeof Validation != 'undefined') {
|
44 |
+
Validation.add('validate-postcode-gb', 'Please enter a valid UK postcode.', function(v) {
|
45 |
+
return Validation.get('IsEmpty').test(v) || /(^[A-Z]{1,2}[0-9R][0-9A-Z]?[\s]?[0-9][ABD-HJLNP-UW-Z]{2}$)/i.test(v);
|
46 |
+
});
|
47 |
+
}
|
48 |
+
|
49 |
+
function fireEvent(element, event) {
|
50 |
+
if (document.addEventListener) {
|
51 |
+
// dispatch for firefox, IE9+ & others
|
52 |
+
var evt = document.createEvent("HTMLEvents");
|
53 |
+
evt.initEvent(event, true, true); // event type,bubbling,cancelable
|
54 |
+
return !element.dispatchEvent(evt);
|
55 |
+
} else {
|
56 |
+
// dispatch for IE < 9
|
57 |
+
var evt = document.createEventObject();
|
58 |
+
return element.fireEvent('on' + event, evt);
|
59 |
+
}
|
60 |
}
|
js/temando/menu.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
function temandoMenu() {
|
2 |
-
|
3 |
-
var allSpans = document.getElementsByTagName("span");
|
4 |
-
Array.prototype.forEach.call(allSpans, function(span) {
|
5 |
-
|
6 |
-
if (span.textContent === 'Partial Shipments - Business plan' || span.textContent === 'Multi Warehouse - Professional plan' || span.textContent === 'Advance Shipping Rules - Professional plan') {
|
7 |
-
span.setStyle({backgroundColor: '#E5E5E5'});
|
8 |
-
span.setStyle({color: '#999999'});
|
9 |
-
span.up().up().setStyle({
|
10 |
-
color: '#DFDFDF'
|
11 |
-
});
|
12 |
-
}
|
13 |
-
});
|
14 |
}
|
1 |
+
function temandoMenu() {
|
2 |
+
|
3 |
+
var allSpans = document.getElementsByTagName("span");
|
4 |
+
Array.prototype.forEach.call(allSpans, function(span) {
|
5 |
+
|
6 |
+
if (span.textContent === 'Partial Shipments - Business plan' || span.textContent === 'Multi Warehouse - Professional plan' || span.textContent === 'Advance Shipping Rules - Professional plan') {
|
7 |
+
span.setStyle({backgroundColor: '#E5E5E5'});
|
8 |
+
span.setStyle({color: '#999999'});
|
9 |
+
span.up().up().setStyle({
|
10 |
+
color: '#DFDFDF'
|
11 |
+
});
|
12 |
+
}
|
13 |
+
});
|
14 |
}
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Temando_Temando</name>
|
4 |
-
<version>1.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software Licence</license>
|
7 |
<channel>community</channel>
|
@@ -27,13 +27,15 @@ The Temando Magento shipping extension is more than just shipping software. Adva
|
|
27 |
• Packaging logic to predict box sizes
|
28 |
</description>
|
29 |
<notes>Temando Shipping Extension – Starter Version
|
30 |
-
•
|
31 |
-
•
|
32 |
-
• Fix
|
|
|
|
|
33 |
<authors><author><name>Temando</name><user>Temando</user><email>marketing@temando.com</email></author></authors>
|
34 |
-
<date>2014-
|
35 |
-
<time>
|
36 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Temando_Temando.xml" hash="61802a5dcba43fb186bf8c0ffac6950f"/></dir></target><target name="magecommunity"><dir name="Temando"><dir name="Temando"><dir name="Block"><dir name="Adminhtml"><dir name="Manifest"><dir name="Filter"><file name="Form.php" hash="bb7f115dc656a6d96c1408fa91fd57de"/></dir><dir name="Grid"><dir name="Renderer"><file name="Checkbox.php" hash="dbbf607c8fb511e62872cecb0ada8b88"/></dir></dir><file name="Grid.php" hash="4ea69275d91d98cc52d13e0f99398696"/></dir><file name="Manifest.php" hash="4adaea32d62a440413ca2400c962a8b9"/><dir name="Shipment"><dir name="Edit"><file name="Form.php" hash="d4d581256d38e9cd8b9ccf0242d18497"/><dir name="Tab"><file name="Abstract.php" hash="155de5f6e4727d461128291e8bcabe10"/><dir name="Form"><file name="Anytime.php" hash="2d3a4223b61a439bc55312b03eb7f883"/><file name="Anywhere.php" hash="27cffb5864d8999c85081bf3dc6714ce"/><file name="Boxes.php" hash="18b4b6325dc512621022eb912b187b28"/><file name="Insurance.php" hash="cbb8c1e5157b80a5af78efee20e016f7"/><file name="Origin.php" hash="0c6f873b02e70b05ecdb01cb63f470ec"/><file name="Products.php" hash="953cc0fe59529484e47e2c38ad7d3e0a"/><file name="Quotes.php" hash="8b135b7b568c5cd58da326070e02464e"/><file name="Status.php" hash="9c44fb52c6f9fd38f49942fa868c69d4"/></dir><file name="Form.php" hash="563c145f09c8b90d50d3b77f727fc7b5"/></dir><file name="Tabs.php" hash="1f65e9864e845110e9f86c80606a2652"/></dir><file name="Edit.php" hash="d9e157def8effe7b1e456a1d1934d11c"/><file name="Grid.php" hash="83ce78261c99ecd8b185ee44c14e520c"/></dir><file name="Shipment.php" hash="aa9e8aaeb190b2b473a9fea9c461fd80"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Button"><file name="Rule.php" hash="3bcd4b7971e825c02d70260e6d2d4b24"/><file name="Warehouse.php" hash="0669b05bcc25fdfb0570ffa65d7bb9b9"/></dir><dir name="Field"><file name="Insurance.php" hash="cd0f849df18e4643d88e756f9dde071c"/><file name="Required.php" hash="0659fe9b8ef9c4c373a1190d92495e36"/></dir><dir name="Fieldset"><file name="General.php" hash="7395ec95b32b67e34b33e5c0efc806a5"/></dir></dir></dir></dir></dir><dir name="Cart"><file name="Shipping.php" hash="8c10f6f5c6b37e1172b73475b9ef08fc"/></dir><dir name="Onepage"><dir name="Shipping"><dir name="Method"><dir name="Available"><file name="Single.php" hash="c8c8741458ce6a114111411d8eb4b6db"/></dir><file name="Available.php" hash="1e4764e6fec91175b92b8127e67df91d"/></dir></dir></dir><dir name="Product"><dir name="Shipping"><file name="Methods.php" hash="dd1dabfa05cd2e83668a67cabcfd579f"/></dir><file name="Shipping.php" hash="f46ba19649cfd0e6ef65c428e743d987"/></dir><dir name="Wizard"><file name="Html.php" hash="9cd02a7e33db9ec002be76f0f2f53dac"/></dir></dir><dir name="Helper"><file name="Data.php" hash="b2aadda243ae43cc926c7f868986d914"/><file name="Functions.php" hash="be974e86582c6235f06fcbbe751d3aa6"/><file name="Wizard.php" hash="e6e9d039d321b7495906ac4233a83b18"/></dir><dir name="Model"><dir name="Api"><file name="Client.php" hash="7602a3e7d8d5c07ebf6977a503fc5150"/><dir name="Request"><file name="Anything.php" hash="4f09aeef29fb6f96fb16141732f796eb"/><file name="Anythings.php" hash="d3fb55824ed60a0e836db74805038fa2"/><file name="Anytime.php" hash="0c06ea38006ecbb72de2956328cba062"/><file name="Anywhere.php" hash="472902806c8c5304983b18c9c3cfbd5f"/></dir><file name="Request.php" hash="43825b6d395d9a5fff760c07eebbb105"/></dir><file name="Box.php" hash="e70430957f55d49f1232d005af69f3b2"/><file name="Carrier.php" hash="50756d3ea67163919a75725527e8426c"/><dir name="Entity"><dir name="Attribute"><dir name="Source"><dir name="Packaging"><file name="Mode.php" hash="9df70852ceade33a14cf218097f25a36"/></dir><file name="Packaging.php" hash="ae6e48d5e498d11a11feed2f00e03fa8"/></dir></dir></dir><file name="Manifest.php" hash="b870f55b33b3855754a5a4347e2acfec"/><dir name="Mysql4"><dir name="Box"><file name="Collection.php" hash="17e5ff275a0aa8b04a64caab93768198"/></dir><file name="Box.php" hash="105acbf44a10b982413168c199514319"/><dir name="Carrier"><file name="Collection.php" hash="174b62be56ac079b36ca9a11a99f6142"/></dir><file name="Carrier.php" hash="39ac233fc0ef641ed457c651fd3c2eeb"/><dir name="Manifest"><file name="Collection.php" hash="0c2a69f2d9d5c2e9111bed3253d823ed"/></dir><file name="Manifest.php" hash="536353cfe126f5d43ae95452104ba448"/><dir name="Quote"><file name="Collection.php" hash="dfcd02a112c7f3abf2c3202bed33538a"/></dir><file name="Quote.php" hash="63becb2e43f8fc6ac06844dc6789b303"/><dir name="Shipment"><file name="Collection.php" hash="c8d2075067d5639a81869e95d44feaf1"/></dir><file name="Shipment.php" hash="a8d05cbed0386249f61af2e73c76230b"/></dir><file name="Observer.php" hash="219fac88d7a6c4e6fa750524bed4d739"/><dir name="Option"><file name="Abstract.php" hash="845fdf3b2fee7a96635a84eb06130e6c"/><dir name="Action"><file name="Abstract.php" hash="8e556a5043c78ba9800a64cbea2743a0"/><file name="Carbon.php" hash="2bf7a9c3905a2c4a9dd88bb9bf602ab4"/><file name="Footprints.php" hash="74ee69751cde833b464d6fad7e8bc7b5"/><file name="Insurance.php" hash="1c312f12a62f57f555007530ad9ed722"/><file name="Markup.php" hash="978738810a3d2ebf9b08105c9080bf10"/></dir><file name="Boolean.php" hash="0c4403b4ab0ec33e4439dfc054025a03"/><file name="Carbonoffset.php" hash="bf4d22d25297028013e79780d3256823"/><file name="Footprints.php" hash="c9b88d2871350f7620440cec4c512fb9"/><file name="Insurance.php" hash="955a1d660d55e81bc0fdf4e580605f1a"/></dir><file name="Options.php" hash="c46e411a9090f01704b491d9f6c19886"/><file name="Pcs.php" hash="0ef8c4652aa4ec249798cea5b6ce8a15"/><file name="Quote.php" hash="496a119ce659efedab8d3f7ccbcb1148"/><file name="Shipment.php" hash="8e5041e8816edf35fe9147166afc3aa3"/><dir name="Shipping"><dir name="Carrier"><dir name="Temando"><dir name="Source"><file name="Method.php" hash="beea2c319ccd644d6b82073041c2ff65"/></dir></dir><file name="Temando.php" hash="431583a1e2a78313b2d7dc1da6b20f88"/></dir></dir><file name="Status.php" hash="1748281382c1f2b910d7488925ab3d60"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Form"><dir name="Field"><dir name="Required"><file name="Businessresidential.php" hash="6a4a4a22dece6e05986afbff0474e258"/><file name="Country.php" hash="7c15ab9b62776c3939f6680e81e1d994"/><file name="Location.php" hash="96507e0e7ed730c99f4dd5f6aa743016"/><file name="Text.php" hash="3961607ac0d632430b484ef141865806"/></dir></dir></dir></dir><dir name="Source"><file name="Carbon.php" hash="bafc416a404fc342fba9aefcef40bf4b"/><dir name="Client"><file name="Type.php" hash="835708cd4be50379608fb01f8dbd4850"/></dir><file name="Country.php" hash="0a2557957d861e4ea3ed193f47eba051"/><file name="Errorprocess.php" hash="23b94aa8e44a62fa81a5aa29ea31ac55"/><file name="Footprints.php" hash="1b4e3af5fcb8893d3392e7c6cc924b38"/><file name="Insurance.php" hash="3b60e9c82e8f9aa00c949ba45068d001"/><file name="Labeltype.php" hash="a5f7d209b06d65db647e2d3a6b4657ba"/><dir name="Origin"><file name="Type.php" hash="167e76f7b939e3c627b98ee0318ab264"/></dir><file name="Payment.php" hash="15b7ffb809d44e89a2a0d779e2b6d1e8"/><file name="Pricing.php" hash="8d0c73d3ffce5ad61d6aff4530c942b8"/><file name="Readytime.php" hash="dfe95a917cf3d4b5e26c7972e6574bc3"/><file name="Regions.php" hash="d5d46eeba382e53a8ede61aaba4836a4"/><dir name="Rule"><dir name="Action"><dir name="Adjustment"><file name="Type.php" hash="32b0133d904961669456aa2889985ce8"/></dir><file name="Filter.php" hash="ade56e85d4c9fea77b922629ba1db7c8"/></dir><dir name="Condition"><file name="Time.php" hash="075adcdcb0be9662b34c517665e912b7"/><file name="Type.php" hash="0622631836a3306e53a11e6b1e326e6d"/></dir><file name="Type.php" hash="5a2e0cee02f99c3f68536bf26cbea199"/></dir><dir name="Sales"><dir name="Order"><file name="Status.php" hash="39eceb8a78224871b19d5b09304a56be"/></dir></dir><dir name="Shipment"><file name="Class.php" hash="3291adbe6ba99934a2dbcf19f6b83e46"/><dir name="Packaging"><file name="Mode.php" hash="b245586603851d1a7b0470f6ca52974e"/></dir><file name="Packaging.php" hash="853ab9b82b429b2db6cace1da9429db9"/><file name="Service.php" hash="f866d8aca47fae13602885413f997ef5"/><file name="Status.php" hash="e74bb51a02f1357f44d8f0052c682181"/></dir><dir name="Unit"><file name="Measure.php" hash="01bbc3e2f7f688f9edf54f40bb46c686"/><file name="Weight.php" hash="6b74dde04ffdc951aeed3fb1db60599e"/></dir><file name="Unit.php" hash="b8e75f2efede007b004c47acadea6a84"/><file name="Wizard.php" hash="e15c3299e167f77d527a46e34b13639f"/></dir><file name="Source.php" hash="c6a86ee4f9973a8793eec15660115b0c"/></dir></dir><file name="Wizard.php" hash="f95c6731ffa7731012e7d0d73dd0099e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="JsonController.php" hash="ce01376bdf43f939c802448c880cfd32"/><file name="ManifestController.php" hash="27026e27331606aa81eef04ede715b82"/><file name="ShipmentController.php" hash="a85570091781f76ab4a8ad34ab427ce9"/><file name="WizardController.php" hash="f16d65423c9b5717c48b06683d16cf4b"/></dir><file name="PcsController.php" hash="f66d705f4e628be375190410f5ffde13"/><file name="WizardController.php" hash="5e5dac3f10dbdc8a07fb0e18fcf5409a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="90cb3f86664459e832c6a7f5981d78f8"/><file name="config.xml" hash="7a6eb9681b086bca8a48d1fec1d1c98a"/><file name="system.xml" hash="5206da327d686ffe355f23371e88a9c2"/></dir><dir name="sql"><dir name="temando_setup"><file name="mysql4-install-1.0.0.php" hash="8f22dad6cc2162119422a468b8af9941"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="temando.xml" hash="8f57c8e8b1a3f50ef27cb1eec05d4db2"/></dir><dir name="template"><dir name="temando"><dir name="temando"><file name="manifest.phtml" hash="42425c5a9a479f803d5ff38258ef1afb"/><file name="menu.phtml" hash="f5cb7bcc33ee0788439d4704d6d01e9f"/><file name="origin-avs.phtml" hash="fb39b40b1171e2415860f9c7f162dedf"/><file name="region.phtml" hash="b4012e1a5fa90bcdcd1271ac05b8c763"/><dir name="shipment"><file name="anytime.phtml" hash="76eb3fc8f8e4aae6a7eb6ecf39b733df"/><file name="anywhere.phtml" hash="2a463002b03324b735c5023d912fc555"/><file name="boxes.phtml" hash="34c3b8cc72822c6e53663aa7a1ebac9d"/><file name="insurance.phtml" hash="ee70a81f5b1aa017c0095a3905cc55b1"/><file name="origin.phtml" hash="bf28683abb2c6dfd70d096128c274413"/><file name="products.phtml" hash="a27abbbc5ea7d2437ce2596c8eb48e0a"/><file name="quotes.phtml" hash="215430016f074a0520a40053fe025ecb"/><file name="status.phtml" hash="744d51f2a8dab583ac25510afdfe0232"/></dir><file name="shipment.phtml" hash="9faa76abe21ba1ad19c636328b4f8085"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="temando.xml" hash="4b37f4b03daac947fcaf05fae2cafa1d"/></dir><dir name="template"><dir name="temando"><dir name="temando"><dir name="checkout"><dir name="cart"><file name="shipping.phtml" hash="9b527e2382b8723b754dcecd9f226c84"/></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="17b4da6acfcbdbac94ab507aaac3014f"/></dir></dir><dir name="onestep"><file name="options.phtml" hash="3e0bcc5ba754a31efca069df23637226"/><file name="shipping_method.phtml" hash="147758a6e7a9abc24133fe69167787eb"/></dir><file name="pcs.phtml" hash="2b6e59f811eb7e0a8f622b2f26cda4e2"/><dir name="product"><dir name="shipping"><file name="methods.phtml" hash="1117050cc8bdf9e1bf15189f91c6f56e"/></dir><file name="shipping.phtml" hash="a1d26bb6e8a6fe33a41d5ab00dd84681"/></dir><dir name="shipping_method"><dir name="available"><file name="options_single.phtml" hash="ceb901d5d7f8c8aa69865d6437b27436"/></dir><file name="available.phtml" hash="c42d3f047eed375641f2f0bd1a349392"/></dir><dir name="wizard"><file name="account.phtml" hash="84165433dd929008f83a487105db4570"/><file name="carriers.phtml" hash="369e6426183f5f88009c1c3231edfd75"/><file name="catalog_product.phtml" hash="9bf1b2884c7c44282802a620cc244999"/><file name="countries.phtml" hash="6f6c6f3f6c78762af357b53770f7ec78"/><file name="end.phtml" hash="5ffa2e4762b2739e77153aee60e7ade5"/><file name="left.phtml" hash="fa4c00234212bcb3dba69dcc01851948"/><file name="origin.phtml" hash="6786c2ada069ec849f1020e13a0b919c"/><file name="rule.phtml" hash="39ca6af6df44584c9f1300febfdf5f35"/></dir><file name="wizard.phtml" hash="6cdfeaba6f77d12058dd5174e250c9ea"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="temando"><file name="autocomplete.js" hash="429891626b476dceab379d3b05f08db5"/><file name="avs.js" hash="4f718d50fce5828381147f6130d76299"/><file name="grid.js" hash="5c35e0afdf1988d3ea2770a00ac5999e"/><file name="menu.js" hash="88db5d750778f79da2d80099fb5764ca"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="js"><file name="temando.js" hash="37bda1e3240b9f46fdc1fa8d0937ceba"/></dir><dir name="temando"><dir name="images"><file name="ajax-s-load.gif" hash="0ea8ba3fe3e60b73eda7d6de57fd8e01"/><file name="bg_notifications.gif" hash="d2a0489d0c3714bed22f9b06f4b81d43"/><file name="shadow.png" hash="b5b27e0dd88d44d4a5d8e63bb61a1239"/><file name="temando_logo.jpg" hash="04d2dbd664ff68a4be7364113f30572f"/></dir><file name="styles.css" hash="2d9c985c31622016db01e966974d70be"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="temando"><file name="autocomplete.css" hash="90387e5610631653a4bd97c7af3d444e"/><dir name="images"><file name="ajax-s-load.gif" hash="0ea8ba3fe3e60b73eda7d6de57fd8e01"/><file name="find_ext.png" hash="a6ba701a9256a2c775255965df1918c7"/><file name="i_shipping.gif" hash="91a0d2cc2eb2391f90ec8a75c04b3183"/><file name="shadow.png" hash="b5b27e0dd88d44d4a5d8e63bb61a1239"/></dir><file name="product.css" hash="d1679e756012f66391758a09d0918986"/><file name="styles.css" hash="990cb30792de7e9b46042a7d09be73d3"/></dir></dir><dir name="js"><dir name="temando"><file name="checkout.js" hash="4db7a8cd7888f3c7ca93e70f0ee16b84"/><file name="product.js" hash="6f4765fa49efa0c5bc023460624a0b4e"/></dir></dir></dir></dir></dir></target></contents>
|
37 |
<compatible/>
|
38 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php><extension><name>soap</name><min>1.2</min><max/></extension></required></dependencies>
|
39 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Temando_Temando</name>
|
4 |
+
<version>1.1.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software Licence</license>
|
7 |
<channel>community</channel>
|
27 |
• Packaging logic to predict box sizes
|
28 |
</description>
|
29 |
<notes>Temando Shipping Extension – Starter Version
|
30 |
+
• Addition of language file
|
31 |
+
• Addition of new demo api
|
32 |
+
• Fix email sent flag on shipped
|
33 |
+
• Miscellaneous bug fixes
|
34 |
+
</notes>
|
35 |
<authors><author><name>Temando</name><user>Temando</user><email>marketing@temando.com</email></author></authors>
|
36 |
+
<date>2014-07-28</date>
|
37 |
+
<time>07:02:10</time>
|
38 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Temando_Temando.xml" hash="5bcf129ec4955186ed97d4b57def464b"/></dir></target><target name="magecommunity"><dir name="Temando"><dir name="Temando"><dir name="Block"><dir name="Adminhtml"><dir name="Manifest"><dir name="Filter"><file name="Form.php" hash="bb7f115dc656a6d96c1408fa91fd57de"/></dir><dir name="Grid"><dir name="Renderer"><file name="Checkbox.php" hash="dbbf607c8fb511e62872cecb0ada8b88"/></dir></dir><file name="Grid.php" hash="4ea69275d91d98cc52d13e0f99398696"/></dir><file name="Manifest.php" hash="9181440e747ba9540493db3f30d2a37b"/><dir name="Shipment"><dir name="Edit"><file name="Form.php" hash="d4d581256d38e9cd8b9ccf0242d18497"/><dir name="Tab"><file name="Abstract.php" hash="155de5f6e4727d461128291e8bcabe10"/><dir name="Form"><file name="Anytime.php" hash="2d3a4223b61a439bc55312b03eb7f883"/><file name="Anywhere.php" hash="27cffb5864d8999c85081bf3dc6714ce"/><file name="Boxes.php" hash="18b4b6325dc512621022eb912b187b28"/><file name="Insurance.php" hash="cbb8c1e5157b80a5af78efee20e016f7"/><file name="Origin.php" hash="0c6f873b02e70b05ecdb01cb63f470ec"/><file name="Products.php" hash="953cc0fe59529484e47e2c38ad7d3e0a"/><file name="Quotes.php" hash="e1c275fe37b658c1dc6492fdaab53667"/><file name="Status.php" hash="9c44fb52c6f9fd38f49942fa868c69d4"/></dir><file name="Form.php" hash="563c145f09c8b90d50d3b77f727fc7b5"/></dir><file name="Tabs.php" hash="1f65e9864e845110e9f86c80606a2652"/></dir><file name="Edit.php" hash="555e299bcff530908cc9f7b5aa7a03a8"/><file name="Grid.php" hash="83ce78261c99ecd8b185ee44c14e520c"/></dir><file name="Shipment.php" hash="aa9e8aaeb190b2b473a9fea9c461fd80"/><dir name="System"><dir name="Config"><dir name="Form"><dir name="Button"><file name="Rule.php" hash="3bcd4b7971e825c02d70260e6d2d4b24"/><file name="Warehouse.php" hash="0669b05bcc25fdfb0570ffa65d7bb9b9"/></dir><dir name="Field"><file name="Insurance.php" hash="cd0f849df18e4643d88e756f9dde071c"/><file name="Required.php" hash="0659fe9b8ef9c4c373a1190d92495e36"/></dir><dir name="Fieldset"><file name="General.php" hash="7395ec95b32b67e34b33e5c0efc806a5"/></dir></dir></dir></dir></dir><dir name="Cart"><file name="Shipping.php" hash="1fbc8d7fab262e6b5cd761143a41f051"/></dir><dir name="Onepage"><dir name="Shipping"><dir name="Method"><dir name="Available"><file name="Single.php" hash="c8c8741458ce6a114111411d8eb4b6db"/></dir><file name="Available.php" hash="1e4764e6fec91175b92b8127e67df91d"/></dir></dir></dir><dir name="Product"><dir name="Shipping"><file name="Methods.php" hash="dd1dabfa05cd2e83668a67cabcfd579f"/></dir><file name="Shipping.php" hash="f46ba19649cfd0e6ef65c428e743d987"/></dir><dir name="Wizard"><file name="Html.php" hash="9cd02a7e33db9ec002be76f0f2f53dac"/></dir></dir><dir name="Helper"><file name="Data.php" hash="2fef3b2ba9d7882118bb1eeeaabdf9c9"/><file name="Functions.php" hash="be974e86582c6235f06fcbbe751d3aa6"/><file name="Wizard.php" hash="e6e9d039d321b7495906ac4233a83b18"/></dir><dir name="Model"><dir name="Api"><file name="Client.php" hash="9d982023c0b1d4be86797cf53ecd4e44"/><dir name="Request"><file name="Anything.php" hash="4f09aeef29fb6f96fb16141732f796eb"/><file name="Anythings.php" hash="d3fb55824ed60a0e836db74805038fa2"/><file name="Anytime.php" hash="0c06ea38006ecbb72de2956328cba062"/><file name="Anywhere.php" hash="472902806c8c5304983b18c9c3cfbd5f"/></dir><file name="Request.php" hash="43825b6d395d9a5fff760c07eebbb105"/></dir><file name="Box.php" hash="e70430957f55d49f1232d005af69f3b2"/><file name="Carrier.php" hash="50756d3ea67163919a75725527e8426c"/><dir name="Entity"><dir name="Attribute"><dir name="Source"><dir name="Packaging"><file name="Mode.php" hash="9df70852ceade33a14cf218097f25a36"/></dir><file name="Packaging.php" hash="ae6e48d5e498d11a11feed2f00e03fa8"/></dir></dir></dir><file name="Manifest.php" hash="b870f55b33b3855754a5a4347e2acfec"/><dir name="Mysql4"><dir name="Box"><file name="Collection.php" hash="17e5ff275a0aa8b04a64caab93768198"/></dir><file name="Box.php" hash="105acbf44a10b982413168c199514319"/><dir name="Carrier"><file name="Collection.php" hash="174b62be56ac079b36ca9a11a99f6142"/></dir><file name="Carrier.php" hash="39ac233fc0ef641ed457c651fd3c2eeb"/><dir name="Manifest"><file name="Collection.php" hash="0c2a69f2d9d5c2e9111bed3253d823ed"/></dir><file name="Manifest.php" hash="536353cfe126f5d43ae95452104ba448"/><dir name="Quote"><file name="Collection.php" hash="dfcd02a112c7f3abf2c3202bed33538a"/></dir><file name="Quote.php" hash="63becb2e43f8fc6ac06844dc6789b303"/><dir name="Shipment"><file name="Collection.php" hash="c8d2075067d5639a81869e95d44feaf1"/></dir><file name="Shipment.php" hash="a8d05cbed0386249f61af2e73c76230b"/></dir><file name="Observer.php" hash="1ae057118666afd1c84fe50e88cede42"/><dir name="Option"><file name="Abstract.php" hash="845fdf3b2fee7a96635a84eb06130e6c"/><dir name="Action"><file name="Abstract.php" hash="8e556a5043c78ba9800a64cbea2743a0"/><file name="Carbon.php" hash="2bf7a9c3905a2c4a9dd88bb9bf602ab4"/><file name="Footprints.php" hash="74ee69751cde833b464d6fad7e8bc7b5"/><file name="Insurance.php" hash="1c312f12a62f57f555007530ad9ed722"/><file name="Markup.php" hash="978738810a3d2ebf9b08105c9080bf10"/></dir><file name="Boolean.php" hash="0c4403b4ab0ec33e4439dfc054025a03"/><file name="Carbonoffset.php" hash="bf4d22d25297028013e79780d3256823"/><file name="Footprints.php" hash="c9b88d2871350f7620440cec4c512fb9"/><file name="Insurance.php" hash="7150dadd9c5c7c7e7c8790171724c846"/></dir><file name="Options.php" hash="c46e411a9090f01704b491d9f6c19886"/><file name="Pcs.php" hash="0ef8c4652aa4ec249798cea5b6ce8a15"/><file name="Quote.php" hash="95fa395a9d7667535e3d3b9fc6e5d15f"/><file name="Shipment.php" hash="8e5041e8816edf35fe9147166afc3aa3"/><dir name="Shipping"><dir name="Carrier"><dir name="Temando"><dir name="Source"><file name="Method.php" hash="bf6d6aca40c0412da85137b0926a13c9"/></dir></dir><file name="Temando.php" hash="74fb32dcd49427dd956962906d91e735"/></dir></dir><file name="Status.php" hash="1748281382c1f2b910d7488925ab3d60"/><dir name="System"><dir name="Config"><dir name="Backend"><dir name="Form"><dir name="Field"><dir name="Required"><file name="Businessresidential.php" hash="6a4a4a22dece6e05986afbff0474e258"/><file name="Country.php" hash="7c15ab9b62776c3939f6680e81e1d994"/><file name="Location.php" hash="96507e0e7ed730c99f4dd5f6aa743016"/><file name="Text.php" hash="3961607ac0d632430b484ef141865806"/></dir></dir></dir></dir><dir name="Source"><file name="Carbon.php" hash="07b6561ce1b560905725171c7958405c"/><dir name="Client"><file name="Type.php" hash="835708cd4be50379608fb01f8dbd4850"/></dir><file name="Country.php" hash="0a2557957d861e4ea3ed193f47eba051"/><file name="Errorprocess.php" hash="cd95e7ea47d642cd0f8a21d41e39366e"/><file name="Footprints.php" hash="385e1dc417b73717f17af956e68c385d"/><file name="Insurance.php" hash="11e73d49bac7cb4e3ca0e602c1c1fda9"/><file name="Labeltype.php" hash="82303e781742500d5d059c8773a92a1a"/><dir name="Origin"><file name="Type.php" hash="167e76f7b939e3c627b98ee0318ab264"/></dir><file name="Payment.php" hash="d3064a5eb8fea1487a47cb93490da3c3"/><file name="Pricing.php" hash="bb23c6250fd511af49e61692f871db72"/><file name="Readytime.php" hash="dfe95a917cf3d4b5e26c7972e6574bc3"/><file name="Regions.php" hash="d5d46eeba382e53a8ede61aaba4836a4"/><dir name="Rule"><dir name="Action"><dir name="Adjustment"><file name="Type.php" hash="32b0133d904961669456aa2889985ce8"/></dir><file name="Filter.php" hash="60d47b88f85a19445a1f49103906fda1"/></dir><dir name="Condition"><file name="Time.php" hash="075adcdcb0be9662b34c517665e912b7"/><file name="Type.php" hash="0622631836a3306e53a11e6b1e326e6d"/></dir><file name="Type.php" hash="5a2e0cee02f99c3f68536bf26cbea199"/></dir><dir name="Sales"><dir name="Order"><file name="Status.php" hash="39eceb8a78224871b19d5b09304a56be"/></dir></dir><dir name="Shipment"><file name="Class.php" hash="3291adbe6ba99934a2dbcf19f6b83e46"/><dir name="Packaging"><file name="Mode.php" hash="f61cc126ebd4addab8a5b94c7c3a3f6c"/></dir><file name="Packaging.php" hash="853ab9b82b429b2db6cace1da9429db9"/><file name="Service.php" hash="d12ddd193d2f6f74cb9c1ca0e1729a1f"/><file name="Status.php" hash="e74bb51a02f1357f44d8f0052c682181"/></dir><dir name="Unit"><file name="Measure.php" hash="01bbc3e2f7f688f9edf54f40bb46c686"/><file name="Weight.php" hash="6b74dde04ffdc951aeed3fb1db60599e"/></dir><file name="Unit.php" hash="b8e75f2efede007b004c47acadea6a84"/><file name="Wizard.php" hash="e15c3299e167f77d527a46e34b13639f"/></dir><file name="Source.php" hash="a302b7ecd757be23940dcf82521895b6"/></dir></dir><file name="Wizard.php" hash="f95c6731ffa7731012e7d0d73dd0099e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="JsonController.php" hash="ce01376bdf43f939c802448c880cfd32"/><file name="ManifestController.php" hash="fa62d93cc16d380f0bf1ad3aca758911"/><file name="ShipmentController.php" hash="f856c0c8dc8f4eb8be55239761afd5b4"/><file name="WizardController.php" hash="f16d65423c9b5717c48b06683d16cf4b"/></dir><file name="PcsController.php" hash="ceb5df1a7744f165039f69beda17c444"/><file name="WizardController.php" hash="5e5dac3f10dbdc8a07fb0e18fcf5409a"/></dir><dir name="etc"><file name="adminhtml.xml" hash="b751b086b4c92da219b6f281a80e5dd4"/><file name="config.xml" hash="0a9aeb840ef4552db116815a26325416"/><file name="system.xml" hash="a6f175c2d1c96fa9c9055831ed6d8659"/></dir><dir name="sql"><dir name="temando_setup"><file name="mysql4-install-1.0.0.php" hash="8f22dad6cc2162119422a468b8af9941"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="temando.xml" hash="237fb894c1c1c043252b09169bb3b112"/></dir><dir name="template"><dir name="temando"><dir name="temando"><file name="manifest.phtml" hash="d835ced7bd903e5d42d2b49a5537f531"/><file name="menu.phtml" hash="bc78fd42ac729ba19b4219018c052e21"/><file name="origin-avs.phtml" hash="2da4326466b0c2f581c6ecd4ffdf84a8"/><file name="region.phtml" hash="f2e8cbfbc57ef74a6b29925574de5cb1"/><dir name="shipment"><file name="anytime.phtml" hash="c4fcc5734b8740361df38f269231d606"/><file name="anywhere.phtml" hash="44298e9c66554ccbb5a04208e837146a"/><file name="boxes.phtml" hash="17f7c6a64d3c04b9787b5153abe7b11c"/><file name="insurance.phtml" hash="f3879be513ccc3e187d77156456b8033"/><file name="origin.phtml" hash="c53de035c9508d81c078501edcb70ef2"/><file name="products.phtml" hash="50a8ea7f8c1a26957222b031c19574ad"/><file name="quotes.phtml" hash="f7269534550b5b316da2e77ca23db5cc"/><file name="status.phtml" hash="3d54c1e6fd9f141fcf656e7e1d6faa98"/></dir><file name="shipment.phtml" hash="1241671844d42046b21240a2c38bb11d"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="temando.xml" hash="f73f25cfa4ecd30dc33318924737f9f3"/></dir><dir name="template"><dir name="temando"><dir name="temando"><dir name="checkout"><dir name="cart"><file name="shipping.phtml" hash="dd0e55e2e3f5874fc5555712b236074a"/></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="eff5b6cb90507e045b8ee51dae663052"/></dir></dir><dir name="onestep"><file name="options.phtml" hash="98531ee392e6978bf89dddcc3455937c"/><file name="shipping_method.phtml" hash="99c92bbdc269c1725762de538d43bc4c"/></dir><file name="pcs.phtml" hash="b7e3f5628f846afe259380be460a8d0b"/><dir name="product"><dir name="shipping"><file name="methods.phtml" hash="36c3f21e81bcd80c2406fffb6e72025c"/></dir><file name="shipping.phtml" hash="d639fe215ebb11d446477fcbece6a643"/></dir><dir name="shipping_method"><dir name="available"><file name="options_single.phtml" hash="72416b76aa5da5213a59dd8cc5b3dc0e"/></dir><file name="available.phtml" hash="98ec0f1e1293b62d2d14e7ef48e3947c"/></dir><dir name="wizard"><file name="account.phtml" hash="72f40a25e1f4d3919ac359d70ed0ea20"/><file name="carriers.phtml" hash="50f59b8dc44524555bc70f1ed4713a7c"/><file name="catalog_product.phtml" hash="db9530c3756488f0052f1fe6ab76d1bb"/><file name="countries.phtml" hash="f2bb5321ec71f85f34e64adb70f714b9"/><file name="end.phtml" hash="0e15bfc374029c9c088d423a313fd405"/><file name="left.phtml" hash="415f16cc0434db85e8b5b19aaa2bf087"/><file name="origin.phtml" hash="a97ef2c7fe6ecf034c5649ea9c46492b"/><file name="rule.phtml" hash="bea3961cb3feacab76623ca4df95a4b4"/></dir><file name="wizard.phtml" hash="c7f8d13602b5b68374290b62a04ce97d"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="temando"><file name="autocomplete.js" hash="401e3126c3421cafeaadf67613b40d51"/><file name="avs.js" hash="18b7b8a01b945767842a25dbf4e21acd"/><file name="grid.js" hash="5c35e0afdf1988d3ea2770a00ac5999e"/><file name="menu.js" hash="c6b9d402e0de287d2f92086c897a71c8"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="js"><file name="temando.js" hash="dd7f5c8137271c814a0a25d1db951879"/></dir><dir name="temando"><dir name="images"><file name="ajax-s-load.gif" hash="0ea8ba3fe3e60b73eda7d6de57fd8e01"/><file name="bg_notifications.gif" hash="d2a0489d0c3714bed22f9b06f4b81d43"/><file name="shadow.png" hash="b5b27e0dd88d44d4a5d8e63bb61a1239"/><file name="temando_logo.jpg" hash="04d2dbd664ff68a4be7364113f30572f"/></dir><file name="styles.css" hash="2d9c985c31622016db01e966974d70be"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="temando"><file name="autocomplete.css" hash="90387e5610631653a4bd97c7af3d444e"/><dir name="images"><file name="ajax-s-load.gif" hash="0ea8ba3fe3e60b73eda7d6de57fd8e01"/><file name="find_ext.png" hash="a6ba701a9256a2c775255965df1918c7"/><file name="i_shipping.gif" hash="91a0d2cc2eb2391f90ec8a75c04b3183"/><file name="shadow.png" hash="b5b27e0dd88d44d4a5d8e63bb61a1239"/></dir><file name="product.css" hash="d1679e756012f66391758a09d0918986"/><file name="styles.css" hash="990cb30792de7e9b46042a7d09be73d3"/></dir></dir><dir name="js"><dir name="temando"><file name="checkout.js" hash="36104cf24ce430cec568131597409bb2"/><file name="product.js" hash="989198862c7674f23adbed4d3bfa3de5"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Temando_Temando.csv" hash="10f9eea67d58ed17f7b81aec76803459"/></dir></target></contents>
|
39 |
<compatible/>
|
40 |
<dependencies><required><php><min>5.2.13</min><max>6.0.0</max></php><extension><name>soap</name><min>1.2</min><max/></extension></required></dependencies>
|
41 |
</package>
|
skin/adminhtml/default/default/js/temando.js
CHANGED
@@ -1,54 +1,54 @@
|
|
1 |
-
|
2 |
-
function clientTypeChangeListener() {
|
3 |
-
id_prefix = "fieldset_client_type_";
|
4 |
-
var classn = "fieldset-client-type";
|
5 |
-
|
6 |
-
$$("." + classn).each(function (fieldset) {
|
7 |
-
fieldset.hide();
|
8 |
-
fieldset.previous(".entry-edit-head").hide();
|
9 |
-
});
|
10 |
-
|
11 |
-
if ($(id_prefix + $("client_type").value.toLowerCase())) {
|
12 |
-
$(id_prefix + $("client_type").value.toLowerCase()).show();
|
13 |
-
$(id_prefix + $("client_type").value.toLowerCase()).previous(".entry-edit-head").show();
|
14 |
-
}
|
15 |
-
|
16 |
-
if ($("client_type").value.toLowerCase() === 'company') {
|
17 |
-
$('company_no').addClassName('required-entry').addClassName('validate-max-30');
|
18 |
-
} else {
|
19 |
-
$('company_no').removeClassName('required-entry').removeClassName('validate-max-30');
|
20 |
-
}
|
21 |
-
}
|
22 |
-
|
23 |
-
Event.observe(window, "load", function () {
|
24 |
-
clientTypeChangeListener();
|
25 |
-
|
26 |
-
$("client_type").observe("change", function () {
|
27 |
-
clientTypeChangeListener();
|
28 |
-
});
|
29 |
-
});
|
30 |
-
|
31 |
-
|
32 |
-
Validation.addAllThese([
|
33 |
-
['validate-max-500', 'Please use less than 500 characters.', {
|
34 |
-
maxLength: 500
|
35 |
-
}],
|
36 |
-
['validate-max-100', 'Please use less than 100 characters.', {
|
37 |
-
maxLength: 100
|
38 |
-
}],
|
39 |
-
['validate-max-50', 'Please use less than 50 characters.', {
|
40 |
-
maxLength: 50
|
41 |
-
}],
|
42 |
-
['validate-max-30', 'Please use less than 30 characters.', {
|
43 |
-
maxLength: 30
|
44 |
-
}],
|
45 |
-
['validate-max-20', 'Please use less than 20 characters.', {
|
46 |
-
maxLength: 20
|
47 |
-
}],
|
48 |
-
['validate-max-10', 'Please use less than 10 characters.', {
|
49 |
-
maxLength: 10
|
50 |
-
}],
|
51 |
-
['validate-min-6', 'Please use at least 6 characters.', {
|
52 |
-
minLength: 6
|
53 |
-
}]
|
54 |
-
]);
|
1 |
+
|
2 |
+
function clientTypeChangeListener() {
|
3 |
+
id_prefix = "fieldset_client_type_";
|
4 |
+
var classn = "fieldset-client-type";
|
5 |
+
|
6 |
+
$$("." + classn).each(function (fieldset) {
|
7 |
+
fieldset.hide();
|
8 |
+
fieldset.previous(".entry-edit-head").hide();
|
9 |
+
});
|
10 |
+
|
11 |
+
if ($(id_prefix + $("client_type").value.toLowerCase())) {
|
12 |
+
$(id_prefix + $("client_type").value.toLowerCase()).show();
|
13 |
+
$(id_prefix + $("client_type").value.toLowerCase()).previous(".entry-edit-head").show();
|
14 |
+
}
|
15 |
+
|
16 |
+
if ($("client_type").value.toLowerCase() === 'company') {
|
17 |
+
$('company_no').addClassName('required-entry').addClassName('validate-max-30');
|
18 |
+
} else {
|
19 |
+
$('company_no').removeClassName('required-entry').removeClassName('validate-max-30');
|
20 |
+
}
|
21 |
+
}
|
22 |
+
|
23 |
+
Event.observe(window, "load", function () {
|
24 |
+
clientTypeChangeListener();
|
25 |
+
|
26 |
+
$("client_type").observe("change", function () {
|
27 |
+
clientTypeChangeListener();
|
28 |
+
});
|
29 |
+
});
|
30 |
+
|
31 |
+
|
32 |
+
Validation.addAllThese([
|
33 |
+
['validate-max-500', 'Please use less than 500 characters.', {
|
34 |
+
maxLength: 500
|
35 |
+
}],
|
36 |
+
['validate-max-100', 'Please use less than 100 characters.', {
|
37 |
+
maxLength: 100
|
38 |
+
}],
|
39 |
+
['validate-max-50', 'Please use less than 50 characters.', {
|
40 |
+
maxLength: 50
|
41 |
+
}],
|
42 |
+
['validate-max-30', 'Please use less than 30 characters.', {
|
43 |
+
maxLength: 30
|
44 |
+
}],
|
45 |
+
['validate-max-20', 'Please use less than 20 characters.', {
|
46 |
+
maxLength: 20
|
47 |
+
}],
|
48 |
+
['validate-max-10', 'Please use less than 10 characters.', {
|
49 |
+
maxLength: 10
|
50 |
+
}],
|
51 |
+
['validate-min-6', 'Please use at least 6 characters.', {
|
52 |
+
minLength: 6
|
53 |
+
}]
|
54 |
+
]);
|
skin/frontend/base/default/js/temando/checkout.js
CHANGED
@@ -1,239 +1,239 @@
|
|
1 |
-
function option_update(sole)
|
2 |
-
{
|
3 |
-
if (sole) return;
|
4 |
-
|
5 |
-
// build class
|
6 |
-
classes = '';
|
7 |
-
|
8 |
-
checkboxes = $$('#temando_checkboxes input[type=checkbox]');
|
9 |
-
checkboxes.each(function (checkbox) {
|
10 |
-
if (checkbox.id.indexOf('temando_checkbox_') === 0) {
|
11 |
-
classes += '.' + checkbox.id.replace(/temando_checkbox_/, '') + '_' + (checkbox.checked ? 'Y' : 'N');
|
12 |
-
}
|
13 |
-
});
|
14 |
-
|
15 |
-
// hide all
|
16 |
-
$$('input[name^=shipping_method]').each(function (control) {
|
17 |
-
if(control.id.match(/^s_method_temando_(\d+)/) && !control.id.match(/^s_method_temando_(
|
18 |
-
control.up().hide();
|
19 |
-
control.checked = false;
|
20 |
-
}
|
21 |
-
});
|
22 |
-
|
23 |
-
// show those matching the classes
|
24 |
-
$$(classes).each(function (control) {
|
25 |
-
control.up().show();
|
26 |
-
});
|
27 |
-
}
|
28 |
-
|
29 |
-
function option_update_onestep()
|
30 |
-
{
|
31 |
-
// build class
|
32 |
-
classes = '';
|
33 |
-
|
34 |
-
checkboxes = $$('#temando_checkboxes input[type=checkbox]');
|
35 |
-
checkboxes.each(function (checkbox) {
|
36 |
-
if (checkbox.id.indexOf('temando_checkbox_') === 0) {
|
37 |
-
classes += '.' + checkbox.id.replace(/temando_checkbox_/, '') + '_' + (checkbox.checked ? 'Y' : 'N');
|
38 |
-
}
|
39 |
-
});
|
40 |
-
|
41 |
-
// hide all
|
42 |
-
$$('input[name^=shipping_method]').each(function (control) {
|
43 |
-
if(control.id.match(/^s_method_temando_(\d+)/) && !control.id.match(/^s_method_temando_(
|
44 |
-
control.up().hide();
|
45 |
-
control.checked = false;
|
46 |
-
}
|
47 |
-
});
|
48 |
-
|
49 |
-
// show those matching the classes
|
50 |
-
$$(classes).each(function (control) {
|
51 |
-
control.up().show();
|
52 |
-
});
|
53 |
-
|
54 |
-
//preselect shipping method if single
|
55 |
-
var visible = $$('input[name^=shipping_method]').findAll(function(el) { return el.offsetWidth > 0 && el.offsetHeight > 0; });
|
56 |
-
if(visible.size() == 1) {
|
57 |
-
var el = visible.first();
|
58 |
-
$$('input[name^=shipping_method]').each(function (control) {control.checked = false;});
|
59 |
-
el.checked = true;
|
60 |
-
fireEvent(el, 'click');
|
61 |
-
}
|
62 |
-
}
|
63 |
-
|
64 |
-
function includingShipping(getShippingCode) {
|
65 |
-
if ((typeof(shippingMe) !== 'undefined') && (shippingMe != null) && shippingMe && shippingMe.length) {
|
66 |
-
var newPrice = shippingMe[getShippingCode];
|
67 |
-
if (!lastPrice) {
|
68 |
-
lastPrice = newPrice;
|
69 |
-
if (window.quoteBaseGrandTotal != undefined) {
|
70 |
-
quoteBaseGrandTotal += newPrice;
|
71 |
-
}
|
72 |
-
}
|
73 |
-
if (newPrice != lastPrice) {
|
74 |
-
if (window.quoteBaseGrandTotal != undefined) {
|
75 |
-
quoteBaseGrandTotal += (newPrice-lastPrice);
|
76 |
-
}
|
77 |
-
lastPrice = newPrice;
|
78 |
-
|
79 |
-
}
|
80 |
-
}
|
81 |
-
if (window.quoteBaseGrandTotal != undefined && window.checkQuoteBaseGrandTotal != undefined) {
|
82 |
-
checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
|
83 |
-
}
|
84 |
-
return false;
|
85 |
-
}
|
86 |
-
|
87 |
-
function refreshQuotes() {
|
88 |
-
//get checked options
|
89 |
-
var delivery_options = $$('input[id^=delivery_option_]');
|
90 |
-
var params = Form.serializeElements(delivery_options);
|
91 |
-
|
92 |
-
//refresh quotes
|
93 |
-
if (checkout.loadWaiting!=false) return;
|
94 |
-
var validator = new Validation(shipping.form);
|
95 |
-
if (validator.validate()) {
|
96 |
-
checkout.setLoadWaiting('shipping-method');
|
97 |
-
delivery_options.each(function(control) {
|
98 |
-
control.disabled = true;
|
99 |
-
});
|
100 |
-
params += params.length ? '&' + Form.serialize(shipping.form) : Form.serialize(shipping.form);
|
101 |
-
var request = new Ajax.Request(
|
102 |
-
shipping.saveUrl,
|
103 |
-
{
|
104 |
-
method:'post',
|
105 |
-
onComplete: shipping.onComplete,
|
106 |
-
onSuccess: shipping.onSave,
|
107 |
-
onFailure: checkout.ajaxFailure.bind(checkout),
|
108 |
-
parameters: params
|
109 |
-
}
|
110 |
-
);
|
111 |
-
|
112 |
-
}
|
113 |
-
}
|
114 |
-
|
115 |
-
function refreshQuotesOnestep(url, set_methods_url)
|
116 |
-
{
|
117 |
-
return function() {
|
118 |
-
var form = $('onestepcheckout-form');
|
119 |
-
var items = exclude_unchecked_checkboxes($$('input[name^=billing]').concat($$('select[name^=billing]').concat($$('input[id^=delivery_option_]'))));
|
120 |
-
//var delivery_options = $$('input[id^=delivery_option_]');
|
121 |
-
var names = items.pluck('name');
|
122 |
-
var values = items.pluck('value');
|
123 |
-
var parameters = {
|
124 |
-
shipping_method: $RF(form, 'shipping_method'),
|
125 |
-
delivery_option_click: true
|
126 |
-
};
|
127 |
-
|
128 |
-
var street_count = 0;
|
129 |
-
for(var x=0; x < names.length; x++) {
|
130 |
-
if(names[x] != 'payment[method]') {
|
131 |
-
|
132 |
-
var current_name = names[x];
|
133 |
-
|
134 |
-
if(names[x] == 'billing[street][]') {
|
135 |
-
current_name = 'billing[street][' + street_count + ']';
|
136 |
-
street_count = street_count + 1;
|
137 |
-
}
|
138 |
-
|
139 |
-
parameters[current_name] = values[x];
|
140 |
-
}
|
141 |
-
}
|
142 |
-
|
143 |
-
var use_for_shipping = $('billing:use_for_shipping_yes');
|
144 |
-
if(use_for_shipping && use_for_shipping.getValue() != '1') {
|
145 |
-
var items = $$('input[name^=shipping]').concat($$('select[name^=shipping]'));
|
146 |
-
var shipping_names = items.pluck('name');
|
147 |
-
var shipping_values = items.pluck('value');
|
148 |
-
var shipping_parameters = {};
|
149 |
-
var street_count = 0;
|
150 |
-
|
151 |
-
for(var x=0; x < shipping_names.length; x++) {
|
152 |
-
if(shipping_names[x] != 'shipping_method') {
|
153 |
-
var current_name = shipping_names[x];
|
154 |
-
if(shipping_names[x] == 'shipping[street][]') {
|
155 |
-
current_name = 'shipping[street][' + street_count + ']';
|
156 |
-
street_count = street_count + 1;
|
157 |
-
}
|
158 |
-
|
159 |
-
parameters[current_name] = shipping_values[x];
|
160 |
-
}
|
161 |
-
}
|
162 |
-
}
|
163 |
-
|
164 |
-
var shipment_methods = $$('div.onestepcheckout-shipping-method-block')[0];
|
165 |
-
var shipment_methods_found = false;
|
166 |
-
|
167 |
-
if(typeof shipment_methods != 'undefined') {
|
168 |
-
shipment_methods_found = true;
|
169 |
-
}
|
170 |
-
|
171 |
-
if(shipment_methods_found) {
|
172 |
-
shipment_methods.update('<div class="loading-ajax"> </div>');
|
173 |
-
}
|
174 |
-
|
175 |
-
var payment_method = $RF(form, 'payment[method]');
|
176 |
-
parameters['payment_method'] = payment_method;
|
177 |
-
parameters['payment[method]'] = payment_method;
|
178 |
-
|
179 |
-
var payment_methods = $$('div.payment-methods')[0];
|
180 |
-
payment_methods.update('<div class="loading-ajax"> </div>');
|
181 |
-
|
182 |
-
var totals = get_totals_element();
|
183 |
-
totals.update('<div class="loading-ajax"> </div>');
|
184 |
-
|
185 |
-
|
186 |
-
new Ajax.Request(url, {
|
187 |
-
method: 'post',
|
188 |
-
onSuccess: function(transport) {
|
189 |
-
if(transport.status == 200) {
|
190 |
-
|
191 |
-
var data = transport.responseText.evalJSON();
|
192 |
-
|
193 |
-
// Update shipment methods
|
194 |
-
if(shipment_methods_found) {
|
195 |
-
shipment_methods.update(data.shipping_method);
|
196 |
-
}
|
197 |
-
payment_methods.replace(data.payment_method);
|
198 |
-
totals.update(data.summary);
|
199 |
-
|
200 |
-
// Add new event handlers
|
201 |
-
|
202 |
-
if(shipment_methods_found) {
|
203 |
-
$$('dl.shipment-methods input').invoke('observe', 'click', get_separate_save_methods_function(set_methods_url, true));
|
204 |
-
}
|
205 |
-
|
206 |
-
$$('div.payment-methods input[name^=payment\[method\]]').invoke('observe', 'click', get_separate_save_methods_function(set_methods_url));
|
207 |
-
|
208 |
-
$$('div.payment-methods input[name^=payment\[method\]]').invoke('observe', 'click', function() {
|
209 |
-
$$('div.onestepcheckout-payment-method-error').each(function(item) {
|
210 |
-
new Effect.Fade(item);
|
211 |
-
});
|
212 |
-
});
|
213 |
-
|
214 |
-
if(shipment_methods_found) {
|
215 |
-
$$('dl.shipment-methods input').invoke('observe', 'click', function() {
|
216 |
-
$$('div.onestepcheckout-shipment-method-error').each(function(item) {
|
217 |
-
new Effect.Fade(item);
|
218 |
-
});
|
219 |
-
});
|
220 |
-
}
|
221 |
-
|
222 |
-
if($RF(form, 'payment[method]') != null) {
|
223 |
-
try {
|
224 |
-
var payment_method = $RF(form, 'payment[method]');
|
225 |
-
$('container_payment_method_' + payment_method).show();
|
226 |
-
$('payment_form_' + payment_method).show();
|
227 |
-
} catch(err) {
|
228 |
-
|
229 |
-
}
|
230 |
-
}
|
231 |
-
|
232 |
-
|
233 |
-
}
|
234 |
-
},
|
235 |
-
parameters: parameters
|
236 |
-
});
|
237 |
-
|
238 |
-
}
|
239 |
}
|
1 |
+
function option_update(sole)
|
2 |
+
{
|
3 |
+
if (sole) return;
|
4 |
+
|
5 |
+
// build class
|
6 |
+
classes = '';
|
7 |
+
|
8 |
+
checkboxes = $$('#temando_checkboxes input[type=checkbox]');
|
9 |
+
checkboxes.each(function (checkbox) {
|
10 |
+
if (checkbox.id.indexOf('temando_checkbox_') === 0) {
|
11 |
+
classes += '.' + checkbox.id.replace(/temando_checkbox_/, '') + '_' + (checkbox.checked ? 'Y' : 'N');
|
12 |
+
}
|
13 |
+
});
|
14 |
+
|
15 |
+
// hide all
|
16 |
+
$$('input[name^=shipping_method]').each(function (control) {
|
17 |
+
if(control.id.match(/^s_method_temando_(\d+)/) && !control.id.match(/^s_method_temando_(free|flat)/)) {
|
18 |
+
control.up().hide();
|
19 |
+
control.checked = false;
|
20 |
+
}
|
21 |
+
});
|
22 |
+
|
23 |
+
// show those matching the classes
|
24 |
+
$$(classes).each(function (control) {
|
25 |
+
control.up().show();
|
26 |
+
});
|
27 |
+
}
|
28 |
+
|
29 |
+
function option_update_onestep()
|
30 |
+
{
|
31 |
+
// build class
|
32 |
+
classes = '';
|
33 |
+
|
34 |
+
checkboxes = $$('#temando_checkboxes input[type=checkbox]');
|
35 |
+
checkboxes.each(function (checkbox) {
|
36 |
+
if (checkbox.id.indexOf('temando_checkbox_') === 0) {
|
37 |
+
classes += '.' + checkbox.id.replace(/temando_checkbox_/, '') + '_' + (checkbox.checked ? 'Y' : 'N');
|
38 |
+
}
|
39 |
+
});
|
40 |
+
|
41 |
+
// hide all
|
42 |
+
$$('input[name^=shipping_method]').each(function (control) {
|
43 |
+
if(control.id.match(/^s_method_temando_(\d+)/) && !control.id.match(/^s_method_temando_(free|flat)/)) {
|
44 |
+
control.up().hide();
|
45 |
+
control.checked = false;
|
46 |
+
}
|
47 |
+
});
|
48 |
+
|
49 |
+
// show those matching the classes
|
50 |
+
$$(classes).each(function (control) {
|
51 |
+
control.up().show();
|
52 |
+
});
|
53 |
+
|
54 |
+
//preselect shipping method if single
|
55 |
+
var visible = $$('input[name^=shipping_method]').findAll(function(el) { return el.offsetWidth > 0 && el.offsetHeight > 0; });
|
56 |
+
if(visible.size() == 1) {
|
57 |
+
var el = visible.first();
|
58 |
+
$$('input[name^=shipping_method]').each(function (control) {control.checked = false;});
|
59 |
+
el.checked = true;
|
60 |
+
fireEvent(el, 'click');
|
61 |
+
}
|
62 |
+
}
|
63 |
+
|
64 |
+
function includingShipping(getShippingCode) {
|
65 |
+
if ((typeof(shippingMe) !== 'undefined') && (shippingMe != null) && shippingMe && shippingMe.length) {
|
66 |
+
var newPrice = shippingMe[getShippingCode];
|
67 |
+
if (!lastPrice) {
|
68 |
+
lastPrice = newPrice;
|
69 |
+
if (window.quoteBaseGrandTotal != undefined) {
|
70 |
+
quoteBaseGrandTotal += newPrice;
|
71 |
+
}
|
72 |
+
}
|
73 |
+
if (newPrice != lastPrice) {
|
74 |
+
if (window.quoteBaseGrandTotal != undefined) {
|
75 |
+
quoteBaseGrandTotal += (newPrice-lastPrice);
|
76 |
+
}
|
77 |
+
lastPrice = newPrice;
|
78 |
+
|
79 |
+
}
|
80 |
+
}
|
81 |
+
if (window.quoteBaseGrandTotal != undefined && window.checkQuoteBaseGrandTotal != undefined) {
|
82 |
+
checkQuoteBaseGrandTotal = quoteBaseGrandTotal;
|
83 |
+
}
|
84 |
+
return false;
|
85 |
+
}
|
86 |
+
|
87 |
+
function refreshQuotes() {
|
88 |
+
//get checked options
|
89 |
+
var delivery_options = $$('input[id^=delivery_option_]');
|
90 |
+
var params = Form.serializeElements(delivery_options);
|
91 |
+
|
92 |
+
//refresh quotes
|
93 |
+
if (checkout.loadWaiting!=false) return;
|
94 |
+
var validator = new Validation(shipping.form);
|
95 |
+
if (validator.validate()) {
|
96 |
+
checkout.setLoadWaiting('shipping-method');
|
97 |
+
delivery_options.each(function(control) {
|
98 |
+
control.disabled = true;
|
99 |
+
});
|
100 |
+
params += params.length ? '&' + Form.serialize(shipping.form) : Form.serialize(shipping.form);
|
101 |
+
var request = new Ajax.Request(
|
102 |
+
shipping.saveUrl,
|
103 |
+
{
|
104 |
+
method:'post',
|
105 |
+
onComplete: shipping.onComplete,
|
106 |
+
onSuccess: shipping.onSave,
|
107 |
+
onFailure: checkout.ajaxFailure.bind(checkout),
|
108 |
+
parameters: params
|
109 |
+
}
|
110 |
+
);
|
111 |
+
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
+
function refreshQuotesOnestep(url, set_methods_url)
|
116 |
+
{
|
117 |
+
return function() {
|
118 |
+
var form = $('onestepcheckout-form');
|
119 |
+
var items = exclude_unchecked_checkboxes($$('input[name^=billing]').concat($$('select[name^=billing]').concat($$('input[id^=delivery_option_]'))));
|
120 |
+
//var delivery_options = $$('input[id^=delivery_option_]');
|
121 |
+
var names = items.pluck('name');
|
122 |
+
var values = items.pluck('value');
|
123 |
+
var parameters = {
|
124 |
+
shipping_method: $RF(form, 'shipping_method'),
|
125 |
+
delivery_option_click: true
|
126 |
+
};
|
127 |
+
|
128 |
+
var street_count = 0;
|
129 |
+
for(var x=0; x < names.length; x++) {
|
130 |
+
if(names[x] != 'payment[method]') {
|
131 |
+
|
132 |
+
var current_name = names[x];
|
133 |
+
|
134 |
+
if(names[x] == 'billing[street][]') {
|
135 |
+
current_name = 'billing[street][' + street_count + ']';
|
136 |
+
street_count = street_count + 1;
|
137 |
+
}
|
138 |
+
|
139 |
+
parameters[current_name] = values[x];
|
140 |
+
}
|
141 |
+
}
|
142 |
+
|
143 |
+
var use_for_shipping = $('billing:use_for_shipping_yes');
|
144 |
+
if(use_for_shipping && use_for_shipping.getValue() != '1') {
|
145 |
+
var items = $$('input[name^=shipping]').concat($$('select[name^=shipping]'));
|
146 |
+
var shipping_names = items.pluck('name');
|
147 |
+
var shipping_values = items.pluck('value');
|
148 |
+
var shipping_parameters = {};
|
149 |
+
var street_count = 0;
|
150 |
+
|
151 |
+
for(var x=0; x < shipping_names.length; x++) {
|
152 |
+
if(shipping_names[x] != 'shipping_method') {
|
153 |
+
var current_name = shipping_names[x];
|
154 |
+
if(shipping_names[x] == 'shipping[street][]') {
|
155 |
+
current_name = 'shipping[street][' + street_count + ']';
|
156 |
+
street_count = street_count + 1;
|
157 |
+
}
|
158 |
+
|
159 |
+
parameters[current_name] = shipping_values[x];
|
160 |
+
}
|
161 |
+
}
|
162 |
+
}
|
163 |
+
|
164 |
+
var shipment_methods = $$('div.onestepcheckout-shipping-method-block')[0];
|
165 |
+
var shipment_methods_found = false;
|
166 |
+
|
167 |
+
if(typeof shipment_methods != 'undefined') {
|
168 |
+
shipment_methods_found = true;
|
169 |
+
}
|
170 |
+
|
171 |
+
if(shipment_methods_found) {
|
172 |
+
shipment_methods.update('<div class="loading-ajax"> </div>');
|
173 |
+
}
|
174 |
+
|
175 |
+
var payment_method = $RF(form, 'payment[method]');
|
176 |
+
parameters['payment_method'] = payment_method;
|
177 |
+
parameters['payment[method]'] = payment_method;
|
178 |
+
|
179 |
+
var payment_methods = $$('div.payment-methods')[0];
|
180 |
+
payment_methods.update('<div class="loading-ajax"> </div>');
|
181 |
+
|
182 |
+
var totals = get_totals_element();
|
183 |
+
totals.update('<div class="loading-ajax"> </div>');
|
184 |
+
|
185 |
+
|
186 |
+
new Ajax.Request(url, {
|
187 |
+
method: 'post',
|
188 |
+
onSuccess: function(transport) {
|
189 |
+
if(transport.status == 200) {
|
190 |
+
|
191 |
+
var data = transport.responseText.evalJSON();
|
192 |
+
|
193 |
+
// Update shipment methods
|
194 |
+
if(shipment_methods_found) {
|
195 |
+
shipment_methods.update(data.shipping_method);
|
196 |
+
}
|
197 |
+
payment_methods.replace(data.payment_method);
|
198 |
+
totals.update(data.summary);
|
199 |
+
|
200 |
+
// Add new event handlers
|
201 |
+
|
202 |
+
if(shipment_methods_found) {
|
203 |
+
$$('dl.shipment-methods input').invoke('observe', 'click', get_separate_save_methods_function(set_methods_url, true));
|
204 |
+
}
|
205 |
+
|
206 |
+
$$('div.payment-methods input[name^=payment\[method\]]').invoke('observe', 'click', get_separate_save_methods_function(set_methods_url));
|
207 |
+
|
208 |
+
$$('div.payment-methods input[name^=payment\[method\]]').invoke('observe', 'click', function() {
|
209 |
+
$$('div.onestepcheckout-payment-method-error').each(function(item) {
|
210 |
+
new Effect.Fade(item);
|
211 |
+
});
|
212 |
+
});
|
213 |
+
|
214 |
+
if(shipment_methods_found) {
|
215 |
+
$$('dl.shipment-methods input').invoke('observe', 'click', function() {
|
216 |
+
$$('div.onestepcheckout-shipment-method-error').each(function(item) {
|
217 |
+
new Effect.Fade(item);
|
218 |
+
});
|
219 |
+
});
|
220 |
+
}
|
221 |
+
|
222 |
+
if($RF(form, 'payment[method]') != null) {
|
223 |
+
try {
|
224 |
+
var payment_method = $RF(form, 'payment[method]');
|
225 |
+
$('container_payment_method_' + payment_method).show();
|
226 |
+
$('payment_form_' + payment_method).show();
|
227 |
+
} catch(err) {
|
228 |
+
|
229 |
+
}
|
230 |
+
}
|
231 |
+
|
232 |
+
|
233 |
+
}
|
234 |
+
},
|
235 |
+
parameters: parameters
|
236 |
+
});
|
237 |
+
|
238 |
+
}
|
239 |
}
|
skin/frontend/base/default/js/temando/product.js
CHANGED
@@ -1,161 +1,161 @@
|
|
1 |
-
function pcsFocus()
|
2 |
-
{
|
3 |
-
var obj = $('pcs');
|
4 |
-
if (obj.value == empty_pcs_value) {
|
5 |
-
obj.value = '';
|
6 |
-
}
|
7 |
-
|
8 |
-
obj.style.color = '';
|
9 |
-
}
|
10 |
-
|
11 |
-
function pcsBlur()
|
12 |
-
{
|
13 |
-
var color= '';
|
14 |
-
var obj = $('pcs');
|
15 |
-
if (!obj.value || (obj.value == empty_pcs_value)) {
|
16 |
-
color= 'grey';
|
17 |
-
obj.value = empty_pcs_value;
|
18 |
-
}
|
19 |
-
|
20 |
-
obj.style.color = color;
|
21 |
-
}
|
22 |
-
|
23 |
-
function getShippingRates()
|
24 |
-
{
|
25 |
-
var qty_value = 1;
|
26 |
-
if ($('qty') && $('qty').value && parseInt($('qty').value) && (parseInt($('qty').value) > 0)) {
|
27 |
-
qty_value = parseInt($('qty').value);
|
28 |
-
}
|
29 |
-
if (!$('city').value || !$('postcode').value) {
|
30 |
-
alert('Please enter your location');
|
31 |
-
return false;
|
32 |
-
}
|
33 |
-
var options = {};
|
34 |
-
$$('select[name^=super_attribute]').each(function (control) {
|
35 |
-
if (false === options) {
|
36 |
-
return;
|
37 |
-
}
|
38 |
-
if (!control.value) {
|
39 |
-
options = false;
|
40 |
-
return;
|
41 |
-
} else {
|
42 |
-
options[control.name.substr(16, control.name.length - 17)] = control.value;
|
43 |
-
}
|
44 |
-
});
|
45 |
-
if (false == options) {
|
46 |
-
alert('Please select product options');
|
47 |
-
return false;
|
48 |
-
}
|
49 |
-
var options_str = '';
|
50 |
-
for (var i in options) {
|
51 |
-
options_str += i + ':' + options[i] + ';';
|
52 |
-
}
|
53 |
-
options = {};
|
54 |
-
$$('select[name^=options]').each(function (control) {
|
55 |
-
if (false === options) {
|
56 |
-
return;
|
57 |
-
}
|
58 |
-
if (control.hasClassName('required-entry')) {
|
59 |
-
if (!control.value) {
|
60 |
-
options = false;
|
61 |
-
return;
|
62 |
-
} else {
|
63 |
-
options[control.name.substr(8, control.name.length - 9)] = control.value;
|
64 |
-
}
|
65 |
-
}
|
66 |
-
});
|
67 |
-
$$('input[name^=options]').each(function (control) {
|
68 |
-
if (false === options) {
|
69 |
-
return;
|
70 |
-
}
|
71 |
-
if (control.hasClassName('validate-one-required-by-name')) {
|
72 |
-
var items = $$('input[name^=options]');
|
73 |
-
var value = false;
|
74 |
-
for (var k = 0; k < items.length; k++) {
|
75 |
-
if ((items[k].name == control.name) && items[k].checked) {
|
76 |
-
value = items[k].value;
|
77 |
-
}
|
78 |
-
}
|
79 |
-
if (!value) {
|
80 |
-
options = false;
|
81 |
-
return;
|
82 |
-
} else {
|
83 |
-
options[control.name.substr(8, control.name.length - 9)] = value;
|
84 |
-
}
|
85 |
-
}
|
86 |
-
});
|
87 |
-
if (false == options) {
|
88 |
-
alert('Please select product options');
|
89 |
-
return false;
|
90 |
-
}
|
91 |
-
var pr_options_str = '';
|
92 |
-
for (var i in options) {
|
93 |
-
pr_options_str += i + ':' + options[i] + ';';
|
94 |
-
}
|
95 |
-
|
96 |
-
//bundle products
|
97 |
-
options = {};
|
98 |
-
$$('select[name^=bundle_option]').each(function (control) {
|
99 |
-
if (false === options) {
|
100 |
-
return;
|
101 |
-
}
|
102 |
-
if (control.hasClassName('required-entry')) {
|
103 |
-
if (!control.value) {
|
104 |
-
options = false;
|
105 |
-
return;
|
106 |
-
} else {
|
107 |
-
options[control.name.substr(14, control.name.length - 15)] = control.value;
|
108 |
-
}
|
109 |
-
}
|
110 |
-
});
|
111 |
-
$$('input[name^=bundle_option]').each(function (control) {
|
112 |
-
if (false === options) {
|
113 |
-
return;
|
114 |
-
}
|
115 |
-
if (control.hasClassName('validate-one-required-by-name')) {
|
116 |
-
var items = $$('input[name^=bundle_option]');
|
117 |
-
var value = false;
|
118 |
-
for (var k = 0; k < items.length; k++) {
|
119 |
-
if ((items[k].name == control.name) && items[k].checked) {
|
120 |
-
value = items[k].value;
|
121 |
-
}
|
122 |
-
}
|
123 |
-
if (!value) {
|
124 |
-
options = false;
|
125 |
-
return;
|
126 |
-
} else {
|
127 |
-
options[control.name.substr(13, control.name.length - 14)] = value;
|
128 |
-
}
|
129 |
-
}
|
130 |
-
});
|
131 |
-
if (false == options) {
|
132 |
-
alert('Please select product options');
|
133 |
-
return false;
|
134 |
-
}
|
135 |
-
var bundle_options_str = '';
|
136 |
-
for (var i in options) {
|
137 |
-
bundle_options_str += i + ':' + options[i] + ';';
|
138 |
-
}
|
139 |
-
|
140 |
-
//get rid of '[' & ']' - for check-boxes with syntax xxx[14][]
|
141 |
-
var pattern = /(\[|\])/g;
|
142 |
-
bundle_options_str = bundle_options_str.replace(pattern, "");
|
143 |
-
|
144 |
-
$('estimate_items').update('Loading...');
|
145 |
-
new Ajax.Request(shipping_estimator_url, {
|
146 |
-
parameters: {
|
147 |
-
country_id: $('country_id').value,
|
148 |
-
city : $('city').value,
|
149 |
-
postcode : $('postcode').value,
|
150 |
-
product_id: $('product_id').value,
|
151 |
-
qty : qty_value,
|
152 |
-
options : options_str,
|
153 |
-
pr_options: pr_options_str,
|
154 |
-
bl_options: bundle_options_str
|
155 |
-
},
|
156 |
-
onComplete: function(resp){
|
157 |
-
$('estimate_items').update(resp.responseText);
|
158 |
-
},
|
159 |
-
method: 'post'
|
160 |
-
});
|
161 |
}
|
1 |
+
function pcsFocus()
|
2 |
+
{
|
3 |
+
var obj = $('pcs');
|
4 |
+
if (obj.value == empty_pcs_value) {
|
5 |
+
obj.value = '';
|
6 |
+
}
|
7 |
+
|
8 |
+
obj.style.color = '';
|
9 |
+
}
|
10 |
+
|
11 |
+
function pcsBlur()
|
12 |
+
{
|
13 |
+
var color= '';
|
14 |
+
var obj = $('pcs');
|
15 |
+
if (!obj.value || (obj.value == empty_pcs_value)) {
|
16 |
+
color= 'grey';
|
17 |
+
obj.value = empty_pcs_value;
|
18 |
+
}
|
19 |
+
|
20 |
+
obj.style.color = color;
|
21 |
+
}
|
22 |
+
|
23 |
+
function getShippingRates()
|
24 |
+
{
|
25 |
+
var qty_value = 1;
|
26 |
+
if ($('qty') && $('qty').value && parseInt($('qty').value) && (parseInt($('qty').value) > 0)) {
|
27 |
+
qty_value = parseInt($('qty').value);
|
28 |
+
}
|
29 |
+
if (!$('city').value || !$('postcode').value) {
|
30 |
+
alert('Please enter your location');
|
31 |
+
return false;
|
32 |
+
}
|
33 |
+
var options = {};
|
34 |
+
$$('select[name^=super_attribute]').each(function (control) {
|
35 |
+
if (false === options) {
|
36 |
+
return;
|
37 |
+
}
|
38 |
+
if (!control.value) {
|
39 |
+
options = false;
|
40 |
+
return;
|
41 |
+
} else {
|
42 |
+
options[control.name.substr(16, control.name.length - 17)] = control.value;
|
43 |
+
}
|
44 |
+
});
|
45 |
+
if (false == options) {
|
46 |
+
alert('Please select product options');
|
47 |
+
return false;
|
48 |
+
}
|
49 |
+
var options_str = '';
|
50 |
+
for (var i in options) {
|
51 |
+
options_str += i + ':' + options[i] + ';';
|
52 |
+
}
|
53 |
+
options = {};
|
54 |
+
$$('select[name^=options]').each(function (control) {
|
55 |
+
if (false === options) {
|
56 |
+
return;
|
57 |
+
}
|
58 |
+
if (control.hasClassName('required-entry')) {
|
59 |
+
if (!control.value) {
|
60 |
+
options = false;
|
61 |
+
return;
|
62 |
+
} else {
|
63 |
+
options[control.name.substr(8, control.name.length - 9)] = control.value;
|
64 |
+
}
|
65 |
+
}
|
66 |
+
});
|
67 |
+
$$('input[name^=options]').each(function (control) {
|
68 |
+
if (false === options) {
|
69 |
+
return;
|
70 |
+
}
|
71 |
+
if (control.hasClassName('validate-one-required-by-name')) {
|
72 |
+
var items = $$('input[name^=options]');
|
73 |
+
var value = false;
|
74 |
+
for (var k = 0; k < items.length; k++) {
|
75 |
+
if ((items[k].name == control.name) && items[k].checked) {
|
76 |
+
value = items[k].value;
|
77 |
+
}
|
78 |
+
}
|
79 |
+
if (!value) {
|
80 |
+
options = false;
|
81 |
+
return;
|
82 |
+
} else {
|
83 |
+
options[control.name.substr(8, control.name.length - 9)] = value;
|
84 |
+
}
|
85 |
+
}
|
86 |
+
});
|
87 |
+
if (false == options) {
|
88 |
+
alert('Please select product options');
|
89 |
+
return false;
|
90 |
+
}
|
91 |
+
var pr_options_str = '';
|
92 |
+
for (var i in options) {
|
93 |
+
pr_options_str += i + ':' + options[i] + ';';
|
94 |
+
}
|
95 |
+
|
96 |
+
//bundle products
|
97 |
+
options = {};
|
98 |
+
$$('select[name^=bundle_option]').each(function (control) {
|
99 |
+
if (false === options) {
|
100 |
+
return;
|
101 |
+
}
|
102 |
+
if (control.hasClassName('required-entry')) {
|
103 |
+
if (!control.value) {
|
104 |
+
options = false;
|
105 |
+
return;
|
106 |
+
} else {
|
107 |
+
options[control.name.substr(14, control.name.length - 15)] = control.value;
|
108 |
+
}
|
109 |
+
}
|
110 |
+
});
|
111 |
+
$$('input[name^=bundle_option]').each(function (control) {
|
112 |
+
if (false === options) {
|
113 |
+
return;
|
114 |
+
}
|
115 |
+
if (control.hasClassName('validate-one-required-by-name')) {
|
116 |
+
var items = $$('input[name^=bundle_option]');
|
117 |
+
var value = false;
|
118 |
+
for (var k = 0; k < items.length; k++) {
|
119 |
+
if ((items[k].name == control.name) && items[k].checked) {
|
120 |
+
value = items[k].value;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
if (!value) {
|
124 |
+
options = false;
|
125 |
+
return;
|
126 |
+
} else {
|
127 |
+
options[control.name.substr(13, control.name.length - 14)] = value;
|
128 |
+
}
|
129 |
+
}
|
130 |
+
});
|
131 |
+
if (false == options) {
|
132 |
+
alert('Please select product options');
|
133 |
+
return false;
|
134 |
+
}
|
135 |
+
var bundle_options_str = '';
|
136 |
+
for (var i in options) {
|
137 |
+
bundle_options_str += i + ':' + options[i] + ';';
|
138 |
+
}
|
139 |
+
|
140 |
+
//get rid of '[' & ']' - for check-boxes with syntax xxx[14][]
|
141 |
+
var pattern = /(\[|\])/g;
|
142 |
+
bundle_options_str = bundle_options_str.replace(pattern, "");
|
143 |
+
|
144 |
+
$('estimate_items').update('Loading...');
|
145 |
+
new Ajax.Request(shipping_estimator_url, {
|
146 |
+
parameters: {
|
147 |
+
country_id: $('country_id').value,
|
148 |
+
city : $('city').value,
|
149 |
+
postcode : $('postcode').value,
|
150 |
+
product_id: $('product_id').value,
|
151 |
+
qty : qty_value,
|
152 |
+
options : options_str,
|
153 |
+
pr_options: pr_options_str,
|
154 |
+
bl_options: bundle_options_str
|
155 |
+
},
|
156 |
+
onComplete: function(resp){
|
157 |
+
$('estimate_items').update(resp.responseText);
|
158 |
+
},
|
159 |
+
method: 'post'
|
160 |
+
});
|
161 |
}
|