OrganicInternet_SimpleConfigurableProducts - Version 0.7.3

Version Notes

See http://github.com/organicinternet/magento-configurable-simple/ for up-to-date documentation and to contribute!

Download this release

Release Info

Developer Magento Core Team
Extension OrganicInternet_SimpleConfigurableProducts
Version 0.7.3
Comparing to
See all releases


Code changes from version 0.7.2 to 0.7.3

app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Block/Product/View/Attributes.php ADDED
@@ -0,0 +1,12 @@
1
+ <?php
2
+ class OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Attributes extends
3
+ Mage_Catalog_Block_Product_View_Attributes
4
+ {
5
+ #Not sure why mage product_view_attributes block extends Mage_Core_Block_Template instead of say
6
+ #Mage_Catalog_Block_Product_View_Abstract, but it means that setProduct($product) won't work, so
7
+ #I've had to add it here.
8
+ public function setProduct($product) {
9
+ $this->_product = $product;
10
+ return $this;
11
+ }
12
+ }
app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Block/Product/View/Type/Configurable.php CHANGED
@@ -12,7 +12,6 @@ class OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Type
12
//Create the extra price and tier price data/html we need.
13
foreach ($this->getAllowProducts() as $product) {
14
$productId = $product->getId();
15
- #$childProducts[$productId] = $this->_registerJsPrice($this->_convertPrice($product->getFinalPrice()));
16
$childProducts[$productId] = array(
17
"price" => $this->_registerJsPrice($this->_convertPrice($product->getPrice())),
18
"finalPrice" => $this->_registerJsPrice($this->_convertPrice($product->getFinalPrice()))
@@ -27,6 +26,14 @@ class OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Type
27
if (Mage::getStoreConfig('SCP_options/product_page/change_short_description')) {
28
$childProducts[$productId]["shortDescription"] = $product->getShortDescription();
29
}
30
#if image changing is enabled..
31
if (Mage::getStoreConfig('SCP_options/product_page/change_image')) {
32
#but dont bother if fancy image changing is enabled
@@ -69,12 +76,17 @@ class OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Type
69
$config['shortDescription'] = $this->getProduct()->getShortDescription();
70
$config["imageUrl"] = (string)Mage::helper('catalog/image')->init($this->getProduct(), 'image');
71
72
if (Mage::getStoreConfig('SCP_options/product_page/change_image')) {
73
if (Mage::getStoreConfig('SCP_options/product_page/change_image_fancy')) {
74
$childBlock = $this->getLayout()->createBlock('catalog/product_view_media');
75
- $config["imageZoomer"] = $childBlock->setTemplate('catalog/product/view/media.phtml')
76
- ->setProduct($this->getProduct())
77
- ->toHtml();
78
}
79
}
80
12
//Create the extra price and tier price data/html we need.
13
foreach ($this->getAllowProducts() as $product) {
14
$productId = $product->getId();
15
$childProducts[$productId] = array(
16
"price" => $this->_registerJsPrice($this->_convertPrice($product->getPrice())),
17
"finalPrice" => $this->_registerJsPrice($this->_convertPrice($product->getFinalPrice()))
26
if (Mage::getStoreConfig('SCP_options/product_page/change_short_description')) {
27
$childProducts[$productId]["shortDescription"] = $product->getShortDescription();
28
}
29
+
30
+ if (Mage::getStoreConfig('SCP_options/product_page/change_attributes')) {
31
+ $childBlock = $this->getLayout()->createBlock('catalog/product_view_attributes');
32
+ $childProducts[$productId]["productAttributes"] = $childBlock->setTemplate('catalog/product/view/attributes.phtml')
33
+ ->setProduct($product)
34
+ ->toHtml();
35
+ }
36
+
37
#if image changing is enabled..
38
if (Mage::getStoreConfig('SCP_options/product_page/change_image')) {
39
#but dont bother if fancy image changing is enabled
76
$config['shortDescription'] = $this->getProduct()->getShortDescription();
77
$config["imageUrl"] = (string)Mage::helper('catalog/image')->init($this->getProduct(), 'image');
78
79
+ $childBlock = $this->getLayout()->createBlock('catalog/product_view_attributes');
80
+ $config["productAttributes"] = $childBlock->setTemplate('catalog/product/view/attributes.phtml')
81
+ ->setProduct($this->getProduct())
82
+ ->toHtml();
83
+
84
if (Mage::getStoreConfig('SCP_options/product_page/change_image')) {
85
if (Mage::getStoreConfig('SCP_options/product_page/change_image_fancy')) {
86
$childBlock = $this->getLayout()->createBlock('catalog/product_view_media');
87
+ $config["imageZoomer"] = $childBlock->setTemplate('catalog/product/view/media.phtml')
88
+ ->setProduct($this->getProduct())
89
+ ->toHtml();
90
}
91
}
92
app/code/community/OrganicInternet/SimpleConfigurableProducts/Checkout/Block/Cart/Item/Renderer.php CHANGED
@@ -81,12 +81,9 @@ class OrganicInternet_SimpleConfigurableProducts_Checkout_Block_Cart_Item_Render
81
82
public function getProductThumbnail()
83
{
84
-
85
if (!Mage::getStoreConfig('SCP_options/cart/show_configurable_product_image')) {
86
$childThumbnail = parent::getProductThumbnail();
87
#If image is not placeholder...
88
- Mage::log("thumb:" . $childThumbnail);
89
- Mage::log("place:" . Mage::helper('catalog/image')->getPlaceHolder($this->getProduct()));
90
if(strpos($childThumbnail, Mage::helper('catalog/image')->getPlaceHolder($this->getProduct())) === FALSE) {
91
return $childThumbnail;
92
}
81
82
public function getProductThumbnail()
83
{
84
if (!Mage::getStoreConfig('SCP_options/cart/show_configurable_product_image')) {
85
$childThumbnail = parent::getProductThumbnail();
86
#If image is not placeholder...
87
if(strpos($childThumbnail, Mage::helper('catalog/image')->getPlaceHolder($this->getProduct())) === FALSE) {
88
return $childThumbnail;
89
}
app/code/community/OrganicInternet/SimpleConfigurableProducts/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
<config>
3
<modules>
4
<OrganicInternet_SimpleConfigurableProducts>
5
- <version>0.7.2</version>
6
</OrganicInternet_SimpleConfigurableProducts>
7
</modules>
8
<global>
@@ -72,6 +72,9 @@
72
<rewrite>
73
<product_view_media>OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Media</product_view_media>
74
</rewrite>
75
</catalog>
76
<checkout>
77
<rewrite>
2
<config>
3
<modules>
4
<OrganicInternet_SimpleConfigurableProducts>
5
+ <version>0.7.3</version>
6
</OrganicInternet_SimpleConfigurableProducts>
7
</modules>
8
<global>
72
<rewrite>
73
<product_view_media>OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Media</product_view_media>
74
</rewrite>
75
+ <rewrite>
76
+ <product_view_attributes>OrganicInternet_SimpleConfigurableProducts_Catalog_Block_Product_View_Attributes</product_view_attributes>
77
+ </rewrite>
78
</catalog>
79
<checkout>
80
<rewrite>
app/code/community/OrganicInternet/SimpleConfigurableProducts/etc/system.xml CHANGED
@@ -72,7 +72,7 @@
72
<show_in_store>1</show_in_store>
73
<fields>
74
<change_name>
75
- <label>Dynamically update product name shown on Product Page</label>
76
<frontend_type>select</frontend_type>
77
<source_model>adminhtml/system_config_source_yesno</source_model>
78
<sort_order>65</sort_order>
@@ -82,7 +82,7 @@
82
<comment>Takes affect once all configurable options have been selected</comment>
83
</change_name>
84
<change_description>
85
- <label>Dynamically update product description shown on Product Page</label>
86
<frontend_type>select</frontend_type>
87
<source_model>adminhtml/system_config_source_yesno</source_model>
88
<sort_order>60</sort_order>
@@ -92,7 +92,7 @@
92
<comment>Takes affect once all configurable options have been selected</comment>
93
</change_description>
94
<change_short_description>
95
- <label>Dynamically update product short description shown on Product Page</label>
96
<frontend_type>select</frontend_type>
97
<source_model>adminhtml/system_config_source_yesno</source_model>
98
<sort_order>65</sort_order>
@@ -101,8 +101,18 @@
101
<show_in_store>1</show_in_store>
102
<comment>Takes affect once all configurable options have been selected</comment>
103
</change_short_description>
104
<change_image>
105
- <label>Dynamically update product picture shown on Product Page</label>
106
<frontend_type>select</frontend_type>
107
<source_model>adminhtml/system_config_source_yesno</source_model>
108
<sort_order>70</sort_order>
@@ -122,7 +132,7 @@
122
<comment>Uses ajax to pull in the correct related product images too</comment>
123
</change_image_fancy>
124
<show_price_ranges_in_options>
125
- <label>Show price ranges in Configurable Product Option Dropdowns</label>
126
<frontend_type>select</frontend_type>
127
<source_model>adminhtml/system_config_source_yesno</source_model>
128
<sort_order>90</sort_order>
72
<show_in_store>1</show_in_store>
73
<fields>
74
<change_name>
75
+ <label>Dynamically update displayed product name</label>
76
<frontend_type>select</frontend_type>
77
<source_model>adminhtml/system_config_source_yesno</source_model>
78
<sort_order>65</sort_order>
82
<comment>Takes affect once all configurable options have been selected</comment>
83
</change_name>
84
<change_description>
85
+ <label>Dynamically update displayed product description</label>
86
<frontend_type>select</frontend_type>
87
<source_model>adminhtml/system_config_source_yesno</source_model>
88
<sort_order>60</sort_order>
92
<comment>Takes affect once all configurable options have been selected</comment>
93
</change_description>
94
<change_short_description>
95
+ <label>Dynamically update displayed product short description</label>
96
<frontend_type>select</frontend_type>
97
<source_model>adminhtml/system_config_source_yesno</source_model>
98
<sort_order>65</sort_order>
101
<show_in_store>1</show_in_store>
102
<comment>Takes affect once all configurable options have been selected</comment>
103
</change_short_description>
104
+ <change_attributes>
105
+ <label>Dynamically update displayed product 'additional information'</label>
106
+ <frontend_type>select</frontend_type>
107
+ <source_model>adminhtml/system_config_source_yesno</source_model>
108
+ <sort_order>67</sort_order>
109
+ <show_in_default>1</show_in_default>
110
+ <show_in_website>1</show_in_website>
111
+ <show_in_store>1</show_in_store>
112
+ <comment>Takes affect once all configurable options have been selected</comment>
113
+ </change_attributes>
114
<change_image>
115
+ <label>Dynamically update displayed product picture</label>
116
<frontend_type>select</frontend_type>
117
<source_model>adminhtml/system_config_source_yesno</source_model>
118
<sort_order>70</sort_order>
132
<comment>Uses ajax to pull in the correct related product images too</comment>
133
</change_image_fancy>
134
<show_price_ranges_in_options>
135
+ <label>Show price ranges in Configurable Product Option dropdowns</label>
136
<frontend_type>select</frontend_type>
137
<source_model>adminhtml/system_config_source_yesno</source_model>
138
<sort_order>90</sort_order>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>OrganicInternet_SimpleConfigurableProducts</name>
4
- <version>0.7.1</version>
5
<stability>stable</stability>
6
<license>GPL</license>
7
<channel>community</channel>
@@ -34,9 +34,9 @@ Version 0.7 of SCP is not compatible with Magento versions prior to 1.4.0.1
34
See the documentation for more details.</description>
35
<notes>See http://github.com/organicinternet/magento-configurable-simple/ for up-to-date documentation and to contribute!</notes>
36
<authors><author><name>OrganicInternet - Matt Dean</name><user>auto-converted</user><email>matt@organicinternet.co.uk</email></author></authors>
37
- <date>2010-06-09</date>
38
- <time>09:28:56</time>
39
- <contents><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="scp-ajax-loader.gif" hash="7b9776076d5fceef4993b55c9383dedd"/></dir><dir name="js"><file name="scp_product_extension.js" hash="2cd9e3ab7a67b086e135253504df7610"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="simpleconfigurableproducts.xml" hash="1d6d42e7ea6b8a3b5b18b08c34c5f5f9"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="view"><dir name="options"><file name="scpwrapper.phtml" hash="707e2a23b01c7f44ec207327770cf19d"/></dir><file name="scpajaxoptions.phtml" hash="b82c5ca0da007693e4e33623fb946f45"/><file name="scpoptions.phtml" hash="5f299a1bcc37cbb51ab65a939a249c8d"/></dir></dir></dir><dir name="page"><file name="scpcontentonly.phtml" hash="af6c1e1249fd89bf5fcac3783ca59eb6"/></dir><dir name="sales"><dir name="reorder"><file name="scpsidebar.phtml" hash="366a8a6ffe3c3dc6d9c65c78e46fd175"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OrganicInternet_SimpleConfigurableProducts.xml" hash="9940c9361821c51b912ba2d3f9995b24"/></dir></target><target name="magecommunity"><dir name="OrganicInternet"><dir name="SimpleConfigurableProducts"><dir name="Adminhtml"><dir name="Block"><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><dir name="Super"><dir name="Config"><file name="Grid.php" hash="b4d05499ae5dfd05e15bd5b637b99a6b"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="Catalog"><dir name="Block"><dir name="Product"><dir name="View"><dir name="Type"><file name="Configurable.php" hash="fa7405e95fcebea060cb2fac29e10c66"/></dir><file name="Media.php" hash="ffc632c64c4cae0f00d228541de0b8a4"/></dir><file name="Price.php" hash="183eadc7b59e1836a8a84aea5bdf04d1"/></dir></dir><dir name="Model"><dir name="Product"><dir name="Type"><dir name="Configurable"><file name="Price.php" hash="c964fbf22c94941e7e6d6bbb19e668f4"/></dir><file name="Configurable.php" hash="7443a0698eb7b137f72dfc15725a4e96"/><file name="Simple.php" hash="8ef7b9a3c0f915681eb0c9eb88eae7e1"/><file name="Virtual.php" hash="1d9b3d5302852a673e622b4b4354ba54"/></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><dir name="Indexer"><dir name="Price"><file name="Configurable.php" hash="6c6d4eb205557ca6022b3b5cdb372670"/></dir><file name="Price.php" hash="3ca5b853477f8385d0093219f197a336"/></dir><file name="Collection.php" hash="47f49718bedbba0a2ea860cf93b4faba"/></dir></dir></dir></dir><file name="Product.php" hash="1a6dfedacb38df8e720f119f510d9525"/></dir></dir><dir name="CatalogIndex"><dir name="Model"><dir name="Data"><file name="Configurable.php" hash="75a683207aa2096a03e07346d19d5622"/></dir></dir></dir><dir name="CatalogInventory"><dir name="Model"><dir name="Mysql4"><dir name="Indexer"><dir name="Stock"><file name="Configurable.php" hash="61e9ba65a896fce97934af234773793e"/></dir></dir></dir></dir></dir><dir name="CatalogRule"><dir name="Model"><dir name="Mysql4"><file name="Rule.php" hash="e4ff4119ed9da11ccee2a6c14e2e56aa"/></dir></dir></dir><dir name="Checkout"><dir name="Block"><dir name="Cart"><dir name="Item"><file name="Renderer.php" hash="d912f29ec009fddfe8192a40615ab501"/></dir></dir></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="bb9b20bc5284c32a8e60febe7e9803c2"/></dir><dir name="etc"><file name="config.xml" hash="c83cfbdaafb6f21c9a5f2fb6e8b3c15e"/><file name="system.xml" hash="b01c59f45a27b5b667064016fe099f14"/></dir><dir name="Helper"><file name="Data.php" hash="5f91b08d83b0f5211ba48bb9e57a73b7"/></dir><dir name="Rss"><dir name="Block"><dir name="Catalog"><file name="Category.php" hash="8bd374355b28204b872a460f1df726ee"/><file name="New.php" hash="d4bf513c1d1b80a8c6f35b50e364c932"/><file name="Special.php" hash="f8d21afb44bb4f3313ca2eb892063b75"/><file name="Tag.php" hash="f11184d72153579620183e0df9616341"/></dir><file name="Wishlist.php" hash="930698cb4ceac56a64fa010ce8304386"/></dir></dir></dir></dir></target></contents>
40
<compatible/>
41
<dependencies/>
42
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>OrganicInternet_SimpleConfigurableProducts</name>
4
+ <version>0.7.3</version>
5
<stability>stable</stability>
6
<license>GPL</license>
7
<channel>community</channel>
34
See the documentation for more details.</description>
35
<notes>See http://github.com/organicinternet/magento-configurable-simple/ for up-to-date documentation and to contribute!</notes>
36
<authors><author><name>OrganicInternet - Matt Dean</name><user>auto-converted</user><email>matt@organicinternet.co.uk</email></author></authors>
37
+ <date>2010-06-15</date>
38
+ <time>17:28:53</time>
39
+ <contents><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><file name="scp-ajax-loader.gif" hash="7b9776076d5fceef4993b55c9383dedd"/></dir><dir name="js"><file name="scp_product_extension.js" hash="822dabea0f73993e481dc1c3a678cee8"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="simpleconfigurableproducts.xml" hash="1d6d42e7ea6b8a3b5b18b08c34c5f5f9"/></dir><dir name="template"><dir name="catalog"><dir name="product"><dir name="view"><dir name="options"><file name="scpwrapper.phtml" hash="707e2a23b01c7f44ec207327770cf19d"/></dir><file name="scpajaxoptions.phtml" hash="b82c5ca0da007693e4e33623fb946f45"/><file name="scpoptions.phtml" hash="5f299a1bcc37cbb51ab65a939a249c8d"/></dir></dir></dir><dir name="page"><file name="scpcontentonly.phtml" hash="af6c1e1249fd89bf5fcac3783ca59eb6"/></dir><dir name="sales"><dir name="reorder"><file name="scpsidebar.phtml" hash="366a8a6ffe3c3dc6d9c65c78e46fd175"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="OrganicInternet_SimpleConfigurableProducts.xml" hash="9940c9361821c51b912ba2d3f9995b24"/></dir></target><target name="magecommunity"><dir name="OrganicInternet"><dir name="SimpleConfigurableProducts"><dir name="Adminhtml"><dir name="Block"><dir name="Catalog"><dir name="Product"><dir name="Edit"><dir name="Tab"><dir name="Super"><dir name="Config"><file name="Grid.php" hash="b4d05499ae5dfd05e15bd5b637b99a6b"/></dir></dir></dir></dir></dir></dir></dir></dir><dir name="Catalog"><dir name="Block"><dir name="Product"><dir name="View"><dir name="Type"><file name="Configurable.php" hash="41438f7c29b4c9175b85a9d064f8bb6d"/></dir><file name="Attributes.php" hash="8fa06a35201f4adf46bd0fee0588e79e"/><file name="Media.php" hash="ffc632c64c4cae0f00d228541de0b8a4"/></dir><file name="Price.php" hash="183eadc7b59e1836a8a84aea5bdf04d1"/></dir></dir><dir name="Model"><dir name="Product"><dir name="Type"><dir name="Configurable"><file name="Price.php" hash="c964fbf22c94941e7e6d6bbb19e668f4"/></dir><file name="Configurable.php" hash="7443a0698eb7b137f72dfc15725a4e96"/><file name="Simple.php" hash="8ef7b9a3c0f915681eb0c9eb88eae7e1"/><file name="Virtual.php" hash="1d9b3d5302852a673e622b4b4354ba54"/></dir></dir><dir name="Resource"><dir name="Eav"><dir name="Mysql4"><dir name="Product"><dir name="Indexer"><dir name="Price"><file name="Configurable.php" hash="6c6d4eb205557ca6022b3b5cdb372670"/></dir><file name="Price.php" hash="8b2f2fb56f94bf164fd159a19043315e"/></dir><file name="Collection.php" hash="47f49718bedbba0a2ea860cf93b4faba"/></dir></dir></dir></dir><file name="Product.php" hash="1a6dfedacb38df8e720f119f510d9525"/></dir></dir><dir name="CatalogIndex"><dir name="Model"><dir name="Data"><file name="Configurable.php" hash="75a683207aa2096a03e07346d19d5622"/></dir></dir></dir><dir name="CatalogInventory"><dir name="Model"><dir name="Mysql4"><dir name="Indexer"><dir name="Stock"><file name="Configurable.php" hash="61e9ba65a896fce97934af234773793e"/></dir></dir></dir></dir></dir><dir name="CatalogRule"><dir name="Model"><dir name="Mysql4"><file name="Rule.php" hash="e4ff4119ed9da11ccee2a6c14e2e56aa"/></dir></dir></dir><dir name="Checkout"><dir name="Block"><dir name="Cart"><dir name="Item"><file name="Renderer.php" hash="9bb08bc293451e057895d0706d0b3000"/></dir></dir></dir></dir><dir name="controllers"><file name="AjaxController.php" hash="bb9b20bc5284c32a8e60febe7e9803c2"/></dir><dir name="etc"><file name="config.xml" hash="4c50c1ae23882257f4f7d51acd745482"/><file name="system.xml" hash="9fec5c9d7e354cd120fe18f63f3eccdc"/></dir><dir name="Helper"><file name="Data.php" hash="5f91b08d83b0f5211ba48bb9e57a73b7"/></dir><dir name="Rss"><dir name="Block"><dir name="Catalog"><file name="Category.php" hash="8bd374355b28204b872a460f1df726ee"/><file name="New.php" hash="d4bf513c1d1b80a8c6f35b50e364c932"/><file name="Special.php" hash="f8d21afb44bb4f3313ca2eb892063b75"/><file name="Tag.php" hash="f11184d72153579620183e0df9616341"/></dir><file name="Wishlist.php" hash="930698cb4ceac56a64fa010ce8304386"/></dir></dir></dir></dir></target></contents>
40
<compatible/>
41
<dependencies/>
42
</package>
skin/frontend/base/default/js/scp_product_extension.js CHANGED
@@ -120,7 +120,7 @@ Product.Config.prototype.addParentProductIdToCartForm = function(parentProductId
120
121
122
123
- Product.OptionsPrice.prototype.updateSpecialPriceDiplay = function(price, finalPrice) {
124
125
var prodForm = $('product_addtocart_form');
126
@@ -162,10 +162,11 @@ Product.Config.prototype.reloadPrice = function() {
162
optionsPrice.productOldPrice = price;
163
optionsPrice.reload();
164
optionsPrice.reloadPriceLabels(true);
165
- optionsPrice.updateSpecialPriceDiplay(price, finalPrice);
166
- this.updateShortDescription(childProductId);
167
- this.updateDescription(childProductId);
168
this.updateProductName(childProductId);
169
this.updateFormProductId(childProductId);
170
this.addParentProductIdToCartForm(this.config.productId);
171
this.showCustomOptionsBlock(childProductId, this.config.productId);
@@ -184,10 +185,11 @@ Product.Config.prototype.reloadPrice = function() {
184
optionsPrice.productOldPrice = price;
185
optionsPrice.reload();
186
optionsPrice.reloadPriceLabels(false);
187
- optionsPrice.updateSpecialPriceDiplay(price, finalPrice);
188
- this.updateShortDescription(false);
189
- this.updateDescription(false);
190
this.updateProductName(false);
191
this.showCustomOptionsBlock(false, false);
192
if (usingZoomer) {
193
this.showFullImageDiv(false, false);
@@ -227,7 +229,7 @@ Product.Config.prototype.updateProductName = function(productId) {
227
});
228
};
229
230
- Product.Config.prototype.updateShortDescription = function(productId) {
231
var shortDescription = this.config.shortDescription;
232
if (productId && this.config.childProducts[productId].shortDescription) {
233
shortDescription = this.config.childProducts[productId].shortDescription;
@@ -237,7 +239,7 @@ Product.Config.prototype.updateShortDescription = function(productId) {
237
});
238
};
239
240
- Product.Config.prototype.updateDescription = function(productId) {
241
var description = this.config.description;
242
if (productId && this.config.childProducts[productId].description) {
243
description = this.config.childProducts[productId].description;
@@ -247,6 +249,15 @@ Product.Config.prototype.updateDescription = function(productId) {
247
});
248
};
249
250
251
Product.Config.prototype.showCustomOptionsBlock = function(productId, parentId) {
252
var coUrl = this.config.ajaxBaseUrl + "co/?id=" + productId + '&pid=' + parentId;
120
121
122
123
+ Product.OptionsPrice.prototype.updateSpecialPriceDisplay = function(price, finalPrice) {
124
125
var prodForm = $('product_addtocart_form');
126
162
optionsPrice.productOldPrice = price;
163
optionsPrice.reload();
164
optionsPrice.reloadPriceLabels(true);
165
+ optionsPrice.updateSpecialPriceDisplay(price, finalPrice);
166
+ this.updateProductShortDescription(childProductId);
167
+ this.updateProductDescription(childProductId);
168
this.updateProductName(childProductId);
169
+ this.updateProductAttributes(childProductId);
170
this.updateFormProductId(childProductId);
171
this.addParentProductIdToCartForm(this.config.productId);
172
this.showCustomOptionsBlock(childProductId, this.config.productId);
185
optionsPrice.productOldPrice = price;
186
optionsPrice.reload();
187
optionsPrice.reloadPriceLabels(false);
188
+ optionsPrice.updateSpecialPriceDisplay(price, finalPrice);
189
+ this.updateProductShortDescription(false);
190
+ this.updateProductDescription(false);
191
this.updateProductName(false);
192
+ this.updateProductAttributes(false);
193
this.showCustomOptionsBlock(false, false);
194
if (usingZoomer) {
195
this.showFullImageDiv(false, false);
229
});
230
};
231
232
+ Product.Config.prototype.updateProductShortDescription = function(productId) {
233
var shortDescription = this.config.shortDescription;
234
if (productId && this.config.childProducts[productId].shortDescription) {
235
shortDescription = this.config.childProducts[productId].shortDescription;
239
});
240
};
241
242
+ Product.Config.prototype.updateProductDescription = function(productId) {
243
var description = this.config.description;
244
if (productId && this.config.childProducts[productId].description) {
245
description = this.config.childProducts[productId].description;
249
});
250
};
251
252
+ Product.Config.prototype.updateProductAttributes = function(productId) {
253
+ var productAttributes = this.config.productAttributes;
254
+ if (productId && this.config.childProducts[productId].productAttributes) {
255
+ productAttributes = this.config.childProducts[productId].productAttributes;
256
+ }
257
+ $('div.product-collateral div.box-additional').each(function(el) {
258
+ el.innerHTML = productAttributes;
259
+ });
260
+ };
261
262
Product.Config.prototype.showCustomOptionsBlock = function(productId, parentId) {
263
var coUrl = this.config.ajaxBaseUrl + "co/?id=" + productId + '&pid=' + parentId;