eZPublish  3.8
discountgroupmembershipview.php File Reference

Variables

 $customers = array()
 
 $discountGroup = eZDiscountRule::fetch( $discountGroupID )
 
 $discountGroupID = null
 
if(is_null($discountGroup)) $http =& eZHttpTool::instance()
 
if($http->hasPostVariable("AddRuleButton"))
if($http->hasPostVariable("RemoveRuleButton"))
if($http->hasPostVariable("AddCustomerButton"))
if($module->isCurrentAction(
'AddCustomer')) if($http->
hasPostVariable("RemoveCustomerButton")) 
$membershipList = eZUserDiscountRule::fetchByRuleID( $discountGroupID )
 
 $module =& $Params["Module"]
 
 $Result = array()
 
 $Result ['content'] =& $tpl->fetch( "design:shop/discountgroupmembershipview.tpl" )
 
 $Result ['path']
 
 $ruleArray = array()
 
foreach($membershipList as
$membership) 
$ruleList = eZDiscountSubRule::fetchByRuleID( $discountGroupID )
 
foreach($ruleList as $rule) $tpl =& templateInit()
 

Variable Documentation

$customers = array()
$discountGroup = eZDiscountRule::fetch( $discountGroupID )
$discountGroupID = null
if (is_null($discountGroup)) $http =& eZHttpTool::instance()
if ($http->hasPostVariable("AddRuleButton")) if ($http->hasPostVariable("RemoveRuleButton")) if ($http->hasPostVariable("AddCustomerButton")) if ($module->isCurrentAction( 'AddCustomer')) if ($http->hasPostVariable("RemoveCustomerButton")) $membershipList = eZUserDiscountRule::fetchByRuleID( $discountGroupID )
$module =& $Params["Module"]
$Result = array()
$Result['content'] =& $tpl->fetch( "design:shop/discountgroupmembershipview.tpl" )
$Result['path']
Initial value:
= array( array( 'url' => '/shop/discountgroup/',
'text' => ezi18n( 'kernel/shop', 'Group view of discount rule' ) ) )
foreach ($ruleList as $rule) $tpl =& templateInit()