MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] If Locale Statement



Ended up using the example below and it works. I could not use the 
advice Mike gave due to the fact the admin has not upgraded minivend 
to at least 3.12.


The example is perfect except I need to find a way to set the default 
locale to en_US and I've tried using examples from the docs and it 
doesn't work.

When a customer first comes to the store the image is black whereas 
it should be red cause en_US should be default, which it isn't.

[if scratch mv_locale eq en_US]
	<img src="money/red-usd.gif" border=0 alt="US" width=25 height=25>
[else]
	[page process/locale/en_US/page/index]<img 
src="money/black-usd.gif" border=0 alt="US" width=25 height=25>[/page]
[/else]
[/if]

Any suggestions?



>> I haven't seen any informaiton on this in the docs or found anything
>> in the archives about this.
>>
>> I have small graphic images for each locale setup (to allow user to
>> click on). If the user is in English mode as a default. I would like
>> an alternate image to be displayed so they see what locale they are
>> in.
>>
>> so for english I have a red dollar sign logo and a black one. When
>> they are using english the logo will be the red one. If they select a
>> different local, I would like it to change to black.
>>
>> Does anyone know any condition statements for locale to do this.?
>>
>> [if locale eq en_US]
>> <img src="money/red-us.gif" border=0 alt="US" width=25 height=25>
>> [else]
>> [page process/locale/en_US/page/index]<img src="money/black-us.gif"
>> border=0 alt="US" width=25 height=25>[/page]
>> [/else]
>> [/if]
>
>[if scratch mv_locale eq en_US]
>American Dollar
>[/if]
>
>--cut
>
>-
>To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
>email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
>Archive of past messages: http://www.minivend.com/minivend/minivend-list


Ven's News: http://www.pragakhan.com/news.html

Ven (ven@pragakhan.com) _________________ http://ven.pragakhan.com __
AOL: WebmstrVen     Praga Khan's Official Website        ICQ: 8321393
                       http://www.pragakhan.com
                     Lords of Acid Official Website
                       http://www.lordsofacid.com


Search for: Match: Format: Sort by: