Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Posts
    110
    Plugin Contributions
    0

    Default Swap over the 'add to cart' text/box and the 'add to cart' image

    I'd like the button to be above the quantity box, so that it's level with 'tell a friend'

    Here's where it is by default, which isn't as pretty as I'd like:

    http://www.towertothepeople.co.uk/sh...&products_id=8

    You'd think this would be easy, but I can't work it out.

    I've played with tpl_product_info_display.php with no success. I can't seem to split the two items without breaking the store.

    Thanks all.

  2. #2
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Swap over the 'add to cart' text/box and the 'add to cart' image

    copy
    templates/template_default/templates/tpl_product_info_display.php
    to
    /includes/templates/your template/templates/tpl_product_info_display.php

    and find the section with

    <div id="cartAdd">
    <?php
    echo $display_qty;
    echo $display_button;
    ?>
    </div>

    swapping the echoes should to the trick...I think

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

    Default Re: Swap over the 'add to cart' text/box and the 'add to cart' image

    Exactly what I thought, but it doesn't work.......

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

    Default Re: Swap over the 'add to cart' text/box and the 'add to cart' image

    Tried it again. No joy :-(

  5. #5
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Swap over the 'add to cart' text/box and the 'add to cart' image

    well, so much for the obvious

    change $the_button code to

    $the_button = zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT) . '<br />' . 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']);

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

    Default Re: Swap over the 'add to cart' text/box and the 'add to cart' image

    Well that ought to work........but.......

    I'll have to check out why that is throwing up errors.

    Probably one '}' in a million lines of code.

 

 

Similar Threads

  1. how to align the product title, price and add to cart box next to the product image?
    By evaky in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 5 Mar 2012, 03:31 AM
  2. Replies: 0
    Last Post: 17 Mar 2010, 05:24 PM
  3. how to add the add-to-cart-button to the new products box on the home page?
    By ebloger in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Nov 2008, 10:30 AM
  4. Add Atributes Inside The Add To Cart Box on The Product Info Page
    By CoolCarPartsOnline in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Jul 2008, 09:29 AM
  5. Replies: 1
    Last Post: 2 Nov 2007, 08:20 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