bzero
November 24, 2016, 3:50am
#1
Hi everyone,
During initial setup (wizard), i created two product items, and default check is display on website.
Now, i don’t want to display them on homepage, so i disabled option “Show in Website” for each item, however these items are still appears on website homepage.
Any idea how could i fix it?
Thank you.
Go to Website → Homepage. Remove products from the PRODUCT table (Products to be shown on website homepage)
2 Likes
bzero
November 27, 2016, 11:49am
#3
thanks @KanchanChauhan for your tip.
i have followed, but these removed products are now showing as “Product 0”, “Product 1”, “Product 2”
I attached the screenshot below.
That is the default behavior, there has to be atleast 3 products. You can change it by deleting these line from home.py.
context.homepage = homepage
if homepage.hero_section_based_on == "Homepage Section" and homepage.hero_section:
homepage.hero_section_doc = frappe.get_cached_doc("Homepage Section", homepage.hero_section)
if homepage.slideshow:
doc = frappe.get_cached_doc("Website Slideshow", homepage.slideshow)
context.slideshow = homepage.slideshow
2 Likes
bzero
November 28, 2016, 6:28am
#5
thanks @KanchanChauhan
is there no way to manage it via Website setting or menu other than adjusting the code?
No, not yet. But you can raise the feature request for the same on github.
1 Like
bzero
November 28, 2016, 9:48am
#7
OK. I see.
Thanks @KanchanChauhan