Adding a PDP delivery promise is even easier if you've upgraded your Shopify theme to Shopify's Online Store 2.0.
Now you can just go to your Shopify admin and add your delivery promise then drag it to where you want it. No code is required.
Go to Online Store and click on Customize
Then in the Homepage menu on the top, click on Products > then Default product
Here, select Add block on the bottom left and add PDQ's Delivery promise block
Drag it wherever you want it to appear on the page-
And that's it!
You're all set with your new product page delivery promise.
โ ๏ธ If your store was already using the script tag method of adding the product page delivery promise, remove the delivery promise from your store by searching for the script <PDQProductPromise> and deleting it from the liquid code.