Skip to content

Instantly share code, notes, and snippets.

@Steinweber
Steinweber / app.js
Last active March 7, 2017 17:45
doc._getModel is not a function #533
const express = require('express');
const startup = require('./system/startup');
const app = express();
startup(app);
//export or start the app
const router = require('restify-router').Router;
const routes = new router();
const AuthController = require('../controller/auth');
routes.post('/login',AuthController.login);
routes.get('/logout',AuthController.logout);
routes.get('/session',AuthController.session);
//return the restify-router instance
@Steinweber
Steinweber / advertikon_stripe.php
Created June 14, 2016 09:57
opencart free stripe fix
catalog/model/payment/advertikon_stripe.php
//Add country_id from address
$geoZones = Advertikon\Advertikon::getExtendedModel( 'localisation_zone' )->getGeoZonesIdByZoneId( $address[ 'country_id' ],$address[ 'zone_id' ] );
// !!! I do not test if there is an other place where i need to set this !!!