Version Notes
Totally rewrited extension and now is safer and easy to install.
Download this release
Release Info
| Developer | Bloompa |
| Extension | Bloompcommerce |
| Version | 2.0.3 |
| Comparing to | |
| See all releases | |
Code changes from version 2.0.2 to 2.0.3
- app/code/community/Bloompa/Bloompcommerce/.DS_Store +0 -0
- app/code/community/Bloompa/Bloompcommerce/controllers/.DS_Store +0 -0
- app/code/community/Bloompa/Bloompcommerce/controllers/IndexController.php +9 -5
- app/code/community/Bloompa/Bloompcommerce/etc/config.xml +1 -1
- app/code/community/Bloompa/Bloompcommerce/sql/bloompcommerce_setup/mysql4-install-2.0.0.php +0 -17
- app/etc/modules/Bloompa_Bloompcommerce.xml +1 -1
- package.xml +4 -4
app/code/community/Bloompa/Bloompcommerce/.DS_Store
CHANGED
|
Binary file
|
app/code/community/Bloompa/Bloompcommerce/controllers/.DS_Store
ADDED
|
Binary file
|
app/code/community/Bloompa/Bloompcommerce/controllers/IndexController.php
CHANGED
|
@@ -20,18 +20,22 @@ class Bloompa_Bloompcommerce_IndexController extends Mage_Core_Controller_Front_
|
|
| 20 |
|
| 21 |
$readConnection = Mage::getSingleton('core/resource')->getConnection('core_read');
|
| 22 |
$bc_discount_percent = $readConnection->fetchOne("SELECT value FROM `bloompa_settings` WHERE `param`='discount_value_".strtolower($social_network)."' AND product='BloompCommerce' LIMIT 1");
|
|
|
|
| 23 |
if(!is_null($bc_discount_percent)){
|
| 24 |
|
| 25 |
$new_code = false;
|
| 26 |
-
if(isset($_SESSION['bc_customer_id']))
|
| 27 |
$customer_id = $_SESSION['bc_customer_id'];
|
| 28 |
-
else{
|
|
|
|
| 29 |
$customer_id = Mage::getSingleton('customer/session')->getCustomerId();
|
|
|
|
|
|
|
| 30 |
if(is_null($customer_id) OR empty($customer_id)){
|
| 31 |
$customer_id = 'generic_'.strtoupper(Mage::helper('core')->getRandomString(5));
|
| 32 |
-
$_SESSION['bc_customer_id'] = $customer_id;
|
| 33 |
-
$new_code = true;
|
| 34 |
}
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
|
|
@@ -118,7 +122,7 @@ class Bloompa_Bloompcommerce_IndexController extends Mage_Core_Controller_Front_
|
|
| 118 |
$couponCode = $model->getCode();
|
| 119 |
|
| 120 |
|
| 121 |
-
if(!is_null($couponCode)
|
| 122 |
|
| 123 |
//apply coupon
|
| 124 |
$res1 = Mage::getSingleton("checkout/session")->setData("coupon_code",$couponCode);
|
| 20 |
|
| 21 |
$readConnection = Mage::getSingleton('core/resource')->getConnection('core_read');
|
| 22 |
$bc_discount_percent = $readConnection->fetchOne("SELECT value FROM `bloompa_settings` WHERE `param`='discount_value_".strtolower($social_network)."' AND product='BloompCommerce' LIMIT 1");
|
| 23 |
+
|
| 24 |
if(!is_null($bc_discount_percent)){
|
| 25 |
|
| 26 |
$new_code = false;
|
| 27 |
+
if(isset($_SESSION['bc_customer_id'])){
|
| 28 |
$customer_id = $_SESSION['bc_customer_id'];
|
| 29 |
+
}else{
|
| 30 |
+
|
| 31 |
$customer_id = Mage::getSingleton('customer/session')->getCustomerId();
|
| 32 |
+
$new_code = true;
|
| 33 |
+
|
| 34 |
if(is_null($customer_id) OR empty($customer_id)){
|
| 35 |
$customer_id = 'generic_'.strtoupper(Mage::helper('core')->getRandomString(5));
|
| 36 |
+
$_SESSION['bc_customer_id'] = $customer_id;
|
|
|
|
| 37 |
}
|
| 38 |
+
|
| 39 |
}
|
| 40 |
|
| 41 |
|
| 122 |
$couponCode = $model->getCode();
|
| 123 |
|
| 124 |
|
| 125 |
+
if(!is_null($couponCode)){
|
| 126 |
|
| 127 |
//apply coupon
|
| 128 |
$res1 = Mage::getSingleton("checkout/session")->setData("coupon_code",$couponCode);
|
app/code/community/Bloompa/Bloompcommerce/etc/config.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Bloompa_Bloompcommerce>
|
| 5 |
-
<version>2.0.
|
| 6 |
</Bloompa_Bloompcommerce>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
| 2 |
<config>
|
| 3 |
<modules>
|
| 4 |
<Bloompa_Bloompcommerce>
|
| 5 |
+
<version>2.0.3</version>
|
| 6 |
</Bloompa_Bloompcommerce>
|
| 7 |
</modules>
|
| 8 |
<frontend>
|
app/code/community/Bloompa/Bloompcommerce/sql/bloompcommerce_setup/mysql4-install-2.0.0.php
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
$installer = $this;
|
| 3 |
-
$installer->startSetup();
|
| 4 |
-
$installer->run("
|
| 5 |
-
DROP TABLE IF EXISTS `bloompa_settings`;
|
| 6 |
-
CREATE TABLE `bloompa_settings` (
|
| 7 |
-
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
| 8 |
-
`product` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '',
|
| 9 |
-
`param` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '',
|
| 10 |
-
`value` varchar(255) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT '',
|
| 11 |
-
PRIMARY KEY (`id`)
|
| 12 |
-
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci COMMENT='Tabela com as configurações do bloompa';
|
| 13 |
-
INSERT INTO bloompa_settings(id,product,param,value) VALUES(NULL,'BloompCommerce','token','novo');
|
| 14 |
-
INSERT INTO bloompa_settings(id,product,param,value) VALUES(NULL,'BloompCommerce','discount_value_facebook','5');
|
| 15 |
-
INSERT INTO bloompa_settings(id,product,param,value) VALUES(NULL,'BloompCommerce','discount_value_twitter','5');
|
| 16 |
-
");
|
| 17 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/etc/modules/Bloompa_Bloompcommerce.xml
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
<depends>
|
| 8 |
<Mage_Cms />
|
| 9 |
</depends>
|
| 10 |
-
<version>2.0.
|
| 11 |
</Bloompa_Bloompcommerce>
|
| 12 |
</modules>
|
| 13 |
</config>
|
| 7 |
<depends>
|
| 8 |
<Mage_Cms />
|
| 9 |
</depends>
|
| 10 |
+
<version>2.0.3</version>
|
| 11 |
</Bloompa_Bloompcommerce>
|
| 12 |
</modules>
|
| 13 |
</config>
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Bloompcommerce</name>
|
| 4 |
-
<version>2.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>E-commerce stores face a big problem; low sales conversion rates. BloompCommerce is a social behavior solution to improve e-commerce stores sales conversion rates by utilizing the power of customers social networks.</description>
|
| 11 |
<notes>Totally rewrited extension and now is safer and easy to install.</notes>
|
| 12 |
<authors><author><name>Bloompa</name><user>bloompa</user><email>dev@bloompa.com.br</email></author></authors>
|
| 13 |
-
<date>2013-02-
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Bloompa"><dir name="Bloompcommerce"><dir name="Block"><file name="Bc_Shopping_Cart.php" hash="60430e2631dff2d8ad989a47a1a72076"/><file name="Bc_Social_Expressions.php" hash="261d578ff77edd0dbf85bca3e1de1adf"/><file name="Index.php" hash="bfa3379f338393829181d4da5c8bf9a3"/></dir><dir name="Helper"><file name="Data.php" hash="b86464697e0f7860ce665d3483390222"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="58a8f0b8dc52af2ba6ae52ac9a9df333"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Bloompcommerce</name>
|
| 4 |
+
<version>2.0.3</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://www.gnu.org/licenses/gpl.html">GPL</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>E-commerce stores face a big problem; low sales conversion rates. BloompCommerce is a social behavior solution to improve e-commerce stores sales conversion rates by utilizing the power of customers social networks.</description>
|
| 11 |
<notes>Totally rewrited extension and now is safer and easy to install.</notes>
|
| 12 |
<authors><author><name>Bloompa</name><user>bloompa</user><email>dev@bloompa.com.br</email></author></authors>
|
| 13 |
+
<date>2013-02-18</date>
|
| 14 |
+
<time>20:30:06</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Bloompa"><dir name="Bloompcommerce"><dir name="Block"><file name="Bc_Shopping_Cart.php" hash="60430e2631dff2d8ad989a47a1a72076"/><file name="Bc_Social_Expressions.php" hash="261d578ff77edd0dbf85bca3e1de1adf"/><file name="Index.php" hash="bfa3379f338393829181d4da5c8bf9a3"/></dir><dir name="Helper"><file name="Data.php" hash="b86464697e0f7860ce665d3483390222"/></dir><dir name="Model"><dir name="Resource"><file name="Setup.php" hash="58a8f0b8dc52af2ba6ae52ac9a9df333"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="b68ff14cf03e822e6443e91375b1fd29"/><file name=".DS_Store" hash="6862b007cfa65696f6199b47178c245f"/></dir><dir name="etc"><file name="config.xml" hash="601ca284470ca8b5356c427192b11e4a"/><file name="widget.xml" hash="dec6e8cd0f603a062bc9211ae6d296de"/></dir><dir name="sql"><dir name="bloompcommerce_setup"><file name="mysql4-install-2.0.1.php" hash="0ebbe007f262265afa615e8ca3194ba0"/></dir></dir><file name=".DS_Store" hash="7c47276314aaa4eb692b7fad98e7cc5b"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bloompa_Bloompcommerce.xml" hash="a3e77fc0f784d5a66a6e51ed19708c50"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bloompcommerce.xml" hash="4dd9120b9a929ae6b5a05f2613b59e2a"/></dir><dir name="template"><dir name="bloompcommerce"><file name="cart.phtml" hash="71a6fda93b9e28d0746b24d64c443dd5"/><file name="index.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="load_js.phtml" hash="a7f2eb14c09b8bea06f510e880d9568e"/><file name="order_success.phtml" hash="3b083fdf455f456c94cfbe71afe2f5e0"/><file name="product.phtml" hash="2f97aa0b85f50f2dadd7dca7a956ae89"/><file name="product_header.phtml" hash="4873b2982024be8060bfcce31ec45da3"/></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
| 18 |
</package>
|
