Esempio n. 1
0
<?php

/**
 * @version    SVN: <svn_id>
 * @package    Quick2cart
 * @author     Techjoomla <*****@*****.**>
 * @copyright  Copyright (c) 2009-2015 TechJoomla. All rights reserved.
 * @license    GNU General Public License version 2 or later.
 */
// No direct access.
defined('_JEXEC') or die;
$helperobj = new comquick2cartHelper();
$storeHelper = new storeHelper();
$store_link = $storeHelper->getStoreLink($data['id']);
//$store_link= JRoute::_('index.php?option=com_quick2cart&view=vendor&layout=store&store_id='.$data['id'].'&Itemid='.$addProd_Itemid);
$com_params = JComponentHelper::getParams('com_quick2cart');
$img_width = $com_params->get('storeavatar_width');
?>

<li class="store_wrapper" <?php 
echo empty($prodclass) ? 'style="width:' . ($img_width + 30) . 'px;"' : 'class="' . $prodclass . '"';
?>
 >
	<div class="thumbnail">
		<!-- store name-->
		<div class="row-fluid">
			<div class="span12" align="center" >
				<a href="<?php 
echo $store_link;
?>
">
Esempio n. 2
0
 function updateEasysocialApp()
 {
     $lang = JFactory::getLanguage();
     $lang->load('plg_app_user_q2cMyProducts', JPATH_ADMINISTRATOR);
     // Get storeid,useris and total from ajax responce.
     $input = JFactory::getApplication()->input;
     $storeid = $input->get('storeid', '', 'INT');
     $userid = $input->get('uid', '', 'INT');
     $total = $input->get('total', '', 'INT');
     // Load app modal getitem function.
     require_once JPATH_ROOT . '/media/com_easysocial/apps/user/q2cMyProducts/models/q2cmyproducts.php';
     $q2cMyProductsModel = new q2cmyproductsModel('', $config = array());
     $products = $q2cMyProductsModel->getItems($userid, $total, $storeid);
     $store_product_count = $q2cMyProductsModel->getProductsCount($userid, $storeid);
     // load store helper file
     JLoader::register('storeHelper', JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'helpers' . DS . 'storeHelper.php');
     // Laod store helper class.
     JLoader::load('storeHelper');
     $storeHelper = new storeHelper();
     // Get store link
     $store_link = $storeHelper->getStoreLink($storeid);
     // Set q2c products return by modal of easysocial app.
     $this->set('products', $products);
     if ($products) {
         $random_container = 'q2c_pc_es_app_my_products';
         $html = '<div id="q2c_pc_es_app_my_products">';
         foreach ($products as $data) {
             $path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'views' . DS . 'product' . DS . 'tmpl' . DS . 'product.php';
             // @TODO condition vise mod o/p
             ob_start();
             include $path;
             $html .= ob_get_contents();
             ob_end_clean();
         }
         $html .= '</div>';
         $html .= '<div class="clearfix"></div>';
         if ($store_product_count > $total) {
             $html .= "\n\t\t\t\t<div class='row-fluid span12'>\n\t\t\t\t\t<div class='pull-right'>\n\t\t\t\t\t\t<a href='" . $store_link . "'>" . JText::_('APP_Q2CMYPRODUCTS_SHOW_ALL') . " (" . $store_product_count . ") </a>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='clearfix'>&nbsp;</div>\n\t\t\t\t</div>";
         }
     } else {
         $user = JFactory::getUser($userid);
         $html = '<div class="empty" style="display:block;">';
         $html .= JText::sprintf('APP_Q2CMYPRODUCTS_NO_PRODUCTS_FOUND', $user->name);
         $html .= '</div>';
     }
     $js = 'initiateQ2cPins();';
     $data['html'] = $html;
     $data['js'] = $js;
     echo json_encode($data);
     jexit();
 }
Esempio n. 3
0
				<?php 
    foreach ($products as $data) {
        $path = JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'views' . DS . 'product' . DS . 'tmpl' . DS . 'product.php';
        ob_start();
        include $path;
        $html = ob_get_contents();
        ob_end_clean();
        echo $html;
    }
    ?>
			</div>

			<?php 
    if ($productsCount > $total) {
        $storeHelper = new storeHelper();
        $storeLink = $storeHelper->getStoreLink($firstStore);
        ?>
				<div class="pull-right">
					<a href="<?php 
        echo $storeLink;
        ?>
"><?php 
        echo JText::_('APP_Q2CMYPRODUCTS_SHOW_ALL') . " (" . $productsCount . ")";
        ?>
</a>
				</div>
			<?php 
    }
    ?>

		<?php 
Esempio n. 4
0
echo $scroll_style;
?>
">
	<div class="span12">
		<div class="tj-list-group">
			<strong class="tj-list-group-item"><?php 
echo JText::_('QTC_SEL_VENDOR');
?>
</strong>
			<?php 
$selected_storeid = $mainframe->getUserStateFromRequest('store_id', 'store_id', '', 'INTEGER');
$selected_current_store = $mainframe->getUserStateFromRequest('current_store', 'current_store', '', 'INTEGER');
$selected = !empty($selected_storeid) ? $selected_storeid : $selected_current_store;
if (!empty($options)) {
    foreach ($options as $op) {
        $storeLink = $storeHelper->getStoreLink($op->id);
        $activeoption = "";
        if ($selected == $op->id) {
            $activeoption = "active";
        }
        // Store status is 1, Added by Sneha
        if ($op->live == 1) {
            ?>
						<a class="tj-list-group-item <?php 
            echo $activeoption;
            ?>
" href="<?php 
            echo $storeLink;
            ?>
">
							<?php 
Esempio n. 5
0
    $sinfo = $this->storeDetailInfo;
    if ($layout == "storeinfo") {
        ?>
		<div class="<?php 
        echo Q2C_WRAPPER_CLASS;
        ?>
">
		<?php 
    }
    ?>
			<div class="row-fluid">
				<div class="well well-small span12">
					<legend>
						<?php 
    $storeHelper = new storeHelper();
    $storeLink = $storeHelper->getStoreLink($this->storeDetailInfo['id']);
    ?>

						<a href="<?php 
    echo $storeLink;
    ?>
" class="btn btn-mini">
							<i class="<?php 
    echo Q2C_ICON_HOME;
    ?>
"></i>
						</a> &nbsp; <?php 
    echo $sinfo['title'];
    ?>

						<?php 
Esempio n. 6
0
	<tbody>
			<?php 
$tprice = 0;
$store_array = array();
$params = JComponentHelper::getParams('com_quick2cart');
$multivendor_enable = $params->get('multivendor');
$storeHelper = new storeHelper();
foreach ($cart_session as $cart) {
    ?>
			<?php 
    // IF MUTIVENDER ENDABLE
    if (!empty($multivendor_enable)) {
        if (!in_array($cart['store_id'], $store_array)) {
            $store_array[] = $cart['store_id'];
            $storeinfo = $helperobj->getSoreInfo($cart['store_id']);
            $storeLink = $storeHelper->getStoreLink($cart['store_id']);
            ?>
	<!-- STORE TITILE -->
					<tr class="info">
							<td colspan="5" ><strong><a href="<?php 
            echo $storeLink;
            ?>
"><?php 
            echo $storeinfo['title'];
            ?>
</a><strong></td>
					</tr>
				<?php 
        }
    }
    $product_link = $helperobj->getProductLink($cart['item_id']);
Esempio n. 7
0
    echo $storeHelper->getCatHierarchyLink($this->itemdetail->category, 'com_quick2cart');
    ?>
										</div>
										<?php 
}
$multivendor_enable = $params->get('multivendor');
if (!empty($this->itemdetail->store_id) && !empty($multivendor_enable)) {
    ?>
											<!--  STORE NAME -->
											<div class="" itemprop="brand" itemscope
												itemtype="http://schema.org/Brand">
												<span>
													<?php 
    $storeinfo = $comquick2cartHelper->getSoreInfo($this->itemdetail->store_id);
    $storeHelper = new storeHelper();
    $storeLink = $storeHelper->getStoreLink($this->itemdetail->store_id);
    $contact_ink = JUri::base() . 'index.php?option=com_quick2cart&view=vendor&layout=contactus&store_id=' . $this->itemdetail->store_id . '&item_id=' . $this->item_id . '&tmpl=component';
    ?>
													<?php 
    echo JText::_('QTC_STORE_NAME');
    ?>
:&nbsp;
													<a href="<?php 
    echo $storeLink;
    ?>
">
														<span itemprop="name"><?php 
    echo $storeinfo['title'];
    ?>
</span>
													</a>