Afzal
Afzal

Reputation: 132

wordpress - shopp plugin shop('cartitem','inputs')

I am using shopp plugin in wordpress.

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

i got result value "Testing" but if condition not working

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

if condition not working

If you using before shopp plugin please help me!

Thanks.

Upvotes: 0

Views: 48

Answers (1)

RST
RST

Reputation: 3925

The Shopp tag you are using shopp('cartitem', 'input') is just for displaying the value.

You should use shopp('cartitem.get-input') to use the value as a value.

Upvotes: 0

Related Questions