Version Notes
Checkout tracking updates
Download this release
Release Info
Developer | EasySize IVS |
Extension | easysize |
Version | 1.3.7 |
Comparing to | |
See all releases |
Code changes from version 1.3.6 to 1.3.7
- app/code/community/EasySize/SizeGuide/Model/Observer.php +9 -1
- app/code/community/EasySize/SizeGuide/etc/config.xml +2 -2
- app/code/community/EasySize/SizeGuide/sql/sizeguide_setup/{install-1.3.6.php → install-1.3.7.php} +0 -0
- app/design/frontend/base/default/template/sizeguide/easysize.phtml +12 -3
- package.xml +5 -5
app/code/community/EasySize/SizeGuide/Model/Observer.php
CHANGED
@@ -23,7 +23,15 @@ class EasySize_SizeGuide_Model_Observer {
|
|
23 |
|
24 |
foreach ($item['attributes_info'] as $value) {
|
25 |
if (in_array($value['label'], $size_attributes)) {
|
26 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
28 |
curl_exec($curl);
|
29 |
curl_close($curl);
|
23 |
|
24 |
foreach ($item['attributes_info'] as $value) {
|
25 |
if (in_array($value['label'], $size_attributes)) {
|
26 |
+
$params[] = "a=24";
|
27 |
+
$params[] = "v=".urlencode($value['value']);
|
28 |
+
$params[] = "v3=".urlencode($order->getIncrementId());
|
29 |
+
if($order->getCustomerId()) {
|
30 |
+
$params[] = "v4=".urlencode($order->getCustomerId());
|
31 |
+
}
|
32 |
+
$params[] = "pv={$items_in_cart->$item['simple_sku']}";
|
33 |
+
$params = implode("&", $params);
|
34 |
+
$curl = curl_init("https://popup.easysize.me/collect?${params}");
|
35 |
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
36 |
curl_exec($curl);
|
37 |
curl_close($curl);
|
app/code/community/EasySize/SizeGuide/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<EasySize_SizeGuide>
|
5 |
-
<version>1.3.
|
6 |
</EasySize_SizeGuide>
|
7 |
</modules>
|
8 |
|
@@ -105,4 +105,4 @@
|
|
105 |
</sizeguide_setup>
|
106 |
</resources>
|
107 |
</global>
|
108 |
-
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<EasySize_SizeGuide>
|
5 |
+
<version>1.3.7</version>
|
6 |
</EasySize_SizeGuide>
|
7 |
</modules>
|
8 |
|
105 |
</sizeguide_setup>
|
106 |
</resources>
|
107 |
</global>
|
108 |
+
</config>
|
app/code/community/EasySize/SizeGuide/sql/sizeguide_setup/{install-1.3.6.php → install-1.3.7.php}
RENAMED
File without changes
|
app/design/frontend/base/default/template/sizeguide/easysize.phtml
CHANGED
@@ -4,11 +4,20 @@
|
|
4 |
if(isset($easysize_attributes_decoded) && isset($easysize_attributes_decoded->product_id)): ?>
|
5 |
<script type="text/javascript" src="https://webapp.easysize.me/web_app_v1.0/js/easysize.js"></script>
|
6 |
<script>
|
7 |
-
|
8 |
-
var EasySize = new EasySize(<?php echo $easysize_attributes; ?>);
|
9 |
EasySize.start();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
} catch(e) {
|
11 |
console.log(e);
|
12 |
}
|
13 |
</script>
|
14 |
-
<?php endif; ?>
|
4 |
if(isset($easysize_attributes_decoded) && isset($easysize_attributes_decoded->product_id)): ?>
|
5 |
<script type="text/javascript" src="https://webapp.easysize.me/web_app_v1.0/js/easysize.js"></script>
|
6 |
<script>
|
7 |
+
function initEasySize() {
|
8 |
+
var EasySize = new window.EasySize(<?php echo $easysize_attributes; ?>);
|
9 |
EasySize.start();
|
10 |
+
}
|
11 |
+
try {
|
12 |
+
if(EasySize) {
|
13 |
+
initEasySize();
|
14 |
+
} else {
|
15 |
+
setTimeout(function() {
|
16 |
+
initEasySize();
|
17 |
+
}, 1000);
|
18 |
+
}
|
19 |
} catch(e) {
|
20 |
console.log(e);
|
21 |
}
|
22 |
</script>
|
23 |
+
<?php endif; ?>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>easysize</name>
|
4 |
-
<version>1.3.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.easysize.me/terms-of-use/">EasySize</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>EasySize sizing solution</summary>
|
10 |
<description>EasySize was founded in October 2014 by Gulnaz Khusainova and is currently based in Copenhagen, Denmark. EasySize’s aim is to improve the online shopping experience for customers and empower retailers to grow their online businesses by using smart technology to accurately understand what a customer’s ideal fit is. To date, EasySize has helped over 400,000 unique users find their ideal fit all over the world. Please visit easysize.me for more information.</description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>EasySize IVS</name><user>EasySize</user><email>gk@easysize.me</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="EasySize"><dir name="SizeGuide"><dir name="Block"><file name="Data.php" hash="f0db0b5c6ddb7942a7d8ad4df847fe2f"/></dir><dir name="Helper"><file name="Data.php" hash="e1f1c548146a5eedc58222620232a758"/></dir><dir name="Model"><file name="Observer.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>easysize</name>
|
4 |
+
<version>1.3.7</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://www.easysize.me/terms-of-use/">EasySize</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>EasySize sizing solution</summary>
|
10 |
<description>EasySize was founded in October 2014 by Gulnaz Khusainova and is currently based in Copenhagen, Denmark. EasySize’s aim is to improve the online shopping experience for customers and empower retailers to grow their online businesses by using smart technology to accurately understand what a customer’s ideal fit is. To date, EasySize has helped over 400,000 unique users find their ideal fit all over the world. Please visit easysize.me for more information.</description>
|
11 |
+
<notes>Checkout tracking updates</notes>
|
12 |
<authors><author><name>EasySize IVS</name><user>EasySize</user><email>gk@easysize.me</email></author></authors>
|
13 |
+
<date>2016-10-17</date>
|
14 |
+
<time>13:19:45</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="EasySize"><dir name="SizeGuide"><dir name="Block"><file name="Data.php" hash="f0db0b5c6ddb7942a7d8ad4df847fe2f"/></dir><dir name="Helper"><file name="Data.php" hash="e1f1c548146a5eedc58222620232a758"/></dir><dir name="Model"><file name="Observer.php" hash="b8828cd8338e1f9c4dde4d3a330321ab"/><dir name="Resource"><file name="Setup.php" hash="db68d16089806da3849ab919e4e35a01"/></dir><file name="ShopAttributes.php" hash="f53c64e27f9a3c7f2b2a11ea74afe01e"/></dir><dir name="etc"><file name="config.xml" hash="7ba866abaa6e3b0a5af9dca8be333a0a"/><file name="system.xml" hash="3b9d574c828581df0c306608eb0aeae1"/></dir><dir name="sql"><dir name="sizeguide_setup"><file name="install-1.3.7.php" hash="f105323c8b2ab85bcf002fa382b0ad00"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sizeguide"><file name="easysize.phtml" hash="d24ea6c57ef8c630e56204147bbc4adc"/><file name="sizefilter.phtml" hash="1fa6522b7f6482c9bdf42c4360b9b801"/></dir></dir><dir name="layout"><file name="sizeguide.xml" hash="abb47cb6331cc1271de76dd485bc374f"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="EasySize_SizeGuide.xml" hash="2397289fc71f8ddb23dec37aefdf4779"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="easysize"><dir name="css"><file name="easysize.sizefilter.css" hash="939a9901108e5daa86252cd98d8b9824"/></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|