I know that in v8 you can now use php when generating a page
IS it possible to use php to do a calculation with a custom variable that I have created ?
For example
I have created a custom variable
<actinic:variable name="CUST_UNITS_PER_OUTER" />
Which is the number of units per product
For each product I want actinic (when generating the site) to divide the retail price by the number of units in the product.
i.e
sales price = £10
Number units = 5
Cost per unit = £2
IS it possible to use php to do a calculation with a custom variable that I have created ?
For example
I have created a custom variable
<actinic:variable name="CUST_UNITS_PER_OUTER" />
Which is the number of units per product
For each product I want actinic (when generating the site) to divide the retail price by the number of units in the product.
i.e
sales price = £10
Number units = 5
Cost per unit = £2
Comment