prestashop 1.6 中的特定价格访问 [英] specific price access in prestashop 1.6

查看:68
本文介绍了prestashop 1.6 中的特定价格访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 prestashop 1.6

I'm on prestashop 1.6

当我在我的 product.tpl 文件中使用此代码时,没有问题,并且一切正常:

When I use this code in my product.tpl file there's no problem, and everything works correctly:

{if  $product->specificPrice.from_quantity==0} <img src="http://url/finish.png" >{/if}

但是文件中相同的代码,homefeatured.tpl得到了一个错误的答案我什至把代码改成了下面的,但还是没有解决问题

But the same code in the file, homefeatured.tpl gets an answer wrong I even changed the code to the following, but I still did not resolve the problem

{if  $product.specificPrice.from_quantity==0} <img src="http://url/finish.png" >{/if}

{if  $product.specific_price.from_quantity==0} <img src="http://url/finish.png" >{/if}

请帮助我,专家.

推荐答案

你得看看 homefeatured.tpl 实际上是什么签名这是您从中获得的数据数组Category->getProducts();当您检查返回的内容时,您可以看到,它返回一个包含键 [specific_prices] 的数组,该键包含键 [from_quantity].

You have to take a look what actualy is asignet to homefeatured.tpl It's an array of data what you get from Category->getProducts(); When you check what is returned you can see, that it returns an array that has a key [specific_prices] that contains a key [from_quantity].

这篇关于prestashop 1.6 中的特定价格访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆