Kok Posted March 1, 2022 Share Posted March 1, 2022 Hi there, Anyone know how to hide the Browse Products Button in homepage Browse our Products/Services section? Once remove the button then can set to show direct all items in homepage too (Please refer attach file). Thanks. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted March 2, 2022 Share Posted March 2, 2022 (edited) Comment this line Edited March 2, 2022 by pRieStaKos 0 Quote Link to comment Share on other sites More sharing options...
Kok Posted March 4, 2022 Author Share Posted March 4, 2022 Hi there, Anyone have solutions for this? Thank you. 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted March 5, 2022 Share Posted March 5, 2022 (edited) On 3/4/2022 at 12:21 AM, Kok said: Hi there, Anyone have solutions for this? Thank you. pRieStaKos already gave you the solution in the previous reply. You need to the edit the template order files that contains those sections and remove or comment the code. Edited March 5, 2022 by yggdrasil 0 Quote Link to comment Share on other sites More sharing options...
Kok Posted March 7, 2022 Author Share Posted March 7, 2022 On 3/2/2022 at 9:02 PM, pRieStaKos said: Comment this line Hi, thanks for your advice. The button already can hide it, but how to show the items in homepage? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted March 14, 2022 Share Posted March 14, 2022 On 3/7/2022 at 6:05 AM, Kok said: Hi, thanks for your advice. The button already can hide it, but how to show the items in homepage? Get your products to homepage via hook and populate them in smarty. 0 Quote Link to comment Share on other sites More sharing options...
Kok Posted March 15, 2022 Author Share Posted March 15, 2022 18 hours ago, pRieStaKos said: Get your products to homepage via hook and populate them in smarty. Hi, can you provide the code? As no ideas how set in hook. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted March 15, 2022 Share Posted March 15, 2022 4 hours ago, Kok said: Hi, can you provide the code? As no ideas how set in hook. Thank you. add_hook('AfterModuleCreate', 1, function ($vars) { // Get Service Object $service = \WHMCS\Service\Service::findOrFail($vars['params']['serviceid']); // or Get Service ID $serviceid = $vars['params']['serviceid'] }); 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.