Announcement

Collapse
No announcement yet.

Removing pence from a price

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

    Removing pence from a price

    Hi

    Is there anyway of removing the pence (or in this case cents) from the product price displayed on the product pages?

    Our client is only dealing in whole numbers of dollars with no cents. i.e. a product price is $700 not $700.00

    It doesn't matter how it looks in the cart or the checkout. We just don't want to display the cents in the price on the product page.


    Thanks in advance.

    Nick
    Hazelnet Web Solutions
    www.hazelnet.co.uk
    Actinic & Worldpay Partners
    Specialising in ecommerce and
    online promotion.

    Workwear and Promotional Clothing
    www.workwearhouse.co.uk
    Logo Your Polo!

    #2
    Nick,

    Hi again,

    You could use some (more) JavaScript to munge the original NETQUOTEVAR:COST in Act_ProductPrice.html

    i.e. replace the first NETQUOTEVAR:COST with:-

    Code:
    <script language=JavaScript>
    <!--
    document.write("NETQUOTEVAR:COST".replace(/&amp;#46;\d\d/,""));
    // -->
    </script>
    <noscript>NETQUOTEVAR:COST</noscript>

    I just typed that lot straight in so there may be typos. The <noscript> stuff is needed for the extrememy rare case that there's a non javascript browser peeking at your pages. They'll get the cents as usual.

    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment

    Working...
    X