Hi,
The page I'm working on (http://www.operationagri.org.uk/acat...alculator.html) uses a Javascript function to calculate the price.
I'd like to use this value as the 'Price' in Actinic, so that people click on 'Add to Cart' with that value turning up in the basket in the usual way, but can't work out how to do this.
I get the value into the body of the three test products by:
1. Put the calculated cost into document.getElementById("co2_cost_hydro_id").firstChild.nodeValue, for the first case.
2. In the body have 'Cost to offset = £!!<<a id="co2_cost_hydro_id">>!!0.00!!<</a>>!!.'
But I can't use this in the 'Price' box because it's too long.
All suggestions welcome - I'm very new to all this, as I'm sure you can tell.
Malcolm Drummond
The page I'm working on (http://www.operationagri.org.uk/acat...alculator.html) uses a Javascript function to calculate the price.
I'd like to use this value as the 'Price' in Actinic, so that people click on 'Add to Cart' with that value turning up in the basket in the usual way, but can't work out how to do this.
I get the value into the body of the three test products by:
1. Put the calculated cost into document.getElementById("co2_cost_hydro_id").firstChild.nodeValue, for the first case.
2. In the body have 'Cost to offset = £!!<<a id="co2_cost_hydro_id">>!!0.00!!<</a>>!!.'
But I can't use this in the 'Price' box because it's too long.
All suggestions welcome - I'm very new to all this, as I'm sure you can tell.
Malcolm Drummond
Comment