Jump to content

RESOLU 1.5.4-Ebay 1.3.6 Comment ajouter un champ description


Recommended Posts

Bonjour,

 

j'ai crée un champ "descriptionEbay" dans la table product_lang et j'aimerais pouvoir l'appeler dans le template d'Ebay.

J'ai ajouté dans ebay.php : 'descriptionEbay' => $product->descriptionEbay,

// Generate array and try insert in database
				$datas = array(
					'id_product' => $product->id,
					'reference' => $product->reference,
					'name' => str_replace('&', '&', $product->name),
					'brand' => $product->manufacturer_name,
					'description' => $product->description,
					'descriptionEbay' => $product->descriptionEbay,
					'description_short' => $product->description_short,
					'price' => $price,
					'quantity' => $quantityProduct,
					'categoryId' => $categoryDefaultCache[$product->id_category_default]['id_category_ref'],
					'shippingService' => $this->_shippingMethod[Configuration::get('EBAY_SHIPPING_CARRIER_ID')]['shippingService'],
					'shippingCost' => Configuration::get('EBAY_SHIPPING_COST'),
					'variationsList' => $variationsList,
					'variations' => $variations,
					'pictures' => $pictures,
					'picturesMedium' => $picturesMedium,
					'picturesLarge' => $picturesLarge,
				);

 

Puis, j'ai ajouté '{DESCRIPTIONEBAY}' et $datas['descriptionEbay']

$features = $product->getFrontFeatures((int) ($this->id_lang));
				$featuresHtml = '';
				if (isset($features))
					 foreach ($features as $f)
						  $featuresHtml .= '<b>' . $f['name'] . '</b> : ' . $f['value'] . '<br/>';
				$datas['description'] = str_replace(
						array('{DESCRIPTION_SHORT}', '{DESCRIPTION}', '{DESCRIPTIONEBAY}', '{FEATURES}', '{EBAY_IDENTIFIER}', '{EBAY_SHOP}', '{SLOGAN}', '{PRODUCT_NAME}'), array($datas['description_short'], $datas['description'], $datas['descriptionEbay'], $featuresHtml, Configuration::get('EBAY_IDENTIFIER'), Configuration::get('EBAY_SHOP'), '', $product->name), Configuration::get('EBAY_PRODUCT_TEMPLATE')
				);

 

Et pourtant, dans ma fiche produit sur Ebay, impossible de voir s'afficher les informations du champ "descriptionEbay".

 

Quelqu'un pourrait-il m'aider ??

 

EDIT : Ca fonctionne ainsi !!!

Edited by monvidedressing (see edit history)
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...