Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Movnig the Add This To My Cart Button

    Hello:

    I am trying to move my "Add this to my cart " button in the Abbington Mega template from the top to below the description. I went to the tutorial that explained this but I have something totally different than that explanation.

    I went to /includes/templates/abbington_mega/templates/tpl_product_info_display.php and this is what I have:

    HTML Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      // do nothing
    } else {
    ?>
                <?php
        $display_qty = (($flag_show_product_info_in_cart_qty == 1 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 == 0 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_CART, BUTTON_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_CART, BUTTON_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-->
    Do I need to move this entire block of information to do this correctly?

    I am building this site as a sub but this is an example of what I am talking about:

    http://www.petluxuryboutique.com/sho...erapy-gift-set

    Thanks in advance for the help,

    Silver

  2. #2
    Join Date
    Jul 2009
    Location
    picaflor-azul.com
    Posts
    6,928
    Plugin Contributions
    45

    Default Re: Movnig the Add This To My Cart Button

    Quote Originally Posted by SilverHD View Post
    Hello:

    I am trying to move my "Add this to my cart " button in the Abbington Mega template from the top to below the description. I went to the tutorial that explained this but I have something totally different than that explanation.

    I went to /includes/templates/abbington_mega/templates/tpl_product_info_display.php and this is what I have:

    HTML Code:
    <!--bof Add to Cart Box -->
    <?php
    if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
      // do nothing
    } else {
    ?>
                <?php
        $display_qty = (($flag_show_product_info_in_cart_qty == 1 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 == 0 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_CART, BUTTON_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_CART, BUTTON_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-->
    Do I need to move this entire block of information to do this correctly?

    I am building this site as a sub but this is an example of what I am talking about:

    http://www.petluxuryboutique.com/sho...erapy-gift-set

    Thanks in advance for the help,

    Silver
    Yes, you need to move the entire block of code.


    Thanks,

    Anne

  3. #3
    Join Date
    Mar 2008
    Location
    USA
    Posts
    560
    Plugin Contributions
    0

    Default Re: Movnig the Add This To My Cart Button

    Anne:

    Thank you so much. I have made so many mistakes that I am gunshy rather than just going with it. That worked fine. One more question: Referring to that same page, how do I move the (•Model: 34185 and •100 Units in Stock) up along side of the product image with the pricing, and at the same time, make it a larger font? ref: http://www.petluxuryboutique.com/sho...erapy-gift-set

    Thanks again,

    Silver

 

 

Similar Threads

  1. how do i change the qty box to add to this cart button?
    By hangman21 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 1 Aug 2010, 11:45 AM
  2. How to change the link on the "add this to my cart" button?
    By chiflatin in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Oct 2009, 09:02 PM
  3. Moving or adding the add this to cart button
    By silvito in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 8 Dec 2008, 07:10 PM
  4. 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
  5. Add to Cart button overlapping the "customers who purchased this also" box
    By Elarya in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Mar 2008, 10:59 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