Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users
{Spam?} Re: [bounce] question
 

Index | Next | Previous | View Flat


rbragg at gmnet

Feb 22, 2012, 12:39 PM


Views: 163
Permalink
{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 [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users

Subject User Time
{Spam?} Re: [bounce] question lists at gmnet Feb 22, 2012, 12:43 PM
    {Spam?} Re: [bounce] question rbragg at gmnet Feb 22, 2012, 12:39 PM
    Re: {Spam?} Re: [bounce] question db at m-and-d Feb 22, 2012, 12:58 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.