May 8, 2017Published by Radu G. on May 8, 2017Categories WordpressChange slug for an already registered post typefunction wpti_custom_post_type_args( $args, $post_type ) { if ( $post_type === 'my-registered-custom-post-type' ) { $args['rewrite'] = array( 'slug' => 'my-new-slug' ); } return $args; } Unfortuantely it […]
October 29, 2014Published by Radu G. on October 29, 2014Categories CakePHPCakephp installl plugin as submoduleIn order to install Search plugin for instance: git submodule add https://github.com/CakeDC/search.git app/Plugin/Search git submodule update --init --recursive
July 8, 2014Published by Radu G. on July 8, 2014Categories PrestashopUpdating presta from git and switching to a working branchFor prestashop 1.6.0.8 I want to work on a local branch (I use it to install my plugins as submodules) # get remote updates git fetch […]
July 24, 2013Published by Radu G. on July 24, 2013Categories MySQLOptimize MySQL all tablesI was contacted by a friend which has the website hosted on my server. His website was pretty slow despite the fact the server is very […]
July 23, 2013Published by Radu G. on July 23, 2013Categories CakePHPWarning: array_splice() expects parameter 1 to be array, null given in ShellDispatcher.phpI hit this error using console of cakephp 2.3.8 but you can encounter this issue on other versions as well. The solution is to edit (command […]
April 16, 2012Published by Radu G. on April 16, 2012Categories CakePHP ProgrammingCakephp 1.3 and php 5.4A quick notice how to disable the errors that appear after upgrading the php to 5.4 which is by the way a lot faster than ever […]
March 7, 2011Published by Radu G. on March 7, 2011Categories PrestashopHide long category list in prestashop adminThis is a very quick fix for people having a very long list of categories inside prestashop. The problem occurs because in the product edit page […]
May 20, 2010Published by Radu G. on May 20, 2010Categories CakePHPcakephp page title in view cake1.3In order to change page title in cakephp inside a view just use the code bellow $this->set('title_for_layout', 'my cakephp page title');
April 30, 2010Published by Radu G. on April 30, 2010Categories Programmingremove comparison links from magentoCopy app/code/core/Mage/Catalog/Helper/Product/Compare.php to app/code/local/Mage/Catalog/Helper/Product/ (create missing directories) Edit app/code/local/Mage/Catalog/Helper/Product/Compare.php after: public function getAddUrl($product) { add: return false;