예제 #1
0
<?php

/**
 * @package		DigiCom
 * @author 		ThemeXpert http://www.themexpert.com
 * @copyright	Copyright (c) 2010-2015 ThemeXpert. All rights reserved.
 * @license 	GNU General Public License version 3 or later; see LICENSE.txt
 * @since 		1.0.0
 */
defined('_JEXEC') or die;
$app = JFactory::getApplication();
$input = $app->input;
$Itemid = $input->get("Itemid", 0);
$cart_itemid = DigiComSiteHelperDigiCom::getCartItemid();
$and_itemid = "";
if ($cart_itemid != "") {
    $and_itemid = "&Itemid=" . $cart_itemid;
}
$product_itemid = DigiComSiteHelperDigiCom::getProductItemid();
$andProdItem = "";
if ($product_itemid != "0") {
    $andProdItem = "&Itemid=" . $product_itemid;
}
?>
<div id="digicom">
	 
	<?php 
DigiComSiteHelperDigicom::loadModules('digicom_toolber');
?>
	
	<h2 class="digi-page-title"><?php 
예제 #2
0
파일: cart.php 프로젝트: Shtier/digicom
 function deleteFromCart()
 {
     $session = JFactory::getSession();
     $res = $this->_model->deleteFromCart($this->_customer, $this->_config);
     $itemid = DigiComSiteHelperDigiCom::getCartItemid();
     $from = JRequest::getVar("from", "");
     $processor = JRequest::getVar("processor", "");
     $session->set('processor', $processor);
     if ($from == "ajax") {
         //$this->showCart();
         $this->setRedirect("index.php?option=com_digicom&view=cart&layout=cart_popup&processor=" . $processor . "&tmpl=component");
     } else {
         $this->setRedirect("index.php?option=com_digicom&view=cart&Itemid=" . $itemid . "&processor=" . $processor);
     }
 }