OrganicInternet_SimpleConfigurableProducts - Version 0.7.1

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.1
Comparing to
See all releases


Code changes from version 0.7 to 0.7.1

app/code/community/OrganicInternet/SimpleConfigurableProducts/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <OrganicInternet_SimpleConfigurableProducts>
5
- <version>0.7</version>
6
  </OrganicInternet_SimpleConfigurableProducts>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <OrganicInternet_SimpleConfigurableProducts>
5
+ <version>0.7.1</version>
6
  </OrganicInternet_SimpleConfigurableProducts>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>OrganicInternet_SimpleConfigurableProducts</name>
4
- <version>0.7</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-07</date>
38
- <time>23:37:25</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="d0fd7e79fa117cab4a0a526e5440c1a3"/></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="0734c671efbc9a51c0d9ec9a2e73b2e7"/><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.1</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-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>
skin/frontend/base/default/js/scp_product_extension.js CHANGED
@@ -218,21 +218,33 @@ Product.Config.prototype.updateProductImage = function(productId) {
218
  };
219
 
220
  Product.Config.prototype.updateProductName = function(productId) {
 
 
 
 
221
  $$('#product_addtocart_form div.product-name h1').each(function(el) {
222
- el.innerHTML = productId ? this.config.childProducts[productId].productName : this.config.productName;
223
- }.bind(this));
224
  };
225
 
226
  Product.Config.prototype.updateShortDescription = function(productId) {
 
 
 
 
227
  $$('#product_addtocart_form div.short-description div.std').each(function(el) {
228
- el.innerHTML = productId ? this.config.childProducts[productId].shortDescription : this.config.shortDescription;
229
- }.bind(this));
230
  };
231
 
232
  Product.Config.prototype.updateDescription = function(productId) {
233
- $$('#product_addtocart_form div.box-description div.std').each(function(el) {
234
- el.innerHTML = productId ? this.config.childProducts[productId].description : this.config.description;
235
- }.bind(this));
 
 
 
 
236
  };
237
 
238
 
218
  };
219
 
220
  Product.Config.prototype.updateProductName = function(productId) {
221
+ var productName = this.config.productName;
222
+ if (productId && this.config.childProducts[productId].productName) {
223
+ productName = this.config.childProducts[productId].productName;
224
+ }
225
  $$('#product_addtocart_form div.product-name h1').each(function(el) {
226
+ el.innerHTML = productName;
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;
234
+ }
235
  $$('#product_addtocart_form div.short-description div.std').each(function(el) {
236
+ el.innerHTML = shortDescription;
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;
244
+ }
245
+ $$('div.box-description div.std').each(function(el) {
246
+ el.innerHTML = description;
247
+ });
248
  };
249
 
250