Site Search Button Implementation in SuiteCommerce

Implement the Site Search button in SuiteCommerce to enhance user navigation with code examples for desktop and mobile.

·1 min read·View Oracle Docs

The Site Search button offers SuiteCommerce users a straightforward way to access the Site Search input bar, improving navigation on the platform. This feature, visible by default in the SuiteCommerce Base Theme, enhances the user experience across both desktop and mobile templates.

How to Implement the Site Search Button

To implement the Site Search button in your SuiteCommerce theme, you will need to add specific code snippets to the appropriate templates.

Desktop Implementation

For desktop users, you can integrate the Site Search button using the following HTML code:

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 compatibility, use the following HTML snippet:

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

This coding approach ensures backward compatibility with any Commerce themes created prior to the 2018.2 release.

Best Practices for Usage

  • Ensure the button is prominently displayed to increase user interaction.
  • Test the functionality on both desktop and mobile views to maintain a seamless user experience.

Incorporating the Site Search button into your SuiteCommerce environment facilitates smoother navigation and enhances the overall usability of your site, ultimately leading to improved customer satisfaction.

Frequently Asked Questions (4)

Do I need to edit different templates for desktop and mobile implementations of the Site Search button in SuiteCommerce?
Yes, you need to add the Site Search button to both `header_menu.tpl` for desktop and `header.tpl` for mobile to ensure compatibility.
Is the Site Search button feature compatible with themes developed before 2018.2 in SuiteCommerce?
Yes, the coding approach provided ensures backward compatibility with any Commerce themes created prior to the 2018.2 release.
How can I ensure that the Site Search button enhances user experience on my SuiteCommerce site?
Ensure the button is prominently displayed and test its functionality on both desktop and mobile views to maintain a seamless user experience.
Which module of the SuiteCommerce Base Theme should I modify to implement the Site Search button for desktop?
To implement the Site Search button for desktop, you should modify the Header module and use the `header_menu.tpl` template.
Source: Desktop 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 →