updated on 19th of December
Thanks everyone who participated in the discussion! It was tremendously userful
So, what we are going to do initially is only support:
<link rel="manifest" href="...some URL...">
| UPDATE | |
| catalog_product_entity_int | |
| SET | |
| value = 1 -- new value | |
| WHERE | |
| attribute_id = 85 AND -- attribute_id you want to change | |
| entity_id IN ( | |
| SELECT DISTINCT product_id FROM catalog_product_super_link | |
| ); |
| <?php | |
| protected function _getProducts($productIds, $storeId, $entityId, &$lastEntityId) | |
| { | |
| $products = array(); | |
| $websiteId = Mage::app()->getStore($storeId)->getWebsiteId(); | |
| $adapter = $this->_getReadAdapter(); | |
| if ($productIds !== null) { | |
| if (!is_array($productIds)) { | |
| $productIds = array($productIds); |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| # I'm certain there's a much more elegant way to do this, but I'm | |
| # not too handy with bash script. | |
| # Change all the instances of 2013 copyright to 2012 | |
| find . -name "*.xml" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
| find . -name "*.xml.template" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
| find . -name "*.php" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
| find . -name "*.css" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
| find . -name "*.js" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; | |
| find . -name "*.phtml" -exec sed -i.bak -E "s/Copyright .c. 2013/Copyright (c) 2012/g" {} \; |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| <?php | |
| /** | |
| * Optimized version of attribute source options model | |
| * | |
| * That allows to preload options once and reuse them instead of doing calls to db all the time | |
| * | |
| */ | |
| class EcomDev_Optimization_Model_Resource_Attribute_Source_Table | |
| extends Mage_Eav_Model_Entity_Attribute_Source_Table |
| delimiter ;; | |
| drop procedure if exists build_catalog;; | |
| create procedure build_catalog(IN categories INT, IN products INT) | |
| begin | |
| SET @category_count = 1; | |
| SET @CATNAMEPREFIX = "Category "; | |
| SET @CATURLKEYPREFIX = "cat-"; | |
| SET @CATURLPATHPREFIX = "catpath-"; | |
| SET @ROOTCATEGORY = 2; | |
| SET @INCLUDEINMENU = 1; |