Customizing the Featured Product Extension in SuiteCommerce

Customize the Featured Product extension in SuiteCommerce to enhance product display and improve customer engagement.

·2 min read·View Oracle Docs

The Featured Product extension enables developers to prominently display specific products within a CMS area of a SuiteCommerce site. Customizable options include displaying the product price and availability, overlaying text on images, adding button text, and showcasing alternative images. However, for more complex alterations, modifications to the template and Sass files may be necessary.

Customizing the Featured Product Extension

To customize the Featured Product extension using the override method, follow these steps:

Note: Each instance of a featured product generates an HTTP call to the item's API. To avoid performance issues, refrain from using this method for a large set of featured products; instead, consider utilizing the Featured Category extension.

  1. Navigate to Workspace/Extras/Extensions/SuiteCommerce/FeaturedProduct/Modules/FeaturedProductCCT/Sass/_featuredproductcct.scss.
  2. Copy this source file to your clipboard.
  3. Paste a copy into the corresponding location within your theme's Overrides directory, for instance, Workspace/Theme/Overrides/SuiteCommerce/FeaturedProduct/Modules/FeaturedProductCCT/Sass/_featuredproductcct.scss.

    Important: Do not rename these files. They must retain the same name for the override method to function.

  4. Open the newly placed Sass file from your Overrides directory.
  5. Start your local server using gulp theme:local.

    Note: Files must be in the correct locations prior to starting the local server; otherwise, changes will not be detected. Monitor the CLI log to confirm which overrides are being watched.

  6. With your server running, you can add your desired styles to the copied Sass file. For example, to resize the product image and adjust the product details to show a shorter description, use the following code:
    javascript
    1.home-page .featureproductcct-layout {
    2 .pdp-features, .pdp-basics, .pdg-materials {
    3 display: none;
    4 }
    5 .product-image {
    6 max-height: 250px;
    7 }
    8}
  7. When ready, utilize your theme developer tools to test or deploy the updated theme. Refer to the Test and Deploy Your Theme documentation for specific procedures.

Visual Results

After implementing the above customizations, the appearance of the blog post can be modified to include additional featured products and various button styles, as illustrated in the following image: Customized Featured Product

By following this guide, developers can effectively customize the Featured Product extension to enhance user experience and site functionality in SuiteCommerce.

Source: This article is based on Oracle's official NetSuite documentation.

Frequently Asked Questions (4)

Can I use the Featured Product extension for a large number of featured products on my SuiteCommerce site?
No, using the Featured Product extension with a large set of featured products could lead to performance issues due to multiple HTTP calls to the item's API. Instead, it is recommended to use the Featured Category extension for such cases.
What file should I modify to apply custom styles to the Featured Product extension in SuiteCommerce?
You should modify the Sass file located at `Workspace/Extras/Extensions/SuiteCommerce/FeaturedProduct/Modules/FeaturedProductCCT/Sass/_featuredproductcct.scss`, by copying it to your theme's Overrides directory for customization.
Is renaming the file in the Overrides directory allowed when customizing the Featured Product extension?
No, renaming the file in the Overrides directory is not allowed. The files must retain their original names for the override method to function properly.
What should I do if changes to the Featured Product extension are not detected when I start the local server?
Ensure the files are in the correct Overrides directory locations before starting the local server. Also, monitor the CLI log to confirm which overrides are being watched.
Source: Overriding the Featured Product Extension 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 →