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 / success.phtml
Last active August 29, 2015 14:13
Ecommerce trakicng universal analytics
<! ----- tracking code -------- !>
<?php
// Transaction Data
$orderID = $this->getOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($orderID);
$orderTotal = $order->getGrandTotal();
// you can also add affiliation, shipping and tax
$trans = array('id' => $orderID,
@simbus82
simbus82 / spanner
Created October 14, 2014 18:08
Aggiunge uno span attorno alle prime 3 parole rilevando lo spazio che le divide. Assegnando stile alle 3 classi è possibile creare titoli con colori diversi per le prime parole.
<script>
jQuery(document).ready(function() {
jQuery('h3').each(function(){
var text = jQuery(this).text().split(' ');
if(text.length == 1){
text[0] = '<span class="firstWord">'+text[0]+'</span>';
}
if(text.length == 2){
text[0] = '<span class="firstWord">'+text[0]+'</span>';
@simbus82
simbus82 / .htaccess
Last active April 9, 2019 12:44
.htaccess to use in Joomla root
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
# Example robots.txt for MageBridge.
# Jooomla! is assumed to be in the root /
# Magento is assumed to be installed in /magento/
# MageBridge Root Menu-Item is assumed to have an URL /shop/
User-agent: *
Disallow: /administrator/
Disallow: /bin/
Disallow: /cache/
Disallow: /cli/