Site Search Button Implementation in SuiteCommerce

Implement the Site Search button in SuiteCommerce for easy access to search functionalities for both desktop and mobile themes.

·1 min read·View Oracle Docs

The Site Search button is a feature prominently displayed by default in the SuiteCommerce Base Theme, enhancing user navigation across sites. Users need to click this button to bring up the Site Search input bar, allowing them to easily find products or information on the site.

Desktop Implementation

For desktop use, you can add the following HTML snippet to any template:

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

Mobile Implementation

For mobile applications, the code differs slightly:

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

Important Note

The provided code is backward compatible with Commerce themes created prior to the 2018.2 release, ensuring that existing sites can incorporate this feature seamlessly without the need for significant modifications.

Who This Affects

  • Developers: Integrate Site Search functionality into eCommerce platforms.
  • Administrators: Configure themes and ensure proper visibility of the Site Search button.

Key Takeaways

  • The Site Search button improves user experience by simplifying the search process.
  • It's essential for both desktop and mobile views, ensuring consistent functionality across platforms.
  • The HTML code provided is backward compatible with older themes, minimizing upgrade worries.

Frequently Asked Questions (4)

Is the Site Search button feature available for both desktop and mobile SuiteCommerce themes?
Yes, the Site Search button feature is available for both desktop and mobile SuiteCommerce themes, with specific HTML snippets provided for each.
Do I need to make any significant modifications to older themes to implement the Site Search button?
No significant modifications are necessary as the provided code is backward compatible with themes created prior to the 2018.2 release.
Which templates do I need to modify to add the Site Search button in SuiteCommerce?
For desktop, modify the 'header_menu.tpl' template. For mobile, modify the 'header.tpl' template.
Is any additional configuration needed after adding the Site Search button HTML snippet to the templates?
The article does not specify additional configuration steps, so it appears that adding the HTML snippet as described should suffice.
Source: Site Search Button 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 →