ok ive added the ProductDescription variable into my related items, now im trying to add a max char length so that it only displays a certain ammounth of the description.
its working so far however im getting errors
this is the code im useing
The only problem is this bit
if I change the variable to just read text it works fine and cuts off at 60 chars but why wont it read the variable?
its working so far however im getting errors
this is the code im useing
Code:
<actinic:block php="true" > $desc = "<actinic:variable name="ProductDescription" />"; $desc1 = substr($desc, 0,60); echo "$desc1"; </actinic:block>
Code:
$desc = "<actinic:variable name="ProductDescription" />";
Comment