This is the documentation for Clover Club 12.0.
Documentation for the upcoming version Rampur 13.0 can be found here.

How to Run Localhost in Salesforce

By changing SRC in iFrame manually

  1. Start localhost (pricefx-sfdc-canvas & pricefx-modules).

  2. Open iFrame in Salesforce which is connected to the localhost.

  3. In Developer Tools find iFrame and add an attribute:

    src="http://localhost:3000/#/"

     

     

Appending SRC using JavaScript code in console

  1. Start localhost pricefx-modules.

  2. Open iFrame in Salesforce which is connected to the localhost.

  3. Select Outer Pricefx Canvas.

     

  4. Execute this code in the console:

    const allIframes = document.querySelectorAll('iframe'); if (allIframes.length > 0) { const firstIframe = allIframes[0]; firstIframe.src = 'http://localhost:3000/#/'; console.log('Updated src:', firstIframe.src); } else { console.error('No iframes found on the page.'); }