ShowYou Posted April 10, 2013 Share Posted April 10, 2013 (edited) 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 April 11, 2013 by monvidedressing (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts