ConvertExperiments_ConvertExperiments - Version 1.0.2

Version Notes

More flexibility for product prices and special prices.

Download this release

Release Info

Developer Convert Experiments
Extension ConvertExperiments_ConvertExperiments
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/ConvertExperiments/ConvertExperiments/Block/ReedScripts.php CHANGED
@@ -101,7 +101,13 @@ class ConvertExperiments_ConvertExperiments_Block_ReedScripts extends Mage_Core_
101
  $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
102
  $attributeSetModel->load($product->getAttributeSetId());
103
  $attributeSetName = $this->_editString($attributeSetModel->getAttributeSetName());
104
- $productPrice = round($product->getMinimalPrice(),2);
 
 
 
 
 
 
105
  if($productType == "grouped") {
106
  $aProductIds = $product->getTypeInstance()->getChildrenIds($product->getId());
107
  $prices = array();
101
  $attributeSetModel = Mage::getModel("eav/entity_attribute_set");
102
  $attributeSetModel->load($product->getAttributeSetId());
103
  $attributeSetName = $this->_editString($attributeSetModel->getAttributeSetName());
104
+
105
+ if($product->_data["special_price"]) {
106
+ $productPrice = round($product->_data["special_price"],2);
107
+ } else {
108
+ $productPrice = round($product->_data["price"],2);
109
+ }
110
+
111
  if($productType == "grouped") {
112
  $aProductIds = $product->getTypeInstance()->getChildrenIds($product->getId());
113
  $prices = array();
package.xml CHANGED
@@ -1,20 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ConvertExperiments_ConvertExperiments</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/MIT">Massachusetts Institute of Technology License (MITL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Convert Experiments is an integration module that outputs necessary frontend JavaScript variables (automatic and user selected) based on Magento attributes. These variables are used in the user's Convert.com account to set up conversion testing.</summary>
10
  <description>This module allows the user to select four unique Magento product attributes on a per-store basis that output values depending on whether the current product has the attribute assigned to it. In addition to the unique attribute variables, the module will automatically print out the product SKU, price, and name. On category pages, it prints out the category name, immediate parent category (if applicable), category ID, and package/theme used. It also places the Convert.com script below these variables for integration with the user's unique account.</description>
11
- <notes>Has been tested for bugs, compatibility, and performance on Magento Community Edition 1.6+ and Magento Enterprise Edition 1.11+. This extension has not been tested in a live environment, so please leave feedback if you run into any issues. The next release will be after Blue Acorn user testing on a live environment. You will need to set your Magento Connect Manager state settings to Beta in order to install this release.&#xD;
12
- &#xD;
13
- *Magento does not officially support PHP versions higher than 5.5 and reference http://www.magentocommerce.com/system-requirements.</notes>
14
  <authors><author><name>Convert Experiments</name><user>convertcom</user><email>dennis@convert.com</email></author></authors>
15
- <date>2016-01-22</date>
16
- <time>02:32:21</time>
17
- <contents><target name="magecommunity"><dir name="ConvertExperiments"><dir name="ConvertExperiments"><dir name="Block"><file name="ReedScripts.php" hash="82a1db13053e5e7bc1063eae9f5e11f6"/><dir name="System"><dir name="Config"><file name="Explanation.php" hash="8f8964850ca49ba7e724a1274752a432"/><file name="Loginlink.php" hash="d910b72310b28d165bcfa2bd94669b40"/><file name=".DS_Store" hash="81e5faa19a0e6df84e68f55aec0633aa"/></dir><file name=".DS_Store" hash="ef3d3e32123fc5caa5619a71cad784f1"/></dir><file name=".DS_Store" hash="c519aea96cd1dc125ccb6ea3e58b6d12"/></dir><dir name="Helper"><file name="Data.php" hash="fd7a1a9097a54c78f8a4cff451b6f156"/></dir><dir name="Model"><file name="DisallowDuplicates.php" hash="0cd0b17adabc7f78a53f823aabfd676c"/><file name="Enabledcheck.php" hash="c4153d47a69a77599b1d5c9b9c68683c"/><dir name="Entity"><dir name="Attribute"><file name="Integer.php" hash="88d27848eca0f5c27ea0275ca3387a0a"/><file name=".DS_Store" hash="1e7063b77b9595ad9b1bd64a610ba496"/></dir><file name="Attribute.php" hash="0fd522b3256e5adee9d56ec3e01a6454"/><file name=".DS_Store" hash="dafa4ff86b720370ffcd68710b9e5cd8"/></dir><file name=".DS_Store" hash="8b4337e4beb09aa7234144bf440c5e98"/></dir><dir name="doc"><file name="changelog.txt" hash="7131a45315bdae4a5f92469ecf64e44e"/><file name="design.txt" hash="cdf0607888eecc22c56e7e77b81565b0"/><file name="makeTar.txt" hash="5c2c3dd9ad70acbbb3a3524d2f52d901"/><file name=".DS_Store" hash="eb70f9938fa753369feafd88c478c14e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c58cb52aaf6fc750eedfc8af30e914f2"/><file name="config.xml" hash="3d0ec1610ce96d91d6614207507d7cb1"/><file name="system.xml" hash="9b80168b9369eebcc0dc30d9d0fe37b7"/><file name=".DS_Store" hash="91a1fef1e4bda5462303427cae2c283a"/></dir><file name=".DS_Store" hash="8422decdf931bb383c3682dd5614679b"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ConvertExperiments_ConvertExperiments.xml" hash="e86fbcffdb12f39f171db94e99a5b436"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="convertexperiments"><file name="convertexperiments.xml" hash="fc9c3d2d72450378e46a7c1447dc8fd5"/></dir></dir><dir name="template"><dir name="convertexperiments"><dir name="convertexperiments"><file name="reedVariables.phtml" hash="fe2156ef72e653e61756c24c1ad97fda"/><file name="sitewideJs.phtml" hash="c52455d4ec90a7cd89d573e876f370ff"/><file name=".DS_Store" hash="26647f6ec54693265c93ab9802eafaa5"/></dir></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>5.1.0</min><max>5.6.99</max></php></required></dependencies>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ConvertExperiments_ConvertExperiments</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/MIT">Massachusetts Institute of Technology License (MITL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Convert Experiments is an integration module that outputs necessary frontend JavaScript variables (automatic and user selected) based on Magento attributes. These variables are used in the user's Convert.com account to set up conversion testing.</summary>
10
  <description>This module allows the user to select four unique Magento product attributes on a per-store basis that output values depending on whether the current product has the attribute assigned to it. In addition to the unique attribute variables, the module will automatically print out the product SKU, price, and name. On category pages, it prints out the category name, immediate parent category (if applicable), category ID, and package/theme used. It also places the Convert.com script below these variables for integration with the user's unique account.</description>
11
+ <notes>More flexibility for product prices and special prices.</notes>
 
 
12
  <authors><author><name>Convert Experiments</name><user>convertcom</user><email>dennis@convert.com</email></author></authors>
13
+ <date>2016-02-19</date>
14
+ <time>17:44:34</time>
15
+ <contents><target name="magecommunity"><dir name="ConvertExperiments"><dir name="ConvertExperiments"><dir name="Block"><file name="ReedScripts.php" hash="b24c07f39820e4d18b8f583e6df3e3a0"/><dir name="System"><dir name="Config"><file name="Explanation.php" hash="8f8964850ca49ba7e724a1274752a432"/><file name="Loginlink.php" hash="d910b72310b28d165bcfa2bd94669b40"/><file name=".DS_Store" hash="81e5faa19a0e6df84e68f55aec0633aa"/></dir><file name=".DS_Store" hash="ef3d3e32123fc5caa5619a71cad784f1"/></dir><file name=".DS_Store" hash="c519aea96cd1dc125ccb6ea3e58b6d12"/></dir><dir name="Helper"><file name="Data.php" hash="fd7a1a9097a54c78f8a4cff451b6f156"/></dir><dir name="Model"><file name="DisallowDuplicates.php" hash="0cd0b17adabc7f78a53f823aabfd676c"/><file name="Enabledcheck.php" hash="c4153d47a69a77599b1d5c9b9c68683c"/><dir name="Entity"><dir name="Attribute"><file name="Integer.php" hash="88d27848eca0f5c27ea0275ca3387a0a"/><file name=".DS_Store" hash="1e7063b77b9595ad9b1bd64a610ba496"/></dir><file name="Attribute.php" hash="0fd522b3256e5adee9d56ec3e01a6454"/><file name=".DS_Store" hash="dafa4ff86b720370ffcd68710b9e5cd8"/></dir><file name=".DS_Store" hash="8b4337e4beb09aa7234144bf440c5e98"/></dir><dir name="doc"><file name="changelog.txt" hash="7131a45315bdae4a5f92469ecf64e44e"/><file name="design.txt" hash="cdf0607888eecc22c56e7e77b81565b0"/><file name="makeTar.txt" hash="5c2c3dd9ad70acbbb3a3524d2f52d901"/><file name=".DS_Store" hash="eb70f9938fa753369feafd88c478c14e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c58cb52aaf6fc750eedfc8af30e914f2"/><file name="config.xml" hash="3d0ec1610ce96d91d6614207507d7cb1"/><file name="system.xml" hash="9b80168b9369eebcc0dc30d9d0fe37b7"/><file name=".DS_Store" hash="91a1fef1e4bda5462303427cae2c283a"/></dir><file name=".DS_Store" hash="8422decdf931bb383c3682dd5614679b"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ConvertExperiments_ConvertExperiments.xml" hash="e86fbcffdb12f39f171db94e99a5b436"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="convertexperiments"><file name="convertexperiments.xml" hash="fc9c3d2d72450378e46a7c1447dc8fd5"/></dir></dir><dir name="template"><dir name="convertexperiments"><dir name="convertexperiments"><file name="reedVariables.phtml" hash="fe2156ef72e653e61756c24c1ad97fda"/><file name="sitewideJs.phtml" hash="c52455d4ec90a7cd89d573e876f370ff"/><file name=".DS_Store" hash="26647f6ec54693265c93ab9802eafaa5"/></dir></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.1.0</min><max>5.6.99</max></php></required></dependencies>
18
  </package>