[comment]
ui_template: Yes
ui_template_name: leftright
ui_template_layout: LEFTRIGHT_TOP, UI_CONTENT, LEFTRIGHT_BOTTOM
ui_template_description: Page with top/left/right areas.
page_title:
description: Page title
page_banner:
description: Page banner
help: Defaults to page title
members_only:
options: 1=Yes,0=No*
widget: radio
description: Members only
component_before:
options: =none, specials=Specials, random=Random items
widget: select
description: Component before content
component_after:
options: =none, specials=Specials, random=Random items
widget: select
description: Component after content
bgcolor:
options: #FFFFFF=White,pink=Pink
widget: select
description: Background color
[/comment]
[set page_title]__COMPANY__ -- Welcome[/set]
[set page_banner]Welcome[/set]
[set include_component]specials[/set]
__LEFTRIGHT_TOP__
[if session source]
[calc]
my $coupon_enable = $CGI->{coupon};
my $campaigns = q{[data
table=affiliate
column=campaigns
key='[data session source]'
]};
delete $Scratch->{coupon_approve};
return unless $coupon_enable;
return unless $campaigns =~ /\bcoupon\b/;
$Scratch->{coupon_approve} = 1;
return;
[/calc]
Welcome Affiliate Program Visitor:
[if scratch coupon_approve]
[seti coupon_amount][data table=affiliate column=coupon_amount key='[scratch source]'][/seti]
[discount ENTIRE_ORDER] $s - $Scratch->{coupon_amount}; [/discount]
[set order_discounted]1[/set]
[/if]
[if scratch order_discounted]
[currency][scratch coupon_amount][/currency] Off Coupon Active
[/if]
[/if]
Welcome to Construct Something, the internet's premier source of quality hand tools! We have tools for every building project. Thank you for visiting.