Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here is the solution that worked for me:</p> <p>the problem is with the code used in Simple Configurable Products (OrganicInternet)</p> <p>I would like to note that I was having two seperate issues at once - the above, and the product price index refused to be indexed (I was recieving this message: <em>Cannot intialize the indexer process</em>, which was explained as <em>SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1</em>)</p> <p>as it turned out both problems were related, and below solved them both ;)</p> <ol> <li>in the file <strong>/ app / code / community / OrganicInternet / SimpleConfigurableProducts / Catalog / Model / Resource / Eav / Mysql4 / Product / Indexer / Price / Configurable.php</strong></li> </ol> <p>change:</p> <pre><code>$select-&gt;columns(array( 'entity_id' =&gt; new Zend_Db_Expr('e.entity_id'), 'customer_group_id' =&gt; new Zend_Db_Expr('pi.customer_group_id'), 'website_id' =&gt; new Zend_Db_Expr('cw.website_id'), 'tax_class_id' =&gt; new Zend_Db_Expr('pi.tax_class_id'), 'orig_price' =&gt; new Zend_Db_Expr('pi.price'), 'price' =&gt; new Zend_Db_Expr('pi.final_price'), 'min_price' =&gt; new Zend_Db_Expr('pi.final_price'), 'max_price' =&gt; new Zend_Db_Expr('pi.final_price'), 'tier_price' =&gt; new Zend_Db_Expr('pi.tier_price'), 'base_tier' =&gt; new Zend_Db_Expr('pi.tier_price'), )); </code></pre> <p>to:</p> <pre><code>$select-&gt;columns(array( 'entity_id' =&gt; new Zend_Db_Expr('e.entity_id'), 'customer_group_id' =&gt; new Zend_Db_Expr('pi.customer_group_id'), 'website_id' =&gt; new Zend_Db_Expr('cw.website_id'), 'tax_class_id' =&gt; new Zend_Db_Expr('pi.tax_class_id'), 'orig_price' =&gt; new Zend_Db_Expr('pi.price'), 'price' =&gt; new Zend_Db_Expr('pi.final_price'), 'min_price' =&gt; new Zend_Db_Expr('pi.final_price'), 'max_price' =&gt; new Zend_Db_Expr('pi.final_price'), 'tier_price' =&gt; new Zend_Db_Expr('pi.tier_price'), 'base_tier' =&gt; new Zend_Db_Expr('pi.tier_price'), 'group_price' =&gt; new Zend_Db_Expr('pi.group_price'), 'base_group_price' =&gt; new Zend_Db_Expr('pi.group_price'), )); </code></pre> <p>and</p> <pre><code>$outerSelect-&gt;columns(array( 'customer_group_id', 'website_id', 'tax_class_id', 'orig_price', 'price', 'min_price', 'max_price' =&gt; new Zend_Db_Expr('MAX(inner.max_price)'), 'tier_price', 'base_tier', #'child_entity_id' )); </code></pre> <p>to</p> <pre><code>$outerSelect-&gt;columns(array( 'customer_group_id', 'website_id', 'tax_class_id', 'orig_price', 'price', 'min_price', 'max_price' =&gt; new Zend_Db_Expr('MAX(inner.max_price)'), 'tier_price', 'base_tier', 'group_price', 'base_group_price', #'child_entity_id' )); </code></pre> <p>source: <a href="https://github.com/organicinternet/magento-configurable-simple/pull/85" rel="noreferrer">main issue</a> together with <a href="https://github.com/organicinternet/magento-configurable-simple/commit/6d88e5e" rel="noreferrer">this</a> (however please note that the correct code is <strong>'base_group_price' => new Zend_Db_Expr('pi.group_price'),</strong> and not <strong>'base_group_price' => new Zend_Db_Expr('pi.<em>base_</em>group_price'),</strong></p> <ol start="2"> <li>also, in the file: <strong>/ app / code / community / OrganicInternet / SimpleConfigurableProducts / Catalog / Model / Resource / Eav / Mysql4 / Product / Indexer / Price.php</strong></li> </ol> <p>change</p> <pre><code>$this-&gt;cloneIndexTable(true); </code></pre> <p>to</p> <pre><code>$this-&gt;clearTemporaryIndexTable(); </code></pre> <p>source: <a href="http://www.magentocommerce.com/boards/viewthread/286645/" rel="noreferrer">here</a></p> <p>It took me several hours to figure this out so I wrote this post to help anyone else from wasting all that time.</p> <p>best of luck!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload