We have SCA and the SC Inventory Display extension...
# suitecommerce
p
We have SCA and the SC Inventory Display extension installed to show messages on the PDP. We have found the whole site tried to load the Suitelet (Home page. CMS, PDP, PLP) even where the message is not displayed. Looking at the Network tab in the Browser Console, the script can take from 1s to 3s to execute. Suitelet calls a script that is 34 line long and just looks at the website records. 1. Why is it running on pages where there is no Inventory Display 2. Can we make the execution quicker? (app/site/hosting/scriptlet.nl?c=xxxxxx&deploy=customdeploy_ns_sc_sl_inventory_display&n=2&script=customscript_ns_sc_sl_inventory_display&websiteId=2)
r
I completely understand the struggle with the SC Inventory Display extension. We faced similar challenges and, although I wish there were a simpler solution, we decided to create a custom version using the SuiteScript query module. It didn’t take too long to implement, and the benefits were immediate, allowing us to more accurately showcase damaged inventory and improve visibility of items in non-default locations.