update 2025 TO ACCESS TRACKING CODE /docker-diversupply/diverssupply/m246P2/production/app/code/Innoppl/Core/view/frontend/templates/success.phtml When we upgrade magento, check that the catch folder is ok and that our little snippets all work: -http://www.divers-supply.com/catchmarketing/dailyrun.php -the cart page shows a message for FL,GA,NC,SC,AL and TN telling them we are local. teh code is on /docker-diversupply/diverssupply/m246p2/production/app/design/frontend/Diverssupply/porto/Magento_Checkout/templates/cart/form.phtml and calls /docker-diversupply/diverssupply/m246p2/production/app/design/frontend/Diverssupply/porto/Magento_Checkout/templates/cart/ipinfo.php which we copied as well in teh catchmarketin folder in case it gets wiped out -the system logs all ip activity via app/design/frontend/Diverssupply/porto/Smartwave_Porto/templates/html/header.phtml header.phtml calls app/design/frontend/Diverssupply/porto/Smartwave_Porto/templates/html/blackips.php gives catch a file with all currency exchange rates for feeds app/design/frontend/Diverssupply/porto/Magento_Checkout/templates/success.phtml to add all pixels (20161228) http://www.divers-supply.com/scuba-lessons.html sends its form to requestcertprocess.php which sends an email (nore db logging since ~201704 -WE NEED A 404 WATCHER, dailyrun as a cron job daily at~3am, move/redo the scuba lessons pages Footer: app/design/frontend/Diverssupply/porto/Smartwave_Porto/templates/html/footer.phtml -------------------------------------- note that php needs getObjectManager(); $resource = $obj -> get('Magento\Framework\App\ResourceConnection'); $mysqli = $resource -> getConnection('core_write'); if ($mysqli->connect_error) { die('Connect Error, '. $mysqli->connect_errno . ': ' . $mysqli->connect_error); }else{ echo "

DB connected successfully

","
"; } to connect to db from magento stiffs: try{ $obj = \Magento\Framework\App\ObjectManager::getInstance(); $resource = $obj -> get('Magento\Framework\App\ResourceConnection'); $mysqli = $resource -> getConnection('core_write'); echo "

DB connected successfully

","
"; } catch(Exception $e){ die('Connect Error:'.$e->getMessge()); } ----------------------------------------