Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Stuck deep in php - where to add <div>?

    Assuming you only care about the particular case of the Add: [0] box, here is where that is generated:
    PHP Code:
                // hide quantity box
                
    if ($listing->fields['products_qty_box_status'] == 0) {
                  
    $lc_button '<a href="' zen_href_link($_GET['main_page'], zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' $listing->fields['products_id']) . '">' zen_image_button(BUTTON_IMAGE_BUY_NOWBUTTON_BUY_NOW_ALT'class="listingBuyNowButton"') . '</a>';
                } else {
                  
    $lc_button TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART "<input type=\"text\" name=\"products_id[" $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
                }
              } else {
    // qty box with add to cart button 
    TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART has the value "Add:".

    So I would say to put your div here:
    PHP Code:
                  $lc_button '<div class="listingAdd">' TEXT_PRODUCT_LISTING_MULTIPLE_ADD_TO_CART "<input type=\"text\" name=\"products_id[" $listing->fields['products_id'] . "]\" value=\"0\" size=\"4\" />" '</div>'
    Let me know how it works.

  2. #2
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Re: Stuck deep in php - where to add <div>?

    Cool.
    Thanks for that.

 

 

Similar Threads

  1. Where is the closing div for #MainWrapper?
    By jami1955 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 24 Nov 2010, 01:00 AM
  2. Where's the Add to Cart: text in tpl_product_info_display.php?
    By datatv in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Jun 2008, 02:24 AM
  3. Where is PHP code for Add-to-cart?
    By artcoder in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 27 Jul 2007, 05:36 AM
  4. Where are div id's declared
    By camioman in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 May 2006, 02:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg