[ic] Specify the URL to append before the product sku?

Stefan Hornburg Racke interchange-users@interchange.redhat.com
Fri Apr 12 04:18:01 2002


"Ron Phipps" <rphipps@reliant-solutions.com> writes:

> I'd like to be able to call a url like the following:
> http://wwww.yourdomain.com/cgi-bin/yourstore/products/00001.html and
> have IC generate the product page based on the flypage like it does
> normally.  The only difference being that all products would be pulled
> up in the products directory and not from the base pages directory.  Is
> there a configuration directive to do such a thing?  The reason for this
> is we are going to use a search product which allows for parts of the
> site to be part of a group based on matching on the url.  We'd like to
> have product grouping, information grouping, company information, etc.

I don't really understand what the heck you are going to do, but
ActionMap might worth a try:

ActionMap products <<EOR
sub {
    my ($action, $product) = split('/', shift);

    $product =~ s/\.html$//;

    $CGI->{mv_nextpage} = 'flypage'; # or whatever your flypage is
    $CGI->{mv_arg} = $product;
    return 1;
}

Ciao
        Racke

-- 
Think of it !

For projects and other business stuff please refer to COBOLT NetServices
(URL: http://www.cobolt.net; Email: info@cobolt.net; Phone: 0041-1-3884400)