Write me to e-mail: support@foxnetsoft.com and I want to connect to your PC using TeamViewer and see your store.
I don't know.
Answer it.
Plugin uses REST API and uses original PayPal.dll 1.8.0.0.
We try to send
object PayPal.Api.ItemList.shipping_address
Our code
var itemList = new ItemList()
{
items = items,
#region shipping address
shipping_address = customer.ShippingAddress == null ? null : new ShippingAddress
{
country_code = GetCountryTwoLetterIsoCode(customer.ShippingAddress),
state = customer.ShippingAddress.StateProvince != null ? customer.ShippingAddress.StateProvince.Abbreviation : null,
city = customer.ShippingAddress.City,
line1 = PreparePayPalValue(customer.ShippingAddress.Address1,100),
line2 = PreparePayPalValue(customer.ShippingAddress.Address2, 100),
phone = PreparePhoneNumber(customer.ShippingAddress.PhoneNumber),
postal_code = (customer.ShippingAddress.ZipPostalCode??"").Trim(),
recipient_name = string.Format("{0} {1}", customer.ShippingAddress.FirstName, customer.ShippingAddress.LastName)
}
#endregion
};
It's strange.
1. What nopcommerce version do you use?
2. Do you use original nopcommerce kernel DLL files or custom DLL files?
Do you mean that if product doesn't have any images feedmanager creates "Default No Image" or feedmanager creates "Default No Image" for all products?
Plugin uses NopCommerce StateProvince.Abbreviation.
Open your store in admin mode and check Abbreviations for States/Provinces.
Read this documentation
https://developer.paypal.com/docs/classic/api/state_codes/
And compare them.
But I didn't see spate/province code for UK. Ask PayPal support about them.
Our code
state = customer.ShippingAddress.StateProvince != null ? customer.ShippingAddress.StateProvince.Abbreviation : null,
We added new feature in the last release but we didn't changed the release number.
If you need to do custom XML template
Example
<main_level_products>
<sub_level_product>
....
</sub_level_product>
</main_level_products>
Try this code
<FeedNetWork>
<Id>878</Id>
<Name>YouTemplateName</Name>
<Image>YouTemplatePicture.png</Image>
<Schema>YouTemplate.xml</Schema>
<ExportMethodId>99998</ExportMethodId>
<XMLRootElement>main_level_products</XMLRootElement>
<XMLItemElement>sub_level_product</XMLItemElement>
<DisplayOrder>1</DisplayOrder>
<Documentations>
</Documentations>
</FeedNetWork>
Yes and no.
CSV format is very plain. You can customer it.
I didn't find good solution for XML customer format, because you should set the name of top level element (ex. "products") and the name of item element (ex. "product").
It was the best way to take existing template (with the same logic) and custom it.
We take template Kieskeurig (Id=60), you can take any another template.
You will see the list of possible templates in this feeds.xml file.
I meant this block
<products>
<product>
....
</product>
</products>
<FeedAttribute>
<Id>4</Id>
<FeedCaption>img1</FeedCaption>
<FeedName>img1</FeedName>
<XPath>imagesURL</XPath>
<FieldNameCode>picture</FieldNameCode>
<Required>false</Required>
<IgnoreNullOrEmpty>true</IgnoreNullOrEmpty>
<ActionId>0</ActionId>
</FeedAttribute>
<imagesURL>
<img1>http://demo330.test.com/content/images/thumbs/0000017_100-physical-gift-card_500.jpg</img1>
</imagesURL>
PayPal uses this parameter if you plan to use "Login via PayPal", example our plugins SocialLogin. Set your store URL if you don't want to use "Login via PayPal".
But if you install plugin SocialLogin you you see this Return AOuth URL on plugin configure page.
I was wrong. I don't use TRIM.
If you change PREFIX from nop admin mode than NopCommerce TRIM each value automatically.
Open the feed template as plain file.
Example Google.xml and look for your prefix. Add space bar and save it.
<FeedAttribute>
<Id>1</Id>
<FeedCaption>Product Name</FeedCaption>
<FeedName>title</FeedName>
<FieldNameCode>name</FieldNameCode>
<Prefix>Test </Prefix>
<ConvertValues />
<CharsLimit>150</CharsLimit>
<Required>false</Required>
<IgnoreNullOrEmpty>false</IgnoreNullOrEmpty>
<UseCDATA>false</UseCDATA>
<ActionId>0</ActionId>
<AdvancedField>false</AdvancedField>
<RowSourceType>0</RowSourceType>
<AttributeControlType>0</AttributeControlType>
</FeedAttribute>
I'll check this problem tomorrow.... Think I use TRIM....
If I am right I'll do new fix tomorrow too.
Thank you.