Results 1 to 8 of 8
  1. #1
    Join Date
    Oct 2008
    Posts
    4
    Plugin Contributions
    0

    help question Custom Buttons Issues

    Ok I am having issues with buttons on my site. I have created the button images, have read the FAQ page, have redone the button_names.php file. After doing this all that show's on the pages is the redx with the name. What am I doing wrong?

    The website is setup so we have the main site and then a folder (zen-cart) for the shopping cart, all of the zen cart stuff is in that folder. This file is located at website name /zen-cart/includes/languages/english/button_names.php

    the buttom images themselves are under:
    website name /zen-cart/includes/templates/My-Templates/buttons

    There names are:
    addaddress-button.jpg
    addtocart-button.jpg
    backarrow_icon.gif
    buttons.jpg
    buynow-button.jpg
    cancel-button.jpg
    changeaddress-button.jpg
    checkout-button.jpg
    confirm-button.jpg
    continue-button.jpg
    continuecheckout-button.jpg
    continueshopping-button.jpg
    createaccount-button.jpg
    delete-button.jpg
    deletesmall-button.jpg
    download-button.jpg
    editsmall-button.jpg
    incart-button.jpg
    login-button.jpg
    logout-button.jpg
    morereviews-button.jpg
    next-button.gif
    productdetails-button.jpg
    readreview-button.jpg
    redeem-button.jpg
    returnlist-button.jpg
    review-button.jpg
    search-button.jpg
    sendanother-button.jpg
    send-button.jpg
    sendgiftcertificate-button.jpg
    shippingestimator-button.jpg
    soldout-button.jpg
    submit-button.jpg
    tellafriend-button.jpg
    unsubscribe-button.jpg
    update-button.jpg
    view-button.jpg
    writereview-button.jpg

    Here is the PHP file code:

    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: button_names.php 5410 2006-12-27 03:56:46Z drbyte $
     */
    
    
    /**
     * define the button images used in the project
     */
    
    define('BUTTON_IMAGE_ADD_TO_CART', '/zen-cart/includes/templates/My-Templates/buttons/addtocart-button.jpg');
    define('BUTTON_IMAGE_ADD_ADDRESS', '/zen-cart/includes/templates/My-Templates/buttons/addaddress-button.jpg');
    define('BUTTON_IMAGE_ADD_PRODUCTS_TO_CART','/zen-cart/includes/templates/My-Templates/buttons/addtocart-button.jpg');
    define('BUTTON_IMAGE_BACK', '/zen-cart/includes/templates/My-Templates/buttons/backarrow_icon.gif');
    define('BUTTON_IMAGE_BUY_NOW', '/zen-cart/includes/templates/My-Templates/buttons/buynow-button.jpg');
    define('BUTTON_IMAGE_CANCEL', '/zen-cart/includes/templates/My-Templates/buttons/cancel-button.jpg');
    define('BUTTON_IMAGE_CHANGE_ADDRESS', '/zen-cart/includes/templates/My-Templates/buttons/changeaddress-button.jpg');
    define('BUTTON_IMAGE_CHECKOUT', '/zen-cart/includes/templates/My-Templates/buttons/checkout-button.jpg');
    define('BUTTON_IMAGE_CONFIRM_SEND', '/zen-cart/includes/templates/My-Templates/buttons/confirm-button.jpg');
    define('BUTTON_IMAGE_CONFIRM_ORDER', '/zen-cart/includes/templates/My-Templates/buttons/confirm-button.jpg');
    define('BUTTON_IMAGE_CONTINUE', '/zen-cart/includes/templates/My-Templates/buttons/continue-button.jpg');
    define('BUTTON_IMAGE_CONTINUE_SHOPPING', '/zen-cart/includes/templates/My-Templates/buttons/continueshopping-button.jpg');
    define('BUTTON_IMAGE_DELETE', '/zen-cart/includes/templates/My-Templates/buttons/delete-button.jpg');
    define('BUTTON_IMAGE_DELETE_SMALL', '/zen-cart/includes/templates/My-Templates/buttons/deletesmall-button.jpg');
    define('BUTTON_IMAGE_DOWNLOAD', '/zen-cart/includes/templates/My-Templates/buttons/download-button.jpg');
    define('BUTTON_IMAGE_EDIT_SMALL', '/zen-cart/includes/templates/My-Templates/buttons/editsmall-button.jpg');
    define('BUTTON_IMAGE_IN_CART', '/zen-cart/includes/templates/My-Templates/buttons/incart-button.jpg');
    define('BUTTON_IMAGE_LOGIN', '/zen-cart/includes/templates/My-Templates/buttons/login-button.jpg');
    define('BUTTON_IMAGE_NEXT', '/zen-cart/includes/templates/My-Templates/buttons/next-button.gif');
    define('BUTTON_IMAGE_PREVIOUS', '/zen-cart/includes/templates/My-Templates/buttons/backarrow_icon.gif');
    define('BUTTON_IMAGE_REDEEM', '/zen-cart/includes/templates/My-Templates/buttons/redeem-button.jpg');
    define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', '/zen-cart/includes/templates/My-Templates/buttons/returnlist-button.jpg');
    define('BUTTON_IMAGE_REVIEWS', '/zen-cart/includes/templates/My-Templates/buttons/review-button.jpg');
    define('BUTTON_IMAGE_SEARCH', '/zen-cart/includes/templates/My-Templates/buttons/search-button.jpg');
    define('BUTTON_IMAGE_SEND', '/zen-cart/includes/templates/My-Templates/buttons/send-button.jpg');
    define('BUTTON_IMAGE_SEND_A_GIFT_CERT', '/zen-cart/includes/templates/My-Templates/buttons/sendgiftcertificate-button.jpg');
    define('BUTTON_IMAGE_SEND_ANOTHER', '/zen-cart/includes/templates/My-Templates/buttons/sendanother-button.jpg');
    define('BUTTON_IMAGE_SHIPPING_ESTIMATOR', '/zen-cart/includes/templates/My-Templates/buttons/shippingestimator-button.jpg');
    define('BUTTON_IMAGE_SOLD_OUT','/zen-cart/includes/templates/My-Templates/buttons/soldout-button.jpg');
    define('BUTTON_IMAGE_SOLD_OUT_SMALL','/zen-cart/includes/templates/My-Templates/buttons/soldout-button.jpg');
    define('BUTTON_IMAGE_SUBMIT', '/zen-cart/includes/templates/My-Templates/buttons/submit-button.jpg');
    define('BUTTON_IMAGE_TELL_A_FRIEND', '/zen-cart/includes/templates/My-Templates/buttons/tellafriend-button.jpg');
    define('BUTTON_IMAGE_TELLAFRIEND', '/zen-cart/includes/templates/My-Templates/buttons/tellafriend-button.jpg');
    define('BUTTON_IMAGE_UNSUBSCRIBE', '/zen-cart/includes/templates/My-Templates/buttons/unsubscribe-button.jpg');
    define('BUTTON_IMAGE_UPDATE', '/zen-cart/includes/templates/My-Templates/buttons/update-button.jpg');
    define('BUTTON_IMAGE_VIEW_SMALL', '/zen-cart/includes/templates/My-Templates/buttons/view-button.jpg');
    define('BUTTON_IMAGE_WRITE_REVIEW', '/zen-cart/includes/templates/My-Templates/buttons/writereview-button.jpg');
    define('BUTTON_IMAGE_READ_REVIEWS', '/zen-cart/includes/templates/My-Templates/buttons/readreview-button.jpg');
    define('BUTTON_IMAGE_GOTO_PROD_DETAILS', '/zen-cart/includes/templates/My-Templates/buttons/productdetails-button.jpg');
    define('BUTTON_IMAGE_MORE_REVIEWS', '/zen-cart/includes/templates/My-Templates/buttons/morereviews-button.jpg');
    define('BUTTON_IMAGE_CONTINUE_CHECKOUT', '/zen-cart/includes/templates/My-Templates/buttons/continuecheckout-button.jpg');
    //define('PREVNEXT_BUTTON_NEXT', '[Next&nbsp;&gt;&gt;]');
    //define('PREVNEXT_BUTTON_LAST', 'LAST&gt;&gt;');
    
    
    define('BUTTON_IMAGE_CREATE_ACCOUNT', '/zen-cart/includes/templates/My-Templates/buttons/createaccount-button.jpg');
    define('BUTTON_IMAGE_LOG_OFF', '/zen-cart/includes/templates/My-Templates/buttons/logout-button.jpg');
    /*
     * ALT tags used for buttons
     */
     
    define('BUTTON_CREATE_ACCOUNT_ALT', 'Sign Up');
    define('BUTTON_LOG_OFF_ALT', 'Log Off');
    define('BUTTON_ADD_TO_CART_ALT', 'Add This to My Cart');
    define('BUTTON_ADD_ADDRESS_ALT', 'Add Address');
    define('BUTTON_ADD_PRODUCTS_TO_CART_ALT','Add Selected Products to Cart');
    define('BUTTON_BACK_ALT', 'Back');
    define('BUTTON_BUY_NOW_ALT', 'Buy Now');
    define('BUTTON_CANCEL_ALT', 'Cancel');
    define('BUTTON_CHANGE_ADDRESS_ALT', 'Change Address');
    define('BUTTON_CHECKOUT_ALT', 'Checkout');
    define('BUTTON_CONFIRM_SEND_ALT', 'Send Gift Certificate');
    define('BUTTON_CONFIRM_ORDER_ALT', 'Confirm Order');
    define('BUTTON_CONTINUE_ALT', 'Continue');
    define('BUTTON_CONTINUE_SHOPPING_ALT', 'Continue Shopping');
    define('BUTTON_DELETE_ALT', 'Delete');
    define('BUTTON_DELETE_SMALL_ALT', 'Delete');
    define('BUTTON_DOWNLOAD_ALT', 'Download Now');
    define('BUTTON_EDIT_SMALL_ALT', 'Edit');
    define('BUTTON_IN_CART_ALT', 'Add to Cart');
    define('BUTTON_LOGIN_ALT', 'Sign In');
    define('BUTTON_NEXT_ALT', 'Next');
    define('BUTTON_PREVIOUS_ALT', 'Previous');
    define('BUTTON_REDEEM_ALT', 'Redeem');
    define('BUTTON_RETURN_TO_PROD_LIST_ALT', 'Return to the Product List');
    define('BUTTON_REVIEWS_ALT', 'Go to the Reviews Page');
    define('BUTTON_SEARCH_ALT', 'Search');
    define('BUTTON_SEND_ALT', 'Send Now');
    define('BUTTON_SEND_ANOTHER_ALT', 'Send Another Gift Certificate');
    define('BUTTON_SEND_A_GIFT_CERT_ALT', 'Send A Gift Certificate');
    define('BUTTON_SHIPPING_ESTIMATOR_ALT', 'Shipping Estimator');
    define('BUTTON_SOLD_OUT_ALT', 'Sold Out');
    define('BUTTON_SOLD_OUT_SMALL_ALT', 'Sold Out');
    define('BUTTON_SUBMIT_ALT', 'Submit the Information');
    define('BUTTON_TELL_A_FRIEND_ALT', 'Tell a Friend');
    define('BUTTON_TELLAFRIEND_ALT', 'Tell a Friend');
    define('BUTTON_UNSUBSCRIBE', 'Unsubscribe');
    define('BUTTON_UPDATE_ALT', 'Update');
    define('BUTTON_VIEW_SMALL_ALT', 'View');
    define('BUTTON_WRITE_REVIEW_ALT', 'Write Review');
    define('BUTTON_READ_REVIEWS_ALT', 'Read the Review');
    define('BUTTON_GOTO_PROD_DETAILS_ALT', 'Go To This Product\'s Detailed Information');
    define('BUTTON_MORE_REVIEWS_ALT', 'Read More Reviews');
    ?>
    Is there something I am missing?
    Last edited by TrendyCamera; 8 Oct 2008 at 04:05 PM.

  2. #2
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: Custom Buttons Issues

    Just a guess (no url given so I can't see what's going on) ...

    Most buttons are located at Custom_Template/buttons/english

    Try moving the buttons to the /english folder and see what happens.

    Tina

  3. #3
    Join Date
    Oct 2008
    Posts
    4
    Plugin Contributions
    0

    Default Re: Custom Buttons Issues

    thanks I'll try that!

    oh by the way the website is www.trendycamerastraps.com

  4. #4
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Custom Buttons Issues

    define('BUTTON_IMAGE_ADD_TO_CART', '/zen-cart/includes/templates/My-Templates/buttons/addtocart-button.jpg');
    You do NOT need to define the path to the button - just the name.

    define('BUTTON_IMAGE_ADD_TO_CART', 'addtocart-button.jpg');
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  5. #5
    Join Date
    Oct 2008
    Posts
    4
    Plugin Contributions
    0

    red flag Re: Custom Buttons Issues

    Tried it...didn't work



    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: button_names.php 5410 2006-12-27 03:56:46Z drbyte $
     */
    
    
    /**
     * define the button images used in the project
     */
    
    define('BUTTON_IMAGE_ADD_TO_CART', 'includes/YOUR_TEMPLATE/buttons/english/addtocart-button.jpg');
    define('BUTTON_IMAGE_ADD_ADDRESS', 'includes/YOUR_TEMPLATE/buttons/english/addaddress-button.jpg');
    define('BUTTON_IMAGE_ADD_PRODUCTS_TO_CART','includes/YOUR_TEMPLATE/buttons/english/addtocart-button.jpg');
    define('BUTTON_IMAGE_BACK', 'includes/YOUR_TEMPLATE/buttons/english/backarrow_icon.gif');
    define('BUTTON_IMAGE_BUY_NOW', 'includes/YOUR_TEMPLATE/buttons/english/buynow-button.jpg');
    define('BUTTON_IMAGE_CANCEL', 'includes/YOUR_TEMPLATE/buttons/english/cancel-button.jpg');
    define('BUTTON_IMAGE_CHANGE_ADDRESS', 'includes/YOUR_TEMPLATE/buttons/english/changeaddress-button.jpg');
    define('BUTTON_IMAGE_CHECKOUT', 'includes/YOUR_TEMPLATE/buttons/english/checkout-button.jpg');
    define('BUTTON_IMAGE_CONFIRM_SEND', 'includes/YOUR_TEMPLATE/buttons/english/confirm-button.jpg');
    define('BUTTON_IMAGE_CONFIRM_ORDER', 'includes/YOUR_TEMPLATE/buttons/english/confirm-button.jpg');
    define('BUTTON_IMAGE_CONTINUE', 'includes/YOUR_TEMPLATE/buttons/english/continue-button.jpg');
    define('BUTTON_IMAGE_CONTINUE_SHOPPING', 'includes/YOUR_TEMPLATE/buttons/english/continueshopping-button.jpg');
    define('BUTTON_IMAGE_DELETE', 'includes/YOUR_TEMPLATE/buttons/english/delete-button.jpg');
    define('BUTTON_IMAGE_DELETE_SMALL', 'includes/YOUR_TEMPLATE/buttons/english/deletesmall-button.jpg');
    define('BUTTON_IMAGE_DOWNLOAD', 'includes/YOUR_TEMPLATE/buttons/english/download-button.jpg');
    define('BUTTON_IMAGE_EDIT_SMALL', 'includes/YOUR_TEMPLATE/buttons/english/editsmall-button.jpg');
    define('BUTTON_IMAGE_IN_CART', 'includes/YOUR_TEMPLATE/buttons/english/incart-button.jpg');
    define('BUTTON_IMAGE_LOGIN', 'includes/YOUR_TEMPLATE/buttons/english/login-button.jpg');
    define('BUTTON_IMAGE_NEXT', 'includes/YOUR_TEMPLATE/buttons/english/next-button.gif');
    define('BUTTON_IMAGE_PREVIOUS', 'includes/YOUR_TEMPLATE/buttons/english/backarrow_icon.gif');
    define('BUTTON_IMAGE_REDEEM', 'includes/YOUR_TEMPLATE/buttons/english/redeem-button.jpg');
    define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'includes/YOUR_TEMPLATE/buttons/english/returnlist-button.jpg');
    define('BUTTON_IMAGE_REVIEWS', 'includes/YOUR_TEMPLATE/buttons/english/review-button.jpg');
    define('BUTTON_IMAGE_SEARCH', 'includes/YOUR_TEMPLATE/buttons/english/search-button.jpg');
    define('BUTTON_IMAGE_SEND', 'includes/YOUR_TEMPLATE/buttons/english/send-button.jpg');
    define('BUTTON_IMAGE_SEND_A_GIFT_CERT', 'includes/YOUR_TEMPLATE/buttons/english/sendgiftcertificate-button.jpg');
    define('BUTTON_IMAGE_SEND_ANOTHER', 'includes/YOUR_TEMPLATE/buttons/english/sendanother-button.jpg');
    define('BUTTON_IMAGE_SHIPPING_ESTIMATOR', 'includes/YOUR_TEMPLATE/buttons/english/shippingestimator-button.jpg');
    define('BUTTON_IMAGE_SOLD_OUT','includes/YOUR_TEMPLATE/buttons/english/soldout-button.jpg');
    define('BUTTON_IMAGE_SOLD_OUT_SMALL','includes/YOUR_TEMPLATE/buttons/english/soldout-button.jpg');
    define('BUTTON_IMAGE_SUBMIT', 'includes/YOUR_TEMPLATE/buttons/english/submit-button.jpg');
    define('BUTTON_IMAGE_TELL_A_FRIEND', 'includes/YOUR_TEMPLATE/buttons/english/tellafriend-button.jpg');
    define('BUTTON_IMAGE_TELLAFRIEND', 'includes/YOUR_TEMPLATE/buttons/english/tellafriend-button.jpg');
    define('BUTTON_IMAGE_UNSUBSCRIBE', 'includes/YOUR_TEMPLATE/buttons/english/unsubscribe-button.jpg');
    define('BUTTON_IMAGE_UPDATE', 'includes/YOUR_TEMPLATE/buttons/english/update-button.jpg');
    define('BUTTON_IMAGE_VIEW_SMALL', 'includes/YOUR_TEMPLATE/buttons/english/view-button.jpg');
    define('BUTTON_IMAGE_WRITE_REVIEW', 'includes/YOUR_TEMPLATE/buttons/english/writereview-button.jpg');
    define('BUTTON_IMAGE_READ_REVIEWS', 'includes/YOUR_TEMPLATE/buttons/english/readreview-button.jpg');
    define('BUTTON_IMAGE_GOTO_PROD_DETAILS', 'includes/YOUR_TEMPLATE/buttons/english/productdetails-button.jpg');
    define('BUTTON_IMAGE_MORE_REVIEWS', 'includes/YOUR_TEMPLATE/buttons/english/morereviews-button.jpg');
    define('BUTTON_IMAGE_CONTINUE_CHECKOUT', 'includes/YOUR_TEMPLATE/buttons/english/continuecheckout-button.jpg');
    //define('PREVNEXT_BUTTON_NEXT', '[Next&nbsp;&gt;&gt;]');
    //define('PREVNEXT_BUTTON_LAST', 'LAST&gt;&gt;');
    
    
    define('BUTTON_IMAGE_CREATE_ACCOUNT', 'includes/YOUR_TEMPLATE/buttons/english/createaccount-button.jpg');
    define('BUTTON_IMAGE_LOG_OFF', 'includes/YOUR_TEMPLATE/buttons/english/logout-button.jpg');
    /*
     * ALT tags used for buttons
     */
     
    define('BUTTON_CREATE_ACCOUNT_ALT', 'Sign Up');
    define('BUTTON_LOG_OFF_ALT', 'Log Off');
    define('BUTTON_ADD_TO_CART_ALT', 'Add This to My Cart');
    define('BUTTON_ADD_ADDRESS_ALT', 'Add Address');
    define('BUTTON_ADD_PRODUCTS_TO_CART_ALT','Add Selected Products to Cart');
    define('BUTTON_BACK_ALT', 'Back');
    define('BUTTON_BUY_NOW_ALT', 'Buy Now');
    define('BUTTON_CANCEL_ALT', 'Cancel');
    define('BUTTON_CHANGE_ADDRESS_ALT', 'Change Address');
    define('BUTTON_CHECKOUT_ALT', 'Checkout');
    define('BUTTON_CONFIRM_SEND_ALT', 'Send Gift Certificate');
    define('BUTTON_CONFIRM_ORDER_ALT', 'Confirm Order');
    define('BUTTON_CONTINUE_ALT', 'Continue');
    define('BUTTON_CONTINUE_SHOPPING_ALT', 'Continue Shopping');
    define('BUTTON_DELETE_ALT', 'Delete');
    define('BUTTON_DELETE_SMALL_ALT', 'Delete');
    define('BUTTON_DOWNLOAD_ALT', 'Download Now');
    define('BUTTON_EDIT_SMALL_ALT', 'Edit');
    define('BUTTON_IN_CART_ALT', 'Add to Cart');
    define('BUTTON_LOGIN_ALT', 'Sign In');
    define('BUTTON_NEXT_ALT', 'Next');
    define('BUTTON_PREVIOUS_ALT', 'Previous');
    define('BUTTON_REDEEM_ALT', 'Redeem');
    define('BUTTON_RETURN_TO_PROD_LIST_ALT', 'Return to the Product List');
    define('BUTTON_REVIEWS_ALT', 'Go to the Reviews Page');
    define('BUTTON_SEARCH_ALT', 'Search');
    define('BUTTON_SEND_ALT', 'Send Now');
    define('BUTTON_SEND_ANOTHER_ALT', 'Send Another Gift Certificate');
    define('BUTTON_SEND_A_GIFT_CERT_ALT', 'Send A Gift Certificate');
    define('BUTTON_SHIPPING_ESTIMATOR_ALT', 'Shipping Estimator');
    define('BUTTON_SOLD_OUT_ALT', 'Sold Out');
    define('BUTTON_SOLD_OUT_SMALL_ALT', 'Sold Out');
    define('BUTTON_SUBMIT_ALT', 'Submit the Information');
    define('BUTTON_TELL_A_FRIEND_ALT', 'Tell a Friend');
    define('BUTTON_TELLAFRIEND_ALT', 'Tell a Friend');
    define('BUTTON_UNSUBSCRIBE', 'Unsubscribe');
    define('BUTTON_UPDATE_ALT', 'Update');
    define('BUTTON_VIEW_SMALL_ALT', 'View');
    define('BUTTON_WRITE_REVIEW_ALT', 'Write Review');
    define('BUTTON_READ_REVIEWS_ALT', 'Read the Review');
    define('BUTTON_GOTO_PROD_DETAILS_ALT', 'Go To This Product\'s Detailed Information');
    define('BUTTON_MORE_REVIEWS_ALT', 'Read More Reviews');
    ?>

  6. #6
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Custom Buttons Issues

    Remove the paths to the buttons from your button_names.php and put the corrected version in your includes/languages/english/YOUR_TEMPLATE/ override directory.

    Put all of your button images in includes/templates/YOUR_TEMPLATE/buttons/english/
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Oct 2008
    Posts
    4
    Plugin Contributions
    0

    red flag Re: Custom Buttons Issues

    Code:
    <?php
    /**
     * @package languageDefines
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: button_names.php 5410 2006-12-27 03:56:46Z drbyte $
     */
    
    
    /**
     * define the button images used in the project
     */
    
    define('BUTTON_IMAGE_ADD_TO_CART', 'addtocart-button.jpg');
    define('BUTTON_IMAGE_ADD_ADDRESS', 'addaddress-button.jpg');
    define('BUTTON_IMAGE_ADD_PRODUCTS_TO_CART','addtocart-button.jpg');
    define('BUTTON_IMAGE_BACK', 'backarrow_icon.gif');
    define('BUTTON_IMAGE_BUY_NOW', buynow-button.jpg');
    define('BUTTON_IMAGE_CANCEL', 'cancel-button.jpg');
    define('BUTTON_IMAGE_CHANGE_ADDRESS', 'changeaddress-button.jpg');
    define('BUTTON_IMAGE_CHECKOUT', 'checkout-button.jpg');
    define('BUTTON_IMAGE_CONFIRM_SEND', 'confirm-button.jpg');
    define('BUTTON_IMAGE_CONFIRM_ORDER', 'confirm-button.jpg');
    define('BUTTON_IMAGE_CONTINUE', 'continue-button.jpg');
    define('BUTTON_IMAGE_CONTINUE_SHOPPING', 'continueshopping-button.jpg');
    define('BUTTON_IMAGE_DELETE', 'delete-button.jpg');
    define('BUTTON_IMAGE_DELETE_SMALL', 'deletesmall-button.jpg');
    define('BUTTON_IMAGE_DOWNLOAD', 'download-button.jpg');
    define('BUTTON_IMAGE_EDIT_SMALL', 'editsmall-button.jpg');
    define('BUTTON_IMAGE_IN_CART', 'incart-button.jpg');
    define('BUTTON_IMAGE_LOGIN', 'login-button.jpg');
    define('BUTTON_IMAGE_NEXT', 'next-button.gif');
    define('BUTTON_IMAGE_PREVIOUS', 'backarrow_icon.gif');
    define('BUTTON_IMAGE_REDEEM', 'redeem-button.jpg');
    define('BUTTON_IMAGE_RETURN_TO_PROD_LIST', 'returnlist-button.jpg');
    define('BUTTON_IMAGE_REVIEWS', 'review-button.jpg');
    define('BUTTON_IMAGE_SEARCH', 'search-button.jpg');
    define('BUTTON_IMAGE_SEND', 'send-button.jpg');
    define('BUTTON_IMAGE_SEND_A_GIFT_CERT', 'sendgiftcertificate-button.jpg');
    define('BUTTON_IMAGE_SEND_ANOTHER', 'sendanother-button.jpg');
    define('BUTTON_IMAGE_SHIPPING_ESTIMATOR', 'shippingestimator-button.jpg');
    define('BUTTON_IMAGE_SOLD_OUT','soldout-button.jpg');
    define('BUTTON_IMAGE_SOLD_OUT_SMALL','soldout-button.jpg');
    define('BUTTON_IMAGE_SUBMIT', 'submit-button.jpg');
    define('BUTTON_IMAGE_TELL_A_FRIEND', 'tellafriend-button.jpg');
    define('BUTTON_IMAGE_TELLAFRIEND', 'tellafriend-button.jpg');
    define('BUTTON_IMAGE_UNSUBSCRIBE', 'unsubscribe-button.jpg');
    define('BUTTON_IMAGE_UPDATE', 'update-button.jpg');
    define('BUTTON_IMAGE_VIEW_SMALL', 'view-button.jpg');
    define('BUTTON_IMAGE_WRITE_REVIEW', 'writereview-button.jpg');
    define('BUTTON_IMAGE_READ_REVIEWS', 'readreview-button.jpg');
    define('BUTTON_IMAGE_GOTO_PROD_DETAILS', 'productdetails-button.jpg');
    define('BUTTON_IMAGE_MORE_REVIEWS', 'morereviews-button.jpg');
    define('BUTTON_IMAGE_CONTINUE_CHECKOUT', 'continuecheckout-button.jpg');
    //define('PREVNEXT_BUTTON_NEXT', '[Next&nbsp;&gt;&gt;]');
    //define('PREVNEXT_BUTTON_LAST', 'LAST&gt;&gt;');
    
    
    define('BUTTON_IMAGE_CREATE_ACCOUNT', 'createaccount-button.jpg');
    define('BUTTON_IMAGE_LOG_OFF', 'logout-button.jpg');
    /*
     * ALT tags used for buttons
     */
     
    define('BUTTON_CREATE_ACCOUNT_ALT', 'Sign Up');
    define('BUTTON_LOG_OFF_ALT', 'Log Off');
    define('BUTTON_ADD_TO_CART_ALT', 'Add This to My Cart');
    define('BUTTON_ADD_ADDRESS_ALT', 'Add Address');
    define('BUTTON_ADD_PRODUCTS_TO_CART_ALT','Add Selected Products to Cart');
    define('BUTTON_BACK_ALT', 'Back');
    define('BUTTON_BUY_NOW_ALT', 'Buy Now');
    define('BUTTON_CANCEL_ALT', 'Cancel');
    define('BUTTON_CHANGE_ADDRESS_ALT', 'Change Address');
    define('BUTTON_CHECKOUT_ALT', 'Checkout');
    define('BUTTON_CONFIRM_SEND_ALT', 'Send Gift Certificate');
    define('BUTTON_CONFIRM_ORDER_ALT', 'Confirm Order');
    define('BUTTON_CONTINUE_ALT', 'Continue');
    define('BUTTON_CONTINUE_SHOPPING_ALT', 'Continue Shopping');
    define('BUTTON_DELETE_ALT', 'Delete');
    define('BUTTON_DELETE_SMALL_ALT', 'Delete');
    define('BUTTON_DOWNLOAD_ALT', 'Download Now');
    define('BUTTON_EDIT_SMALL_ALT', 'Edit');
    define('BUTTON_IN_CART_ALT', 'Add to Cart');
    define('BUTTON_LOGIN_ALT', 'Sign In');
    define('BUTTON_NEXT_ALT', 'Next');
    define('BUTTON_PREVIOUS_ALT', 'Previous');
    define('BUTTON_REDEEM_ALT', 'Redeem');
    define('BUTTON_RETURN_TO_PROD_LIST_ALT', 'Return to the Product List');
    define('BUTTON_REVIEWS_ALT', 'Go to the Reviews Page');
    define('BUTTON_SEARCH_ALT', 'Search');
    define('BUTTON_SEND_ALT', 'Send Now');
    define('BUTTON_SEND_ANOTHER_ALT', 'Send Another Gift Certificate');
    define('BUTTON_SEND_A_GIFT_CERT_ALT', 'Send A Gift Certificate');
    define('BUTTON_SHIPPING_ESTIMATOR_ALT', 'Shipping Estimator');
    define('BUTTON_SOLD_OUT_ALT', 'Sold Out');
    define('BUTTON_SOLD_OUT_SMALL_ALT', 'Sold Out');
    define('BUTTON_SUBMIT_ALT', 'Submit the Information');
    define('BUTTON_TELL_A_FRIEND_ALT', 'Tell a Friend');
    define('BUTTON_TELLAFRIEND_ALT', 'Tell a Friend');
    define('BUTTON_UNSUBSCRIBE', 'Unsubscribe');
    define('BUTTON_UPDATE_ALT', 'Update');
    define('BUTTON_VIEW_SMALL_ALT', 'View');
    define('BUTTON_WRITE_REVIEW_ALT', 'Write Review');
    define('BUTTON_READ_REVIEWS_ALT', 'Read the Review');
    define('BUTTON_GOTO_PROD_DETAILS_ALT', 'Go To This Product\'s Detailed Information');
    define('BUTTON_MORE_REVIEWS_ALT', 'Read More Reviews');
    ?>
    I did that and it didn't work, so I wrote this over the original buttons.php and that made the screen go blank every time it loads. So I reloaded the original file and then it worked again. What is wrong now?

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Custom Buttons Issues

    Recheck the clean file as you have typos ...

    Code:
    define('BUTTON_IMAGE_BUY_NOW', buynow-button.jpg');

    You are missing the single quote:
    Code:
    define('BUTTON_IMAGE_BUY_NOW', 'buynow-button.jpg');
    there may be others but at least that much is wrong ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v150 Custom Buttons
    By pamela631 in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 1 Jun 2013, 05:29 PM
  2. Custom buttons
    By SQUAREGUM in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 5 Dec 2007, 12:16 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