[Typo3-shop] AGB check in future
    Franz Holzinger 
    franz at fholzinger.com
       
    Fri Dec 17 16:18:54 CET 2004
    
    
  
How should we handle the AGB check in the future?
It comes from zk_products, however this is not compatible.
-----------------------
case "products_payment":
	$this->load_noLinkExtCobj();
	if ($this->checkRequired() && 
isset($_REQUEST["recs"]["personinfo"]["agb"])) {
		$this->mapPersonIntoToDelivery();		 
$content=$this->getBasket("###BASKET_PAYMENT_TEMPLATE###");
		} else {	// If not all required info-fields are filled in, this is 
shown instead:
$content.=$this->cObj->getSubpart($this->templateCode,$this->spMarker("###BASKET_REQUIRED_INFO_MISSING###"));
			$content = 	
			$this->cObj->substituteMarkerArray($content,
			$this->addURLMarkers(array()));	}
-----------------------
This is because the agb usually is not set and will therefore always 
produce an error message even if the user has not defined anything like 
that.
Franz
    
    
More information about the TYPO3-project-tt-products
mailing list