omega1 Posted October 7, 2019 Share Posted October 7, 2019 Hello, Is it possible to change/modify the home page to non-logged in users? I'm not sure how to do this, I'd like to feature products here rather than just Twitter feed, etc... Where can this be done? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 8, 2019 Share Posted October 8, 2019 On 07/10/2019 at 08:04, omega1 said: Where can this be done? by editing the 'homepage.tpl' template in your active /templates/ folder. 0 Quote Link to comment Share on other sites More sharing options...
omega1 Posted November 3, 2019 Author Share Posted November 3, 2019 Hello brian! Thank you for your reply. Found it. I'm just getting my head around WHMCS as I've only just started using it. Is there an easy way to display items from the product list here? Ideally I'd want to choose a bunch of products and list them in a similar way to how they appear on the 'Browse All' page. Thank you again for responding. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 3, 2019 Share Posted November 3, 2019 8 hours ago, omega1 said: I'm just getting my head around WHMCS as I've only just started using it. yeah, I remember what that was like back in 2013... though there were only 2,000 files in WHMCS back then, there's over 10,000 now! 8 hours ago, omega1 said: Is there an easy way to display items from the product list here? an easy way, no... if only there were a checkbox you could tick to show product x on the homepage. 8 hours ago, omega1 said: Ideally I'd want to choose a bunch of products and list them in a similar way to how they appear on the 'Browse All' page. oh good luck with that. the biggest problem (and there are so many others!) is that non-cart pages won't have cart functionality or product arrays, so the best you can do easily outside of the cart pages is just link products to the cart. if you were wanting to do this on any non-cart page, e.g the homepage, then you need to do at least 4 things... decide which products you want to show. get those product's details (name, price, description etc) from WHMCS. display them in the template. add a link to the cart for each product. so 1️⃣ is straightforward and just needs you to decide which products you want to show. 🙂 for 2️⃣ there are a number of ways to get the information - the easiest, for new users, would be using Data Feeds, but more experienced users could use an action hook to create an array via querying the database using Capsule, using the Class/Model method or even the API. i'm sure if you search these forums for products on homepage, you'll see plenty of hooks that i've posted that can pull the information from the database. now 3️⃣ is tricky and long-winded (not least because you might be using custom themes)... you can't just copy & paste a template from one of the orderforms and expect it to work immediately... it's ultimately doable though with effort. with 4️⃣ you can get the URL to add the product to the cart from the specific product configuration page in the admin area.. 0 Quote Link to comment Share on other sites More sharing options...
omega1 Posted November 4, 2019 Author Share Posted November 4, 2019 22 hours ago, brian! said: if only there were a checkbox you could tick to show product x on the homepage. Absolutely! OK, thanks for your reply, I will probably just end up redirecting the homepage to the 'Browse All' page as this does exactly what I want to display on the home page... Thanks again. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted November 4, 2019 Share Posted November 4, 2019 1 hour ago, omega1 said: OK, thanks for your reply, I will probably just end up redirecting the homepage to the 'Browse All' page as this does exactly what I want to display on the home page... you could do that with a hook if you had to. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.