wordpress - shopp插件商店('cartitem','inputs')

时间:2016-11-12 07:22:22

标签: wordpress plugins shopp

我在wordpress中使用shopp插件。

<?php shopp('cartitem','input'); ?>

我得到的结果值是“测试”,但条件不起作用

<?php if(shopp('cartitem','input')=='Testing') ?>

如果条件不起作用

如果您使用shopp插件之前请帮助我!

感谢。

1 个答案:

答案 0 :(得分:0)

您正在使用的Shopp标记shopp('cartitem', 'input')仅用于显示值。

您应该使用shopp('cartitem.get-input')将值用作值。

相关问题