What would be the best way to hide the header/foot...
# suitecommerce
v
What would be the best way to hide the header/footer/both for a particular page on a SuiteCommerce Standard webstore? This is a custom page that was created via an extension (PageType).
m
Not the best practice, but if is only for a particular page, you can add a style tag, that contain css to hide the footer and header
v
Thanks for the response! I’ve considered this option, but like you mentioned it’s not the best practice (and is more of a hack than a well rounded solution). SuiteCommerce does give us an option to hide the header and footer for the Checkout module so I was curious if the same can be done for the Shopping domain if not for a single page in it. I couldn’t find anything in the Extensibility API at least, so I’m pretty sure there’s no built-in way to do this.
m
No, there is not an out-the-box functionality for that
👍 1
d
you can add a variable to show or hide in the template(header, footer), and then create an extension to manipulate the value of that variable using https://system.netsuite.com/help/helpcenter/en_US/APIs/SuiteCommerce/Extensibility/Frontend/LayoutComponent.html#addToViewContextDefinition checking the url of page
v
Thanks for the response, Denis. That might be the best way to do this!
👍 1