Example #1
0
 /**
  * This public function check no of store for each user and allowed store limit from  comp param
  * AND return status to create store
  *
  * @since   2.2
  * @return  boolean.
  */
 public function isAllowedToCreateNewStore()
 {
     $qtc_params = JComponentHelper::getparams('com_quick2cart');
     $storeLimitPerUser = $qtc_params->get('storeLimitPerUser');
     $allowToCreateStore = 1;
     if (!empty($storeLimitPerUser)) {
         $storeHelper = new storeHelper();
         $noOfStore = $storeHelper->getUserStoreCount();
         if (!empty($noOfStore)) {
             if ($noOfStore >= $storeLimitPerUser) {
                 $allowToCreateStore = 0;
             }
         }
     }
     return $allowToCreateStore;
 }
Example #2
0
?>

<script type="text/javascript">
	function submitAction_store(action)
	{
		if (action=="change_store")
		{
			var store_id=document.getElementById("current_store_id").value;
			document.adminForm.change_store.value=store_id;
			document.adminForm.submit();
		}
	}
</script>

<?php 
$this->params = JComponentHelper::getparams('com_quick2cart');
$multivendor_enable = 1;
//$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) {
Example #3
0
    echo JText::sprintf('QTC_ALREADY_YOU_HAVE_STORES', $userStoreCount);
    ?>
				</span>
			</div>
		</div>
	</div>
	<?php 
    return false;
}
$store_edit = 0;
$store_vanity = '0';
if (!empty($this->storeinfo[0])) {
    $store_edit = 0;
    $store_vanity = $this->storeinfo[0]->vanityurl;
}
$qtc_params = JComponentHelper::getparams('com_quick2cart');
$qtcshiphelper = new qtcshiphelper();
?>

<script type="text/javascript">
	window.addEvent('domready', function()
	{
		document.formvalidator.setHandler('qtc_alphanum', function(value)
		{
			var regex = /^[0-9a-zA-Z\-]+$/;
			var status=regex.test(value);

			if (!status)
			{
				alert("<?php 
echo JText::_('QTC_ALPHA_NUM_ONLY');