Announcement

Collapse
No announcement yet.

Price not showing with VAT !?

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

    Price not showing with VAT !?

    Hi there,


    I've got a problem with my templates. On the product section pages I have a price shown. The tag I use is

    <actinic:block ><actinic:variable name="TaxInclusivePrice" /></actinic:block>

    But its showing the price without VAT. I've checked the products and they have all been set to receive the 'VAT' tax treatment.

    VAT is applied on checkout... seems like its just the price on the product section pages that playing up.

    Am I using the wrong variable?

    #2
    Any one?

    Ok perhaps someone would be kind enough to post the code they use in their templates to show product price with/without tax (conditional)?

    Im getting grief here from a client, because all the prices on actinics product display pages are showing without VAT.

    Comment


      #3
      Do compare with original in the design library (right click), it will show you what, if anything, is different.

      Comment


        #4
        Ah the library, never used that feature before.

        Unfortunatly no help. I restored all the factory defaults and still the same problem. I ended up having to restore a snapshot because it all got messy. But whatever I tried I still couldnt get the VAT inclusive price to show in the template.

        Heres what I have now

        Code:
        <!-- ProductPrice HTML begin -->
        <!-- This template is used for the product price text. -->
        
        <br>
        <span class="actprice"><b> <actinic:variable name="ProductPriceDescription"/> &nbsp;<actinic:block if="%3cactinic%3avariable%20name%3d%22IsFirstQuantityBreak%22%20%2f%3e">
           (<actinic:variable Name="QuantityDescMax"/> or fewer items)
        </actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsMiddleQuantityBreak%22%20%2f%3e">
           (<actinic:variable Name="QuantityDescMin"/> to <actinic:variable Name="QuantityDescMax"/> items)
        </actinic:block>
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsLastQuantityBreak%22%20%2f%3e">
           (<Actinic:Variable Name="QuantityDescMin"/> or more items)
        </actinic:block>&nbsp;<actinic:variable value="Product Price Including Tax" name="PreFormattedPrice" /></b></span><br>
        <span class="actpricetax"><actinic:block if="%28%28%3cactinic%3avariable%20name%3d%22TaxRate1%22%20%2f%3e%20%3e%200%29%20OR%20%28%3cactinic%3avariable%20name%3d%22TaxRate2%22%20%2f%3e%20%3e%200%20%29%29" >
           Including&nbsp;
           <actinic:block if="%3cactinic%3avariable%20name%3d%22IsTax1Used%22%20%2f%3e">
              <actinic:variable name="TaxName1"/> at <actinic:variable name="TaxRate1"/>%
           </actinic:block>
           <actinic:block if="%3cactinic%3avariable%20name%3d%22IsTax1AndTax2Used%22%20%2f%3e">
              and
           </actinic:block>
           <actinic:block if="%3cactinic%3avariable%20name%3d%22IsTax2Used%22%20%2f%3e">
              <actinic:variable name="TaxName2"/> at <actinic:variable Name="TaxRate2"/>%
           </actinic:block>
        </actinic:block></span>
        <!-- This template is used for the product price text. -->
        <!-- ProductPrice HTML end -->
        So what could be causing this.. im so lost. I've tried everything... it should be simple no? I want products to show prices with VAT in my templates. Actinic can half drive me nuts sometimes.

        Comment


          #5
          I take it you have the correct price layout selected in site options?

          Comment


            #6
            just checked... yes its set to 'Standard Tax Inclusive Price'

            ?

            Comment


              #7
              If this is a price you are trying to add to a section link layout, you cannot do that with a simple variable inclusion, you need to use a Block. Have a look in the AUG around P21-22 for section listing options, it will provide you with the method to get the product price onto the section link layout AS LONG AS you only have one product in that section (SPP).

              Comment


                #8
                Is this a V7 upgrade by any chance, that code looks suspiciously ugly to me?

                Comment


                  #9
                  thanks lee hack...

                  exuse me if I lack the actinic terminology but I'm talking about the product pages on the default section display pages. So if you view the section 'Tea' you are shown a list of all the tea products in that section. Thats where you are shown the image, title, description, price and the add to cart link for each of the products.

                  Its the price here that is refusing to show with VAT.

                  Comment


                    #10
                    Yes its a V7 upgrade

                    Comment


                      #11
                      Ok so you have a section and in that section you have multiple products showing on the page? so you are not using section link layouts or SPP, so forget that advice.

                      V7 sites (unless standard) generally upgrade to V8 very badly, often completely borking a site or bringing over so much junk and legacy code it becomes unrealistic to work with. This is why almost all of us when faced with a V7-V8 upgrade do not actually do it and start with a brand new V8 design instead.

                      If you can make sure the 'use parent' option is on all your layouts, so what you have set in site options is cascaded down to all levels, you may be falling foul of the upgrade problems. For your products (in site options) choose one of the new V8 layouts and see if that gets them all to play ball.

                      I suspect (pure guess without seeing things) that you have a right mess of layouts and errors and you are probably best to select V8 layouts for all parts, if a redesign is not an option.

                      Remember just because something is set in site options, it does not mean everything uses that setting, 'use parent' has to be on all settings to do that, so check one of the problem pages to ensure that what you have set in site options, has cascaded down to the level in question.

                      Comment


                        #12
                        Thanks lee..

                        Im lost though.. What am I supposed to be changing?

                        If I click on a product and view the 'layout' tab, everything shows as 'Use Parent'.

                        If I click on a section and view the layout tab, everything shows as 'Use Parent'

                        So now I go to Settings -> Site Options and change to a V8 site layout? how do I do that? I cant see what im supposed to be changing.

                        Comment


                          #13
                          They will say 'use parent' but also tell you the layout that is being used as part of that line. Change your product layout to be 'standard layout using CSS' in site options and then check to see if the product is now using that layout.

                          Comment


                            #14
                            Ok done,

                            changed to 'Standard Layout using CSS v8_5_2_0

                            The product is now using that layout, but still no VAT

                            Comment


                              #15
                              It's almost certain to be something very simple, just really hard to try and fix blind. There must be either a price or a tax setting or a layout issue somewhere.

                              And what does the price layout say for that product?

                              Comment

                              Working...
                              X