Skip to content

m-debnath/OrderableProductsComponent

Repository files navigation

Add products to Order and Activate - Salesforce DX Project

Testing Instructions

Please follow below instructions to deploy this to your dev org using VS Code.

Deploy the appCustom.css file as a new Static Resource. ( Optional - Needed for data table padding while scrolling )

  1. Create a new Static Resource named: appCustom.
  2. Upload the CSS file. The file is present in force-app\main\default\staticresources.
  3. Make sure to choose Cache Control as Public.

Add a new Remote Site in your org.

Clone this project into you local devlopment environment.

git clone https://github.com/m-debnath/OrderableProductsComponent.git

or, if you have ssh setup for Github

git clone [email protected]:m-debnath/OrderableProductsComponent.git

Open the git repo in VS Code.

It is expected that you have required Salesforce Extension, Salesforce CLI, nodejs, npm etc. already setup. If not, follow instructions here.

Authorize your dev org. SFDX: Authorize and Org

Locate the package.xml in manifest/package.xml

Right-click and choose SFDX: Deploy Source in Manifest to Org

Below objects should be successfully deployed.

Classes:

  • OrderProductsController
  • OrderProductsControllerTest
  • OrderableProductsController
  • OrderableProductsControllerTest
  • OrderServices
  • TestDataFactory

Lightning Web Components:

  • orderProductsListLWC
  • orderableProductsListLWC

Lightning Message Channels:

  • AvailableProductsToCart
  • CartsToAvailableProducts

Named Credentials:

  • Request_Catcher_Creds

Flexi Pages:

  • Order_To_Cart_Record_Page

Change the Order Record Page in your Org.

Go to Setup > Object Manager > Order > Lightning Record Pages. A new page Order_To_Cart_Record_Page should be available. Open it in Lightning App Build and Activate it as Org Wide Default.

Create an Account, create a Contract under it and Activate it.

Create an Order and associate with the Contract.

Also associate the Standard Pricebook to the order.

Test the new Order Page. =)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published