git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| function allEventListeners(){ | |
| const eventNames = Object.keys(window).filter(key => /^on/.test(key)) | |
| return [...document.querySelectorAll('*'), document].flatMap((node) => eventNames | |
| .filter(event => node[event]) | |
| .map(event => { | |
| return { | |
| node, | |
| event, | |
| listener: (typeof node[event] === 'function') ? node[event].toString() : node[event] | |
| } |
| <?php | |
| function get_tls_version($sslversion = null) | |
| { | |
| $c = curl_init(); | |
| curl_setopt($c, CURLOPT_URL, "https://www.howsmyssl.com/a/check"); | |
| curl_setopt($c, CURLOPT_RETURNTRANSFER, true); | |
| if ($sslversion !== null) { | |
| curl_setopt($c, CURLOPT_SSLVERSION, $sslversion); | |
| } |
| <?php | |
| // Simply place the following two functions in _support/Helper/Acceptance.php | |
| // Then you can call $I->verifyRedirect(...) inside your tests | |
| namespace Helper; | |
| class Acceptance extends \Codeception\Module | |
| { | |
| /** | |
| * Ensure that a particular URL does NOT contain a 301/302 |
| <?php | |
| // =================================================== | |
| // = place this file in the root of your OXID eShop! = | |
| // =================================================== | |
| require_once 'bootstrap.php'; | |
| // CONFIG | |
| $sTheme = 'my_custom_theme'; | |
| // CONFIG END |
| /*** ARTIKEL / ARTICLES ***/ | |
| /******************************************************/ | |
| /* artikelnamen aller artikel anzeigen, welcher einer bestimmten kategorie zugeordnet sind [proudcommerce.com] */ | |
| select oxarticles.oxtitle, oxarticles.OXVARSELECT as Variant, oxcategories.OXTITLE as Kategorie from oxarticles left join oxobject2category on oxarticles.OXID = oxobject2category.OXOBJECTID left join oxcategories on oxcategories.OXID = oxobject2category.OXCATNID where oxcategories.OXROOTID = '<YOUR-CATEGORY-OXID>'; | |
| /* variantenpreise (oxvarmin, oxvarmax) anhand der aktuellen artikel aktualisieren [foxido.de] */ | |
| UPDATE oxarticles B, (SELECT oxparentid,MIN( oxprice ) AS min ,MAX( oxprice ) AS max FROM oxarticles GROUP BY oxparentid) AS A SET oxvarminprice = A.min, oxvarmaxprice = A.max WHERE B.oxid = A.oxparentid | |
| protected function _dbColumnExist($sTable, $sColumn) | |
| { | |
| $sDbName = oxRegistry::getConfig()->getConfigParam('dbName'); | |
| $sSql = sprintf("SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s' " | |
| . " AND COLUMN_NAME = '%s'", | |
| $sDbName, $sTable, $sColumn); | |
| return oxDb::getDb()->getOne($sSql); | |
| } |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream