So I upgraded my site to 2.2.4 the other day and some of my product features weren’t showing up on the product details page. I thought it must have been something that I did and I spent a ton of time trying to figure out what I screwed up.
I finally gave up and contacted CS-Cart about it. I was pretty stoked when they fixed it and it ended up being a bug.
Here is what they said about it:
[quote]It was a bug. I replaced the following part of code:[/quote]
if (in_array($v['feature_type'], array('S', 'M', 'N', 'E'))) {<br />
list($f_variants, $v_total) = fn_get_product_feature_variants($v['feature_id'], $params['product_id'], $v['feature_type'], true, $lang_code, Registry::get('settings.Appearance.admin_elements_per_page'));<br />
$data[$k]['variants'] = $f_variants;
```<br />
<br />
[quote]with this one:[/quote]<br />
```php
if (in_array($v['feature_type'], array('S', 'M', 'N', 'E'))) {<br />
list($f_variants, $v_total) = fn_get_product_feature_variants($v['feature_id'], $params['product_id'], $v['feature_type'], true, $lang_code, AREA == 'A' ? Registry::get('settings.Appearance.admin_elements_per_page') : 0);<br />
<br />
$data[$k]['variants'] = $f_variants;
```<br />
[quote]in the fn.catalog.php file located in the core directory.[/quote]<br />
<br />
Hopefully this will help someone down the road and keep them from spending a ton of time on something that was only a bug.<br />
<br />
Thanks,<br />
<br />
Brandon