controllers/front/ProductController.phpでは、関数initContentを編集します。
$accessories = $this->product->getAccessories($this->context->language->id);
if (is_array($accessories)) {
foreach ($accessories as &$accessory) {
$accessory = $presenter->present(
$presentationSettings,
Product::getProductProperties($this->context->language->id, $accessory, $this->context),
$this->context->language
);
}
unset($accessory);
}
$accessories = $this->product->getAccessories($this->context->language->id); if (is_array($accessories)) { foreach ($accessories as &$accessory) { $accessory = $presenter->present( $presentationSettings, Product::getProductProperties($this->context->language->id, $accessory, $this->context), $this->context->language ); $accessory['remove_from_cart_url'] = $this->context->link->getRemoveFromCartURL($accessory['id'],$accessory['id_product_attribute']); } unset($accessory); }
にEDIT: あなたは、コントローラを直接編集しますが、オーバーライド/コントローラ/フロント/ ProductController.phpでオーバーライドを作成するべきではありません。 ファイルがまだ作成されていない場合は、それを自分で行います。