Prestashop - 使用Ajax购物车获取产品的id_manufacturer

问题描述:

我正在使用Prestashop 1.6,并且我想知道如何在Ajax购物车弹出窗口中检索当前产品的制造商ID。 谢谢Prestashop - 使用Ajax购物车获取产品的id_manufacturer

生产者的ID存在于产品项目中。 要调用使用,你喜欢:

{$product.id_manufacturer} 

该文件是:

/themes/[name-your-themes]/modules/blockcart/blockcart.tpl

+0

比ks,但我实际上在谈论文件“ajax-cart.js”,它不识别“product.id_manufacturer”。 –

\themes\YOUR_THEME\modules\blockcart\blockcart-json.tpl 

添加

"id_manufacturer": {$product.id_manufacturer}, 
+0

我会试试看,谢谢! –