Hello list, Setup:Fedora Core 4 perl 5.8.7 unthreaded /usr/local/ Bundle::InterchangeKitchenSink Interchange 5.2 rpmUK based Problems I am having difficulty with: 1. FiltersI have set the Locale to en_GB using the guide on the net. I have set the currency symbol to £ which works in the HTML pages, but I cannot get the filter below to work in the text email produced bymail_receipt.For UK websites, I tend to set the currency_symbolto £ and£ to GBP:then use a simple filter in the emails to convertprice2gbp][item-price][/item-filter][item-filterThe filter looks like this:CodeDef price2gbp Filter CodeDef price2gbp Routine <<EOR sub {my $val = shift;$val =~ s/&price;\s*/GBP /g;
Above you say £ as currency symbol ... Here it says &price; .What happens if you change &price; to £ ?
return $val; }EORI am not clear how to save the above code, I havefollowed other filters and put it in the file: /usr/lib/interchange/code/Filter/price2gbp.filterHowever it does not appear to work. I have tried putting the code in interchange.cfg - but this prevents the index page from loading after restarting interchange.
_______________________________________________ interchange-users mailing list suppressed http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.