Announcement

Collapse
No announcement yet.

Price - remove .00

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

    Price - remove .00

    Hi,
    Is it possible to remove the auto .00 from the price.

    £1,000.00 >> £1,000

    All my prices are in whole pounds.
    Many thanks

    #2
    I'm assuming you only mean on the product pages. The Cart will probably need decimals for the tax amounts.

    Assuming you're using "Product Price Excluding Tax" then edit layout "Product Price Excluding Tax" and replace.
    Code:
    <actinic:block PHP='true'>priceformat("<actinic:variable name="SecondCurrencyFormat" selectable="false" />","<actinic:variable name="TaxExclusivePrice" selectable="false" />", "<actinic:variable name="TaxExclusivePriceAlt" selectable="false" />");</actinic:block>
    with
    Code:
    <actinic:block PHP='true'>priceformat("<actinic:variable name="SecondCurrencyFormat" selectable="false" />",str_replace(".00", "", "<actinic:variable name="TaxExclusivePrice" selectable="false" />"), "<actinic:variable name="TaxExclusivePriceAlt" selectable="false" />");</actinic:block>
    There are also other ways to do this. E.g. fiddling with the currencies table in the database, tweak actinic_main.php, etc.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks,

      Yep, I only mean on the product pages. I will give it a go.
      Many thanks

      Comment

      Working...
      X