Add processing of configurable products to products.php
Change preg_replace to str_replace to prevent memory leaks, errors.