本文整理汇总了PHP中comquick2cartHelper::getitemid方法的典型用法代码示例。如果您正苦于以下问题:PHP comquick2cartHelper::getitemid方法的具体用法?PHP comquick2cartHelper::getitemid怎么用?PHP comquick2cartHelper::getitemid使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类comquick2cartHelper
的用法示例。
在下文中一共展示了comquick2cartHelper::getitemid方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
*
* @see JController
* @since 1.6
*/
public function __construct($config = array())
{
$comquick2cartHelper = new comquick2cartHelper();
$this->my_stores_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=stores&layout=my');
$this->create_store_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=createstore');
parent::__construct($config);
}
示例2: __construct
/**
* Class constructor.
*
* @param array $config A named array of configuration variables.
*
* @since 1.6
*/
public function __construct($config = array())
{
$comquick2cartHelper = new comquick2cartHelper();
$this->my_coupons_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=coupons&layout=my');
$this->create_coupon_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=couponform');
parent::__construct($config);
$this->view_list = 'coupons';
}
示例3: display
/**
* Display the view
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return void
*/
public function display($tpl = null)
{
$this->state = $this->get('State');
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->params = JComponentHelper::getParams('com_quick2cart');
// Check for errors.
$errors = $this->get('Errors');
if (count($errors)) {
throw new Exception(implode("\n", $errors));
}
// Creating status filter.
$statuses = array();
$statuses[] = JHtml::_('select.option', '', JText::_('COM_QUICK2CART_SELONE'));
$statuses[] = JHtml::_('select.option', 1, JText::_('COM_QUICK2CART_PUBLISH'));
$statuses[] = JHtml::_('select.option', 0, JText::_('COM_QUICK2CART_UNPUBLISH'));
$this->statuses = $statuses;
// Get itemid
$comquick2cartHelper = new comquick2cartHelper();
$this->createstore_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=createstore');
// Get toolbar path
$this->toolbar_view_path = $comquick2cartHelper->getViewpath('vendor', 'toolbar');
// Get other vars
$storeHelper = new storeHelper();
$this->allowToCreateStore = $storeHelper->isAllowedToCreateNewStore();
// Setup toolbar
$this->addTJtoolbar();
$this->_prepareDocument();
parent::display($tpl);
}
示例4: getShipView
function getShipView()
{
$app = JFactory::getApplication();
$qtcshiphelper = new qtcshiphelper();
$comquick2cartHelper = new comquick2cartHelper();
$plgActionRes = array();
$jinput = $app->input;
$extension_id = $jinput->get('extension_id');
$plugview = $jinput->get('plugview');
// Plugin view is not found in URL then check in post array.
if (empty($plugview)) {
$plugview = $jinput->post->get('plugview');
}
// If extension related view
if (!empty($extension_id)) {
$plugName = $qtcshiphelper->getPluginDetail($extension_id);
// Call specific plugin trigger
JPluginHelper::importPlugin('tjshipping', $plugName);
$dispatcher = JDispatcher::getInstance();
$plgRes = $dispatcher->trigger('TjShip_plugActionkHandler', array($jinput));
if (!empty($plgRes)) {
$plgActionRes = $plgRes[0];
}
}
// Enque msg
if (!empty($plgActionRes['statusMsg'])) {
$app->enqueueMessage($plgActionRes['statusMsg']);
}
// Extra plugin Url params.
if (!empty($plgActionRes['urlPramStr'])) {
$plgUrlParam = '&' . $plgActionRes['urlPramStr'];
} else {
$plgUrlParam = '&plugview=';
}
//print" kasdflkjsdk $plgUrlParam"; die;
$itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=cp');
$link = 'index.php?option=com_quick2cart&view=shipping&layout=list' . $plgUrlParam . '&extension_id=' . $extension_id . '&Itemid=' . $itemid;
$this->setRedirect(JRoute::_($link, false));
}
示例5: getProductLink
/**
* Returns edit or details link for given product as per cck or native parent.
*
* @param int $item_id The product id
* @param string $linkType Type of link
*
* @return string
* @since 2.2
*/
public function getProductLink($item_id, $linkType = 'detailsLink')
{
$helperobj = new comquick2cartHelper();
$db = JFactory::getDBO();
$query = "select `product_id`,`parent` from `#__kart_items` where item_id=" . $item_id;
$db->setQuery($query);
$res = $db->loadAssoc();
$link = "";
$uri = JUri::getInstance();
switch ($res["parent"]) {
case "com_content":
if ($linkType == 'detailsLink') {
require_once JPATH_SITE . DS . 'components' . DS . 'com_content' . DS . 'helpers' . DS . 'route.php';
$query = 'SELECT a.id, ' . ' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug,' . ' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug' . ' FROM #__content AS a ' . ' INNER JOIN #__categories AS cc ON cc.id = a.catid' . ' WHERE a.id=' . $res["product_id"];
$db->setQuery($query);
$article = $db->loadObject();
$link = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug), false);
} elseif ($linkType == 'editLink') {
$link = JUri::base() . 'index.php?option=com_content&task=article.edit&id=' . $res["product_id"];
}
break;
default:
case "com_quick2cart":
if ($linkType == 'detailsLink') {
$catpage_Itemid = $helperobj->getitemid('index.php?option=com_quick2cart&view=category');
$link = JRoute::_('index.php?option=com_quick2cart&view=productpage&layout=default&item_id=' . $res["product_id"] . "&Itemid=" . $catpage_Itemid, false);
} elseif ($linkType == 'editLink') {
$link = JUri::base() . 'index.php?option=com_quick2cart&view=products&layout=new&item_id=' . $res["product_id"];
}
break;
case "com_zoo":
if ($linkType == 'detailsLink') {
$Itemid = $helperobj->getitemid('index.php?option=com_zoo&task=item');
$link = JRoute::_("index.php?option=com_zoo&task=item&item_id=" . $res["product_id"] . "&Itemid=" . $Itemid, false);
} elseif ($linkType == 'editLink') {
if (JFile::exists(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php')) {
require_once JPATH_ADMINISTRATOR . '/components/com_zoo/config.php';
}
$zooApp = App::getInstance('zoo');
$zoo_item = $zooApp->table->item->get($res["product_id"]);
$link = JUri::base() . 'index.php?option=com_zoo&controller=item&changeapp=' . $zoo_item->application_id . '&task=edit&cid[]=' . $res["product_id"];
}
break;
case "com_k2":
require_once JPATH_SITE . DS . 'components' . DS . 'com_k2' . DS . 'helpers' . DS . 'route.php';
$Itemid = $helperobj->getitemid('index.php?option=com_k2&view=item');
if ($linkType == 'detailsLink') {
$query = "SELECT a.id, a.alias, a.catid,\n\t\t\t\t\t b.alias as categoryalias\n\t\t\t\t\t FROM #__k2_items as a\n\t\t\t\t\t LEFT JOIN #__k2_categories AS b ON b.id = a.catid\n\t\t\t\t\t WHERE a.id = " . $res["product_id"];
$db->setQuery($query);
$k2item = $db->loadObject();
$link = JRoute::_(K2HelperRoute::getItemRoute($k2item->id . ':' . urlencode($k2item->alias), $k2item->catid . ':' . urlencode($k2item->categoryalias)), false);
} elseif ($linkType == 'editLink') {
$link = JUri::base() . 'index.php?option=com_k2&view=item&cid=' . $res["product_id"];
}
break;
case "com_flexicontent":
if ($linkType == 'detailsLink') {
$link = JUri::base() . 'index.php?option=com_flexicontent&task=items.edit&cid[]=' . $res["product_id"];
} elseif ($linkType == 'editLink') {
$link = JUri::base() . 'index.php?option=com_flexicontent&task=items.edit&cid[]=' . $res["product_id"];
}
break;
}
return $link;
}
示例6:
}
if (!empty($social_options)) {
?>
<span class="social_options">
<?php
echo $social_options;
?>
</span>
<?php
}
}
if (!empty($this->editstoreBtn)) {
// JRoute::_('index.php?option=com_quick2cart&view=orders&layout=mycustomer'),'_self'
if (!empty($this->store_id)) {
$storeid = $this->store_id;
$createstore_Itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=createstore');
echo "<button type='button' title=" . JText::_('SA_EDIT') . " class='btn btn_margin pull-right btn-mini' onclick=\"window.open('" . JRoute::_("index.php?option=com_quick2cart&view=vendor&layout=createstore&store_id=" . $storeid . "&Itemid=" . $createstore_Itemid) . "')\" >\n\t\t\t\t\t\t\t\t\t<i class='" . QTC_ICON_EDIT . "'></i></button>";
}
}
if ($integrate_with != 'none') {
?>
<p style="font-size: 13px;"><?php
echo JText::sprintf('COM_QUICK2CART_CREATED_BY', $profile_path);
?>
</p>
<?php
}
?>
</legend>
<span>
示例7: substr
/*BS start*/
$document->addStyleSheet(JUri::base() . 'components/com_quick2cart/bootstrap/css/bootstrap.css');
//aniket
/*BS end*/
}
//$document->addStyleSheet(JUri::base().'components/com_quick2cart/assets/css/quick2cart.css');//aniket
$path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helper.php';
if (!class_exists('comquick2cartHelper')) {
//require_once $path;
JLoader::register('comquick2cartHelper', $path);
JLoader::load('comquick2cartHelper');
}
$helperobj = new comquick2cartHelper();
$user = JFactory::getUser();
$checkout = 'index.php?option=com_quick2cart&view=cart';
$itemid = $helperobj->getitemid($checkout);
$checkout = JUri::root() . substr(JRoute::_('index.php?option=com_quick2cart&view=cartcheckout&Itemid=' . $itemid, false), strlen(JUri::base(true)) + 1);
$session = JFactory::getSession();
$cart_session = $this->cart;
if (empty($cart_session)) {
?>
<div class="well" >
<div class="alert alert-error">
<span ><?php
echo JText::_('QTC_EMPTY_CART');
?>
</span>
</div>
</div>
<?php
return false;
示例8: __construct
/**
* Constructor.
*
* @param array $config An optional associative array of configuration settings.
*
* @see JController
* @since 1.6
*/
public function __construct($config = array())
{
$comquick2cartHelper = new comquick2cartHelper();
$this->my_products_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=category&layout=my');
parent::__construct($config);
}
示例9: updatestatus
//.........这里部分代码省略.........
$result = $dispatcher->trigger('Onq2cOrderUpdate', array($orderobj));
//Call the plugin and get the result
//END Q2C Sample development
if ($send_mail == 1 && $order_oldstatus != $status) {
$params = JComponentHelper::getParams('com_quick2cart');
//$adminemails = comquick2cartHelper::adminMails();
$query = "SELECT ou.user_id,ou.user_email,ou.firstname FROM #__kart_users as ou WHERE ou.address_type='BT' AND ou.order_id = " . $order_id;
$db->setQuery($query);
$orderuser = $db->loadObjectList();
//Change for backward compatiblity for user info not saving order id against it
if (empty($orderuser)) {
$query = "SELECT ou.user_id,ou.user_email,ou.firstname\n\t\t\t\tFROM #__kart_users as ou \n\t\t\t\tWHERE ou.address_type='BT' AND ou.order_id IS NULL AND ou.user_id = (SELECT o.user_info_id FROM #__kart_orders as o WHERE o.id =" . $order_id . ")";
$db->setQuery($query);
$orderuser = $db->loadObjectList();
}
$orderuser = $orderuser[0];
switch ($status) {
case 'C':
$orderstatus = JText::_('QTC_CONFR');
/*for invoice*/
$jinput = JFactory::getApplication()->input;
$jinput->set('orderid', $order_id);
$order = $order_bk = $comquick2cartHelper->getorderinfo($order_id);
$this->orderinfo = $order['order_info'];
$this->orderitems = $order['items'];
$this->orders_site = 1;
$this->orders_email = 1;
$this->order_authorized = 1;
if ($this->orderinfo[0]->address_type == 'BT') {
$billemail = $this->orderinfo[0]->user_email;
} else {
if ($this->orderinfo[1]->address_type == 'BT') {
$billemail = $this->orderinfo[1]->user_email;
}
}
$fullorder_id = $order['order_info'][0]->prefix . $order_id;
if (!JFactory::getUser()->id && $params->get('guest')) {
$jinput->set('email', md5($billemail));
}
// check for view override
$view = $comquick2cartHelper->getViewpath('orders', 'invoice');
ob_start();
include $view;
$invoicehtml = ob_get_contents();
ob_end_clean();
/*for invoice*/
break;
case 'RF':
$orderstatus = JText::_('QTC_REFUN');
break;
case 'S':
$orderstatus = JText::_('QTC_SHIP');
break;
case 'E':
$orderstatus = JText::_('QTC_ERR');
break;
case 'P':
$orderstatus = JText::_('QTC_PENDIN');
break;
default:
$orderstatus = $status;
break;
}
$fullorder_id = $orderobj->prefix . $order_id;
if (!empty($store_id)) {
$productStatus = $comquick2cartHelper->getProductStatus($order_id);
$body = JText::sprintf('QTC_STORE_PRODUCT_STATUS_CHANGE_BODY', $productStatus);
} else {
$body = JText::_('QTC_STATUS_CHANGE_BODY');
}
$site = $mainframe->getCfg('sitename');
if ($comment) {
$comment = str_replace('{COMMENT}', $comment, JText::_('QTC_COMMENT_TEXT'));
$find = array('{ORDERNO}', '{STATUS}', '{SITENAME}', '{NAME}', '{COMMENTTEXT}');
$replace = array($fullorder_id, $orderstatus, $site, $orderuser->firstname, $comment);
} else {
$find = array('{ORDERNO}', '{STATUS}', '{SITENAME}', '{NAME}', '{COMMENTTEXT}');
$replace = array($fullorder_id, $orderstatus, $site, $orderuser->firstname, '');
}
$body = str_replace($find, $replace, $body);
$guest_email = '';
if (!$orderuser->user_id && $params->get('guest')) {
$guest_email = "&email=" . md5($orderuser->user_email);
}
$Itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=orders');
$link = JURI::root() . substr(JRoute::_('index.php?option=com_quick2cart&view=orders&layout=order' . $guest_email . '&orderid=' . $order_id . '&Itemid=' . $Itemid), strlen(JURI::base(true)) + 1);
$order_link = '<a href="' . $link . '">' . JText::_('QTC_ORDER_GUEST_LINK') . '</a>';
$body = str_replace('{LINK}', $order_link, $body);
$body = nl2br($body);
if (!empty($invoicehtml)) {
$body = $body . '<div>' . JText::_('QTC_ORDER_INVOICE_IN_MAIL') . '</div>';
$invoicehtml = $body . $invoicehtml;
$invoicesubject = JText::sprintf('QTC_INVOICE_MAIL_SUB', $site, $fullorder_id);
$comquick2cartHelper->sendmail($orderuser->user_email, $invoicesubject, $invoicehtml, $params->get('sale_mail'));
} else {
$subject = JText::sprintf('QTC_STATUS_CHANGE_SUBJECT', $fullorder_id);
$comquick2cartHelper->sendmail($orderuser->user_email, $subject, $body, $params->get('sale_mail'));
}
}
}
示例10: getStoreHomeBtn
/**
* Get store Home Button
*
* @since 2.2
* @return button html.
*/
public function getStoreHomeBtn()
{
$comquick2cartHelper = new comquick2cartHelper();
$cp_Itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=cp');
return "<button type=\"button\" title='" . JText::_('QTC_BACK_TO_DASH_TTITLE') . "' class=\"btn btn-primary btn_margin btn-small qtc_float_right\" onclick=\"window.open('" . JRoute::_('index.php?option=com_quick2cart&view=vendor&layout=cp&Itemid=' . $cp_Itemid) . "','_self')\" > <i class=\"icon-home icon-white\"></i> <?php echo JText::_( 'QTC_BACK_TO_DASH' ); ?>\n\t\t\t</button>";
}
示例11: date
</div>
</div>
<!-- eoc techjoomla-bootstrap -->
<?php
return false;
}
// CHECK WHETHER User HAS STORE
if (!$this->store_id) {
?>
<div class="<?php
echo Q2C_WRAPPER_CLASS;
?>
">
<?php
if ($this->params->get('multivendor')) {
$createstore_Itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=createstore');
$createStore_link = JRoute::_('index.php?option=com_quick2cart&view=vendor&layout=createstore&Itemid=' . $createstore_Itemid);
$clickhere = '<a href="' . $createStore_link . '">' . JText::_('QTC_CLICK_HERE') . '</a> ' . JText::_('QTC_TO_CREATE_STORE');
$msg = JText::sprintf('NO_STORE_FOUND', $clickhere);
} else {
$msg = JText::sprintf('COM_QUICK2CART_MULTIVENDOR_OFF_CANNT_CREATE_MSG');
}
JFactory::getApplication()->enqueueMessage($msg, 'Notice');
?>
</div>
<!-- eoc techjoomla-bootstrap -->
<?php
return false;
}
// Take date a one year back in past.
$backdate = date('Y-m-d', strtotime(date('Y-m-d') . ' - 365 days'));
示例12: qtcAddShipMethRates
// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.modal');
require_once JPATH_SITE . '/plugins/tjshipping/qtc_default_zoneshipping/qtc_default_zoneshipping/qtczoneShipHelper.php';
$qtczoneShipHelper = new qtczoneShipHelper();
$comquick2cartHelper = new comquick2cartHelper();
$productHelper = new productHelper();
$zoneHelper = new zoneHelper();
$qtcshiphelper = new qtcshiphelper();
$taxHelper = new taxHelper();
$mainframe = JFactory::getApplication();
$jinput = $mainframe->input;
$extension_id = $jinput->get('extension_id');
$methodId = $jinput->get('methodId', 0);
$shipMethDetail = $qtcshiphelper->getShipMethDetail($methodId);
$itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=cp');
if (!empty($methodId)) {
$status = $comquick2cartHelper->store_authorize('', $shipMethDetail['store_id']);
if (!$status) {
$zoneHelper->showUnauthorizedMsg();
return false;
}
}
?>
<script type="text/javascript">
function qtcAddShipMethRates()
{
var SelectedZoneVal = document.id('zone_id').value;
示例13: getProductLink
/**
* This public function give product link.
*
* @param integer $item_id primary key of kart_items table.
* @param string $linkType Product link while displaying product or edit product.
* @param integer $absolute Link type.
*
* @since 2.2.2
* @return Object list.
*/
public function getProductLink($item_id, $linkType = 'detailsLink', $absolute = 0)
{
$helperobj = new comquick2cartHelper();
$db = JFactory::getDBO();
$query = "SELECT `product_id`, `parent`\n\t\t FROM `#__kart_items`\n\t\t WHERE item_id=" . $item_id;
$db->setQuery($query);
$res = $db->loadAssoc();
$link = "";
$uri = JUri::getInstance();
switch ($res["parent"]) {
default:
case "com_quick2cart":
if ($linkType == 'detailsLink') {
$catpage_Itemid = $helperobj->getitemid('index.php?option=com_quick2cart&view=category');
$link = 'index.php?option=com_quick2cart&view=productpage&layout=default&item_id=' . $res["product_id"] . "&Itemid=" . $catpage_Itemid;
$link = JRoute::_($link, false);
} elseif ($linkType == 'editLink') {
$add_product_itemid = $helperobj->getitemid('index.php?option=com_quick2cart&view=product');
$link = 'index.php?option=com_quick2cart&view=product&item_id=' . $res["product_id"] . '&Itemid=' . $add_product_itemid;
$link = JRoute::_($link, false);
}
break;
case "com_content":
if ($linkType == 'detailsLink') {
require_once JPATH_SITE . '/components/com_content/helpers/route.php';
$query = 'SELECT a.id, ' . ' CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug,' . ' CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END as catslug' . ' FROM #__content AS a ' . ' INNER JOIN #__categories AS cc ON cc.id = a.catid' . ' WHERE a.id=' . $res["product_id"];
$db->setQuery($query);
$article = $db->loadObject();
$link = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug, $article->catslug), false);
} elseif ($linkType == 'editLink') {
$link = JRoute::_('index.php?option=com_content&task=article.edit&a_id=' . $res["product_id"] . '&return=' . base64_encode($uri), false);
}
break;
case "com_zoo":
if ($linkType == 'detailsLink') {
$Itemid = $helperobj->getitemid('index.php?option=com_zoo&task=item');
$link = "index.php?option=com_zoo&task=item&item_id=" . $res["product_id"] . "&Itemid=" . $Itemid;
$link = JRoute::_($link, false);
} elseif ($linkType == 'editLink') {
$zooConfigFile = JPATH_ADMINISTRATOR . '/components/com_zoo/config.php';
if (JFile::exists($zooConfigFile)) {
require_once $zooConfigFile;
}
$zooApp = App::getInstance('zoo');
/*$add_product_itemid = $helperobj->getitemid('index.php?option=com_quick2cart&view=product');
$link = JRoute::_('index.php?option=com_quick2cart&view=product&item_id=' . $res["product_id"] . '&Itemid=' . $add_product_itemid, false);*/
$item = $zooApp->table->item->get($res["product_id"]);
// Get submission type of item
$type = $item->type;
/*// Here is the exact hash for the record
$hashRelated = $zooApp->submission->getSubmissionHash(1, $type, $res["product_id"]);
@TODO - get and use submission_id insted of using hardcoded value 1
Construct link as zoo
$link = JRoute::_('index.php?option=com_zoo&view=submission&layout=submission&submission_id=1&type_id='
. $type. '&item_id=' . $res["product_id"] . '&submission_hash=' . $hashRelated, false);*/
$link = $zooApp->route->submission($item->getApplication()->getItemEditSubmission(), $item->type, null, $item->id, 'itemedit');
}
break;
case "com_k2":
require_once JPATH_SITE . '/components/com_k2/helpers/route.php';
$Itemid = $helperobj->getitemid('index.php?option=com_k2&view=item');
if ($linkType == 'detailsLink') {
$query = "SELECT a.id, a.alias, a.catid,\n\t\t\t\t b.alias as categoryalias\n\t\t\t\t FROM #__k2_items as a\n\t\t\t\t LEFT JOIN #__k2_categories AS b ON b.id = a.catid\n\t\t\t\t WHERE a.id = " . $res["product_id"];
$db->setQuery($query);
$k2item = $db->loadObject();
$link = K2HelperRoute::getItemRoute($k2item->id . ':' . urlencode($k2item->alias), $k2item->catid . ':' . urlencode($k2item->categoryalias));
} elseif ($linkType == 'editLink') {
$Itemid = $helperobj->getitemid('index.php?option=com_quick2cart&view=product');
$link = 'index.php?option=com_k2&view=item&layout=itemform&task=edit&cid=' . $res["product_id"] . '&Itemid=' . $Itemid;
}
$link = JRoute::_($link, false);
break;
case "com_flexicontent":
$Itemid = $helperobj->getitemid('index.php?option=com_flexicontent&view=item');
if ($linkType == 'detailsLink') {
$link = 'index.php?option=com_flexicontent&view=item&id=' . $res["product_id"] . "&Itemid=" . $Itemid;
} elseif ($linkType == 'editLink') {
// @TODO - add catid, alias etc here
$link = 'index.php?option=com_flexicontent&view=item&task=edit&id=' . $res["product_id"] . "&Itemid=" . $Itemid;
}
$link = JRoute::_($link, false);
break;
}
if ($absolute == 1) {
$link = JUri::root() . substr($link, strlen(JUri::base(true)) + 1);
}
return $link;
}
示例14: array
$path = JPATH_SITE . DS . 'libraries' . DS . 'joomla' . DS . 'html' . DS . 'html' . DS . 'category.php';
if (!class_exists('JHtmlCategory')) {
JLoader::register('JHtmlCategory', $path);
JLoader::load('JHtmlCategory');
}
// JUGAD fix for error #20162
if (!empty($comp_option)) {
$qtc_cat_options = JHtml::_('category.options', 'com_quick2cart', array('filter.published' => array(1)));
} else {
// Get categories manually
$qtc_cat_options = $comquick2cartHelper->getQ2cCats(1);
}
$cats = array_merge($options, $qtc_cat_options);
}
// GETTING ITEM ID
$catItemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&' . $qtc_linkparam);
?>
<div class="row-fluid qtc_category_list <?php
echo $classes;
?>
" style="<?php
echo $scroll_style;
?>
">
<div class="span12">
<div class="tj-list-group">
<strong class="tj-list-group-item"><?php
echo JText::_('QTC_PROD_SEL_CAT_HEADER');
?>
</strong>
示例15: storeHelper
//$this->params->get('multivendor');
if (empty($multivendor_enable)) {
return;
}
$jinput = JFactory::getApplication()->input;
$preview = $jinput->get("preview");
if (!empty($preview)) {
return;
}
?>
<div class="qtc_toolbarDiv">
<?php
if (!$user->guest) {
$comquick2cartHelper = new comquick2cartHelper();
$this->store_cp_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=cp');
$this->create_store_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=vendor&layout=createstore');
$this->my_stores_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=stores&layout=my');
$this->my_payouts_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=payouts&layout=my');
$this->my_coupons_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=coupons&layout=my');
$this->store_customers_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=orders&layout=mycustomer');
$this->store_orders_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=orders&layout=storeorder');
$this->view_products_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=category');
$this->add_product_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=product');
$this->my_products_itemid = $comquick2cartHelper->getitemid('index.php?option=com_quick2cart&view=category&layout=my');
$this->store_id = !empty($this->store_id) ? $this->store_id : 0;
$storeLimitPerUser = $this->params->get('storeLimitPerUser');
$storeHelper = new storeHelper();
$allowToCreateStore = $storeHelper->isAllowedToCreateNewStore();
?>