Skip to content

Instantly share code, notes, and snippets.

View shinesoftware's full-sized avatar

Shine Software shinesoftware

View GitHub Profile
@shinesoftware
shinesoftware / Perfect Audience: Magento Tracking Code
Last active August 29, 2015 14:07
This code helps you to track on a Magento Store visitors and the conversions using the Perfect Audience service.
/*
This code should be inserted to the bottom of this file: /app/design/frontend/default/default/template/page/html/footer.phtml
Make sure to update your perfect audience tracking info (line 34).
Tested with Magento 1.9.0.1
Thanks to Sam327
*/
<!-- Start of Perfect Audience Script -->
<script type="text/javascript">
(function() {
@shinesoftware
shinesoftware / indexController.php
Last active August 29, 2015 14:10
Paypal Adaptive Payment
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Paypal\Controller;
@shinesoftware
shinesoftware / CategoryListener.php
Created December 11, 2014 10:05
Zend Framework 2 - Listeners & Fatal error: Maximum function nesting level of '100' reached, aborting!
<?php
namespace ProductCategory\Listeners;
use Zend\EventManager\EventManagerInterface;
use Zend\EventManager\ListenerAggregateInterface;
class CategoryListener implements ListenerAggregateInterface
{
protected $serviceManager;
@shinesoftware
shinesoftware / Module.php
Last active August 29, 2015 14:16
This is the creation of the UserRegisterListener factory and of its Listener in Zend Framework 2
<?php
class Module
{
public function onBootstrap(MvcEvent $e)
{
$eventManager = $e->getApplication()->getEventManager();
$moduleRouteListener = new ModuleRouteListener();
$moduleRouteListener->attach($eventManager);
$adapter = $e->getApplication()->getServiceManager()->get('Zend\Db\Adapter\Adapter');
@shinesoftware
shinesoftware / restful.php
Last active October 14, 2015 16:27
iTango Web Client
<?php
/**
* Copyright (c) 2014 Shine Software.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
@shinesoftware
shinesoftware / shineisp2.txt
Last active January 4, 2016 08:00
Installing and Developing ShineISP 2.0
These are the steps to install ShineISP 2 written by Zend Framework 2.5.1
First of all you have to clone the Zend Framework Skeleton Application where ShineISP modules will be installed.
Check if the composer tool has been already installed in your pc.
Open a shell window and you have to execute this shell command:
$ composer create-project --stability="dev" zendframework/skeleton-application /var/www/PROJECT-FOLDER
we have to wait the end of the creation of the Zend Framework Skeleton project. Then we will read this question:
@shinesoftware
shinesoftware / tax_rules.csv
Created November 8, 2016 09:50
Easyfatt Tax Rates
Code Country State Zip/Post Code Rate Zip/Post is Range Range From Range To default
10 IT * * 10.0000
10sp IT * * 10.0000
20 IT * * 20.0000
20d IT * * 20.0000
20i IT * * 20.0000
20inUe IT * * 20.0000
21 IT * * 21.0000
21d IT * * 21.0000
21exUe IT * * 21.0000
@shinesoftware
shinesoftware / magento2-setup.sh
Last active November 9, 2020 08:41
Magento 2 - Bash Script - Install by cloning from Github repository and bash
#!/bin/bash
#title :magento2-setup.sh
#description :This script will install Magento from github
#author :Shine Software Italy
#date :20170202
#version :0.1
#usage :Set the execution permission for this file and then call it ./magento2-setup.sh
#notes :Install Composer and cURL to use this script.
.
├── app
│   ├── code
│   │   └── community
│   │   └── ShineSoftware
│   │   └── Constriv
│   │   ├── Block
│   │   │   ├── Adminhtml
│   │   │   │   └── System
│   │   │   │   └── Config
.
├── app
│   ├── code
│   │   └── local
│   │   └── ShineSoftware
│   │   └── Bancasella
│   │   ├── Block
│   │   │   ├── Adminhtml
│   │   │   │   ├── Bancasella
│   │   │   │   │   ├── Edit