Skip to content

Instantly share code, notes, and snippets.

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 Jan 3, 2017
Rimuove anteprima shipping cost in carrello magento
View local.xml
<?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>
View gist:2f2d65cdbb6fd03ab6fd99446786fb28
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 Jun 26, 2017
Magento passi per bug
View 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
PHP to export Magento Attributes
View export-attributes.php
<?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 Sep 25, 2017
REL Prev Next Magento
View local.xml
<?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
Codice per resize immagini Joomla con Jimage + salvataggio in cache
View jimage_resize.php
<?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
View htaccess php max 5.6 magento 1.9.x
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
@simbus82
simbus82 / gist:a49ff537b1cda1fe9f87b0df17574c59
Created Apr 10, 2018
local.xml magento 1.9.3.x originale
View gist:a49ff537b1cda1fe9f87b0df17574c59
<?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 Apr 10, 2018
REDIS local.xml magento
View local.xml
<?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 Apr 27, 2018
Roksprocket K2 Tag
View Filter.php
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');