
rbragg at gmnet
Feb 22, 2012, 12:39 PM
Views: 163
Permalink
|
On Wed, 2012-02-22 at 14:22 -0500, DB wrote: > I want to use the tag [bounce href if] on a flypage to redirect visitors > to an external URL if the sku matches a pattern - say the first 3 > characters of the sku are ABC > > In other words, if someone visits the flypage: > http://www.domain1.com/ABC-123.html > > I want them to end up at > http://www.domain2.com/ABC-123.html > > But for all other skus the flypage should work as normal. I'm having > trouble cooking up the correct 'if' condition. Does anyone have a > suggestion? > > Thanks > > DB Try something like this: (untested) [calc] my $itemsku = "[item-code]"; my $bouncepage; if ($itemsku =~ /^ABC/){ $Scratch->{bouncepage} = "http://domain2.com/$itemsku"; } return; [/calc] [if scratch bouncepage] [bounce href="[scratchd bouncepage]"] [/if] Rick _______________________________________________ interchange-users mailing list interchange-users [at] icdevgroup http://www.icdevgroup.org/mailman/listinfo/interchange-users
|