<?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
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); } }