dew0406 Posted June 22, 2015 Share Posted June 22, 2015 Hi all, I want to display a custom text in order-payment.tpl if product-id is 10. The following code does not work: {if $product.id_product == 10} TEST {/if} Any ideas? ThanksAndi Link to comment Share on other sites More sharing options...
cyssoo Posted July 12, 2015 Share Posted July 12, 2015 (edited) Hi, have you tried using a loop ? Like this : {foreach from=$products item='product' name='myLoop'} {if $product.id_product == 10} TEST {/if} {/foreach} Works fine for me, but i'm using it on a custom payment module (in PS1.6.1.0) Edited July 12, 2015 by cyssoo (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now