config->get('store_open_hour',0); $close_hour = $this->config->get('store_close_hour',0); $open_minute = $this->config->get('store_open_minute',0); $close_minute = $this->config->get('store_close_minute',0); if($open_hour!=$close_hour || $open_minute!=$close_minute){ function getCurrentDate($format = '%H'){ if(version_compare(JVERSION,'1.6.0','>=')) $format = str_replace(array('%H','%M'),array('H','i'),$format); return (int)JHTML::_('date',time()- date('Z'),$format,null); } $current_hour = hikashop_getDate(time(),'%H'); $current_minute = hikashop_getDate(time(),'%M'); $closed=false; if($open_hour<$close_hour || ($open_hour==$close_hour && $open_minute<$close_minute)){ if($current_hour<$open_hour || ($current_hour==$open_hour && $current_minute<$open_minute)){ $closed=true; } if($close_hour<$current_hour || ($current_hour==$close_hour && $close_minute<$current_minute)){ $closed=true; } }else{ $closed=true; if($current_hour<$close_hour || ($current_hour==$close_hour && $current_minute<$close_minute)){ $closed=false; } if($open_hour<$current_hour || ($current_hour==$open_hour && $open_minute<$current_minute)){ $closed=false; } } if($closed){ $app=& JFactory::getApplication(); $app->enqueueMessage(JText::sprintf('THE_STORE_IS_ONLY_OPEN_FROM_X_TO_X',$open_hour.':'.sprintf('%02d', $open_minute),$close_hour.':'.sprintf('%02d', $close_minute))); echo '
'; return; } } } global $Itemid; $checkout_itemid = $this->config->get('checkout_itemid'); if(!empty($checkout_itemid )){ $Itemid = $checkout_itemid ; } $url_itemid=''; if(!empty($Itemid)){ $url_itemid='&Itemid='.$Itemid; } if($this->display_checkout_bar){ if(HIKASHOP_RESPONSIVE) { ?>
noform)){ ?>
nextButton = true; foreach($this->layouts as $layout) { $layout = trim($layout); if($layout == 'end') { $this->continueShopping = ''; } if(substr($layout, 0, 4) != 'plg.') { $this->setLayout($layout); echo $this->loadTemplate(); } else { $html = ''; $dispatcher->trigger('onCheckoutStepDisplay', array($layout, &$html, &$this)); if(!empty($html)) { echo $html; } } } if(empty($this->noform)){ ?>
extra_data)) echo implode("\r\n", $this->extra_data); if($this->nextButton) { if($this->step == (count($this->steps) - 2)) { $checkout_next_button = JText::_('CHECKOUT_BUTTON_FINISH'); if($checkout_next_button == 'CHECKOUT_BUTTON_FINISH') $checkout_next_button = JText::_('NEXT'); } else $checkout_next_button = JText::_('NEXT'); echo $this->cart->displayButton($checkout_next_button,'next',$this->params, hikashop_completeLink('checkout&task=step&step='.((int)$this->step+1)),'if(hikashopCheckChangeForm(\'order\',\'hikashop_checkout_form\')){ if(hikashopCheckMethods()){ document.getElementById(\'hikashop_validate\').value=1; this.disabled = true; document.forms[\'hikashop_checkout_form\'].submit();}} return false;','id="hikashop_checkout_next_button"'); $button = $this->config->get('button_style','normal'); if ($button=='css') echo ''; } ?>
continueShopping){ if(strpos($this->continueShopping,'Itemid')===false){ if(strpos($this->continueShopping,'index.php?')!==false){ $this->continueShopping.=$url_itemid; } } if(!preg_match('#^https?://#',$this->continueShopping)) $this->continueShopping = JURI::base().ltrim($this->continueShopping,'/'); echo $this->cart->displayButton(JText::_('CONTINUE_SHOPPING'),'continue_shopping',$this->params,JRoute::_($this->continueShopping),'window.location=\''.JRoute::_($this->continueShopping).'\';return false;','id="hikashop_checkout_shopping_button"'); } } ?>
getWord('tmpl','')=='component'){ exit; }