-2

我有不同的附属产品,如 Flipkart 和 snapdeal,但提要没有 MPN 或任何其他唯一标识符。我们如何映射它们以进行价格比较?

就像,LG nexus 5 和 Google LG Nexus 5 应该映射到一个产品。

4

1 回答 1

1

您需要仔细查看此页面
( <path_to_your_template_folder>/template/catalog/product/list.phtml)。
您只会在此页面的不同位置找到以下代码行:-

$_productCollection = $this->getLoadedProductCollection();

foreach ($_productCollection as $_product):
    $reqProductId = $_product->getId();
endforeach;

如果您仔细匹配上述代码和上述页面中的代码,
您将知道您需要在所需的类型元素中$reqProductId正确使用变量。 所以你需要它在主循环中发挥你的作用。INPUThidden
foreach

任何想法如何在管理面板/目录/管理产品中获取产品 ID: 阅读此

于 2015-04-30T16:59:19.717 回答