[ic] Barlink not searching locale products

Mike Heins mike at perusion.com
Fri Jan 28 19:54:37 EST 2005

Quoting Anthony van Winkle (demandread at gmail.com):
> Hello. I'm running Interchange 5.2.0 and have been able to find the
> help to most of my questions on the archives, but not this one.
> I'm running a single catalog with various locale settings for
> different languages and pricing options. Defining different image
> directories, price pictures and divides, and html suffixes all works
> well. I've added the area and cat rows to locale.txt, so the
> category_vertical properly displays bar_links in different languages.
> So far, so good.
> The problem I'm having is that the links in category_vertical are
> still searching the original products database, and thus returning no
> results. The foreign database (products_de_DE.gdbm) is fully
> functional, because the random and cross_sell products all show up in
> German. If I force the bar_link to search it (by adding
> fi=products_de_DE) to the scan string then it returns properly. I
> cannot figure out how to get the locale variable to influence this
> automatically, however.

Depending on how the argument is developed, it might be as
easy as:

	[if scratch mv_locale =~ /^$|__DEFAULT_LOCALE__/]
		fi=products_[scratch mv_locale]

Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.647.1295  tollfree 800-949-1889 <mike at perusion.com>

"Even if you're on the right track, you'll get run over if you just
sit there." -- Will Rogers

More information about the interchange-users mailing list