2

私はPrestashopを初めて使用し、本当に苦労しています。優れたドキュメントがないことは本当に不利であり、Magentoなどを試してみたいと思うこともあります。

とにかく、私はその製品が特定のタグでタグ付けされている場合にのみ、製品ページに情報を表示させようとしています。インターネットで約3時間検索しましたが、この問題を解決するものは見つかりませんでした。

どうすればいいですか?誰かが方向性を教えてくれませんか?

ところで、私は1.5を使用しています

ありがとう

4

2 に答える 2

4

prestashop 1.5を使用する場合は、

   //this is your prooduct id that you get it from your url
   $id_product=Tools::getValue('id_product');
   //the you use it to return all of your tags of this product with this id product
   //but this return two array for example: array(array(tags))
   $productTags =Tag::getProductTags($id_product);
   //add this code return array(tags) ;
   $productTags=$productTags[intval(Context::getContext()->cookie->id_lang)];
于 2013-11-21T14:56:09.503 に答える
0

Productクラスの内部を見ることができます。例:Tag :: getProductTags($ id_product)関数

よろしく

于 2012-12-01T14:02:14.547 に答える