[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ic] Newbie help - Filters - Update to 5.4 - Sign emails


Mark Halliday writes:
Hello list, Setup:
Fedora Core 4
perl 5.8.7 unthreaded /usr/local/
Bundle::InterchangeKitchenSink
Interchange 5.2 rpm
UK based Problems I am having difficulty with: 1. Filters
I 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 by
mail_receipt.
For UK websites, I tend to set the currency_symbol
to £ and
then use a simple filter in the emails to convert
£ to GBP:

   [item-filter
price2gbp][item-price][/item-filter]

The filter looks like this:
   CodeDef price2gbp Filter
   CodeDef price2gbp Routine <<EOR
   sub {
my $val = shift;
       $val =~ s/&price;\s*/GBP /g;

Above you say &#163; as currency symbol ... Here it says &price; .
What happens if you change &price; to &#163; ?
       return $val;
   }
EOR

I am not clear how to save the above code, I have
followed other filters and put it in the file: /usr/lib/interchange/code/Filter/price2gbp.filter
However 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.