Skip to content

Instantly share code, notes, and snippets.

View simbus82's full-sized avatar
I'm making some good Web Marketing Projects

Simone Bussoni simbus82

I'm making some good Web Marketing Projects
View GitHub Profile
@simbus82
simbus82 / local.xml
Created January 3, 2017 15:15
Rimuove anteprima shipping cost in carrello magento
<?xml version="1.0"?>
<layout version="0.1.0">
<checkout_cart_index>
                <reference name="checkout.cart">
                        <remove name="checkout.cart.shipping"/>
                </reference>
</checkout_cart_index>
</layout>
@simbus82
simbus82 / gist:2f2d65cdbb6fd03ab6fd99446786fb28
Last active November 13, 2018 16:14
Useful linux command
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
sudo /etc/init.d/redis_6379 restart
find . -name "*.jpa" -type f -print0 | du -c --files0-from=- | awk 'END{print $1}'
@simbus82
simbus82 / Magento passi per bug
Last active June 26, 2017 09:45
Magento passi per bug
Bug customer middle name che blocca carelli abbandonati
Bug memoria generazione immagini
Bug lingua italiana per tasto modifica ordini
https://magento.stackexchange.com/questions/82827/cannot-edit-order-or-send-the-email-from-sales-orders-inside-admin/83571#83571
@simbus82
simbus82 / export-attributes.php
Last active May 11, 2017 08:30
PHP to export Magento Attributes
<?php
chdir(dirname(__FILE__));
require_once 'app/Mage.php';
Mage::app();
umask(0);
$productModel = Mage::getModel('Mage_Catalog_Model_Product');
$categoryModel = Mage::getModel('Mage_Catalog_Model_Category');
$resource = Mage::getModel('core/resource');
$db = $resource->getConnection('core_write');
$attributes = Mage::getSingleton('eav/config')
@simbus82
simbus82 / local.xml
Created September 25, 2017 15:24
REL Prev Next Magento
<?xml version="1.0"?>
<layout version="0.1.0">
<!-- add rel="prev" and rel="next" for Google SEO -->
<catalog_category_default>
<reference name="head">
<block type="page/html_pager" name="relprev.next" as="rel_prev_next" template="page/html/rel_prev_next.phtml"/>
</reference>
</catalog_category_default>
@simbus82
simbus82 / jimage_resize.php
Last active May 7, 2018 15:32
Codice per resize immagini Joomla con Jimage + salvataggio in cache
<?php
if (!is_dir(JPATH_SITE .'/cache/Qcache/')) {
mkdir(JPATH_SITE .'/cache/Qcache/', 0755, true);
}
$imgPath = JPATH_SITE . '/cache/Qcache/' . basename($immagineURL);
$imgURL = '/cache/Qcache/' . basename($immagineURL);
if (!file_exists($imgPath)) {
// Create our image object
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
@simbus82
simbus82 / gist:a49ff537b1cda1fe9f87b0df17574c59
Created April 10, 2018 15:39
local.xml magento 1.9.3.x originale
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
@simbus82
simbus82 / local.xml
Created April 10, 2018 15:40
REDIS local.xml magento
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
@simbus82
simbus82 / Filter.php
Created April 27, 2018 07:55
Roksprocket K2 Tag
If you look at line 29 in /components/com_roksprocket/lib/RokSprocket/Provider/K2/Filter.php you should see the following:
$this->query->select('CONCAT_WS(",", t.id) AS tag_ids, CONCAT_WS(",", t.name) AS tag_names');
If you change this line to the following
$this->query->select('CONCAT_WS(",", t.id) AS tag_ids, CONCAT_WS(",", t.name) AS tags');