Announcement

Collapse
No announcement yet.

Placing Euros on a seperate line.

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

    Placing Euros on a seperate line.

    The code for Product Price displays GBP and Euros on one line like this:

    £250 / Euros310

    I would like to change it to display the Euros underneath like this:

    £250
    Euros 310

    As I don't understand what is going on inside the actinic block with the priceformat function I'm not getting much luck in seperating the TaxInclusivePriceAlt from the TaxInclusivePrice. TaxInclusivePriceAlt being the euros value.

    My only attempt so far was to change the original code from:

    Code:
    <h4><actinic:block PHP='true' SELECTABLE='false'>priceformat('<actinic:variable name="SecondCurrencyFormat" />','<actinic:variable name="TaxInclusivePrice" />', '<actinic:variable name="TaxInclusivePriceAlt" />');</actinic:block></h4>
    to:

    Code:
    <h4><actinic:block PHP='true' SELECTABLE='false'>priceformat('<actinic:variable name="SecondCurrencyFormat" />','<actinic:variable name="TaxInclusivePrice" />');</actinic:block></h4>
    
    <p><actinic:block PHP='true' SELECTABLE='false'>priceformat('<actinic:variable name="TaxInclusivePriceAlt" />');</actinic:block></p>
    This did achieve the result I wanted but threw up warnings about missing arguments, I guess when i call the priceformat function I have to pass it all the arguments. I don't know how I can get it to display the values I want seperately.

    Can anyone help please?
    www.prolineskates.com

    #2
    Use:
    Code:
    <h4><actinic:block PHP='true' SELECTABLE='false'>priceformat('%s<br/>%s','<actinic:variable name="TaxInclusivePrice" />', '<actinic:variable name="TaxInclusivePriceAlt" />');</actinic:block></h4>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Perfect!

      I had no idea I could insert HTML into the script using " %s ". Thanks for showing me that Norman.
      www.prolineskates.com

      Comment

      Working...
      X