I am new to ERPNext and would like to make modifications to the website. Some of the modifications I am having a little difficulty with:
Remove product lists from the splash screen, but show once user is logged in
– I tried customizing the form, but checking all the hide boxes has no effect. Also trying to remove all products from the list has no effect, at least one product will re-appear
Show different content based on roles
Is there a primer for customizing the website that is up to date? I am seeing old information not applicable anymore.
I see in another thread someone trying to do the exact same thing
Once the home.py script has been adjusted to remove the mandatory 3 items here, how do I instantiate these changes?:
show atleast 3 products
if len(homepage.products) < 3:
for i in xrange(3 - len(homepage.products)):
homepage.append('products', {
'item_code': 'product-{0}'.format(i),
'item_name': frappe._('Product {0}').format(i),
'route': '#'
})
@dnaink: we had to do the custom software development to significantly overhaul the home page of the new ERP Next-based site we just launched - https://icloak.me/
We could not find easy ways to implement the feature similar to your original wish, “Remove product lists from the splash screen, but show once user is logged in”, otherwise
That’s because a .py file runs as a compiled .pyc file and the run time environmenty ignores your edit. But delete the stale .pyc and your .py change will recompile to a new .pyc to reflect your change.
@rmehta Many thanks. This is exactly what I needed.
What I did run into was that the pricelist is mandatory, so I changed that by unchecking mandatory. Then removed the existing pricelist and saved, and it worked as promised.