Jump to content

Can hide the Browse Products Button?


Kok

Recommended Posts

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.

products.jpg

Link to comment
Share on other sites

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 by yggdrasil
Link to comment
Share on other sites

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']
});

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated