"Apply values to all the selected products" is not working for product features. 2.2.2 PRO

I’m using 2.2.2 PRO. It has been a while since I used this way of editing items. Now when I select any number of items to edit, then choose only “features” to edit and then choose to apply to all items, the boxes stay greyed out and it won’t let me choose anything. It used to work, but now it doesn’t. However, if I choose anything else to edit like category, status, or quantity it works fine. Just not with product features. Thanks for any help.

Hello pcgamesplus,





In order to fix the problem, please take these steps:


  1. Open the “m_update.tpl” file located in the “skins/basic/admin/views/products” directory of your CS-Cart installation and replace this part of the code:




} else {

$('[id*=' + id + ']').each(function(index, element){

$(element).addClass(fn_get_field_type(element));

$(element).attr('disabled','disabled');





with this one:




} else {

$('[id*=' + id + ']').each(function(index, element){

$(element).addClass(fn_get_field_type(element));

$(element).attr('disabled','disabled');

$(element).removeAttr('checked');





2) Replace this part of the code:



{foreach from=$all_product_features item="pf"}

{if $pf.feature_type !== "G"}



 {$pf.description}: 



{include file="views/products/components/products_m_update_feature.tpl" feature=$pf data_name="override_products_data" over=true}







with this one:




{foreach from=$all_product_features item="pf"}

{if $pf.feature_type !== "G"}


 {$pf.description}: 



{include file="views/products/components/products_m_update_feature.tpl" feature=$pf data_name="override_products_data" over=true}







3) Replace this part of the code:

```php


{foreach from=$pf.subfeatures item="subfeature"}



 {$subfeature.description}:



{include file="views/products/components/products_m_update_feature.tpl" feature=$subfeature data_name="override_products_data" over=true}



```

with this one:

```php


{foreach from=$pf.subfeatures item="subfeature"}



 {$subfeature.description}:



{include file="views/products/components/products_m_update_feature.tpl" feature=$subfeature data_name="override_products_data" over=true}



```
4) Save the file.

---
Anastasiya Kozlova
CS-Cart Support Team

Woohoo, thank you. Finally a resolution. Thank you CS-Cart Support Team

You are welcome.





Anastasiya Kozlova

CS-Cart Support Team