Version Notes
New multisite module
Download this release
Release Info
Developer | addwish |
Extension | addwish |
Version | 0.15.0 |
Comparing to | |
See all releases |
Code changes from version 0.14.0 to 0.15.0
- app/code/local/Addwish/Awext/controllers/IndexController.php +4 -4
- app/design/frontend/base/default/template/addwish/basket-span.phtml +1 -1
- app/design/frontend/base/default/template/addwish/conversion-span.phtml +1 -1
- app/design/frontend/base/default/template/addwish/integrator.phtml +1 -0
- app/design/frontend/base/default/template/addwish/product-span.phtml +4 -4
- package.xml +4 -4
app/code/local/Addwish/Awext/controllers/IndexController.php
CHANGED
@@ -114,12 +114,12 @@ $allowedIps=explode(",",$model->getData('ipaddress'));
|
|
114 |
|
115 |
if (($today > $spcialPriceDateBegin) && ($today < $spcialPriceDateEnd))
|
116 |
{
|
117 |
-
$products_out.= "<price>"
|
118 |
-
$products_out.= "<previousprice>"
|
119 |
}
|
120 |
else
|
121 |
{
|
122 |
-
$products_out.= "<price>"
|
123 |
}
|
124 |
|
125 |
|
@@ -127,7 +127,7 @@ $allowedIps=explode(",",$model->getData('ipaddress'));
|
|
127 |
|
128 |
|
129 |
}else{
|
130 |
-
$products_out.= "<price>"
|
131 |
}
|
132 |
|
133 |
|
114 |
|
115 |
if (($today > $spcialPriceDateBegin) && ($today < $spcialPriceDateEnd))
|
116 |
{
|
117 |
+
$products_out.= "<price>".number_format(Mage::getModel('directory/currency')->formatTxt($specialPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '')."</price>";
|
118 |
+
$products_out.= "<previousprice>".number_format(Mage::getModel('directory/currency')->formatTxt($regularPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '')."</previousprice>";
|
119 |
}
|
120 |
else
|
121 |
{
|
122 |
+
$products_out.= "<price>".number_format(Mage::getModel('directory/currency')->formatTxt($regularPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '')."</price>";
|
123 |
}
|
124 |
|
125 |
|
127 |
|
128 |
|
129 |
}else{
|
130 |
+
$products_out.= "<price>".number_format(Mage::getModel('directory/currency')->formatTxt($regularPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '')."</price>";
|
131 |
}
|
132 |
|
133 |
|
app/design/frontend/base/default/template/addwish/basket-span.phtml
CHANGED
@@ -12,7 +12,7 @@ foreach($cartItems->getData() as $cartProduct){
|
|
12 |
if($product->isVisibleInSiteVisibility()){
|
13 |
?>
|
14 |
<span class="addwish-product"
|
15 |
-
data-unit-price="<?php echo number_format($cartProduct['price'], 2, '.', '');?>"
|
16 |
data-url="<?php echo $product->getProductUrl();?>"
|
17 |
data-productnumber="<?php echo $product->getId();?>"
|
18 |
data-sku="<?php echo $product->getSku();?>"
|
12 |
if($product->isVisibleInSiteVisibility()){
|
13 |
?>
|
14 |
<span class="addwish-product"
|
15 |
+
data-unit-price="<?php echo number_format(Mage::getModel('directory/currency')->formatTxt($cartProduct['price'], array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '');?>"
|
16 |
data-url="<?php echo $product->getProductUrl();?>"
|
17 |
data-productnumber="<?php echo $product->getId();?>"
|
18 |
data-sku="<?php echo $product->getSku();?>"
|
app/design/frontend/base/default/template/addwish/conversion-span.phtml
CHANGED
@@ -15,7 +15,7 @@ foreach($cartItems as $cartProduct){
|
|
15 |
if($product->isVisibleInSiteVisibility()){
|
16 |
?>
|
17 |
<span class="addwish-product"
|
18 |
-
data-unit-price="<?php echo number_format($cartProduct->getData('price'), 2, '.', '');?>"
|
19 |
data-url="<?php echo $product->getProductUrl();?>"
|
20 |
data-productnumber="<?php echo $product->getId();?>"
|
21 |
data-sku="<?php echo $product->getSku();?>"
|
15 |
if($product->isVisibleInSiteVisibility()){
|
16 |
?>
|
17 |
<span class="addwish-product"
|
18 |
+
data-unit-price="<?php echo number_format(Mage::getModel('directory/currency')->formatTxt($cartProduct->getData('price'), array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '');?>"
|
19 |
data-url="<?php echo $product->getProductUrl();?>"
|
20 |
data-productnumber="<?php echo $product->getId();?>"
|
21 |
data-sku="<?php echo $product->getSku();?>"
|
app/design/frontend/base/default/template/addwish/integrator.phtml
CHANGED
@@ -12,6 +12,7 @@ var s = document.getElementsByTagName('script')[0];
|
|
12 |
s.parentNode.insertBefore(aws, s);
|
13 |
})();
|
14 |
</script>
|
|
|
15 |
<?php
|
16 |
}
|
17 |
?>
|
12 |
s.parentNode.insertBefore(aws, s);
|
13 |
})();
|
14 |
</script>
|
15 |
+
<span id="addwish-data" data-formkey="<?php echo Mage::getSingleton('core/session')->getFormKey();?>" style="display:none"></span>
|
16 |
<?php
|
17 |
}
|
18 |
?>
|
app/design/frontend/base/default/template/addwish/product-span.phtml
CHANGED
@@ -43,12 +43,12 @@ if(isset($specialPrice) && $specialPrice>0 && $specialPrice<$regularPrice ){
|
|
43 |
|
44 |
if (($today > $spcialPriceDateBegin) && ($today < $spcialPriceDateEnd))
|
45 |
{
|
46 |
-
echo ' data-price="'
|
47 |
-
echo ' data-previousprice="'
|
48 |
}
|
49 |
else
|
50 |
{
|
51 |
-
echo ' data-price="'
|
52 |
}
|
53 |
|
54 |
|
@@ -56,7 +56,7 @@ if(isset($specialPrice) && $specialPrice>0 && $specialPrice<$regularPrice ){
|
|
56 |
|
57 |
|
58 |
}else{
|
59 |
-
echo ' data-price="'
|
60 |
}
|
61 |
?>
|
62 |
data-productnumber="<?php echo $product->getId();?>"
|
43 |
|
44 |
if (($today > $spcialPriceDateBegin) && ($today < $spcialPriceDateEnd))
|
45 |
{
|
46 |
+
echo ' data-price="'.number_format(Mage::getModel('directory/currency')->formatTxt($specialPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '').'"';
|
47 |
+
echo ' data-previousprice="'.number_format(Mage::getModel('directory/currency')->formatTxt($regularPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '').'"';
|
48 |
}
|
49 |
else
|
50 |
{
|
51 |
+
echo ' data-price="'.number_format(Mage::getModel('directory/currency')->formatTxt($regularPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '').'" ';
|
52 |
}
|
53 |
|
54 |
|
56 |
|
57 |
|
58 |
}else{
|
59 |
+
echo ' data-price="'.number_format(Mage::getModel('directory/currency')->formatTxt($regularPrice, array('display' => Zend_Currency::NO_SYMBOL)), 2, '.', '').'" ';
|
60 |
}
|
61 |
?>
|
62 |
data-productnumber="<?php echo $product->getId();?>"
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>addwish</name>
|
4 |
-
<version>0.
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
@@ -10,9 +10,9 @@
|
|
10 |
<description>New multisite module</description>
|
11 |
<notes>New multisite module</notes>
|
12 |
<authors><author><name>addwish</name><user>addwish</user><email>krj@addwish.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magelocal"><dir name="Addwish"><dir name="Awext"><dir name="Block"><dir name="Adminhtml"><dir name="Awext"><file name="Grid.php" hash="0a9e0cc01157a49a58cddf0ef4eddbad"/><file name="Renderer.php" hash="f5f132bb8089270358be38f9e1fb342d"/><dir name="View"><dir name="Tab"><dir name="Details"><file name="List.php" hash="629a98942f2354a0a10d14e8564fc542"/></dir><file name="Details.php" hash="9431059a450be7a0bb9d69867c2b2b10"/><file name="Form.php" hash="14b1192bea84fbee58e47ff749a004f4"/><dir name="Recommend"><file name="List.php" hash="a8f994f1e5a29abf1f4bbf48e826e1d2"/></dir><file name="Recommend.php" hash="5d4fe965a062adcb51567c93e5adec2f"/><dir name="Search"><file name="List.php" hash="c556a6030e13ae9933bdf16e2ff1ff33"/></dir><file name="Search.php" hash="f194d4fa52fa3e106baa49ffd981de06"/><dir name="Searchconfig"><file name="List.php" hash="6ef64a77cfc24144aa3a85515f6ce22b"/></dir><file name="Searchconfig.php" hash="ce2a937906c8f2d13552d06b8c7b4f69"/></dir><file name="Tabs.php" hash="51d7b9c59068451c28bf614d42fe303d"/></dir><file name="View.php" hash="a5a5aa835bdbaf1102b50e90dec526a8"/></dir><file name="Awext.php" hash="2e46d78792ff55c3285d77780ba3e784"/></dir><file name="Awext.php" hash="5d627b94fe5a46ab3c5a77debbabcff6"/></dir><dir name="Helper"><file name="Data.php" hash="cb01c88cb51f7576e38209e495593b0f"/></dir><dir name="Model"><file name="Awext.php" hash="1925cb6fd94cc7cd6baecda71964a424"/><dir name="Mysql4"><dir name="Awext"><file name="Collection.php" hash="12afe62372c67a5bd9154695c8d095f3"/></dir><file name="Awext.php" hash="acd112233e367ebe80caf114f5dfe653"/></dir><file name="Observer.php" hash="e85fea849acf03c9353e557588e3f21d"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AwextController.php" hash="791cdc06945d68170a621ef672769d60"/></dir><file name="IndexController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>addwish</name>
|
4 |
+
<version>0.15.0</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>GNU General Public License (GPL)</license>
|
7 |
<channel>community</channel>
|
10 |
<description>New multisite module</description>
|
11 |
<notes>New multisite module</notes>
|
12 |
<authors><author><name>addwish</name><user>addwish</user><email>krj@addwish.com</email></author></authors>
|
13 |
+
<date>2016-07-08</date>
|
14 |
+
<time>03:50:43</time>
|
15 |
+
<contents><target name="magelocal"><dir name="Addwish"><dir name="Awext"><dir name="Block"><dir name="Adminhtml"><dir name="Awext"><file name="Grid.php" hash="0a9e0cc01157a49a58cddf0ef4eddbad"/><file name="Renderer.php" hash="f5f132bb8089270358be38f9e1fb342d"/><dir name="View"><dir name="Tab"><dir name="Details"><file name="List.php" hash="629a98942f2354a0a10d14e8564fc542"/></dir><file name="Details.php" hash="9431059a450be7a0bb9d69867c2b2b10"/><file name="Form.php" hash="14b1192bea84fbee58e47ff749a004f4"/><dir name="Recommend"><file name="List.php" hash="a8f994f1e5a29abf1f4bbf48e826e1d2"/></dir><file name="Recommend.php" hash="5d4fe965a062adcb51567c93e5adec2f"/><dir name="Search"><file name="List.php" hash="c556a6030e13ae9933bdf16e2ff1ff33"/></dir><file name="Search.php" hash="f194d4fa52fa3e106baa49ffd981de06"/><dir name="Searchconfig"><file name="List.php" hash="6ef64a77cfc24144aa3a85515f6ce22b"/></dir><file name="Searchconfig.php" hash="ce2a937906c8f2d13552d06b8c7b4f69"/></dir><file name="Tabs.php" hash="51d7b9c59068451c28bf614d42fe303d"/></dir><file name="View.php" hash="a5a5aa835bdbaf1102b50e90dec526a8"/></dir><file name="Awext.php" hash="2e46d78792ff55c3285d77780ba3e784"/></dir><file name="Awext.php" hash="5d627b94fe5a46ab3c5a77debbabcff6"/></dir><dir name="Helper"><file name="Data.php" hash="cb01c88cb51f7576e38209e495593b0f"/></dir><dir name="Model"><file name="Awext.php" hash="1925cb6fd94cc7cd6baecda71964a424"/><dir name="Mysql4"><dir name="Awext"><file name="Collection.php" hash="12afe62372c67a5bd9154695c8d095f3"/></dir><file name="Awext.php" hash="acd112233e367ebe80caf114f5dfe653"/></dir><file name="Observer.php" hash="e85fea849acf03c9353e557588e3f21d"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AwextController.php" hash="791cdc06945d68170a621ef672769d60"/></dir><file name="IndexController.php" hash="ece60b3c518a01bbd71fd7f3a6747095"/></dir><dir name="etc"><file name="config.xml" hash="a1a8d58b8191ad97bff73e32d0db4e45"/></dir><dir name="sql"><dir name="addwish_setup"><file name="mysql4-install-0.0.4.php" hash="77a5d3d50380396c9bd2a9dfdfea8905"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><file name="addwish.css" hash="19749f3be796449de42232fae0d77d2f"/></dir><dir name="images"><dir name="addwish"><file name="addwish.png" hash="a588d24d1919d9206eff40a886b88ef1"/></dir></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="awext.xml" hash="0d94beddc26ad6e8a080ca4f0c8288f8"/></dir><dir name="template"><dir name="awext"><file name="list.phtml" hash="1590b47b152d27472a56731ec48240cb"/><file name="recommendations.phtml" hash="ec0a4cdb4909fed98b08f150d05fde5e"/><file name="search-config.phtml" hash="35e42872b25a359386b1ea239d571947"/><file name="search.phtml" hash="bcf56fe0d8728a45ca5421a0d6273385"/><file name="store-selector.phtml" hash="0807c0434f92c17688b4c4c24dadc7ad"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="awext.xml" hash="55de3edcbfdd85884f58b322f88cfc27"/></dir><dir name="template"><dir name="addwish"><file name="addwish-head.phtml" hash="c5b6fa2cae55ad1ddd4a5c64f8d532f6"/><file name="basket-span.phtml" hash="376f40e9b45308397be1fc407416e9b4"/><file name="conversion-span.phtml" hash="d138217056dfe6e07ec106d8f2c42103"/><file name="integrator.phtml" hash="43fb7dd7c6a56cbbaf25784aa393c110"/><file name="product-span.phtml" hash="b01acc572de58e1cc45182a59eef1362"/><file name="search-result-page.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="upsells-page.phtml" hash="ac41002da8c7bb57233599a00053ef77"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Addwish_Awext.xml" hash="fea2883f86536f249670eea31980f72c"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|