Code Monkey home page Code Monkey logo

Comments (8)

davidtsadler avatar davidtsadler commented on July 22, 2024

Do you have the item number of the listing? One thing to check is that you haven't switched on business policies for the eBay account. If you have then the item may be using a shipping policy specified in the account rather than the one in the item.

from ebay-sdk-examples.

BillDavid07 avatar BillDavid07 commented on July 22, 2024

Hi David, Thanks for your reply. i already ix it by changing the code to addItems and now i can list item with free shipping. :)

Cheers!

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

Good to hear.

from ebay-sdk-examples.

BillDavid07 avatar BillDavid07 commented on July 22, 2024

Sorry, i just want to ask a question about the excludeShipLocation why is it not showing on my ebay item listing. or is it a sandbox ebay bug?

heres my code

$shippingDetails->ExcludeShipToLocation = array(
'Alaska/Hawaii',
'US Protectorates',
'APO/FPO',
'PO Box'
);
$item->ShippingDetails = $shippingDetails;
$item->ShipToLocations[] = 'US';

$item->ReturnPolicy = new TTypes\ReturnPolicyType();
$item->ReturnPolicy->ReturnsAcceptedOption = 'ReturnsAccepted';
$item->ReturnPolicy->RefundOption = 'MoneyBack';
$item->ReturnPolicy->ReturnsWithinOption = 'Days_30';
$item->ReturnPolicy->ShippingCostPaidByOption = 'Buyer';
$item->ReturnPolicy->RestockingFeeValue = "15% restocking fee may apply";
$item->ReturnPolicy->RestockingFeeValueOption = Enums\RestockingFeeCodeType::C_PERCENT_15;

$container = new TTypes\AddItemRequestContainerType();
$container->MessageID = $hashids->encode($list->id);
$container->Item = $item;
$request->AddItemRequestContainer[] = $container;
$response = $service->addItems($request);

Thanks again.

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

I'm not sure at without spending a bit more time on it. One thing I always recommend is to manually create the item through eBay itself. Create the item exactly how you would like it done through the API and list it on the sandbox. Then use GetItem in the API explorer, or code, and study the XML in the response. The reason is that there is normally a one to one mapping between the fields in GetItem and those in AddItem. In the past I have studied the XML from GetItem to see how eBay specified the information and then used the same fields and values in AddItem. For example, when I was first learning the API I would manually create a listing with a single shipping service. Then call GetItem to see what fields where set and then re-created them in AddItem. From there I moved onto things like multi-variations. Again I created them manually and then called GetItem. Looking at the response and combining it with the eBay documentation help me a lot when I was first starting.

from ebay-sdk-examples.

BillDavid07 avatar BillDavid07 commented on July 22, 2024

Ohh i see. nice! thanks for the info. it really help me a lot.

thanks again for your reply. i will closed now the ticket. :)

from ebay-sdk-examples.

davidtsadler avatar davidtsadler commented on July 22, 2024

No worries. I have a forum available for further questions. If you do use it let me know if there are any issues with it as I'm still learning how to set it up correctly.

from ebay-sdk-examples.

BillDavid07 avatar BillDavid07 commented on July 22, 2024

Yeah sure thing mate. i already visit your forum before. cheers! :)

from ebay-sdk-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.