| Vinayak Tadas[MSFT] 2004-09-30, 10:40 am |
| You can get the currency for the catalog by doing something like this
ProductCatalog productCatalog =
CommerceContext.Current.CatalogSystem.GetCatalog("CatalogName");
DataSet catalogAttributes = productCatalog.GetCatalogAttributes();
string currency = catalogAttributes.Tables[0].Rows[0]["Currency"];
You will have to map the currency to a currency symbol using the
System.Globalization.NumberFormatInfo class.
--------------------
Thread-Topic: currency of a catalog
thread-index: AcSmLHsReKBTaiHeQiqenu3kMO5W1w==
X-WBNR-Posting-Host: 81.255.177.89
From: "=?Utf-8?B?VGFsa2Jpeg==?=" <Talkbiz@discussions.microsoft.com>
Subject: currency of a catalog
Date: Wed, 29 Sep 2004 06:59:04 -0700
Lines: 5
Message-ID: <AC0369EC-3057-444B-A33C-217DAB01D776@microsoft.com>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 8bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14876
X-Tomcat-NG: microsoft.public.commerceserver.general
Hello
I work on commerce server 2002. And I develop under ASP.NET C #. I wanted
to know how one can get the currency of a catalog and it’s symbol.
Thank you
Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only. Thanks
|