estimateddeliverydate - Version 0.1.1

Version Notes

Fixed
======
* Issue with custom options on configurable products

Download this release

Release Info

Developer Un.titled
Extension estimateddeliverydate
Version 0.1.1
Comparing to
See all releases


Code changes from version 0.1.0 to 0.1.1

app/code/community/Undottitled/Estimateddeliverydate/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Undottitled_Estimateddeliverydate>
5
- <version>0.1.0</version>
6
  </Undottitled_Estimateddeliverydate>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <Undottitled_Estimateddeliverydate>
5
+ <version>0.1.1</version>
6
  </Undottitled_Estimateddeliverydate>
7
  </modules>
8
 
js/undottitled/estimateddeliverydate/estimateddeliverydate.js CHANGED
@@ -10,7 +10,6 @@ document.observe('dom:loaded',function() {
10
 
11
  $('qty').observe('keyup',function() {
12
  if($('product-options-wrapper')) {
13
- console.log('asd');
14
  $$('.product-options dd.last').each(function(el) {
15
  var finalAttribute = $(el).children[0].children[0];
16
 
@@ -27,18 +26,21 @@ document.observe('dom:loaded',function() {
27
 
28
  function updateDeliveryDate(ele) {
29
  var eleTrimmedId = $(ele).id.replace('attribute','');
30
- var jsonConfig = spConfig.config.attributes[eleTrimmedId].options;
31
- jsonConfig.each(function(obj) {
32
- if(obj.id == ele.value) {
33
- new Ajax.Request(host+'estimateddeliverydate/index/getdeliveries/pid/'+obj.allowedProducts[0]+'/qty/'+$('qty').value, {
34
- onSuccess: function(response) {
35
- $('estimatedDeliveryText').update(response.responseText);
36
- }
37
- });
38
- } else {
39
- $('estimatedDeliveryText').update('Please select options to check delivery');
40
- }
41
- });
 
 
 
42
  }
43
 
44
  function updateDeliveryDate_Simple(pid) {
10
 
11
  $('qty').observe('keyup',function() {
12
  if($('product-options-wrapper')) {
 
13
  $$('.product-options dd.last').each(function(el) {
14
  var finalAttribute = $(el).children[0].children[0];
15
 
26
 
27
  function updateDeliveryDate(ele) {
28
  var eleTrimmedId = $(ele).id.replace('attribute','');
29
+
30
+ if(!isNaN(parseInt(eleTrimmedId))) { //Check for anything other attribute dropdowns causing errors
31
+ var jsonConfig = spConfig.config.attributes[eleTrimmedId].options;
32
+ jsonConfig.each(function(obj) {
33
+ if(obj.id == ele.value) {
34
+ new Ajax.Request(host+'estimateddeliverydate/index/getdeliveries/pid/'+obj.allowedProducts[0]+'/qty/'+$('qty').value, {
35
+ onSuccess: function(response) {
36
+ $('estimatedDeliveryText').update(response.responseText);
37
+ }
38
+ });
39
+ } else {
40
+ $('estimatedDeliveryText').update('Please select options to check delivery');
41
+ }
42
+ });
43
+ }
44
  }
45
 
46
  function updateDeliveryDate_Simple(pid) {
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>estimateddeliverydate</name>
4
- <version>0.1.0</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,11 +10,13 @@
10
  <description>With this simple to implement extension you can enter the dates you're expecting to get items in stock and allow your customers to see when they're likely to get their items based on the quantity they require.&#xD;
11
  &#xD;
12
  Currently the extension works with configurable and simple products only.</description>
13
- <notes>Please test thoroughly on a non-live platform before using in a production environment.</notes>
 
 
14
  <authors><author><name>Un.titled</name><user>undottitled</user><email>tech@un.titled.co.uk</email></author></authors>
15
  <date>2012-05-16</date>
16
- <time>11:29:41</time>
17
- <contents><target name="magecommunity"><dir name="Undottitled"><dir name="Estimateddeliverydate"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Deliveries"><dir name="Edit"><file name="Form.php" hash="1b75f149874c6f1fa2d2e23c5d19c1f3"/><dir name="Tab"><file name="Form.php" hash="b0da75f24485e2f8033845ac4c48c1c5"/><file name="Products.php" hash="d8903ef42b7686ead9209802da9db498"/></dir><file name="Tabs.php" hash="f8ff0828f398883a6b72e3330bb67198"/></dir><file name="Edit.php" hash="9df63601f5012892b9ee7fe7383b9fa1"/><file name="Grid.php" hash="a4ca1a7ccb04c86696199612f4e3dde0"/></dir><file name="Deliveries.php" hash="6284c9021fc5e6a4a997d7d3dc4c62fb"/></dir><file name="Display.php" hash="28f7010da385a8d73b626b82b76011be"/></dir><dir name="Helper"><file name="Data.php" hash="bc432e37d4f2e4a90a0cc31e485e11e9"/></dir><dir name="Model"><file name="Deliveries.php" hash="96fcc7a9234fd946dbe1d0f4644f2c27"/><dir name="Mysql4"><dir name="Deliveries"><file name="Collection.php" hash="980989a78a8808fac57ddfd146f790d2"/></dir><file name="Deliveries.php" hash="b152a916d7f0bba455da7c69691f1a68"/></dir><dir name="Resource"><dir name="Deliveries"><file name="Collection.php" hash="4094fd6cff794b28355ab4d3238367a2"/></dir><file name="Deliveries.php" hash="f92b784e779194b73f8b928b5a2b83d9"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DeliveriesController.php" hash="03421338b05c28a02ecb554bb09a21ff"/></dir><file name="IndexController.php" hash="94cf594e39f7a55e49254f6637fdb724"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f5a41b6f6065db31792bef9bb7fd06cb"/><file name="config.xml" hash="1062077d5474afca40f6166adc0c1170"/><file name="system.xml" hash="cea0c48c0905a65976c07bfa9badd9db"/></dir><dir name="sql"><dir name="estimateddeliverydate_setup"><file name="install-0.1.0.php" hash="f52380d9f97bf6b8667c33bfa1507c20"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="estimateddeliverydate.xml" hash="e137375f417f1ebc51f702b37a9bbfc6"/></dir><dir name="template"><dir name="estimateddeliverydate"><dir name="catalog"><dir name="product"><dir name="view"><file name="estimateddeliverydate.phtml" hash="eacb8f77e3c02b07f46708d6a6586cba"/><file name="estimateddeliverydate_simple.phtml" hash="694fdbb15515c283fd923173c999f39c"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="undottitled"><dir name="estimateddeliverydate"><file name="estimateddeliverydate.js" hash="52b07cc7763c650e363591ed8ae55e2a"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Undottitled_Estimateddeliverydate.xml" hash="5f93ba5d50b3f9b5f73aafbc46141857"/></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0</min><max>1.7</max></package></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>estimateddeliverydate</name>
4
+ <version>0.1.1</version>
5
  <stability>stable</stability>
6
  <license>OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>With this simple to implement extension you can enter the dates you're expecting to get items in stock and allow your customers to see when they're likely to get their items based on the quantity they require.&#xD;
11
  &#xD;
12
  Currently the extension works with configurable and simple products only.</description>
13
+ <notes>Fixed&#xD;
14
+ ======&#xD;
15
+ * Issue with custom options on configurable products</notes>
16
  <authors><author><name>Un.titled</name><user>undottitled</user><email>tech@un.titled.co.uk</email></author></authors>
17
  <date>2012-05-16</date>
18
+ <time>15:29:48</time>
19
+ <contents><target name="magecommunity"><dir name="Undottitled"><dir name="Estimateddeliverydate"><dir><dir name="Block"><dir name="Adminhtml"><dir name="Deliveries"><dir name="Edit"><file name="Form.php" hash="1b75f149874c6f1fa2d2e23c5d19c1f3"/><dir name="Tab"><file name="Form.php" hash="b0da75f24485e2f8033845ac4c48c1c5"/><file name="Products.php" hash="d8903ef42b7686ead9209802da9db498"/></dir><file name="Tabs.php" hash="f8ff0828f398883a6b72e3330bb67198"/></dir><file name="Edit.php" hash="9df63601f5012892b9ee7fe7383b9fa1"/><file name="Grid.php" hash="a4ca1a7ccb04c86696199612f4e3dde0"/></dir><file name="Deliveries.php" hash="6284c9021fc5e6a4a997d7d3dc4c62fb"/></dir><file name="Display.php" hash="28f7010da385a8d73b626b82b76011be"/></dir><dir name="Helper"><file name="Data.php" hash="bc432e37d4f2e4a90a0cc31e485e11e9"/></dir><dir name="Model"><file name="Deliveries.php" hash="96fcc7a9234fd946dbe1d0f4644f2c27"/><dir name="Mysql4"><dir name="Deliveries"><file name="Collection.php" hash="980989a78a8808fac57ddfd146f790d2"/></dir><file name="Deliveries.php" hash="b152a916d7f0bba455da7c69691f1a68"/></dir><dir name="Resource"><dir name="Deliveries"><file name="Collection.php" hash="4094fd6cff794b28355ab4d3238367a2"/></dir><file name="Deliveries.php" hash="f92b784e779194b73f8b928b5a2b83d9"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="DeliveriesController.php" hash="03421338b05c28a02ecb554bb09a21ff"/></dir><file name="IndexController.php" hash="94cf594e39f7a55e49254f6637fdb724"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f5a41b6f6065db31792bef9bb7fd06cb"/><file name="config.xml" hash="b338da35ace2bf70eb1891dbba54504e"/><file name="system.xml" hash="cea0c48c0905a65976c07bfa9badd9db"/></dir><dir name="sql"><dir name="estimateddeliverydate_setup"><file name="install-0.1.0.php" hash="f52380d9f97bf6b8667c33bfa1507c20"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="estimateddeliverydate.xml" hash="e137375f417f1ebc51f702b37a9bbfc6"/></dir><dir name="template"><dir name="estimateddeliverydate"><dir name="catalog"><dir name="product"><dir name="view"><file name="estimateddeliverydate.phtml" hash="eacb8f77e3c02b07f46708d6a6586cba"/><file name="estimateddeliverydate_simple.phtml" hash="694fdbb15515c283fd923173c999f39c"/></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mageweb"><dir name="js"><dir name="undottitled"><dir name="estimateddeliverydate"><file name="estimateddeliverydate.js" hash="e9e0fd7b7a3b29d14e6d3128e96bdd9c"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Undottitled_Estimateddeliverydate.xml" hash="5f93ba5d50b3f9b5f73aafbc46141857"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><package><name>Mage_Core_Modules</name><channel>community</channel><min>1.5.0</min><max>1.7</max></package></required></dependencies>
22
  </package>