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
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
@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 / success.phtml
Created April 18, 2016 10:56
Ecommerce Tracking Analytics Magento
...
<?php
// Transaction Data
$orderID = $this->getOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($orderID);
$orderTotal = $order->getGrandTotal();
$orderDetails = $order->getData();
$couponCode = $orderDetails['coupon_code'];
?>
@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 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 / config.xml
Created August 29, 2016 12:59
Repay Magento Pending Order
<config>
<global>
<sales>
<order>
<states>
<pending_payment translate="label">
<visible_on_front>1</visible_on_front>
</pending_payment>
</states>
</order>
@simbus82
simbus82 / methods.phtml
Created July 6, 2016 13:24
Nascondi metodo di pagamento a seconda del metodo di spedizione su magento
<?php
/**
* 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:
* http://opensource.org/licenses/afl-3.0.php
@simbus82
simbus82 / config.xml
Created May 9, 2016 10:59
Mostra ordini in attesa sul frontend di Magento (utile per rifare i pagamenti tipo con CC)
<?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 / Magento bug carrelli abbandonati
Created March 8, 2016 15:09
Magento bug carrelli abbandonati 1.9.2.x
Creare la cartella
app/code/local/Mage/Reports/Model/Resource/Quote/
Copiare il file
app/code/core/Mage/Reports/Model/Resource/Quote/Collection.php
incollare in