Mailing List Archive

{Spam?} Re: [bounce] question
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@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
{Spam?} Re: [bounce] question [ In reply to ]
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@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Re: {Spam?} Re: [bounce] question [ In reply to ]
> 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

Does the trick - thanks! I was getting closer but still hadn't got it
after quite a few attempts.

DB

_______________________________________________
interchange-users mailing list
interchange-users@icdevgroup.org
http://www.icdevgroup.org/mailman/listinfo/interchange-users