Announcement

Collapse
No announcement yet.

SIngle Add to Cart button

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

    SIngle Add to Cart button

    Hi all

    We've got a new client site in development at http://knit1.hazelhost.co.uk

    On a product page that uses a single add to cart button, we can't seem to get the button to appear at the bottom of the page below the products (instead the button appears above the products).

    The NQV "SingleAdd" is below "ProductBulk" in Act_ProductBody.

    Any suggestions as to why the page behaves as if "SingleAdd" were above "ProductBulk" ?

    An example page is: http://knit1.hazelhost.co.uk/shop/Ne...ed_Cotton.html

    I have pasted the code from Act_ProductBody below:

    Many thanks

    Nick

    Act_ProductBody:
    ============

    <script language=JavaScript>
    <!--
    var currentcol = 0;
    var colwidth = Math.floor(100 / CUSTOMVAR:NUMCOLS);
    // -->
    </script>
    NETQUOTEVAR:CARTERRORLISTXML
    NETQUOTEVAR:HIDDENINPUT
    <TABLE WIDTH="95%" COLS="3" BORDER="0" CELLPADDING="3" CELLSPACING="0" ALIGN="left">
    NETQUOTEVAR:PRODUCTBULK
    <script language=JavaScript>
    <!--
    if ( currentcol != 0 )
    {
    while ( currentcol++ < CUSTOMVAR:NUMCOLS ) document.write('<td width="' + colwidth + '%"></td>');
    document.write('</tr></table></td></tr>');
    currentcol = 0;
    }
    // -->
    </script>
    <DIV ALIGN="RIGHT">
    NETQUOTEVAR:SINGLEADD
    </DIV>
    </TABLE>
    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
    You're using my MultiColumn layout patches. You have copied some code wrongly.

    Try

    </TABLE>
    <DIV ALIGN="RIGHT"><a name="sectionbottom">
    NETQUOTEVAR:SINGLEADD
    </a></DIV>


    After that last </script> instead.

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

    Comment


      #3
      Thanks for the suggestion Norman

      I've tried this and the following URL shows the result:

      http://knit1.hazelhost.co.uk/shop/Ne...stry_Wool.html

      The Add to cart button is still above the products but is now moved over to the right.

      It's probably a simple error with the code, but I'm buggered if I can find it. :-)


      Regards

      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!

      Comment


        #4
        I can't see the problem either. It all looks OK to me.

        Try marking as deleted all the products in the section bar the first 5, and see if that helps you pin down the faulty HTML.

        Comment


          #5
          Here's my Act_productBody.html that works just fine for me.

          Code:
          <!-- ProductBody HTML begin -->
          <!-- Insert HTML for the top of the product body -->
          
          <script language=JavaScript>
          <!--
          var currentcol = 0;
          var colwidth = Math.floor(100 / CUSTOMVAR:NUMCOLS);
          // -->
          </script>
          
          <div align="right"><a name="sectiontop">
          NETQUOTEVAR:PARENTSECTIONSTOP
          </a><a name="sectiontop">
          <!-- NETQUOTEVAR:TOPLEVELSECTIONSTOP -->
          NETQUOTEVAR:SECTIONLISTTOP
          NETQUOTEVAR:TOPSECTIONSEPARATOR
          NETQUOTEVAR:CARTERRORLISTXML
          </a>
          NETQUOTEVAR:HIDDENINPUT
          
          <BR>
          
            <TABLE WIDTH="500" COLS="3" BORDER="0" CELLPADDING="10" CELLSPACING="0" ALIGN="CENTER">
          
          	NETQUOTEVAR:PRODUCTBULK
          
          <script language=JavaScript>
          <!--
          if ( currentcol != 0 )
           {
           while ( currentcol++ < CUSTOMVAR:NUMCOLS ) document.write('<td width="' + colwidth + '%">&nbsp;</td>');
           document.write('</tr></table></td></tr>');
           currentcol = 0;
           }
          // -->
          </script>
            </TABLE>
          </div>
          <DIV ALIGN="RIGHT"><a name="sectionbottom">
          NETQUOTEVAR:SINGLEADD
          </a></DIV>
          <a name="sectionbottom">NETQUOTEVAR:BOTTOMSECTIONSEPARATOR
          NETQUOTEVAR:SECTIONLISTBOTTOM
          <!-- NETQUOTEVAR:TOPLEVELSECTIONSBOTTOM -->
          </a>
          <!-- <DIV ALIGN="CENTER"><a name="sectionbottom">
          NETQUOTEVAR:PARENTSECTIONSBOTTOM
          </a></DIV> -->
          <!-- Insert HTML for the bottom of the product body -->
          <!-- ProductBody HTML end -->
          Norman
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Hi Norman

            We're now using the same code in Act_ProductBody as you are. Alas, the page is still not right (the add to cart button is still above the product and forced over to the right).

            http://knit1.hazelhost.co.uk/shop/Ne...ed_Cotton.html

            Any other suggestions anyone?

            Thanks

            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!

            Comment


              #7
              Then it must be something in the Product Templates you are using.

              Try using the ones from my patch in a test section and see if they work OK.

              Then Introduce your customisation and see when they break it.

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

              Comment


                #8
                Hi Nick

                did you get this to work as we're having exactly the same problem in V7.0.2?

                I've tracked it down to the rogue table in Act_productbody.html, the one that surrounds the NETQUOTEVAR:PRODUCTBULK. If I take that Netquotvar out of, and delete the table, then the single add to cart button appears at the top of the page, put it back and there it is at the bottom.

                Did you delete this rogue table?

                Regards Garry

                Comment

                Working...
                X