How am I suppose to get the shipping price for a tshirt without creating an order?

#1
14/04/2015 - 00:22

Dylan Kingsberry

Member
Went through the api and I don't find any method to get the shipping price without creating an order. I am trying to receive the shipping price and add it into the total price and display it to user before they are directed for payment. Is there any possible way to handle this?? Also, I don't see any method to update or delete the order via api??
#2
14/04/2015 - 08:41
Avatar

Andrew Lyle

Administrator
Hi Dylan,

We offer all of our pricing on our Pricing Page here:
http://www.tshirtgang.com/cp/pricing

We don't have an API that can tell you pricing before the order is placed, only after.

I would recommend creating your own shipping table and charge customers accordingly. Your pricing should be hire than tshirtgang's pricing in order to make a profit off each sale.

Thanks,
Andrew

Developer / Project Manager
Tshirtgang.com
Support Ticket
Twitter: @phpandrew
#3
14/04/2015 - 10:05

Dylan Kingsberry

Member
got it..

thanks
#4
14/04/2015 - 21:12

Dylan Kingsberry

Member
Hi Andrew!

I am not sure how but recently createproduct api is returning Error: 500 and I am not being able to proceed my test. Here, is the detail array from curl:

[EXE] =>
[INF] => Array
(
[url] => https://www.tshirtgang.com/api/CreateProduct/
[content_type] =>
[http_code] => 500
[header_size] => 0
[request_size] => 760
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 2.807892
[namelookup_time] => 0.000341
[connect_time] => 0.027815
[pretransfer_time] => 0.10189
[size_upload] => 491
[size_download] => 0
[speed_download] => 0
[speed_upload] => 174
[download_content_length] => -1
[upload_content_length] => 491
[starttransfer_time] => 2.807874
[redirect_time] => 0
[certinfo] => Array
(
)

[redirect_url] =>
)

[ERR] => The requested URL returned error: 500
[ENO] => 22

can you please look into this and let me know .. you help is much appreciated..

thanks
#5
14/04/2015 - 22:01

Dylan Kingsberry

Member
FYI: Also, yesterday night my time, it wasn't creating product as well but this morning its creating the product but not returning any xml response but the above error..

8699984 this is the product ID I just tried creating and it was successful but no xml response..
#6
14/04/2015 - 22:30
Avatar

Andrew Lyle

Administrator
Hi Dylan,

I'm not seeing any issues with the CreateProduct api, there appears to be people uploading successfully as I type.

Can you open a Support Ticket with the XML you are using or send it to andrew.lyle@tshirtgang.com?

Don't post your XML here, or if you do, please remove any authentication keys.

Developer / Project Manager
Tshirtgang.com
Support Ticket
Twitter: @phpandrew
#7
14/04/2015 - 23:06

Dylan Kingsberry

Member
Thank you for immediate response. Below is the xml code I am using:

$XML = "<?xml version=\"1.0\" encoding=\"utf-8\"?>
<ProductForm>
<Auth>
<key>My Key</key>
</Auth>
<Product>
<title>T Shirt Title</title>
<color>White</color>
<style>Standard</style>
<category>Anime</category>
<image>http://tee.dylanktest.com/covers/552dc6005d369.png</image>
<keywords>keyword</keywords>
</Product>
<Extra>
<appID>My AppID</appID>
</Extra>
</ProductForm>";

$sml = xml_post($XML, "https://www.tshirtgang.com/api/CreateProduct/");

$res = simplexml_load_string($sml);

You must be logged in to reply.