Thread: Layout Help

Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    23
    Plugin Contributions
    0

    help question Layout Help

    Zen Cart 1.3.9h
    I am trying sooooooo hard to get the add to cart section underneath the Please Choose One area, but am failing. To see what I mean, visit http://greatlakesherbalife.com/index...products_id=66
    It should be a simple CSS mod, but have not been able to do it. Trying the Firefox web dev. add-on, and still have no clue! Thanks for the help!!!

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Layout Help

    Explain what you mean by right under the Please Select?

  3. #3
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    23
    Plugin Contributions
    0

    help question Re: Layout Help

    see where I have the attributes... kinda in the center, and then the add to cart is off to the left? I want the add to cart under the section that says packaging... which is the attributes.

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Layout Help

    Shifting these elements around is done (chiefly) by editing your tpl_product_info_display.php file.

    There are LOTS of forum posts on what to do with this file.

    If you do not have such a file in:
    includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php ...

    Then you make a copy from the template_default/ templates area, and put it into your CUSTOM template folder.

    You then edit your custom file... not the CORE (template_default) one.

    Once you have moved elements around the way you want them, you can fine tune styles in the CSS.
    20 years a Zencart User

  5. #5
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    23
    Plugin Contributions
    0

    Default Re: Layout Help

    I have includes/templates/CUSTOM/templates/tpl_product_info_display.php open in my editor, but I am lost as to where to get the add to cart box centered.

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Layout Help

    The elements are neatly encased in BOF and EOF comments:

    PHP Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      
    // do nothing
    } else {
    ?>
                <?php
        $display_qty 
    = (($flag_show_product_info_in_cart_qty == and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' PRODUCTS_ORDER_QTY_TEXT_IN_CART $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' '');
                if (
    $products_qty_box_status == or $products_quantity_order_max== 1) {
                  
    // hide the quantity box and default to 1
                  
    $the_button '<input type="hidden" name="cart_quantity" value="1" />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                } else {
                 
    // show the quantity box
        
    $the_button PRODUCTS_ORDER_QTY_TEXT '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CARTBUTTON_IN_CART_ALT);
                }
        
    $display_button zen_get_buy_now_button($_GET['products_id'], $the_button);
      
    ?>
      <?php if ($display_qty != '' or $display_button != '') { ?>
        <div id="cartAdd">
        <?php
          
    echo $display_qty;
          echo 
    $display_button;
                
    ?>
              </div>
      <?php // display qty and button ?>
    <?php 
    // CUSTOMERS_APPROVAL == 3 ?>
    <!--eof Add to Cart Box-->
    All you do is CUT that entire section of code from where it is in the file, then PASTE it under (or above) another BOF / EOF section.
    20 years a Zencart User

  7. #7
    Join Date
    Jan 2011
    Location
    Michigan
    Posts
    23
    Plugin Contributions
    0

    Default Re: Layout Help

    I have that moved, and it is still on the left. Did you look at the page in question? http://greatlakesherbalife.com/index...products_id=66

 

 

Similar Threads

  1. v139h Layout Help
    By joyjoy in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 16 Apr 2012, 03:36 AM
  2. Replies: 2
    Last Post: 23 Mar 2012, 03:28 PM
  3. Layout Help
    By mayes in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Dec 2006, 01:46 AM

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