Event Calendar Pro commerce

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
9/9/2008 10:05:58 AM
Gravatar
Total Posts 69

Event Calendar Pro commerce

Hi, I'm trying to add an event to the calendar but if I want to charge it gives me this message:

Commerce is not configured on this site. You can still accept free registration for events.

how can I configure commerce?

9/9/2008 10:08:35 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro commerce

Hi,

Commerce configuration is documented here:

http://www.mojoportal.com/ecommerce-configuration.aspx

the same configuration applies to all commerce enabled features in mojoportal (currently just WebStore and Event Calendar Pro but other commerce enabled features are planned).

Best,

Joe

9/9/2008 10:13:30 AM
Gravatar
Total Posts 69

Re: Event Calendar Pro commerce

thanks

now how do I cahnge all the $ to £?

I've added GBP to my site's currency and made it the default in the calendar, I know it works with payPal but when I look at an event in List view it has $ instead of £

9/9/2008 10:23:28 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro commerce

Hmm,

We are using an expression like this to format the price:

<%# string.Format(currencyCulture, "{0:c}",Convert.ToDecimal(Eval("TicketPrice"))) %>

and in the code behind we are looking up the currencyCulture CultureInfo object to use by the currency code, but apparenty its not finding a culture associated with the currency code GBP and is falling back to US culture and therefore formatting it with the $ sign.

I will have to research this further, to be honest its just my cultural ignorance. I thought the UK was using EUR.

Sorry I do not have an immediate solution, but I will look into this today and simulate the problem on my machine and try to figure out a good solution.

Best,

Joe

9/9/2008 10:33:55 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro commerce

I just added GBP on my local machine and set it as the default currency in Event Calendar Pro and it workedfine for me as shown here:

screen shot using GBP currency

Here is a screen shot showing how I added GBP, as I said before the important part is the code.

screen shot of currency administration

So it seems to be working for me.

Best,

Joe

9/9/2008 10:35:58 AM
Gravatar
Total Posts 69

Re: Event Calendar Pro commerce

hmm, I've only got GBP in my currency list as I deleted EUR and USD

9/9/2008 10:40:44 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro commerce

The way we lookup a CultureInfo object ot use from the currency code is like this:

public static CultureInfo GetCurrencyCulture(string currencyISOCode)
{
CultureInfo[] allCultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures);
foreach (CultureInfo cultureInfo in allCultures)
{
RegionInfo regionInfo = new RegionInfo(cultureInfo.LCID);
if (regionInfo.ISOCurrencySymbol == currencyISOCode)
{
return cultureInfo;
}
}

// this is based on web.config globalization section, en-US
return ResourceHelper.GetDefaultCulture();

}

So the only thing I can guess is on your machine its not finding a macthing culture in the collection:

CultureInfo[] allCultures = CultureInfo.GetCultures(CultureTypes.SpecificCultures);

CultureTypes.SpecificCultures is possibly not returning all the same cultures on your machine. Are you up to date with all service paks for your OS and for .NET framework?

Joe

 

9/9/2008 10:47:05 AM
Gravatar
Total Posts 69

Re: Event Calendar Pro commerce

as far as I know yes. It's a dedicated webserver with a respected company based in teh UK so I'm assuming they'd have all the necessary UK codes installed.

9/9/2008 10:49:46 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro commerce

I would not assume that it is up to date with .NET service paks. I would check with the admin of the server, often with dedicated servers the hosting company is not involved in updating it.

Hope it helps,

Joe

9/9/2008 11:20:16 AM
Gravatar
Total Posts 18439

Re: Event Calendar Pro commerce

I've created a simple inline code page that you can drop into your site and see a list of installed cultures.

InstalledCultures.zip contains the page

Just drop it into the root of your web and navigate to /InstalledCultures.aspx

On my machine it shows a whole lot of cultures. I would look to see if English United Kingdom is displayed on your machine, but even if it is there, it still can be that it needs to update to the latest .NET service pak in order to be able to look it up from the currency code. But if its not there it could explain the problem.

Hope it helps,

Joe

9/11/2008 2:44:52 AM
Gravatar
Total Posts 69

Re: Event Calendar Pro commerce

thanks for this

yes, it is there and the service packs are upto date for the OS and .NET

You must sign in to post in the forums. This thread is closed to new posts.