You have no items in your shopping cart.

Profile: Support

Avatar
Statistics

    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.

    6 years ago

    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
                    };

    6 years ago

    It's strange.
    1. What nopcommerce version do you use?
    2. Do you use original nopcommerce kernel DLL files or custom DLL files?

    6 years ago

    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?

    6 years ago

    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,


    6 years ago

    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>

    6 years ago

    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>



    But it's a good idea to add new CustomerXMl template with name of top element and name of elements...

    Another information.
    You can add sublevel for item.
    Example.
    Take this template bestpricegr.xml and look for this part of code

      <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>


    Plugin will create such XML block for this parameter.

    <imagesURL>
    <img1>http://demo330.test.com/content/images/thumbs/0000017_100-physical-gift-card_500.jpg</img1>
    </imagesURL>


    Do you need another logic and have any ideas I'll try to do it...
    I am interesting to improve this plugin.

    6 years ago

    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.

    6 years ago

    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>

    6 years ago

    I'll check this problem tomorrow.... Think I use TRIM....
    If I am right I'll do new fix tomorrow too.
    Thank you.

    6 years ago

    Powered by nopCommerce

    Copyright © 2023 FoxNetSoft. All rights reserved