Site Search Customization in SuiteCommerce
Customize the Site Search input bar and Go button in SuiteCommerce for improved user experience. The Site Search feature allows users to easily search for items
The Site Search feature allows users to easily search for items across the site. This functionality is crucial for enhancing user experience, enabling quick access to products and information on eCommerce sites. This article details how to implement and customize the Site Search input bar in SuiteCommerce.
How to Implement the Site Search Input Bar
To enable the Site Search input bar, you can utilize the following HTML structure within your templates for both desktop and mobile views:
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>Customizing Visibility of the Search Bar
By default, the Site Search input bar is hidden in the SuiteCommerce Base Theme. If you want this input bar to be visible by default, you can modify your template to include the active class as illustrated below:
<div class="site-search active" data-type="site-search">Integrating the Go Button
The Go button facilitates the search action, allowing users to submit their queries. Here’s the HTML code required for the Go button:
<button class="site-search-button-link" data-action="show-itemsearcher" title="{{translate 'Search'}}"> <i class="site-search-button-icon"></i></button>This code should be added to your templates where you want the button to appear. It enhances usability by providing a clickable element for search execution.
Key Considerations
- Ensure that the Site Search input bar's visibility is consistent and user-friendly, leading to enhanced customer satisfaction.
- Customize the designs and placements of the Go button to align with the overall aesthetics of your eCommerce site.
Who This Affects
- Developers: Those customizing the SuiteCommerce platform will need to implement the input bar and Go button.
- Site Administrators: Administrators configuring site aesthetics and functionality.
Key Takeaways
- The Site Search functionality is pivotal for improving user navigation on eCommerce sites.
- The
activeclass is essential for making the search bar visible. - Developers can easily customize the search button and input bar using the provided HTML code.
Frequently Asked Questions (4)
How can I make the Site Search input bar visible by default in SuiteCommerce?
What is the purpose of the 'Go' button in the Site Search input bar?
Can the design of the Site Search input bar and 'Go' button be customized?
Is implementing the Site Search feature in SuiteCommerce an activity only for developers?
Was this article helpful?
More in General
- Release Notes PDF Availability in NetSuite
NetSuite provides generated PDF files for each Release Note update, enhancing accessibility and user experience.
- Commitment Credits for Billing in NetSuite SuiteBilling
Commitment Credits in SuiteBilling enhance flexible usage-based billing across services. Managing usage-based billing in NetSuite SuiteBilling has been
- Prepay Across Subscriptions in NetSuite SuiteBilling
Prepay Across Subscriptions enables efficient management of prepaid services in NetSuite SuiteBilling.
- Edit the Extension Manifest: Manual Edits
Documentation article about Manual Edits Your extension's Workspace directory includes a manifest.json file, which includes all the information required to
Advertising
Reach General Professionals
Put your product in front of NetSuite experts who work with General every day.
Sponsor This Category