Hi,
I have a store which uses a data feed run daily by CRON which updates the drop ship products in the store.
As some prices provided are not ideal we have coded this into the update.tpl file:
```php
```
However, as there are sometimes many prices to 'freeze' we need to be able to add this function to the bulk editing screen.
Cart version is: 3.0.6
Can anyone advise the necessary TPL files to edit to realise this? Thank you
@simonv74,
Please open the “controllers/admin/products.php” file and find arrays with the “$selected_fields” and “$field_groups” names. You should extend them.
[quote name='eComLabs' timestamp='1395753125' post='180102']
@simonv74,
Please open the “controllers/admin/products.php” file and find arrays with the “$selected_fields” and “$field_groups” names. You should extend them.
[/quote]
@eComLabs - thank you very much for your suggestion.
I added:
array(
'name' => '[data][keep_price]',
'text' => fn_get_lang_var('keep_price_unchanged')
),
To [color=#282828][font=arial, verdana, tahoma, sans-serif]“$selected_fields”, and:[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif] 'C' => array ( // checkboxes
'is_edp' => 'products_data',
'edp_shipping' => 'products_data',
'free_shipping' => 'products_data',
'feature_comparison' => 'products_data',
[b]'keep_price_unchanged' => 'products_data'[/b]
),
[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]To [/font][/color]“$field_groups”.
This solved it.
Thanks again
[color=#282828][font=arial, verdana, tahoma, sans-serif]@simonv74,[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]You are welcome! I have checked the code and it should work correctly if you put it to the “C” array. Please try to clear the templates cache at first. [/font][/color]
[quote name='eComLabs' timestamp='1395756311' post='180118']
[color=#282828][font=arial, verdana, tahoma, sans-serif]@simonv74,[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]You are welcome! I have checked the code and it should work correctly if you put it to the “C” array. Please try to clear the templates cache at first. [/font][/color]
[/quote]
Yes, it worked perfectly, thank you once again, you saved me hours!