Announcement

Collapse
No announcement yet.

Make Offer Code Help Needed

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

  • Make Offer Code Help Needed

    I've added the code for Make an Offer to my listing template - but obviously I've messed up the table rows/columns as the 'make offer' shows at the top of the page instead of after the Add to Cart Button

    Here is the section of code I thought I need to add to with my changes highlighted.

    Code:
             <!--START: addtocart-->
              <tr>
                <td colspan="2"><img src="assets/templates/common/images/spacer.gif" border="0" alt="" height="12"></td>
              </tr>
              <tr>
                <td colspan="2"><table>
                    <tr>
                      <td align="right" class="item"><strong>[product_quantity]</strong></td>
                      <td align="center" width="70" class="price-info"><!--START: qtybox-->
                        <input type="text" size=3 name="qty-0" value=1 onChange="validateValues(document.add,1);">
                        <!--END: qtybox--></td>
                      <td width="50" align="left" class="price-info"><input type="button" onClick="check_and_add(document.add);" name="Add" value="[product_addtocart]" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'">
                      </td>
                    </tr>
                  </table></td>
              </tr>
              <tr>
                <td colspan="2" class="options-titles" ><img src="assets/templates/common/images/spacer.gif" border="0" alt="" height="7"></td>
              </tr>
    	<!--END: addtocart-->
    <!--START: make_an_offer-->
    <tr>
                        <div style="padding: 2px;">- or -</div>
                        <div id="Div1">
                          <input type="button" onClick="javascript:popup('makeanoffer.asp?action=newOffer&catalogid=[catalogid]',640,410,false);" name="makeonoffer" value="[product_make-an-offer]" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'">
                        </div>                    
    </tr>
    <!--END: make_an_offer-->
    
    
              <tr>
                <td colspan="2"><table cellpadding="0" cellspacing="0">
                    <!--START: product_availability-->
                    <tr>
                      <td class="font2"><b>[product_Header-availability]</b></td>
                      <td class="font2"><div id="availability">[availability]</div></td>
                    </tr>
                    <!--END: product_availability-->
                  </table></td>
    I inserted the <tr> </tr> because I thought I would need a new row - but obviously I messed it up.

    You can see my results here: 101 Christmas Ornaments - Counted Cross Stitch Pattern

    Can anyone tell me what I did wrong? I'm sure I need a <td> or even a new table - but I'm stumped - this is so not my strong suit.
    C Ekman
    Owner/Designer: Cobweb Corner
    http://www.cobwebcorner.com

  • #2
    I'd be tempted to put it in line.
    ADD TO CART-or-MAKE OFFER

    Anyway, your cart section is in a table, this should put it below your cart button within it.


    <!--START: addtocart-->
    <tr>
    <td colspan="2"><img src="assets/templates/common/images/spacer.gif" border="0" alt="" height="12"></td>
    </tr>
    <tr>
    <td colspan="2"><table>
    <tr>
    <td align="right" class="item"><strong>[product_quantity]</strong></td>
    <td align="center" width="70" class="price-info"><!--START: qtybox-->
    <input type="text" size=3 name="qty-0" value=1 onChange="validateValues(document.add,1);">
    <!--END: qtybox--></td>
    <td width="50" align="left" class="price-info"><input type="button" onClick="check_and_add(document.add);" name="Add" value="[product_addtocart]" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'">
    </td>
    </tr>
    <!--START: make_an_offer-->
    <tr>
    <div style="padding: 2px;">- or -</div>
    <div id="Div1">
    <input type="button" onClick="javascript:popup('makeanoffer.asp?action= newOffer&catalogid=[catalogid]',640,410,false);" name="makeonoffer" value="[product_make-an-offer]" class="btn" onMouseOver="this.className='btn_over'" onMouseOut="this.className='btn'">
    </div>
    </tr>
    <!--END: make_an_offer-->

    </table></td>
    </tr>
    <tr>
    <td colspan="2" class="options-titles" ><img src="assets/templates/common/images/spacer.gif" border="0" alt="" height="7"></td>
    </tr>
    <!--END: addtocart-->

    <tr>
    <td colspan="2"><table cellpadding="0" cellspacing="0">
    <!--START: product_availability-->
    <tr>
    <td class="font2"><b>[product_Header-availability]</b></td>
    <td class="font2"><div id="availability">[availability]</div></td>
    </tr>
    <!--END: product_availability-->
    </table></td>




    PS: Can you tell me how you got your floss colors to show up in three rows? I've been wanting this for several products and haven't figured it out.
    Last edited by mondo; 09-08-2011, 04:04 PM.

    Comment


    • #3
      Originally posted by mondo View Post
      PS: Can you tell me how you got your floss colors to show up in three rows? I've been wanting this for several products and haven't figured it out.
      This is under the category options - open the category and click on ADVANCED then set Product Columns/Category General Items to 3 (or how ever many columns you want).

      I'll try your code - thanks for offering to help.
      C Ekman
      Owner/Designer: Cobweb Corner
      http://www.cobwebcorner.com

      Comment


      • #4
        That didn't work it still showed at the top of my page.

        I HATE that we have to add this code ourselves when only very minor changes were made years ago.

        I am NOT HTML literate and I end up spending hours on what should be a cut and paste.

        I'm going to put my code back to where it was and I'll see if support will help me.
        Last edited by cekman; 09-08-2011, 04:25 PM.
        C Ekman
        Owner/Designer: Cobweb Corner
        http://www.cobwebcorner.com

        Comment


        • #5
          Sorry it didn't work. May be some hidden code in the START command.

          Thanks, Hadn't realized each one was a product. We've got the multiples set as options of a product to add multiple items and qnt. We have 1 product w/75 options for instance.

          Comment

          Working...
          X