Skip to content

Instantly share code, notes, and snippets.

View kermie's full-sized avatar

Marco Steinhaeuser kermie

View GitHub Profile
<?php
class mst_ch_highfive extends mst_ch_highfive_parent
{
public function getPrice()
{
if ( $this->_blNetPriceMode ) {
return $this->getNettoPrice();
} else {
$value = round(($this->getBruttoPrice()+0.000001)*20)/20;
return $value;
@kermie
kermie / oxconfig2cleartext
Created November 23, 2012 15:03
CLI script to read all entries from oxconfig in clear text
defined('SHOPBASEPATH')
|| define('SHOPBASEPATH', realpath(dirname(__FILE__) . '/../htdocs'));
require_once(SHOPBASEPATH. "/core/oxfunctions.php");
require_once(SHOPBASEPATH. "/core/adodblite/adodb.inc.php");
function getShopBasePath()
{
return SHOPBASEPATH . '/';
}