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 | |
| /* | |
| * CKFinder | |
| * ======== | |
| * https://ckeditor.com/ckfinder/ | |
| * Copyright (c) 2007-2021, CKSource - Frederico Knabben. All rights reserved. | |
| * | |
| * The software, this file and its contents are subject to the CKFinder | |
| * License. Please read the license.txt file before using, installing, copying, |
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
| fetch(`https://kick.com/api/v1/channels/` + $streamer) | |
| .then(res => res.json()) | |
| .then(data => { | |
| console.log(data.livestream.is_live); | |
| }); |
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
| <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> | |
| <body> | |
| <referenceContainer name="content"> | |
| <block class="XXXXXXXXXXXXXX\ListProduct" name="XXXXXXXX"> | |
| <action method="setDefaultDirection"> | |
| <argument name="dir" xsi:type="string">desc</argument> | |
| </action> | |
| <action method="setSortBy"> | |
| <argument name="attribute" xsi:type="string">ca_quantity</argument> | |
| </action> |
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
| /* var $productAction \Magento\Catalog\Model\ResourceModel\Product\Action */ | |
| $productAction->updateAttributes([$product_id], ['my_attribute' => $my_attribute_value], $store_id); |
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
| SELECT VALUE, COUNT(value) FROM `catalog_product_entity_varchar` WHERE `attribute_id` = 123 AND `store_id` = 0 GROUP BY VALUE HAVING COUNT(value) > 1 |
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
| /* | |
| Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired). | |
| This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working). | |
| Instructions: | |
| 1) The code may need to be modified depending on the language of your Twitter web site: | |
| * For English language web site, no modification needed. | |
| * For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES". | |
| * For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language. |
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
| SELECT e.entity_id AS 'id', | |
| v1.value AS 'name', | |
| e.sku, | |
| d1.value AS 'price', | |
| t1.value AS 'short_description', | |
| t2.value AS 'description', | |
| v2.value AS 'image', | |
| v3.value AS 'thumbnail', | |
| mg.value AS 'media_gallery', | |
| cids.category_ids AS 'category_ids', |
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
| // Mage 2.4 log smth: | |
| $writer = new \Laminas\Log\Writer\Stream(BP . '/var/log/path-info-logger.log'); | |
| $logger = new \Laminas\Log\Logger(); | |
| $logger->addWriter($writer); | |
| $logger->info($observer->getData("request")->getPathInfo()); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder