Announcement

Collapse
No announcement yet.

php help required

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Change

    <actinic:variable name="CUST_SELL_AT" />

    to

    <actinic:variable name="CUST_SELL_AT" encoding="perl" selectable="false" />
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #17
      thanks that did the trick

      I just had to do a couple of small changes as the results wern't quite right

      Code:
      <actinic:block php="true" selectable="false">
      $units = '<actinic:variable name="CUST_SELL_AT" />';	// load as string in case variable empty
       	if ( $units < 100 )
        		{
       		printf(' %.0fp', $units);
        		}
      	else
        		{
      		printf(' £%01.2f', $units / 100);
        		}
       	</actinic:block>
      thanks for all your help
      David Mawson
      Phoenix Trading

      http://www.sweetswholesale.co.uk - Wholesale confectionery suppliers

      Comment

      Working...
      X