Announcement

Collapse
No announcement yet.

£0.00 = Free?

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

    £0.00 = Free?

    We have quite a few free items in our shop (free product, free p&p).

    Actinic automatically displays them without a price, which means our customers will assume that the shop's gone wrong and they're going to get charged some unknown amount.

    Is there any way to make the price (£0.00) show up, or even better, have it show up as FREE?

    #2
    Put it in the Product's Name.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      product names

      Hi Norman,

      Thanks. I'd thought of that, but I'd prefer a way of doing it automatically, as it'll take ages to go through them all and update the titles.

      Comment


        #4
        This JavaScript will do that if put in the Product Template.

        Code:
        <script type="text/javascript">
        <!--
        if ( 'NETQUOTEVAR:PRODUCTPRICE' == '' ) document.write('FREE');
        // -->
        </script>
        This will only work if you use Compact HTML / CGI (Design / Options / Misc).

        The alternative way that will work all the time is to put some JavaScript at the start of your product template that sets a variable free to true. Then add some code to Act_productPrice.html that sets free to false. Finally use code like the above that has

        if ( free ) document.write....
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Here's the cleaner way

          In your Product Template just after NETQUOTEVAR:PRODUCTFORMBEGIN put

          Code:
          <script type="text/javascript">
          <!--
          var free = true;
          // -->
          </script>
          In Act_ProductPrice.html put (anywhere)

          Code:
          <script type="text/javascript">
          <!--
          free = false;
          // -->
          </script>
          In your Product Template just after NETQUOTEVAR:PRODUCTPRICE put

          Code:
          <script type="text/javascript">
          <!--
          if ( free ) document.write('FREE');
          // -->
          </script>
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            If you leave the price as 0 and add the text FREE to the button then you can add a free product. Example http://www.cumbriafireextinguishers....Catalogue.html (Site under construction)

            Comment


              #7
              Originally posted by NormanRouxel
              Here's the cleaner way

              In your Product Template just after NETQUOTEVAR:PRODUCTFORMBEGIN put

              Code:
              <script type="text/javascript">
              <!--
              var free = true;
              // -->
              </script>
              ...[edit]...
              Worked perfectly! Thank you very much!

              Comment


                #8
                Hi Norman,

                this is working perfectly (thanks!) - but is there a way to remove it from just one product?

                We've got a new product with two prices (£8 and £10) and I've made them components, so you can select them from a drop down. I've given the item itself a price of £0.00 but of course this makes the 'FREE' show up.

                AJ

                Comment


                  #9
                  could you have the main product as £8 and the larger product as plus £2 as a component. total price is the total of main price plus component

                  This way the actual product is 8 not 0

                  Comment


                    #10
                    Copy your product template to a new name, remove the
                    Code:
                    <script type="text/javascript">
                    <!--
                    if ( free ) document.write('FREE');
                    // -->
                    </script>
                    lump from it and use this alternative Template for such products.
                    Norman - www.drillpine.biz
                    Edinburgh, U K / Bitez, Turkey

                    Comment


                      #11
                      Originally posted by NormanRouxel
                      Copy your product template to a new name, remove the
                      Code:
                      <script type="text/javascript">
                      <!--
                      if ( free ) document.write('FREE');
                      // -->
                      </script>
                      lump from it and use this alternative Template for such products.
                      Just as before, it worked brilliantly. Thankyou very much!

                      AJ

                      Comment

                      Working...
                      X