Jump to content

Remove menu Browse All


S4hosting

Recommended Posts

Hai i have tried to remove Browse all menu name and also tried redirect browse all by using hood mentioned in whmcs document other menus reflected and working properly but this one menu nothing reflect any one pls help

 

and one more kindly give hook code for removing sidebar category in cart.php url 

Link to comment
Share on other sites

1 hour ago, S4hosting said:

Hai i have tried to remove Browse all menu name and also tried redirect browse all by using hood mentioned in whmcs document other menus reflected and working properly but this one menu nothing reflect any one pls help

you could  remove the entire Store navbar menu using CSS if you can't get a hook working...

#Primary_Navbar-Store {display: none !important;}

or just Browse All and the divider beneath it...

#Primary_Navbar-Store-Browse_Products_Services,
#Primary_Navbar-Store .dropdown-divider:first-of-type {display: none !important;}

if you want a hook to redirect the link, the second one in the post below will do that...

1 hour ago, S4hosting said:

and one more kindly give hook code for removing sidebar category in cart.php url 

<?php

use WHMCS\View\Menu\Item as MenuItem;
 
add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) {

    if (!is_null($secondarySidebar->getChild('Categories'))) {
                $secondarySidebar->removeChild('Categories');
    }
});

alternatively, you could hide it with CSS in a custom.css file if you wanted to....

[menuitemname="Categories"] {display: none !important;}

 

Link to comment
Share on other sites

53 minutes ago, brian! said:

you could  remove the entire Store navbar menu using CSS if you can't get a hook working...


#Primary_Navbar-Store {display: none !important;}

or just Browse All and the divider beneath it...


#Primary_Navbar-Store-Browse_Products_Services,
#Primary_Navbar-Store .dropdown-divider:first-of-type {display: none !important;}

if you want a hook to redirect the link, the second one in the post below will do that...


<?php

use WHMCS\View\Menu\Item as MenuItem;
 
add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) {

    if (!is_null($secondarySidebar->getChild('Categories'))) {
                $secondarySidebar->removeChild('Categories');
    }
});

alternatively, you could hide it with CSS in a custom.css file if you wanted to....


[menuitemname="Categories"] {display: none !important;}

 

where can i apply this custom css?

Link to comment
Share on other sites

 

1 hour ago, brian! said:

 

if you want a hook to redirect the link, the second one in the post below will do that...

alternatively, you could hide it with CSS in a custom.css file if you wanted to....

 

ok brian leave the above quote is working for Browse all thanks for your help

Link to comment
Share on other sites

hi brian still 2 to 3 options only need to run my site fully 

 

check this screen shot this one come under domain register how to redirect this one by hook

 

and the remaining 2 is 

 

price fetch not working and the other one is have to bring currency in wordpress header place and that should sync with price fetch from whmcs for all currencies thats it if u help in this thts all i will start my site to run business....

Capture.JPG

Link to comment
Share on other sites

1 hour ago, S4hosting said:

where can i apply this custom css?

in your case, /templates/twenty-one/css/custom.css

in 21, the file doesn't exist by default, so you will need to manually add it.

https://developers.whmcs.com/themes/css-styling/

52 minutes ago, S4hosting said:

check this screen shot this one come under domain register how to redirect this one by hook

redirecting add hosting link via a hook....

55 minutes ago, S4hosting said:

price fetch not working

not sure where you mean.

55 minutes ago, S4hosting said:

other one is have to bring currency in wordpress header place and that should sync with price fetch from whmcs for all currencies thats it if u help in this thts all i will start my site to run business....

to do it on an external  .php page, you would use the code in the thread below....

hopefully you can adjust it to work in a similar way in WordPress.

Link to comment
Share on other sites

12 hours ago, S4hosting said:

Product price data feeds not fetching price from whmcs in to worpress here i have attached the screenshot....

as I previously said, it's a server issue at your end - you should have a word with your hosts about its configuration... possibly it's just a WordPress security headers issue that you can fix yourself.

Quote

The resource from “https://secure1.s4hosting.in/feeds/productsinfo.php?pid=28&get=price&billingcycle=monthly&currency=1” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

accessing the feeds directly will work, but not when you try to access them using <script>.

Link to comment
Share on other sites

20 hours ago, S4hosting said:

where would be the problem brian host side or some other area? how to fix this one?

if I knew the specific answer, i'd have told you. 😎

it's not a generic issues with data feeds, but something specific with your server, it's configuration or WordPress.

Link to comment
Share on other sites

5 minutes ago, S4hosting said:

server side asking to replicate the issue i have forwarded the  MIME issue but still they asking me to replicate don't know where to start and where to ask?....

give them your VPS URL... https://s4hosting.in/managed-vpshosting/ ... and get them to inspect an element on the page and you'll see the error...

XF0lLjy.png

I had an issue with feeds in my v7.8.3 dev years ago - ended up putting a php.ini file in the feeds folder... I don't think it was nosniff related, so you shouldn't need to do that.

Link to comment
Share on other sites

@S4hosting Tell your Support team to learn about ioncube and encoding scripts. This is not a hack. All WHMCS source files are encrypted like this....

You issue is with your .htaccess and server configuration.

Check the URL @brian! told you or Google search the issue you got in your browser console.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

Edited by pRieStaKos
Link to comment
Share on other sites

hi here is htaccess file whats wrong in this?

 

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors On
   php_value max_execution_time 300
   php_value max_input_time 600
   php_value max_input_vars 1000
   php_value memory_limit 256M
   php_value post_max_size 256M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 256M
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_value max_execution_time 300
   php_value max_input_time 600
   php_value max_input_vars 1000
   php_value memory_limit 256M
   php_value post_max_size 256M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
   php_value upload_max_filesize 256M
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit
Link to comment
Share on other sites

  • 2 weeks later...

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