View oxid-installmodulesconfig.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pluginDirs=() | |
for dir in $(find source/modules/ -type d); do | |
if [[ -f "${dir}/metadata.php" ]]; then | |
pluginDirs+=("${dir}") | |
fi | |
done |
View clockify.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$rawData = file_get_contents('php://input'); | |
$jsonData = json_decode($rawData); | |
if(!empty($jsonData->description)) { | |
$timeEntryId = $jsonData->id; | |
$workspaceId = $jsonData->workspaceId; | |
$description = prepareDescription($jsonData->description); | |
$newTags = prepareTags($jsonData->tags); | |
} |
View admin_header_links.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{* Create module with tmeplate block for: admin_header_links *}] | |
[{$smarty.block.parent}] | |
<script> | |
setInterval(function () { | |
window.location.href=window.location.href; | |
}, 1800000); | |
</script> |
View pc-ide-helper.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
moved: https://github.com/proudcommerce/oxid-ide-modulehelper |
View OXID eShop - getLogger fix OXID 6.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# thx to alfred (https://github.com/alfredbez) for sharing | |
# add to modules/functions.php | |
use Monolog\Logger; | |
use Monolog\Handler\StreamHandler; | |
use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory; | |
use Psr\Log\LoggerInterface; | |
use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException; | |
function getLogger() { |
View OXID eShop - config.inc.php configuration values
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iLangPerTable (8) | |
= definiert die mögliche Zahl an Sprachtabellen | |
sLangTableSuffix (_set) | |
= optionaler Suffix für Sprachtabellen | |
iPasswordLength (6) | |
= definiert die Mindestlänge des Kundenpasswortes | |
blSkipFormatConversion (false) |
View OXID eShop - Switch oxvendor and oxmanufacturers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Export oxvendors table + data (eg. oxvendor.sql) | |
# 2. Export oxmanufacturers table + data (eg. oxmanufacturers.sql) | |
# 3. Clean up manufacturers | |
DELETE FROM oxmanufacturers; | |
# 4. Clean up vendors | |
DELETE FROM oxvendor; | |
# 5. Replace "oxvendor" with "oxmanufacturers" in oxvendor.sql | |
# 6. Import oxvendor.sql | |
# 7. Replace "oxmanufacturers" with "oxvendor" in oxmanufacturers.sql | |
# 8. Import oxmanufacturers.sql |
View Rundeck Mattermost Webhook Notification
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* ProudCommerce | 2019 | |
* www.proudcommerce.com | |
* | |
* https://docs.mattermost.com/developer/webhooks-incoming.html | |
* https://github.com/ThibaudDauce/mattermost-php | |
*/ | |
require __DIR__ . '/vendor/autoload.php'; |
View OXID eShop - MySQL Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** 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 | |
View OXID eShop - check if column exists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
} |
NewerOlder