We need to set some default values for several fields in the ‘Files to sell’ panel. We have a standard set of rules for all vendors, and with hundreds of downloadable files it seems ludicrous to enter these every time. Most important :[list]
[]max downloads (7)
[]activation mode (set to immediately)
[]license agreement (long text)
[]agreement required (we’re still debating, but I’d like to know how to select y/n by default)
[/list]
We have two standard licenses so we may end up needing to simply disable license hence the need to select no by default. There’s no way the whole team will fill that in every time they set up a product.
I am assuming these can be set in the template file, but I need some guidance. We’re only about two weeks into setting up our Multi-Vendor shop so I’m learning… please bear with me. Is this the file?
\design\backend\templates\views\products\update_file.tpl
Thanks!
Angel
Anyone have any tips on this? Any help would be much appreciated.
[quote name='Angeltown' timestamp='1424780423' post='206289']
Anyone have any tips on this? Any help would be much appreciated.
[/quote]
Yes, you use correct file. For example, change
{$product_file.max_downloads}
to
{$product_file.max_downloads|default:7}
Do not forget to clear templates cache after the file content is changed
[quote name='eComLabs' timestamp='1424793094' post='206316']
Yes, you use correct file. For example, change
{$product_file.max_downloads}
to
{$product_file.max_downloads|default:7}
Do not forget to clear templates cache after the file content is changed
[/quote]
Thank you for the help! That's what I thought, but the changes weren't updating even though I was clearing the cache. As soon as I followed the advice in this thread it worked.
Now I just have to figure out the license part.