Facebook Pixel Plugin

2 个月 前
Hi,

I wondered if anybody could help me, I'm using the Facebook Pixel plugin for my nopCommerce store, all seems to be working well except for an issue on the completed page of the checkout where I receive the following error message with the Events manager:

Missing Purchase currency and value parameters



Within the nopCommerce admin screens of the plugin there is no option to add a currency parameter, is there a workaround where this can be aded within the page code or any othere solution would be helpful?

Many thanks as always

2 个月 前
What version of nopCommerce?

The 4.60 version code looks to be sending currency.  
Check your primary currency to be sure it has a code.

\Plugins\Nop.Plugin.Widgets.FacebookPixel\Services\FacebookPixelService.cs
private async Task<ConversionsEvent> PreparePurchaseModelAsync(Order order)
...
    //prepare event object
    var currency = await _currencyService.GetCurrencyByIdAsync(_currencySettings.PrimaryStoreCurrencyId);
    var contentsProperties = ...
    var eventObject = new ConversionsEventCustomData
    {
        ContentType = "product",
        Contents = contentsProperties,
        Currency = currency?.CurrencyCode,
        Value = order.OrderTotal
    };
2 个月 前
Thanks for the replying, I have a nopCommerce v4.2 store
2 个月 前
The nopCommerce Team's Facebook Pixel Plugin does not support 4.20
https://www.nopcommerce.com/en/facebook-pixel-by-nopcommerce-team
Supported versions: 4.30, 4.40, 4.50, 4.60

Are you using a 3rd party plugin?  If so, best to contact their support.