Version Notes
First Release
Download this release
Release Info
Developer | Magento Core Team |
Extension | winbuyerext |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/local/Winbuyer/Base/Helper/Data.php
CHANGED
@@ -31,7 +31,7 @@ class Winbuyer_Base_Helper_Data extends Mage_Core_Helper_Abstract{
|
|
31 |
wr_linkcolor = \''.addslashes(Mage::getStoreConfig('winbuyer/notrequired_params/links_color')).'\';
|
32 |
|
33 |
wr_kw = \''.addslashes(Mage::registry('current_product')->getName()).'\';
|
34 |
-
wr_domain = \'
|
35 |
wr_creativetype =\'LeaderBoard\';
|
36 |
wr_titletxt = \''.addslashes(Mage::getStoreConfig('winbuyer/notrequired_params/title_text')).'\';
|
37 |
|
31 |
wr_linkcolor = \''.addslashes(Mage::getStoreConfig('winbuyer/notrequired_params/links_color')).'\';
|
32 |
|
33 |
wr_kw = \''.addslashes(Mage::registry('current_product')->getName()).'\';
|
34 |
+
wr_domain = \''.$domain_name.'\';
|
35 |
wr_creativetype =\'LeaderBoard\';
|
36 |
wr_titletxt = \''.addslashes(Mage::getStoreConfig('winbuyer/notrequired_params/title_text')).'\';
|
37 |
|
app/code/local/Winbuyer/Base/Model/Observer.php
CHANGED
@@ -10,6 +10,10 @@ class Winbuyer_Base_Model_Observer
|
|
10 |
return;
|
11 |
}
|
12 |
|
|
|
|
|
|
|
|
|
13 |
$request = Mage::app()->getRequest();
|
14 |
if(!($request->getRouteName() == "catalog"
|
15 |
&& $request->getActionName() == "view"
|
10 |
return;
|
11 |
}
|
12 |
|
13 |
+
if(Mage::getStoreConfig('winbuyer/required_param/enable_winbuyer') != 1){
|
14 |
+
return;
|
15 |
+
}
|
16 |
+
|
17 |
$request = Mage::app()->getRequest();
|
18 |
if(!($request->getRouteName() == "catalog"
|
19 |
&& $request->getActionName() == "view"
|
app/code/local/Winbuyer/Base/etc/config.xml
CHANGED
@@ -43,6 +43,9 @@
|
|
43 |
</global>
|
44 |
<default>
|
45 |
<winbuyer>
|
|
|
|
|
|
|
46 |
<notrequired_params>
|
47 |
<maxresults>10</maxresults>
|
48 |
<width>685</width>
|
43 |
</global>
|
44 |
<default>
|
45 |
<winbuyer>
|
46 |
+
<required_param>
|
47 |
+
<enable_winbuyer>1</enable_winbuyer>
|
48 |
+
</required_param>
|
49 |
<notrequired_params>
|
50 |
<maxresults>10</maxresults>
|
51 |
<width>685</width>
|
app/code/local/Winbuyer/Base/etc/system.xml
CHANGED
@@ -24,6 +24,16 @@
|
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
26 |
<fields>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
<campaign_id>
|
28 |
<label>Campaign Id</label>
|
29 |
<comment>[The Id of your campaign in WinBuyer]</comment>
|
24 |
<show_in_website>1</show_in_website>
|
25 |
<show_in_store>1</show_in_store>
|
26 |
<fields>
|
27 |
+
<enable_winbuyer>
|
28 |
+
<label>Enable WinBuyer Related Product Listing?</label>
|
29 |
+
<comment>[Turn the extension on and off]</comment>
|
30 |
+
<frontend_type>select</frontend_type>
|
31 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
32 |
+
<sort_order>1</sort_order>
|
33 |
+
<show_in_default>1</show_in_default>
|
34 |
+
<show_in_website>1</show_in_website>
|
35 |
+
<show_in_store>1</show_in_store>
|
36 |
+
</enable_winbuyer>
|
37 |
<campaign_id>
|
38 |
<label>Campaign Id</label>
|
39 |
<comment>[The Id of your campaign in WinBuyer]</comment>
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>winbuyerext</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>First
|
12 |
<authors><author><name>WinBuyer</name><user>auto-converted</user><email>sveta@imonlinegroup.com</email></author></authors>
|
13 |
-
<date>2011-11-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Winbuyer_Base.xml" hash="a40b98c949b2499da2456a7425122477"/></dir></dir></dir><dir name="js"><dir name="winbuyer"><file name="jquery-1.4.4.min.js" hash="eef9a6a171184899b08ebd61f1a03425"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="winbuyer.xml" hash="20724fcd9a79efb4fdc39529ba9e1175"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Winbuyer"><dir name="Base"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Form"><dir name="Renderer"><file name="Campaignid.php" hash="bd33d5c90ff0233fa8c03106d20feab9"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>winbuyerext</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>WinBuyer - Related Product Listing</summary>
|
10 |
+
<description>WinBuyer - Related Product Listing</description>
|
11 |
+
<notes>First Release</notes>
|
12 |
<authors><author><name>WinBuyer</name><user>auto-converted</user><email>sveta@imonlinegroup.com</email></author></authors>
|
13 |
+
<date>2011-11-14</date>
|
14 |
+
<time>10:57:15</time>
|
15 |
+
<contents><target name="mage"><dir name="app"><dir name="etc"><dir name="modules"><file name="Winbuyer_Base.xml" hash="a40b98c949b2499da2456a7425122477"/></dir></dir></dir><dir name="js"><dir name="winbuyer"><file name="jquery-1.4.4.min.js" hash="eef9a6a171184899b08ebd61f1a03425"/></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="winbuyer.xml" hash="20724fcd9a79efb4fdc39529ba9e1175"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Winbuyer"><dir name="Base"><dir name="Block"><dir name="Adminhtml"><dir name="Config"><dir name="Form"><dir name="Renderer"><file name="Campaignid.php" hash="bd33d5c90ff0233fa8c03106d20feab9"/></dir></dir></dir></dir></dir><dir name="etc"><file name="config.xml" hash="df79ef5a2ccf1829fbc29136fa08cc07"/><file name="system.xml" hash="ccfb6e57608e794655538f23d087e88e"/></dir><dir name="Helper"><file name="Data.php" hash="1aebbe8657f4b208445d12546e73c65e"/></dir><dir name="Model"><file name="Observer.php" hash="03bd5ae83c75f50b2dfae931cd5728d1"/><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Source"><file name="Fontstyle.php" hash="e5e2566416d3c187f2663719e9484f33"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|