[英]Joomla 3 - Virtuemart - Virtuemar product module
我正在使用Joomla 3和Virtuemart 3.0.18。
我正在建立一个网站来展示我的商店的产品。 因此,我创建了2个相同类型的模块:mod_virtuemart_product。 我需要其中之一展示我的最新产品和其他展示特色产品。
我的问题是我的网站仅在同一页面中显示其中之一。
请帮我! 非常感谢!
更新:
在我的模板中,我使用以下方式加载这些模块:
<?php if ($this->countModules('modpro')) : ?>
<div class="modpro">
<div class="container">
<div class="row">
<div class="col-md-12">
<jdoc:include type="modules" name="modpro" style="xhtml" />
</div>
</div>
</div>
</div>
<?php endif; ?>
<?php if ($this->countModules('modnew')) : ?>
<div class="modnew">
<div class="container">
<div class="row">
<div class="col-md-12">
<jdoc:include type="modules" name="modnew" style="xhtml" />
</div>
</div>
</div>
</div>
<?php endif; ?>
我尝试将它们设置在相同的位置,但是不起作用。
我禁用了其中一个,其他被渲染了。 我将它们放在不同的页面上,它们被渲染。
感谢所有查看此问题的人。
我找到了问题的原因。 在VirtueMartModelProduct类的sortSearchListQuery()函数中,我找到了以下代码行:
if(self::$_alreadyLoadedIds){
$where[] = ' p.`virtuemart_product_id`!='.implode(' AND p.`virtuemart_product_id`!=',self::$_alreadyLoadedIds).' ';
//$where[] = ' p.`virtuemart_product_id` NOT IN ('.implode(',',self::$_alreadyLoadedIds).') ';
}
它阻止了我的第二个模块再次加载相同的产品。
所以,再次感谢您!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.