Version Notes
Fixing option values sort order
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Beecoder_Beeshopy |
| Version | 2.7.1 |
| Comparing to | |
| See all releases | |
Code changes from version 2.7.0 to 2.7.1
app/code/community/Beecoder/Beeshopy/Model/Api.php
CHANGED
|
@@ -74,7 +74,6 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
|
|
| 74 |
'title' => $product->getName()
|
| 75 |
);
|
| 76 |
}
|
| 77 |
-
|
| 78 |
return $result;
|
| 79 |
}
|
| 80 |
|
|
@@ -111,7 +110,7 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
|
|
| 111 |
/* Used to know if module is installed*/
|
| 112 |
public function checkModule()
|
| 113 |
{
|
| 114 |
-
return array("api_version" => '2.7.
|
| 115 |
}
|
| 116 |
|
| 117 |
/*Auxiliar functions*/
|
|
@@ -226,20 +225,26 @@ class Beecoder_Beeshopy_Model_Api extends Mage_Catalog_Model_Api_Resource
|
|
| 226 |
$labels = $attribute->getStoreLabels();
|
| 227 |
$label = $labels[$this->_getStoreId($store)];
|
| 228 |
|
|
|
|
| 229 |
$product_attribute = array('mgnt_id' => $code['attribute_id'], 'label' => ($label ? $label : $attribute->getFrontendLabel()), 'position' => $code['position']);
|
| 230 |
/* Calculate price */
|
| 231 |
-
$pos = 1;
|
| 232 |
foreach($code['values'] as $value){
|
| 233 |
if($value['value_index'] == $attr_value) {
|
|
|
|
| 234 |
if($value["is_percent"] == 1){
|
| 235 |
$absolute_price = ($price * $value['pricing_value']) / 100;
|
| 236 |
}else{
|
| 237 |
$absolute_price = $value['pricing_value'];
|
| 238 |
}
|
|
|
|
| 239 |
$difference += $absolute_price;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
$product_attribute['value'] = array('mgnt_id' => $value['value_index'], 'label' => $value['label'], 'pricing_value' => $value['pricing_value'], 'is_percent' => $value['is_percent'], 'position' => $pos, 'absolute_price' => $absolute_price);
|
| 241 |
}
|
| 242 |
-
$pos++;
|
| 243 |
}
|
| 244 |
array_push($configurable_attributes, $product_attribute);
|
| 245 |
}
|
| 74 |
'title' => $product->getName()
|
| 75 |
);
|
| 76 |
}
|
|
|
|
| 77 |
return $result;
|
| 78 |
}
|
| 79 |
|
| 110 |
/* Used to know if module is installed*/
|
| 111 |
public function checkModule()
|
| 112 |
{
|
| 113 |
+
return array("api_version" => '2.7.1', "magento_version" => Mage::getVersion());
|
| 114 |
}
|
| 115 |
|
| 116 |
/*Auxiliar functions*/
|
| 225 |
$labels = $attribute->getStoreLabels();
|
| 226 |
$label = $labels[$this->_getStoreId($store)];
|
| 227 |
|
| 228 |
+
|
| 229 |
$product_attribute = array('mgnt_id' => $code['attribute_id'], 'label' => ($label ? $label : $attribute->getFrontendLabel()), 'position' => $code['position']);
|
| 230 |
/* Calculate price */
|
|
|
|
| 231 |
foreach($code['values'] as $value){
|
| 232 |
if($value['value_index'] == $attr_value) {
|
| 233 |
+
/* Price */
|
| 234 |
if($value["is_percent"] == 1){
|
| 235 |
$absolute_price = ($price * $value['pricing_value']) / 100;
|
| 236 |
}else{
|
| 237 |
$absolute_price = $value['pricing_value'];
|
| 238 |
}
|
| 239 |
+
|
| 240 |
$difference += $absolute_price;
|
| 241 |
+
|
| 242 |
+
/* Position */
|
| 243 |
+
$pos = Mage::getResourceModel('eav/entity_attribute_option_collection')
|
| 244 |
+
->addFieldToFilter('option_id', $attr_value)->load()->getFirstItem()->getData("sort_order");
|
| 245 |
+
|
| 246 |
$product_attribute['value'] = array('mgnt_id' => $value['value_index'], 'label' => $value['label'], 'pricing_value' => $value['pricing_value'], 'is_percent' => $value['is_percent'], 'position' => $pos, 'absolute_price' => $absolute_price);
|
| 247 |
}
|
|
|
|
| 248 |
}
|
| 249 |
array_push($configurable_attributes, $product_attribute);
|
| 250 |
}
|
app/code/community/Beecoder/Beeshopy/changelog.txt
CHANGED
|
@@ -1,5 +1,9 @@
|
|
| 1 |
== Module changelog ==
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
=== 2.7.0 (05-09-12) ===
|
| 4 |
|
| 5 |
* New configurable products system
|
| 1 |
== Module changelog ==
|
| 2 |
|
| 3 |
+
=== 2.7.1 (05-09-12) ===
|
| 4 |
+
|
| 5 |
+
* Fixing option values sort order
|
| 6 |
+
|
| 7 |
=== 2.7.0 (05-09-12) ===
|
| 8 |
|
| 9 |
* New configurable products system
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Beecoder_Beeshopy</name>
|
| 4 |
-
<version>2.7.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -11,11 +11,11 @@ Beeshopy extension for Magento, it allows you to integrates your magento store w
|
|
| 11 |
<description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. 
|
| 12 |

|
| 13 |
It contains a custom API and cart processing.</description>
|
| 14 |
-
<notes>
|
| 15 |
<authors><author><name>Miguel Ángel Martínez Triviño</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
|
| 16 |
<date>2012-05-09</date>
|
| 17 |
-
<time>
|
| 18 |
-
<contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="a40d400b02f73d5b4dea35c348ffee00"/></dir><dir name="Helper"><file name="Data.php" hash="ead88c0b629856526d39e7fb6f3a4ca5"/></dir><dir name="Model"><file name="Api.php" hash="
|
| 19 |
<compatible/>
|
| 20 |
<dependencies/>
|
| 21 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Beecoder_Beeshopy</name>
|
| 4 |
+
<version>2.7.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license>OSL v3.0</license>
|
| 7 |
<channel>community</channel>
|
| 11 |
<description>Custom Module that allows you to connect with beeshopy service and integrates your magento store with Facebook. 
|
| 12 |

|
| 13 |
It contains a custom API and cart processing.</description>
|
| 14 |
+
<notes>Fixing option values sort order</notes>
|
| 15 |
<authors><author><name>Miguel Ángel Martínez Triviño</name><user>auto-converted</user><email>migmartri@gmail.com</email></author></authors>
|
| 16 |
<date>2012-05-09</date>
|
| 17 |
+
<time>14:57:11</time>
|
| 18 |
+
<contents><target name="magecommunity"><dir name="Beecoder"><dir name="Beeshopy"><dir name="Block"><file name="Track.php" hash="a40d400b02f73d5b4dea35c348ffee00"/></dir><dir name="Helper"><file name="Data.php" hash="ead88c0b629856526d39e7fb6f3a4ca5"/></dir><dir name="Model"><file name="Api.php" hash="6f32aaa719da65bc754f013192e4c7fb"/></dir><dir name="controllers"><file name="AdminController.php" hash="1b343fe1ef8ae5fafc5d355844e3f508"/><file name="IndexController.php" hash="bad3391bb742a55a2ee62895cb723e87"/></dir><dir name="etc"><file name="api.xml" hash="507ae656ea724a77def33efd8429d674"/><file name="config.xml" hash="2fcfaeccb838771505e12715c9618c3d"/></dir><file name="changelog.txt" hash="5289e7b8fd1b5467b1e060087b872286"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Beecoder_Beeshopy.xml" hash="55666ef45f08dab44b138e49532ca3b8"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="beeshopy.xml" hash="e4e7f6be0be0ff27b98d8011f3772f56"/></dir><dir name="template"><dir name="beeshopy"><file name="track.phtml" hash="47c95001bb55042c5ae7d8ee4b03cccf"/></dir></dir></dir></dir></dir></target></contents>
|
| 19 |
<compatible/>
|
| 20 |
<dependencies/>
|
| 21 |
</package>
|
