Announcement

Collapse
No announcement yet.

Can I have 2 seperate templates for the price layout?

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

    Can I have 2 seperate templates for the price layout?

    I need to make two different layouts for the Act_ProductPrice.html. So that i can show the prices in 2 different ways on the same page. The reason for this is im creating a page with a main product and optional sub products, all running on a single add to cart.

    The template for the main design requires the price to be laid out in a totally different way to the sub products. Is this possible? I tried to use NETQUOTEVAR:COST and NETQUOTEVAR:TAXMESSAGE with the product layout templates but that dint work. Any Ideas?
    Ben Adcock
    Caged Fish Web Design

    #2
    Hi,

    I am checking if this is possible. Have passed the query to development. I first off thought of using CUSTOMVARS but do not see how you will pass the price value over to the cart using a CUSTOMVAR.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Can you post a visual example of what you want?
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        Norman, what i require is the text size for the price of one product is at 16pt with the tax message at 11pt and then on the other sub product template the price needs to be at 11pt with tax message at 10pt.
        Ben Adcock
        Caged Fish Web Design

        Comment


          #5
          Not sure if this will help, why not have 2 product templates with and use a style sheet for the size you are wanting to display. Only problem is the add to cart buttons, the only real way around that is to set single add to cart button on page. As Norman says, can you put a jpg up or an html template somewhere, this will help with people wanting to help you with a solution.

          Best

          J
          --------------------
          www.ProSite.co.uk

          Comment


            #6
            http://www.fishytest.co.uk/layouthelp.jpg As you can see in this pic i need the two price lines to look diferent in text size. I currently am living with 1 template to run all price lines,but would prefer the style to look as in the jpg if poss?
            Ben Adcock
            Caged Fish Web Design

            Comment


              #7
              In Act_ProductPrice.html use a Customvar to set the style / font / whatever for the fonts. E.g. Replace
              Code:
              <br><span class="actxsmall"><b> NETQUOTEVAR:PRICEPROMPT &nbsp;NETQUOTEVAR:DISCOUNT_QUANTITY&nbsp;NETQUOTEVAR:COST</b></span><span class="actxxsmall">NETQUOTEVAR:TAXMESSAGE</span>
              with
              Code:
              <br><span class="CUSTOMVAR:FONT1"><b> NETQUOTEVAR:PRICEPROMPT &nbsp;NETQUOTEVAR:DISCOUNT_QUANTITY&nbsp;NETQUOTEVAR:COST</b></span><span class="CUSTOMVAR:FONT2">NETQUOTEVAR:TAXMESSAGE</span>
              and set FONT1 and FONT2 globally to the CSS style names used on the majority of products (the optional items) and on the top product set them differently.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Another way to do this is to comment out everything in Act_ProductPrice.html except NETQUOTEVAR:COST and move the <span..> tags and "Price:", "(ex.VAT)", etc to the Product Template - either side of the new slimmed down call to NETQUOTEVAR:PRODUCTPRICE. Don't use NETQUOTEVARS - just hard code these bits of text.

                This way each Product Template can have different text and style around the price.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Yep you can do that no problems, I think you check the option quantity on product page in View > Design Options > Shop defaults, then click Quantity on product page and check Single Add to cart button per page.

                  Simply create 2 layouts (Act_ProductLine) one for the main product then another for your product options, remove all style in Act_ProductPrice wrap NETQUOTEVAR:PRODUCTPRICE in the unique style for that template.

                  Oh see that Norman has just replied so will leave it there... I am sure his solution will be better than mine.

                  Best

                  Jez
                  --------------------
                  www.ProSite.co.uk

                  Comment

                  Working...
                  X