[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] HELP !! Problem with "[history-scan%20exclude=nothing]"
"J. Pla" wrote:
>
> My old file in the results page was below because i changed by the email
> that one user of this list say that could be the problem
>
> [bounce HREF='[history-scan find="scan/" default=index]']
>
> Now is [bounce href="[history-scan exclude=nothing]"]
>
> But now the error is
>
> Sorry, the page (nothing) was not found
Well duh! Make a test to get more infos and hints, why you have trouble
with the usertag history-scan.
Add some lines for test like
<BR>
TEST1:[history-scan exclude=nothing]<BR>
TEST2:<A HREF="[history-scan exclude=nothing]">TEST2</A><BR>
TEST3:[tmp scanhistory][history-scan exclude=nothing][/tmp][scratch
scanhistory]<BR>
TEST4:<A HREF="[scratch scanhistory]">TEST4</A>
I've added this into the demo shop "foundation" and it works. Test it
with the simple pages like aboutus, index, etc. first. At the test, I
get
<BR>
TEST1:http://www.bpa.leidinger.local/cgi-bin/foundationnew/login.html?mv_session_id=c8p9tJcD&mv_pc=63&mv_nextpage=login<BR>
TEST2:<A
HREF="http://www.bpa.leidinger.local/cgi-bin/foundationnew/login.html?mv_session_id=c8p9tJcD&mv_pc=64&mv_nextpage=login">TEST2</A><BR>
TEST3:http://www.bpa.leidinger.local/cgi-bin/foundationnew/login.html?mv_session_id=c8p9tJcD&mv_pc=65&mv_nextpage=login<BR>
TEST4:<A
HREF="http://www.bpa.leidinger.local/cgi-bin/foundationnew/login.html?mv_session_id=c8p9tJcD&mv_pc=65&mv_nextpage=login">TEST4</A>
in my Browser. Which version and type of Browser did you have? Did you
try it with another browser?
> My error.log
>
> /~ferranfe/cgi-bin/cart.cgi/process.html Order profile mail_order not found
> 62.82.141.145 zUMSQytH:62.82.141.145 - [18/March/2002:16:38:21 -0500]
..
> How can i configure my order.profile ?
# grep -r "mail\_order" *
etc/profiles.order:189:__NAME__ mail_order
pages/ord/checkout.html:767: <input type=hidden
name=mv_order_profile value=mail_order>
pages/ord/checkout.html:777: <input type=hidden name=mv_order_profile
value=mail_order>
Did you use any kind of tools to search for any keyword first?
Did you search in the mail archivs for any hints or help? For example:
- Searching for "profile order"
- the 6th URL with
http://interchange.redhat.com/archive/interchange-users/2001/msg02262.html
give you more hint.
> My catalog.cfg is
....
Please...post only the important part
> # Deal with customer click history. For example, after adding an item to
> # the cart, the user can return to a specific search results page.
> History 10
> UserTag history-scan Order find exclude default
> UserTag history-scan addAttr
> UserTag history-scan Routine <<EOR
> my %var_exclude = ( qw/
> mv_credit_card_number 1
> mv_pc 1
> mv_session_id 1
> /);
> sub {
> my ($find, $exclude, $default) = @_;
> my $ref = $Vend::Session->{History}
> or return $Tag->area($default ||
> $Config->{SpecialPage}{catalog});
> my ($hist, $href, $cgi);
> $exclude = qr/$exclude/ if $exclude;
> for(my $i = $#$ref; $i >= 0; $i--) {
> #Log("checking $ref->[$i][0] for $exclude");
> next if $ref->[$i][0] eq 'expired';
> if ($exclude and $ref->[$i][0] =~ $exclude) {
> next;
> }
> if($find) {
> next unless $ref->[$i][0] =~ /$find/;
> }
> ($href, $cgi) = @{$ref->[$i]};
> last;
> }
> return $Tag->area($default || $Config->{SpecialPage}{catalog})
> if ! $href;
> my $form = '';
> for(grep !$var_exclude{$_}, keys %$cgi) {
> $form .= "\n$_=";
> $form .= join("\n$_=", split /\0/, $cgi->{$_});
> }
> return $Tag->area( { href => $href, form => $form} );
> }
> EOR
>
.....
Joachim
--
Hans-Joachim Leidinger | Dipl.-Phys.Ing. Entwicklung eCommerce
[leidinger@bpanet.de]
Black Point Arts Internet Solutions GmbH
http://www.bpanet.de