question

firestart.sa avatar image
0 Likes"
firestart.sa asked ·

Trouble with UPC - EAN into variations

Hi, I'm trying to send UPC and EAN info into the Variations.Variation.VariationProductListingDetails.UPC container and, according to the request I'm sending, everything should be okay. But I don't see EAN (or the "does not apply") when I check into My Ebay > Item > Modify variations I use Ebatns. For multi-variations listings I: 1) Send BrandMPN infos into item.ProductListingDetails.BrandMPN container, and they show correctly into the listing 2) Send BrandMPN infos again into item.ItemSpecifics.NameValueList containers as suggested into KB found here: https://ebaydts.com/eBayKBDetails?KBid=5061 3) DON'T send UPC and EAN infos into the item.ProductListingDetails container 4) Send UPC and / or EAN into: item.variations.variation.VariationProductListingDetails.UPC and item.variations.variation.VariationProductListingDetails.EAN While I see infos into the listing page (my brand, EAN, UPC or "Does not apply" shows correctly), I don't see EANS or "Does not apply" into my listing variations details. This is my request for multi-variations listings: [ProductListingDetails:protected] => ProductListingDetailsType Object ( [ProductID:protected] => [IncludeStockPhotoURL:protected] => [IncludePrefilledItemInformation:protected] => [UseStockPhotoURLAsGallery:protected] => [StockPhotoURL:protected] => [Copyright:protected] => [ProductReferenceID:protected] => [DetailsURL:protected] => [ProductDetailsURL:protected] => [ReturnSearchResultOnDuplicates:protected] => [ListIfNoProduct:protected] => [ISBN:protected] => [UPC:protected] => [EAN:protected] => [BrandMPN:protected] => BrandMPNType Object ( [Brand:protected] => Brand name [MPN:protected] => Custom MPN [_dataInValueArray:protected] => [_typeName:protected] => BrandMPNType [_ns:protected] => [_nsURI:protected] => urn:ebay:apis:eBLBaseComponents [_isArrayType:protected] => [_attributes] => Array ( ) [attributeValues] => [value:protected] => ) [TicketListingDetails:protected] => [UseFirstProduct:protected] => [_dataInValueArray:protected] => [_typeName:protected] => ProductListingDetailsType [_ns:protected] => [_nsURI:protected] => urn:ebay:apis:eBLBaseComponents [_isArrayType:protected] => [_attributes] => Array ( ) [attributeValues] => [value:protected] => ) ............. other stuff ............... [ItemSpecifics:protected] => NameValueListArrayType Object ( [NameValueList:protected] => Array ( [0] => NameValueListType Object ................................. [Variations:protected] => VariationsType Object ( [Variation:protected] => Array ( [0] => VariationType Object ( [SKU:protected] => SKU_2 [StartPrice:protected] => 69.33006 [Quantity:protected] => 50 [VariationSpecifics:protected] => NameValueListArrayType Object ................................ [VariationProductListingDetails] => VariationProductListingDetails Object ( [ProductID:protected] => [IncludeStockPhotoURL:protected] => [IncludePrefilledItemInformation:protected] => [UseStockPhotoURLAsGallery:protected] => [StockPhotoURL:protected] => [Copyright:protected] => [ProductReferenceID:protected] => [DetailsURL:protected] => [ProductDetailsURL:protected] => [ReturnSearchResultOnDuplicates:protected] => [ListIfNoProduct:protected] => [ISBN:protected] => [UPC:protected] => Non applicabile [EAN:protected] => Non applicabile [BrandMPN:protected] => [TicketListingDetails:protected] => [UseFirstProduct:protected] => [_dataInValueArray:protected] => [_typeName:protected] => ProductListingDetailsType [_ns:protected] => [_nsURI:protected] => urn:ebay:apis:eBLBaseComponents [_isArrayType:protected] => [_attributes] => Array ( ) [attributeValues] => [value:protected] => ) ) This is my VariationProductListingDetails class: require_once ' EbatNs_ComplexType.php'; /** * This type defines the VariationProductListingDetails container that is used to specify an EAN, an ISBN, or a UPC value to identify a specific product variation in a multi-variation listing. For multi-variation listings, the same product identifier type must be used for all product variations within the listing. For instance, if one product variation uses ISBNs, all product variations must use ISBN values. * **/ class VariationProductListingDetailsType extends EbatNs_ComplexType { /** * @var string **/ protected $ISBN; /** * @var string **/ protected $UPC; /** * @var string **/ protected $EAN; /** * Class Constructor **/ function __construct() { parent::__construct('VariationProductListingDetailsType', 'urn:ebay:apis:eBLBaseComponents'); if (!isset(self::$_elements[__CLASS__])) { self::$_elements[__CLASS__] = array_merge(self::$_elements[get_parent_class()], array( 'ISBN' => array( 'required' => false, 'type' => 'string', 'nsURI' => ' http://www.w3.org/2001/XMLSchema', 'array' => false, 'cardinality' => '0..1' ), 'UPC' => array( 'required' => false, 'type' => 'string', 'nsURI' => ' http://www.w3.org/2001/XMLSchema', 'array' => false, 'cardinality' => '0..1' ), 'EAN' => array( 'required' => false, 'type' => 'string', 'nsURI' => ' http://www.w3.org/2001/XMLSchema', 'array' => false, 'cardinality' => '0..1' ))); } $this->_attributes = array_merge($this->_attributes, array( )); } /** * @return string **/ function getISBN() { return $this->ISBN; } /** * @return void **/ function setISBN($value) { $this->ISBN = $value; } /** * @return string **/ function getUPC() { return $this->UPC; } /** * @return void **/ function setUPC($value) { $this->UPC = $value; } /** * @return string **/ function getEAN() { return $this->EAN; } /** * @return void **/ function setEAN($value) { $this->EAN = $value; } } and this is how I make the request: $vt is the VariationType $vt->VariationProductListingDetails=new VariationProductListingDetailsType(); $vt->VariationProductListingDetails->UPC = 'Non applicabile'; $vt->VariationProductListingDetails->EAN = 'Non applicabile';
PHPvariationsebatns
10 |600 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
firestart.sa avatar image
0 Likes"
firestart.sa answered ·
Okay, I sorted this out: i was using AddItem instead of AddFixedPriceItem and an old version of EbatNS where VariationProductListingDetails was not declared properly
· Share
10 |600 characters needed characters left characters exceeded

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.