Site Search Implementation for SuiteCommerce Mobile Themes

Implementing the Site Search button for the SuiteCommerce mobile theme, allowing users to enhance site navigation.

·1 min read·View Oracle Docs

The Site Search button in SuiteCommerce mobile themes provides users with an enhanced navigation experience. By default, this button is visible in the SuiteCommerce Base Theme, making it accessible for users looking to utilize the Site Search functionality. When clicked, it activates the Site Search input bar, facilitating user queries.

Site Search Button Code

The Site Search button can be implemented in mobile templates using the following HTML code:

html
<div class="header-menu-searchmobile" data-view="SiteSearch.Button"></div>
  • Base Theme Module: Header
  • Base Theme Template: header.tpl

Compatibility

It's important to note that the provided code is backward compatible with Commerce themes created before the 2018.2 release. Users should verify their theme versions to ensure compatibility when integrating this search functionality.

Frequently Asked Questions (4)

How can I implement the Site Search button in a SuiteCommerce mobile theme?
You can implement the Site Search button in mobile templates using the provided HTML code: `<div class="header-menu-searchmobile" data-view="SiteSearch.Button"></div>`. This code should be inserted within the 'header.tpl' file of the 'Header' module in the Base Theme.
Is the Site Search button compatible with older SuiteCommerce themes?
Yes, the Site Search button code is backward compatible with Commerce themes created before the 2018.2 release. Ensure your theme is compatible by verifying its version before integration.
Which Base Theme files should be modified to add the Site Search button in SuiteCommerce?
To add the Site Search button, modify the 'header.tpl' file in the 'Header' module of the Base Theme.
What happens if my SuiteCommerce theme version is below 2018.2 and I implement the new Site Search button?
The provided Site Search button code is meant to be backward compatible with themes created before version 2018.2. However, you should verify your theme's version to ensure proper integration without issues.
Source: Mobile Oracle NetSuite Help Center. This article was generated from official Oracle documentation and enriched with additional context and best practices.

Was this article helpful?

More in Commerce

View all Commerce articles →