Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi couch!

Actually a simple question.
Can we use add tag like this?

Code: Select all
<cms:add my_count '10%' />



Thx couch!
As soon as possible!

Touch me up : abada[dot]zulma[at]gmail[dot]com
Hi,

The cms:add tag internally (not surprisingly) uses PHP and the addition logic of PHP is to try and convert (i.e. cast) the operands to numbers. So the '10%' would actually result in just '10'.

Therefore, <cms:add my_count '10%' /> would be exactly the same as <cms:add my_count '10' />.

Anyway, can you please let me know what exactly were you trying to achieve by adding '10%'?

Thanks.
KK wrote: Hi,

The cms:add tag internally (not surprisingly) uses PHP and the addition logic of PHP is to try and convert (i.e. cast) the operands to numbers. So the '10%' would actually result in just '10'.

Therefore, <cms:add my_count '10%' /> would be exactly the same as <cms:add my_count '10' />.

Anyway, can you please let me know what exactly were you trying to achieve by adding '10%'?

Thanks.


I try to make a monthly invoicing system, with taxes. Can i achieve this without use any of couch cart tag?
As soon as possible!

Touch me up : abada[dot]zulma[at]gmail[dot]com
3 posts Page 1 of 1