Regarding close thread here
https://www.zen-cart.com/showthread....r-Sold-Counter

How we can create a control switch on edit product to apply the code to certain product. Like check box when checked it apply the code otherwise not.