Announcement

Collapse
No announcement yet.

Remove Pennies from Pricing

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

    Remove Pennies from Pricing

    Hi All, me again

    I have another unusual request. Can I remove the display of pennies in pricing on the website pages. Eg

    £2000 to be displayed and NOT £2000.00

    Kindest regards

    Mark

    #2
    Try this. Edit Act_ProductPrice.html and replace the fragment

    NETQUOTEVAR:COST

    with

    Code:
    <script language=JavaScript>document.write('NETQUOTEVAR:COST'.replace(/&amp;#46;\d\d/,""));</script>
    Customers will need a JavaScript enabled browser or they'll see rubbish. Also this add rather a lot of code instead of the few bytes for the price. You'll have to decide if it's worth it.


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

    Comment


      #3
      Thanks

      Norman,

      Thanks for the code. I will try it.



      Mark

      Comment


        #4
        Not Working

        Noman,

        I replaced the NETQUOTEVAR:COST as suggested and I got a html generation error. "ENDSEPARATOR not found"

        I had this in act_productprice.html

        <!-- ProductPrice HTML begin -->
        <!-- This template is used for the product price text. -->

        <br><span class="actxsmall"><b><Actinic:RETAIL_PRICE_TEXT>NETQUOTEVAR:PRICEPROMPT</Actinic:RETAIL_PRICE_TEXT>&nbsp;NETQUOTEVARISCOUNT_QUANTITY&nbsp;NETQUOTEVAR:COST</b></span><span class="actxxsmall">NETQUOTEVAR:TAXMESSAGE</span>

        <!-- This template is used for the product price text. -->
        <!-- ProductPrice HTML end -->

        and replaced it with :-

        <!-- ProductPrice HTML begin -->
        <!-- This template is used for the product price text. -->

        <br><span class="actxsmall"><b><Actinic:RETAIL_PRICE_TEXT>NETQUOTEVAR:PRICEPROMPT</Actinic:RETAIL_PRICE_TEXT>&nbsp;NETQUOTEVARISCOUNT_QUANTITY&nbsp;<script language=JavaScript>document.write('NETQUOTEVAR:COST'.replace(/&#46;\d\d/,""));</script>&nbsp;</b></span><span class="actxxsmall">NETQUOTEVAR:TAXMESSAGE</span>

        <!-- This template is used for the product price text. -->
        <!-- ProductPrice HTML end -->

        Could you see where I went wrong please?

        regards Mark

        Comment


          #5
          Damn forum munges text, bungs in smilies (although you can turn them off if you remember), makes it impossible for you to enter certain HTML character codes (even within CODE flags) and hates the word JavaScript - I just typed it as one word but forum sometimes sticks a space in. I've attached a modified Act_ProductPrice.html that works fine for me.

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

          Comment


            #6
            Norman,

            Thank you very, very much for this code. It has helped me enourmously.

            Kindest regards

            Mark

            Comment


              #7
              Great. Just remember that users need JavaScript (but that IS about everyone). By the way what are you selling that's so expensive?

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

              Comment

              Working...
              X