---
schema_version: "1"
id: e56893cdb603933c4bca5403d62a6db9617121aaf2302f394d5a254636b0d1c5
title: Best Practices for Customizing Enterprise Sales Management (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/comms_best_practices_for_customizing_enterprise_sales_management.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.comms_best_practices_for_customizing_enterprise_sales_management.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 27bb737f7e847d5db277f867bd38b2df8d106e32e98e418516fa6fe17f3b18e1
description: Avoid upgrade issues and improve maintainability by customizing your UI components by using slots. With slots, you can make changes to HTML files and reduce the time needed to retrofit customizations during each upgrade.
products:
  - Communications
release: "264"
---
# Best Practices for Customizing Enterprise Sales Management (Managed Package)

Avoid upgrade issues and improve maintainability by customizing your UI components by using slots. With slots, you can make changes to HTML files and reduce the time needed to retrofit customizations during each upgrade.

![Managed Package Icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-communications-264-0-0-production-enus/444efb86-ea1e-477e-afbc-56eaac192eaf/communications/images/media_package_icon.png) _This feature is part of the Communications Cloud managed package._

| REQUIRED EDITIONS |
| --- |
| Available in: Lightning Experience |
| Available in: **Enterprise**, **Developer**, and **Unlimited** Editions |

Push upgrades automatically deliver the latest managed package features, but you need to manually deploy unmanaged content such as Data Mappers, Integration Procedures, Flexcards, and Omniscripts to your Salesforce org. If you’ve extended the Enterprise Sales Management Lightning web components (LWCs), then you have to manually retrofit the LWCs.

To make sure that Enterprise Sales Management components aren’t changed after the push upgrade, follow these guidelines while extending the LWCs.

- HTML Files:
    - To modify the HTML files, use slots. This improves maintainability and requires less time to retrofit customization. Any elements added to HTML files are available after a push upgrade.
    - If slots don't cover your use case, submit a Voice of the Customer (VoC) for an out-of-the-box slot.
    - If slots and VoC don’t cover your use case, create a custom LWC and paste the entire content of an out-of-the-box HTML file. Make the necessary changes and update the managed package tags to contain the org’s namespace. For example, change `<c-menu>` to `<vlocity_cmt_menu>`.
        
        This method prevents future updates from breaking customizations but requires manual retrofitting to incorporate new features. Reduce the retrofit time required for each release by automating the diff-checking and merging process for customized HTML files.
- JavaScript Files:
    - To override any LWCs method in JavaScript file, such as the checkServiceability() method in b2bCartSummary.js, invoke super.checkServiceability() when you want to execute out-of-the-box logic. Then add the custom logic required.
    - To override an LWC method without calling the out-of-the-box method, you can update the method with the latest release logic during the retrofit process.
    - To prevent UI breaks at run-time because of changes to variables, make sure that any LWC variables that are accessed have null, undefined, or other run-time error checks.
- Styling Files:
    - To override the Enterprise Sales Management styling, add CSS class overrides to the bottom of the modified file. This overrides the out-of-the-box-styled class with custom styling.
    - To upload ‌custom styling file, see [Customize the Style Elements of Your Enterprise Sales Management User Interface](https://help.salesforce.com/s/articleView?id=ind.comms_use_your_custom_static_resource_instead_of_the_default_esmclassic_static_resource.htm&language=en_US).

#### See Also

- [Add Slots in Quote Header](https://help.salesforce.com/s/articleView?id=ind.comms_add_a_new_slot_in_quote_header.htm&language=en_US)
- [Add a New Action in the Actions List in the Cart Summary Pane](https://help.salesforce.com/s/articleView?id=ind.comms_t_add_a_new_action_in_the_actions_list_in_the_cart_summary_pane_63909.htm&language=en_US)
- [Add a New Button in the Cart Summary Pane](https://help.salesforce.com/s/articleView?id=ind.comms_t_add_a_new_button_in_the_cart_summary_pane_63697.htm&language=en_US)