0

在 Prestashop 1.6.0.6 提供的默认主题中,我多次找到这个变量。一个例子:

{if $PS_STOCK_MANAGEMENT}
    <!-- availability -->
    <p class="warning_inline" id="last_quantities"{if ($product->quantity > $last_qties || $product->quantity <= 0) || $allow_oosp || !$product->available_for_order || $PS_CATALOG_MODE} style="display: none"{/if} >{l s='Warning: Last items in stock!'}</p>

{/if}

这个变量指的是什么?

您能否向我提供指向此类变量的参考链接或任何解释它们的文档?不幸的是,我在网上找不到这样的信息。高度赞赏。

4

1 回答 1

1

我相信是指“偏好 > 产品 > 产品库存”中的“启用库存管理”设置。它在那里检查产品的数量信息是否可用。

有关设置的更多信息,您可以在此处阅读:http: //doc.prestashop.com/display/PS16/Products+Preferences

于 2014-06-15T14:45:36.427 回答