Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Oct 2010
    Posts
    15
    Plugin Contributions
    0

    Default Where are the images designated?

    Greetings, all.

    I'm trying to make some changes to my template, notable changing out the button images for the various functions.

    Now, to start, I'm trying to add a new "add to cart" button.

    I have located the following code:

    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-->
    My question, is... SOMEthing in there is setting the "add to cart" button to: /includes/templates/template_default/buttons/english/button_in_cart.gif

    Where is this particular filename designated for the various buttons? Is there a config file that sets the filenames somewhere (I've looked all over for it)?

    (I don't want to just overwrite the existing images, since I want to use PNG/JPG for some additional image treatment).

    In a nutshell, I want to make it call button_in_cart.png instead of button_in_cart.gif

    Thanks!

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Where are the images designated?

    Search all files for "button_in_cart.gif" as you will have to change all calls/references to it to the new image name

    Use the override system and create these
    includes/templates/your template name/buttons/english

    Place your images into that folder
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Where are the images designated?

    That's the problem, I'm not coming up with any thing in the search for the image name. It's called dynamically everywhere I've looked, but I've not seen where the actual variable is being set.

  4. #4
    Join Date
    Oct 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Where are the images designated?

    I found it! (I think)

    \includes\languages\english\button_names.php


  5. #5
    Join Date
    Oct 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Where are the images designated?

    Well, changing that did nothing.. bummer

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Where are the images designated?

    Yeah, I just searched with the dev tool kit and that is it
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Oct 2010
    Posts
    15
    Plugin Contributions
    0

    Default Re: Where are the images designated?

    ok, there's various "stages" of the cart button, and I had to update the others ("in cart").

    Thanks for your help!

 

 

Similar Threads

  1. Where are the additional images?
    By CaroleAs in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 26 Oct 2010, 01:22 AM
  2. Where are the images on my homepage?
    By len47811 in forum General Questions
    Replies: 2
    Last Post: 12 Jun 2010, 05:22 PM
  3. Replies: 2
    Last Post: 22 Jul 2008, 09:33 PM
  4. Easy populate - quick question - where are the images defined??
    By Ben-B in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 11 Feb 2008, 03:13 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