question

ss*chevelle avatar image
0 Likes"
ss*chevelle asked

Hi.. I am trying to add my own templates to my eBay Listing Code. Any Help would be greatly appreciated.

Hi.. Below is my code to submit a FixedPrice Listing, I am unable to figure out how to add a template, my own designs and submit them, I can't find anything that helps me at all. I added a part of my code below.. Thank you very much for your help.. $post_data = ' en_US High '; if(!empty($sub_title)) { $post_data .= ' '.$sub_title.' '; } $post_data .= ' '.$immediate_payments.' '.$cat_id.' '; if($cat_id2 != -1) { $post_data .= ' '.$cat_id2.' '; } $post_data .= ' '.$description.' '.$price.' '.$condition_id.' US true '.$currency_code.' '.$dispatch_time_max.' '.$listing_type.' '.$duration.' '.$HitCounter.' '.$HitCounter.' '.$payment_method.' '; $payment_method_other_count = count($payment_method_arr); if($payment_method_other_count>0) { if($payment_method_other_count == 1) { $post_data .=' '.$payment_method_arr[0].' '; } else { foreach($payment_method_arr as $payment_method_other_single) { if($payment_method_other_single == '' || empty($payment_method_other_single)) { continue; } $post_data .=' '.$payment_method_other_single.' '; } } } $post_data .=' '.$paypal_email.' '; $post_data .=' '.$picture_path1.' '; if(!empty($picture_path2)) $post_data .=' '.$picture_path2.' '; if(!empty($picture_path3)) $post_data .=' '.$picture_path3.' '; if(!empty($picture_path4)) $post_data .=' '.$picture_path4.' '; if(!empty($picture_path5)) $post_data .=' '.$picture_path5.' '; if(!empty($picture_path6)) $post_data .=' '.$picture_path6.' '; if(!empty($picture_path7)) $post_data .=' '.$picture_path7.' '; if(!empty($picture_path8)) $post_data .=' '.$picture_path8.' '; if(!empty($picture_path9)) $post_data .=' '.$picture_path9.' '; if(!empty($picture_path10)) $post_data .=' '.$picture_path10.' '; if(!empty($picture_path11)) $post_data .=' '.$picture_path11.' '; if(!empty($picture_path12)) $post_data .=' '.$picture_path12.' '; $post_data .=' '; $post_data .=' '.$postal_code.' '.$quantity.' '.$return_policy.' '.$refund_option.' '.$return_within.' '.$return_desc.' '.$returncost_paidby.' '; if($shipping_type == 'Calculated') { $post_data .= ' '.$postal_code.' '.$shipping_irregular.' '.$package_size.' '.$weight_max.' '.$weight_min.' '; if(!empty($package_depth) || $package_depth != '') { $post_data .= ' '.$package_depth.' '; } if(!empty($package_length) || $package_length != '') { $post_data .= ' '.$package_length.' '; } if(!empty($package_width) || $package_width != '') { $post_data .= ' '.$package_width.' '; } $post_data .= ' '; } $post_data .= ' '.$shipping_type.' 0 0 '; $count_i = 0; if(count($shipping_service_international > 0)) { foreach($shipping_service_international as $ship_ser_int) { $post_data .= ' '.$ship_ser_int.' '; if($shipping_type == 'Flat') { $post_data .= ' '.$shipping_service_cost_i[$count_i].' '; } $count_i++; $post_data .= ' '.$count_i.' '; if(count($ship_to_location) > 0) { if(in_array("Worldwide", $ship_to_location)) { $post_data .=' Worldwide '; } else { foreach($ship_to_location as $ship_loc) { if($ship_loc == '' || empty($ship_loc)) { continue; } $post_data .=' '.$ship_loc.' '; } } } $post_data .=' '; } } $count = 0; if(count($shipping_service_domestic > 0)) { foreach($shipping_service_domestic as $ship_ser_dom) { $post_data .=' '.$ship_ser_dom.' '; if($free_shipping == 'yes' && $count == 0) { $post_data .=' true '; } if($shipping_type == 'Flat' && ($free_shipping != 'yes' || $count > 0)) { $post_data .=' '.$shipping_service_cost[$count].' '; } $count++; $post_data .=' '.$count.' '; } } $post_data .=' '; if(!empty($schedule_time)) { $post_data .=' '.$schedule_time.' '; } $post_data .=' '.$uuid.' '.$site.' '.$token.' High '; ``echo $post_data; $file = fopen("post_data.xml", "w"); fwrite($file, $post_data); fclose($file); $body = callapi($post_data,"AddFixedPriceItem"); return $body; }
ebay api helpebay-api-featureebay api templates
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ Suspended answered
Hello ss*chevelle, I would suggest you to create a support ticket for better assistance from [here][1]. Regards. [1]: http://developer.ebay.com/support/developersupport/
10 |600

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.