Skip to main content

ValidatorScheduler

Short description

You can define checks for submitting subscription settings in this template.

Template ValidatorScheduler

Variables

These variables are available in this container.

  • $SchedulerDate — Returns the subscription’s starting date.

  • $SchedulerInterval — Returns the subscription’s ending date.

  • $SchedulerRepeating — Returns the number of deliveries for the subscription.

Examples

{%

	# Example for ValidatorPlaceOrder
	if(!$TermsAndConditionsCheck)
	{
		$_errorCode = 16; # Please read our General Terms and Conditions and confirm them by selecting the choice box.

		AddError($_errorCode);
	}


	# Example for ValidatorCustomerShippingAddress
	$_shippingAddress = GetCheckoutCustomerShippingAddressFromRequest();

	if(strlen($_shippingAddress->FirstName) < 2
		|| strlen($_shippingAddress->LastName) < 2)
	{
		$_errorCode = 39; #Please enter name and surname.

		AddError($_errorCode);
	}

%}
To top