Sitewards_B2BProfessional - Version 2.2.4

Version Notes

Fixed installing problem with compilation mod enabled.
Now Language settings, Activate by category, Activate by customer group settings are hidden if they are not enabled.
Now extension requires minimum php version 5.3.

Download this release

Release Info

Developer Sitewards Magento Team
Extension Sitewards_B2BProfessional
Version 2.2.4
Comparing to
See all releases


Code changes from version 2.2.3 to 2.2.4

app/code/community/Sitewards/B2BProfessional/Test/Helper/Data.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Test for class Sitewards_B2BProfessional_Helper_Data
4
+ *
5
+ * @category Sitewards
6
+ * @package Sitewards_B2BProfessional
7
+ * @copyright Copyright (c) 2013 Sitewards GmbH (http://www.sitewards.com/)
8
+ */
9
+ class Sitewards_B2BProfessional_Test_Helper_Data extends EcomDev_PHPUnit_Test_Case
10
+ {
11
+ /**
12
+ * Tests is extension active
13
+ *
14
+ * @test
15
+ * @loadFixture
16
+ */
17
+ public function testIsExtensionActive()
18
+ {
19
+ $this->assertTrue(
20
+ Mage::helper('b2bprofessional')->isExtensionActive(),
21
+ "Extension is not active please check config"
22
+ );
23
+ }
24
+ }
app/code/community/Sitewards/B2BProfessional/Test/Helper/Data/fixtures/testIsExtensionActive.yaml ADDED
@@ -0,0 +1,2 @@
 
 
1
+ config:
2
+ default/b2bprofessional/generalsettings/active: 1
app/code/community/Sitewards/B2BProfessional/etc/config.xml CHANGED
@@ -18,7 +18,7 @@
18
  <config>
19
  <modules>
20
  <Sitewards_B2BProfessional>
21
- <version>2.2.3</version>
22
  </Sitewards_B2BProfessional>
23
  </modules>
24
  <global>
@@ -47,6 +47,47 @@
47
  </rewrite>
48
  </reports>
49
  </blocks>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  <events>
51
  <controller_action_predispatch>
52
  <observers>
@@ -89,47 +130,6 @@
89
  </observers>
90
  </core_layout_block_create_after>
91
  </events>
92
- <helpers>
93
- <b2bprofessional>
94
- <class>Sitewards_B2BProfessional_Helper</class>
95
- </b2bprofessional>
96
- <catalog>
97
- <rewrite>
98
- <product_compare>Sitewards_B2BProfessional_Helper_Catalog_Product_Compare</product_compare>
99
- </rewrite>
100
- </catalog>
101
- </helpers>
102
- <models>
103
- <b2bprofessional>
104
- <class>Sitewards_B2BProfessional_Model</class>
105
- </b2bprofessional>
106
- </models>
107
- <rewrite>
108
- <sitewards_B2BProfessional_cart>
109
- <from><![CDATA[#^/checkout/cart/#]]></from>
110
- <to>B2BProfessional/cart/</to>
111
- </sitewards_B2BProfessional_cart>
112
- </rewrite>
113
- </global>
114
- <frontend>
115
- <routers>
116
- <Sitewards_B2BProfessional>
117
- <use>standard</use>
118
- <args>
119
- <module>Sitewards_B2BProfessional</module>
120
- <frontName>B2BProfessional</frontName>
121
- </args>
122
- </Sitewards_B2BProfessional>
123
- </routers>
124
- <translate>
125
- <modules>
126
- <Sitewards_B2BProfessional>
127
- <files>
128
- <default>Sitewards_B2BProfessional.csv</default>
129
- </files>
130
- </Sitewards_B2BProfessional>
131
- </modules>
132
- </translate>
133
  </frontend>
134
  <adminhtml>
135
  <translate>
@@ -142,6 +142,13 @@
142
  </modules>
143
  </translate>
144
  </adminhtml>
 
 
 
 
 
 
 
145
  <default>
146
  <b2bprofessional>
147
  <generalsettings>
18
  <config>
19
  <modules>
20
  <Sitewards_B2BProfessional>
21
+ <version>2.2.4</version>
22
  </Sitewards_B2BProfessional>
23
  </modules>
24
  <global>
47
  </rewrite>
48
  </reports>
49
  </blocks>
50
+ <helpers>
51
+ <b2bprofessional>
52
+ <class>Sitewards_B2BProfessional_Helper</class>
53
+ </b2bprofessional>
54
+ <catalog>
55
+ <rewrite>
56
+ <product_compare>Sitewards_B2BProfessional_Helper_Catalog_Product_Compare</product_compare>
57
+ </rewrite>
58
+ </catalog>
59
+ </helpers>
60
+ <models>
61
+ <b2bprofessional>
62
+ <class>Sitewards_B2BProfessional_Model</class>
63
+ </b2bprofessional>
64
+ </models>
65
+ <rewrite>
66
+ <sitewards_B2BProfessional_cart>
67
+ <from><![CDATA[#^/checkout/cart/#]]></from>
68
+ <to>B2BProfessional/cart/</to>
69
+ </sitewards_B2BProfessional_cart>
70
+ </rewrite>
71
+ </global>
72
+ <frontend>
73
+ <routers>
74
+ <Sitewards_B2BProfessional>
75
+ <use>standard</use>
76
+ <args>
77
+ <module>Sitewards_B2BProfessional</module>
78
+ <frontName>B2BProfessional</frontName>
79
+ </args>
80
+ </Sitewards_B2BProfessional>
81
+ </routers>
82
+ <translate>
83
+ <modules>
84
+ <Sitewards_B2BProfessional>
85
+ <files>
86
+ <default>Sitewards_B2BProfessional.csv</default>
87
+ </files>
88
+ </Sitewards_B2BProfessional>
89
+ </modules>
90
+ </translate>
91
  <events>
92
  <controller_action_predispatch>
93
  <observers>
130
  </observers>
131
  </core_layout_block_create_after>
132
  </events>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  </frontend>
134
  <adminhtml>
135
  <translate>
142
  </modules>
143
  </translate>
144
  </adminhtml>
145
+ <phpunit>
146
+ <suite>
147
+ <modules>
148
+ <Sitewards_B2BProfessional/>
149
+ </modules>
150
+ </suite>
151
+ </phpunit>
152
  <default>
153
  <b2bprofessional>
154
  <generalsettings>
app/code/community/Sitewards/B2BProfessional/etc/system.xml CHANGED
@@ -123,6 +123,7 @@
123
  <show_in_website>1</show_in_website>
124
  <show_in_store>1</show_in_store>
125
  <comment><![CDATA[Text to be displayed instead of the prices.<br />Only visible when language override is active.<br />Otherwise text in language file ist used.<br />May contain HTML]]></comment>
 
126
  </logintext>
127
  <errortext translate="label comment">
128
  <label>Custom text for checkout-error</label>
@@ -132,6 +133,7 @@
132
  <show_in_website>1</show_in_website>
133
  <show_in_store>1</show_in_store>
134
  <comment><![CDATA[Text to be displayed when customer is not allowed to checkout product.<br />Only visible when language override is active.<br />Otherwise text in language file is used.<br />May contain HTML]]></comment>
 
135
  </errortext>
136
  <requireloginmessage translate="label comment">
137
  <label>Require User Login - Message</label>
@@ -141,6 +143,7 @@
141
  <show_in_website>1</show_in_website>
142
  <show_in_store>1</show_in_store>
143
  <comment><![CDATA[Text to be displayed when the store requires a user to login to view pages<br />Only visible when language override is active.<br />Otherwise text in language file is used.<br />May contain HTML]]></comment>
 
144
  </requireloginmessage>
145
  </fields>
146
  </languagesettings>
@@ -171,6 +174,7 @@
171
  <show_in_website>1</show_in_website>
172
  <show_in_store>1</show_in_store>
173
  <comment><![CDATA[Select categories for which the extension should be active.<br />Hold down Ctrl-key for multiple selection.<br />Be aware, that a product with multiple categories can not be checked out if one of its categories is selected here.]]></comment>
 
174
  </activecategories>
175
  </fields>
176
  </activatebycategorysettings>
@@ -202,6 +206,7 @@
202
  <show_in_website>1</show_in_website>
203
  <show_in_store>1</show_in_store>
204
  <comment><![CDATA[Select customer groups for which the extension should be active.<br />Hold down Ctrl-key for multiple selection.]]></comment>
 
205
  </activecustomers>
206
  </fields>
207
  </activatebycustomersettings>
123
  <show_in_website>1</show_in_website>
124
  <show_in_store>1</show_in_store>
125
  <comment><![CDATA[Text to be displayed instead of the prices.<br />Only visible when language override is active.<br />Otherwise text in language file ist used.<br />May contain HTML]]></comment>
126
+ <depends><languageoverride>1</languageoverride></depends>
127
  </logintext>
128
  <errortext translate="label comment">
129
  <label>Custom text for checkout-error</label>
133
  <show_in_website>1</show_in_website>
134
  <show_in_store>1</show_in_store>
135
  <comment><![CDATA[Text to be displayed when customer is not allowed to checkout product.<br />Only visible when language override is active.<br />Otherwise text in language file is used.<br />May contain HTML]]></comment>
136
+ <depends><languageoverride>1</languageoverride></depends>
137
  </errortext>
138
  <requireloginmessage translate="label comment">
139
  <label>Require User Login - Message</label>
143
  <show_in_website>1</show_in_website>
144
  <show_in_store>1</show_in_store>
145
  <comment><![CDATA[Text to be displayed when the store requires a user to login to view pages<br />Only visible when language override is active.<br />Otherwise text in language file is used.<br />May contain HTML]]></comment>
146
+ <depends><languageoverride>1</languageoverride></depends>
147
  </requireloginmessage>
148
  </fields>
149
  </languagesettings>
174
  <show_in_website>1</show_in_website>
175
  <show_in_store>1</show_in_store>
176
  <comment><![CDATA[Select categories for which the extension should be active.<br />Hold down Ctrl-key for multiple selection.<br />Be aware, that a product with multiple categories can not be checked out if one of its categories is selected here.]]></comment>
177
+ <depends><activebycategory>1</activebycategory></depends>
178
  </activecategories>
179
  </fields>
180
  </activatebycategorysettings>
206
  <show_in_website>1</show_in_website>
207
  <show_in_store>1</show_in_store>
208
  <comment><![CDATA[Select customer groups for which the extension should be active.<br />Hold down Ctrl-key for multiple selection.]]></comment>
209
+ <depends><activebycustomer>1</activebycustomer></depends>
210
  </activecustomers>
211
  </fields>
212
  </activatebycustomersettings>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sitewards_B2BProfessional</name>
4
- <version>2.2.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
@@ -20,12 +20,14 @@ Features of the B2BProfessional Extension:&#xD;
20
  &#xB7; Activation for specific product categories&#xD;
21
  &#xB7; Activation for specific customer groups&#xD;
22
  &#xB7; Optional require login to access store</description>
23
- <notes>Changed dependency from version 0.4.6 to maximum version of Netzarbeiter_CustomerActivation extension.&#xD;
 
 
24
  </notes>
25
  <authors><author><name>Sitewards Magento Team</name><user>sitewards</user><email>magento@sitewards.com</email></author></authors>
26
- <date>2013-06-21</date>
27
- <time>14:32:18</time>
28
- <contents><target name="magecommunity"><dir name="Sitewards"><dir name="B2BProfessional"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="List.php" hash="4c8e213915c4c7c177b503916921a392"/><file name="New.php" hash="3da0bc1cb1bd562f1a41e2169f6da061"/><dir name="Widget"><file name="New.php" hash="f263ee41756685c78959082ff2a38b5a"/></dir></dir></dir><dir name="Checkout"><file name="Links.php" hash="f88d8e603f98a282b2d6f678f03d974d"/></dir><dir name="Reports"><dir name="Product"><file name="Compared.php" hash="abe90ddad8722f7f3b41eef2cf9d7411"/><file name="Viewed.php" hash="c89044322ca310b450e7e8b95c17de69"/><dir name="Widget"><file name="Compared.php" hash="427bd3640335044572ccb4a6966d1d31"/><file name="Viewed.php" hash="f943f7cff7e0858c23527bcdf82f4b19"/></dir></dir></dir></dir><dir name="Docs"><file name="Sitewards B2B Professional_Deutsch V4.pdf" hash="69c5aabb9eba3cb4d060206f68bfffa9"/><file name="Sitewards B2B Professional_ENG_V4.pdf" hash="ec57137d81856521207e5014dfad133d"/></dir><dir name="Helper"><dir name="Catalog"><dir name="Product"><file name="Compare.php" hash="29d7ee722666ceeed48ac0e43c937b1d"/></dir></dir><file name="Category.php" hash="c7ac2551cc37516ea44002b08021c27b"/><file name="Core.php" hash="8a9ed86d5aead09fad8a6c372904005d"/><file name="Customer.php" hash="6664c3fa3745cd1df1220bc4bff02d0a"/><file name="Data.php" hash="91d9e909fe1e5a4af3e8c6b2fef1e448"/><file name="Messages.php" hash="54ce3aae10919721bb3545988d6aa564"/><file name="Redirects.php" hash="5670879b38bc078e36fb32f739b3a1f5"/><file name="Replacements.php" hash="cb5b3162388618b1d8c512c5b83918a0"/></dir><dir name="Model"><file name="Customer.php" hash="ceb9778dfb4725c8cd087f2595b3ccff"/><file name="Observer.php" hash="ac18fa24b508234a8d4a9cb4ce23769b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Category.php" hash="e9642d20bb0bc0f542b07ecdf8d021c5"/><file name="Identifiers.php" hash="018e168fb31fffa33b3889612e0336be"/><file name="Page.php" hash="042ef4e679e8e8c7b6a2c696119712b3"/><file name="Tags.php" hash="af72690991f6f91a5aecb5f5fd7f621a"/></dir></dir></dir></dir><dir name="controllers"><file name="CartController.php" hash="cdd3521bb44a4fa3d8dd12b34535a740"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c7cde3689b2da69458c39c3508f7e1a"/><file name="config.xml" hash="83fef67d44bf0e84a95267034858fe7c"/><file name="system.xml" hash="4fab54ee0344d8186a4f56081b714a9f"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sitewards_B2BProfessional.xml" hash="3eb7e7a0f796d39faf60cf3f30c40ff2"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Sitewards_B2BProfessional.csv" hash="065dc3c6b906c8b2e4a974829ed6577a"/></dir><dir name="en_US"><file name="Sitewards_B2BProfessional.csv" hash="5b6a370b2c2790ff1cb3954b8180ff81"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sitewards"><dir name="b2bprofessional"><dir name="catalog"><dir name="product"><dir name="view"><dir name="type"><dir name="bundle"><dir name="option"><file name="checkbox.phtml" hash="43233f86f7e8529e5bc997f448ca250a"/><file name="multi.phtml" hash="43797266868e249b34a228a4ad9797e7"/><file name="radio.phtml" hash="770363afcc009271d58a15f02ae4fdbe"/><file name="select.phtml" hash="47b3b35fe986ab31fdc8e239e8ec9bb1"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
29
  <compatible/>
30
- <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Netzarbeiter_CustomerActivation</name><channel>community</channel><min>0.3.0</min><max/></package></required></dependencies>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sitewards_B2BProfessional</name>
4
+ <version>2.2.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/gpl-license.php">GPL</license>
7
  <channel>community</channel>
20
  &#xB7; Activation for specific product categories&#xD;
21
  &#xB7; Activation for specific customer groups&#xD;
22
  &#xB7; Optional require login to access store</description>
23
+ <notes>Fixed installing problem with compilation mod enabled.&#xD;
24
+ Now Language settings, Activate by category, Activate by customer group settings are hidden if they are not enabled.&#xD;
25
+ Now extension requires minimum php version 5.3.&#xD;
26
  </notes>
27
  <authors><author><name>Sitewards Magento Team</name><user>sitewards</user><email>magento@sitewards.com</email></author></authors>
28
+ <date>2013-07-05</date>
29
+ <time>22:03:24</time>
30
+ <contents><target name="magecommunity"><dir name="Sitewards"><dir name="B2BProfessional"><dir name="Block"><dir name="Catalog"><dir name="Product"><file name="List.php" hash="4c8e213915c4c7c177b503916921a392"/><file name="New.php" hash="3da0bc1cb1bd562f1a41e2169f6da061"/><dir name="Widget"><file name="New.php" hash="f263ee41756685c78959082ff2a38b5a"/></dir></dir></dir><dir name="Checkout"><file name="Links.php" hash="f88d8e603f98a282b2d6f678f03d974d"/></dir><dir name="Reports"><dir name="Product"><file name="Compared.php" hash="abe90ddad8722f7f3b41eef2cf9d7411"/><file name="Viewed.php" hash="c89044322ca310b450e7e8b95c17de69"/><dir name="Widget"><file name="Compared.php" hash="427bd3640335044572ccb4a6966d1d31"/><file name="Viewed.php" hash="f943f7cff7e0858c23527bcdf82f4b19"/></dir></dir></dir></dir><dir name="Docs"><file name="Sitewards B2B Professional_Deutsch V4.pdf" hash="69c5aabb9eba3cb4d060206f68bfffa9"/><file name="Sitewards B2B Professional_ENG_V4.pdf" hash="ec57137d81856521207e5014dfad133d"/></dir><dir name="Helper"><dir name="Catalog"><dir name="Product"><file name="Compare.php" hash="29d7ee722666ceeed48ac0e43c937b1d"/></dir></dir><file name="Category.php" hash="c7ac2551cc37516ea44002b08021c27b"/><file name="Core.php" hash="8a9ed86d5aead09fad8a6c372904005d"/><file name="Customer.php" hash="6664c3fa3745cd1df1220bc4bff02d0a"/><file name="Data.php" hash="91d9e909fe1e5a4af3e8c6b2fef1e448"/><file name="Messages.php" hash="54ce3aae10919721bb3545988d6aa564"/><file name="Redirects.php" hash="5670879b38bc078e36fb32f739b3a1f5"/><file name="Replacements.php" hash="cb5b3162388618b1d8c512c5b83918a0"/></dir><dir name="Model"><file name="Customer.php" hash="ceb9778dfb4725c8cd087f2595b3ccff"/><file name="Observer.php" hash="ac18fa24b508234a8d4a9cb4ce23769b"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Category.php" hash="e9642d20bb0bc0f542b07ecdf8d021c5"/><file name="Identifiers.php" hash="018e168fb31fffa33b3889612e0336be"/><file name="Page.php" hash="042ef4e679e8e8c7b6a2c696119712b3"/><file name="Tags.php" hash="af72690991f6f91a5aecb5f5fd7f621a"/></dir></dir></dir></dir><dir name="Test"><dir name="Helper"><dir name="Data"><dir name="fixtures"><file name="testIsExtensionActive.yaml" hash="1597dbaa9909bf2cd6cdc41188d79a40"/></dir></dir><file name="Data.php" hash="19407fd03acd55753b08b472f4004c57"/></dir></dir><dir name="controllers"><file name="CartController.php" hash="cdd3521bb44a4fa3d8dd12b34535a740"/></dir><dir name="etc"><file name="adminhtml.xml" hash="1c7cde3689b2da69458c39c3508f7e1a"/><file name="config.xml" hash="1dd3ba9acbdac40650a5924a079f4da5"/><file name="system.xml" hash="20344173951dcaf070b8882eb97a35eb"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sitewards_B2BProfessional.xml" hash="3eb7e7a0f796d39faf60cf3f30c40ff2"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Sitewards_B2BProfessional.csv" hash="065dc3c6b906c8b2e4a974829ed6577a"/></dir><dir name="en_US"><file name="Sitewards_B2BProfessional.csv" hash="5b6a370b2c2790ff1cb3954b8180ff81"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sitewards"><dir name="b2bprofessional"><dir name="catalog"><dir name="product"><dir name="view"><dir name="type"><dir name="bundle"><dir name="option"><file name="checkbox.phtml" hash="43233f86f7e8529e5bc997f448ca250a"/><file name="multi.phtml" hash="43797266868e249b34a228a4ad9797e7"/><file name="radio.phtml" hash="770363afcc009271d58a15f02ae4fdbe"/><file name="select.phtml" hash="47b3b35fe986ab31fdc8e239e8ec9bb1"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target></contents>
31
  <compatible/>
32
+ <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php><package><name>Netzarbeiter_CustomerActivation</name><channel>community</channel><min>0.3.0</min><max/></package></required></dependencies>
33
  </package>