Go Button Functionality in SuiteCommerce Templates

The Go Button in SuiteCommerce enhances site search, enabling users to submit queries effectively within templated frameworks.

·1 min read·View Oracle Docs

The Go Button functionality is a critical component of SuiteCommerce, facilitating user interactions with site search features. Users typically depend on the Site Search input bar, which incorporates the Go Button, to perform searches across desktop or mobile templates.

Site Search Input Bar

The Site Search input bar can be found within any SuiteCommerce template. Below is a sample HTML structure required to implement the Site Search along with the Go Button:

html
1<div class="site-search" data-type="site-search">
2 <div class="site-search-content">
3 <form class="site-search-content-form" method="GET" action="/search" data-action="search">
4 <div class="site-search-content-input">
5 <div data-view="ItemsSeacher"></div>
6 <i class="site-search-input-icon"></i>
7 <a class="site-search-input-reset" data-type="search-reset"><i class="site-search-input-reset-icon"></i></a>
8 </div>
9 <button class="site-search-button-submit" type="submit">{{translate 'Go'}}</button>
10 </form>
11 </div>
12</div>
  • Base Theme Module: SiteSearch
  • Base Theme Template: site_search.tpl

By default, the input bar remains hidden in the SuiteCommerce Base Theme. To display the input bar visibly, customize your templates by adding the active class as demonstrated below:

html
<div class="site-search active" data-type="site-search">

Go Button

The Go Button is represented in your HTML as follows:

html
<button class="site-search-button-link" data-action="show-itemsearcher" title="{{translate 'Search'}}">
<i class="site-search-button-icon"></i>
</button>
  • Base Theme Module: SiteSearch
  • Base Theme Template: site_search_button.tpl

When integrated properly, the Go Button enhances the search experience, providing users with a clear mechanism to submit their search queries conveniently.

Frequently Asked Questions (4)

How do I make the Site Search input bar visible in a SuiteCommerce template?
To make the Site Search input bar visible, you need to customize your templates by adding the 'active' class to the site-search div. This customization will ensure that the search bar is displayed visibly.
Is the Go Button in SuiteCommerce always visible by default?
No, by default, the input bar and the associated Go Button are hidden in the SuiteCommerce Base Theme. You need to adjust the template by adding the 'active' class to make them visible.
In which module and template do I find the Go Button implementation for SuiteCommerce?
The Go Button is implemented in the SiteSearch Base Theme Module and specifically within the site_search_button.tpl template.
What HTML structure is required to implement the Go Button in SuiteCommerce?
The Go Button requires a button element with class 'site-search-button-link' and data-action 'show-itemsearcher'. It should also include a title attribute for accessibility.
Source: Go 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 User Interface

View all User Interface articles →