You have no items in your shopping cart.

Sunday, September 25, 2022 2:16:29 PM

Plugin not working

Avatar

Posted: 2 years ago

#11091 Quote

wtpinc

Posted: 2 years ago

#11091 Quote

I'm trying to add a plugin and it isn't doing anything. When we add the plugin to the feed xml is it case sensitive or requires lower case?

public class FeedManagerPlugin
    {
        public virtual string ReadAttributeValue(Product product, ProductAttributeCombination productAttributeCombination, string feedColumName, string typeFeed)
        {
            if (product.Sku.StartsWith("WN-") || product.Sku.StartsWith("WU-") || product.Sku.StartsWith("WR-") || product.Sku.StartsWith("WI-"))
                return product.Sku.Substring(3);
            else
                return product.Sku;
        }
    }
Avatar

Posted: 2 years ago

#11092 Quote

Support

Posted: 2 years ago

#11092 Quote

You can use any case characters.
Avatar

Posted: 2 years ago

#11093 Quote

wtpinc

Posted: 2 years ago

#11093 Quote

So why would it not pick it up?

Here's the snippet from the XML file:


<FeedAttribute>
    <Id>15</Id>
    <FeedCaption>Manufacturer Part Number (MPN)</FeedCaption>
    <FeedName>mpn</FeedName>
    <FieldNameCode>plugin:ReplaceWs</FieldNameCode>
    <ConvertValues />
    <CharsLimit>70</CharsLimit>
    <Required>false</Required>
    <IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
    <UseCDATA>false</UseCDATA>
    <ActionId>0</ActionId>
    <AdvancedField>false</AdvancedField>
    <RowSourceType>0</RowSourceType>
    <AttributeControlType>0</AttributeControlType>
  </FeedAttribute>
Avatar

Posted: 2 years ago

#11094 Quote

Support

Posted: 2 years ago

#11094 Quote

Did you add this file ReplaceWs.DLL to the  plugin folder (FoxnetSoft.FeedManager)?
Avatar

Posted: 2 years ago

#11095 Quote

wtpinc

Posted: 2 years ago

#11095 Quote

Yes, created a plugins folder under FoxnetSoft.FeedManager and put that file in that folder.

Does it go in the root folder?
Avatar

Posted: 2 years ago

#11096 Quote

Support

Posted: 2 years ago

#11096 Quote

>Does it go in the root folder?
Copy this DLL file to the root plugin folder.
Avatar

Posted: 2 years ago

#11097 Quote

wtpinc

Posted: 2 years ago

#11097 Quote

Yeah, that's still not working. Any other suggestions?
Avatar

Posted: 2 years ago

#11098 Quote

Support

Posted: 2 years ago

#11098 Quote

I am sorry for my mistake.

Copy plugin to this folder
~/Plugins/FoxNetSoft.FeedManager/Plugins/

Example of path
/Plugins/FoxNetSoft.FeedManager/Plugins/yourpluginname.dll

Restart nopcommerce after it.

Powered by nopCommerce

Copyright © 2019 FoxNetSoft. All rights reserved