私はhookDisplayAdminProductsExtraフックを使用しています。それは仕事の1.6 prestashopバージョンです。しかし、1.7のために動作しません。ここで Prestashop 1.7 hookDisplayAdminProductsExtraが機能していませんか?
は1.6![enter image description here](https://i.stack.imgur.com/4PslX.png)
からscreenshoot prestshopここで1.6のために働いて、私のコード
public function hookDisplayAdminProductsExtra($params)
{
$this->smarty;
$id_product = Tools::getValue('id_product');
$get_values = $this->getProductCurrencyRow($id_product);
$this->smarty->assign('get_values',$get_values);
$this->smarty->assign('id_product',$id_product);
$currencies = $this->getDefaultRates();
$this->smarty->assign('currencies',$currencies);
return $this->display(__FILE__, '/views/templates/admin/productcurrency.tpl');
}
このコードされているが、私は私のプラグインのPrestaShopのバージョン1.7をインストールするとき、私はいくつかの問題についてを持っていますアドオンフックはこちらのスクリーンショットです。
新しいタブがモジュールオプション名に来て、製品オプションメニューが表示されません。 hookDisplayAdminProductsExtraが新しいバージョンに変更されましたか?どうすればいいですか?
ありがとうございました。
なぜバージョン1.7を使用するのですか?はい、彼らはそれが安定して使用可能だと言うが、それは私を信用しない... – sarcom
私はちょうど1.7のために私のモジュールを安定させたい – user5510975