Created
May 18, 2021 06:48
-
-
Save Sentinel-7/617ad82b53e9aeba51d7fd8ffac72c5d to your computer and use it in GitHub Desktop.
Пересохранить все товары в console
This file contains hidden or 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 | |
$resources = $modx->getCollection('modResource', [ | |
'class_key' => 'msProduct' | |
]); | |
foreach ($resources as $res) { | |
$res->save(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment