Jump to content

Hide block vetical menu for supercheckout module page


scoopsat

Recommended Posts

Hello,

I installed a "superchekout" module , and I have a vertical menu so that it appears on the main page, while the rest of the pages are hidden normally according to the following code:

1011389157_Capturedcran2022-06-18000204.png.1a58aa2edb8dc3b84363ac0d095d4db8.png

 

<div id="wt-menu-ver-left" class="wt-menu-ver-left other-page">
{$id_lang = Context::getContext()->language->id}

	<div class="category-left">
	<div class="title-menu-mobile category-title title-other-page"><span></span></div>
	<div class="content-vertical-other-page">
	<h3 class="category-title">{l s='Shop Categories' d='Shop.Waterthemes'}</h3>
	<ul class="menu-content">
	<a href="javascript:void(0);" class="close-menu-content wt_close"><span>{l s='Close' d='Shop.Waterthemes'}</span></a>
		{foreach from=$menus item=menu name=menus}
			{if isset($menu.type) && $menu.type == 'CAT' && $menu.dropdown == 1}
				{$menu.sub_menu|escape:'quotes':'UTF-8' nofilter}

 

But when I go to the supercheckout page, the block for the vertical menu appears:

https://example.com/en/supercheckout

1980844479_Capturedcran2022-06-18000600.thumb.png.8f6c737b840bb6c7951c628f8d2ab1e9.png

 

 

1027882602_Capturedcran2022-06-18000857.png.18a2077d7c70fd650f7cf78833601ed0.png

 

How to hide the vertical menu in the supercheckout page ?

 

Thank you

Link to comment
Share on other sites

Easiest solution is add to css this:

#module-supercheckout-supercheckout .vertical-menu-content {
    display:none!important;
}

I think better solution will be create some js function to remove style="display: block;" from vertical-menu-content because then user still can expand it.

Link to comment
Share on other sites

@endriu107

Thank you very much for your suggested solution, it helped solve the problem in the checkout page with code css :

#module-supercheckout-supercheckout .vertical-menu-content {
    display:none!important;
}

 

Thank you again for sharing your experience and helping to find solutions.

 

solved by @endriu107

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...