Sitewards_B2BProfessional - Version 2.0.2

Version Notes

Deactivated price difference on configurable dropdown.

Download this release

Release Info

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


Code changes from version 2.0.1 to 2.0.2

app/code/community/Sitewards/B2BProfessional/Block/Product/View/Options/Type/Select.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Sitewards_B2BProfessional_Block_Product_View_Options_Type_Select extends Mage_Catalog_Block_Product_View_Options_Type_Select {
3
+ /**
4
+ * Return formated price
5
+ *
6
+ * @param array $value
7
+ * @return string
8
+ */
9
+ protected function _formatPrice($value, $flag=true) {
10
+ if (!Mage::helper('b2bprofessional')->checkActive($this->getProduct()->getId())) {
11
+ return parent::_formatPrice($value, $flag);
12
+ } else {
13
+ return $this->__('Please login');
14
+ }
15
+ }
16
+ }
app/code/community/Sitewards/B2BProfessional/Block/{Configurable.php → Product/View/Type/Configurable.php} RENAMED
@@ -7,7 +7,7 @@
7
  * @package Sitewards_B2BProfessional
8
  * @copyright Copyright (c) 2012 Sitewards GmbH (http://www.sitewards.com/)
9
  */
10
- class Sitewards_B2BProfessional_Block_Configurable extends Mage_Catalog_Block_Product_View_Type_Configurable {
11
  /**
12
  * Check that the product is active
13
  * - If it is not active the override the price
7
  * @package Sitewards_B2BProfessional
8
  * @copyright Copyright (c) 2012 Sitewards GmbH (http://www.sitewards.com/)
9
  */
10
+ class Sitewards_B2BProfessional_Block_Product_View_Type_Configurable extends Mage_Catalog_Block_Product_View_Type_Configurable {
11
  /**
12
  * Check that the product is active
13
  * - If it is not active the override the price
app/code/community/Sitewards/B2BProfessional/etc/config.xml CHANGED
@@ -18,7 +18,7 @@
18
  <config>
19
  <modules>
20
  <Sitewards_B2BProfessional>
21
- <version>2.0.1</version>
22
  </Sitewards_B2BProfessional>
23
  </modules>
24
  <global>
@@ -35,7 +35,8 @@
35
  <catalog>
36
  <rewrite>
37
  <product_price>Sitewards_B2BProfessional_Block_Price</product_price>
38
- <product_view_type_configurable>Sitewards_B2BProfessional_Block_Configurable</product_view_type_configurable>
 
39
  </rewrite>
40
  </catalog>
41
  <b2bprofessional>
18
  <config>
19
  <modules>
20
  <Sitewards_B2BProfessional>
21
+ <version>2.0.2</version>
22
  </Sitewards_B2BProfessional>
23
  </modules>
24
  <global>
35
  <catalog>
36
  <rewrite>
37
  <product_price>Sitewards_B2BProfessional_Block_Price</product_price>
38
+ <product_view_type_configurable>Sitewards_B2BProfessional_Block_Product_View_Type_Configurable</product_view_type_configurable>
39
+ <product_view_options_type_select>Sitewards_B2BProfessional_Block_Product_View_Options_Type_Select</product_view_options_type_select>
40
  </rewrite>
41
  </catalog>
42
  <b2bprofessional>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sitewards_B2BProfessional</name>
4
- <version>2.0.1</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,11 @@ 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>Re-factored code base.&#xD;
24
- Fixed minor bugs with category and customer group implementation.</notes>
25
  <authors><author><name>Sitewards Magento Team</name><user>sitewards</user><email>magento@sitewards.com</email></author></authors>
26
- <date>2013-01-16</date>
27
- <time>11:46:16</time>
28
- <contents><target name="magecommunity"><dir name="Sitewards"><dir name="B2BProfessional"><dir name="Block"><dir name="Bundle"><dir name="Catalog"><file name="Price.php" hash="29947f4d2db1edb62d31ab2bb26d5612"/><dir name="Product"><dir name="View"><dir name="Type"><dir name="Bundle"><dir name="Option"><file name="Checkbox.php" hash="97e3e7ce97a873c0bf438dcbb9d63538"/><file name="Multi.php" hash="aade197dae894c11df15ded6b90c5fa6"/><file name="Radio.php" hash="6bae85356183c20b8f7327018f4939fe"/><file name="Select.php" hash="b90a778084796edf552d6c87e888404f"/></dir></dir></dir></dir></dir></dir></dir><file name="Configurable.php" hash="f0624a9393a8e6b92d5d09d11c2a5d05"/><file name="Price.php" hash="1826b3c8059e2925a9e2459aab26060c"/></dir><dir name="Helper"><file name="Data.php" hash="fe0d9260ed62e1e6c8ebff94c2c90731"/></dir><dir name="Model"><file name="Customer.php" hash="965cddbd586db90e693e7cef0bfba762"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Category.php" hash="115526ef80ee1f799e0c68f81a45fc9f"/></dir></dir></dir></dir><dir name="controllers"><file name="CartController.php" hash="6dfb9530a9361dd2636ce5229369de3c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4532de80b3439c3047ea70776b8420a5"/><file name="config.xml" hash="d379cdc6cd5c6158a5a674b68315af0f"/><file name="system.xml" hash="f5e551776e65e8079280349ec65261e3"/></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="3b2c1c96558ba09f119f40c69ce7e353"/></dir><dir name="en_US"><file name="Sitewards_B2BProfessional.csv" hash="79a587f13911889839f6aeb93693d0b6"/></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>0.4.1</max></package></required></dependencies>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sitewards_B2BProfessional</name>
4
+ <version>2.0.2</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>Deactivated price difference on configurable dropdown.</notes>
 
24
  <authors><author><name>Sitewards Magento Team</name><user>sitewards</user><email>magento@sitewards.com</email></author></authors>
25
+ <date>2013-03-13</date>
26
+ <time>09:42:08</time>
27
+ <contents><target name="magecommunity"><dir name="Sitewards"><dir name="B2BProfessional"><dir name="Block"><dir name="Bundle"><dir name="Catalog"><file name="Price.php" hash="29947f4d2db1edb62d31ab2bb26d5612"/><dir name="Product"><dir name="View"><dir name="Type"><dir name="Bundle"><dir name="Option"><file name="Checkbox.php" hash="97e3e7ce97a873c0bf438dcbb9d63538"/><file name="Multi.php" hash="aade197dae894c11df15ded6b90c5fa6"/><file name="Radio.php" hash="6bae85356183c20b8f7327018f4939fe"/><file name="Select.php" hash="b90a778084796edf552d6c87e888404f"/></dir></dir></dir></dir></dir></dir></dir><file name="Price.php" hash="1826b3c8059e2925a9e2459aab26060c"/><dir name="Product"><dir name="View"><dir name="Options"><dir name="Type"><file name="Select.php" hash="01e9eb71f9c35a00fc39e375e2335301"/></dir></dir><dir name="Type"><file name="Configurable.php" hash="03aca82552c1cba03b1b243762bd95ad"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="fe0d9260ed62e1e6c8ebff94c2c90731"/></dir><dir name="Model"><file name="Customer.php" hash="965cddbd586db90e693e7cef0bfba762"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Category.php" hash="115526ef80ee1f799e0c68f81a45fc9f"/></dir></dir></dir></dir><dir name="controllers"><file name="CartController.php" hash="6dfb9530a9361dd2636ce5229369de3c"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4532de80b3439c3047ea70776b8420a5"/><file name="config.xml" hash="437e202d8c68da4da79b54674ecd23c1"/><file name="system.xml" hash="f5e551776e65e8079280349ec65261e3"/></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="3b2c1c96558ba09f119f40c69ce7e353"/></dir><dir name="en_US"><file name="Sitewards_B2BProfessional.csv" hash="79a587f13911889839f6aeb93693d0b6"/></dir></target></contents>
28
  <compatible/>
29
  <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>0.4.1</max></package></required></dependencies>
30
  </package>