Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default product info page help

    Looked for help with this but couldn't find anything. I hope someone can straighten me out.

    The product info page has what looks like a wrapper (maybe ask/tell wrapper) at the bottom of the info page that should have "ask a question", "tell a friend" and "write a review" buttons but they are missing.
    The "reviews" button is there. As are the other buttons on the page.

    I made some customization changes and messed this up. Any help is much appreciated. site is acornvitamins dot com

    Thanks

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

    Default Re: product info page help

    Try checking your includes/languages/english/button_names.php file for the
    line
    Code:
    define('BUTTON_IMAGE_TELLAFRIEND', 'button_TellAFriend.gif');
    and one that needed to be added for ask a question and make sure that the line syntax is correct like the single quotes paired & matched

  3. #3
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default Re: product info page help

    hello Kobra, Thank you for the reply. I looked through the files you mentioned above and all seems ok to me, although I am extremely limited when it comes to this stuff.
    I feel as if the code on the product info page is not calling for the button image so I am including the tpl_product_info_display file if you'll have a look at it for me.
    Thanks

    <br class="clearBoth" />

    <div id="AskTellWrapper" style="padding:0 0 0 10px">
    <img src="<?php echo $img_link ?>bluePixel.gif" width="98%" height="1" alt="" id="HrDesc" style="padding: 0 0 1px 0"/><br />

    <?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id='
    . $_GET['products_id']) . '">' .
    zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) .'&nbsp;'. BUTTON_ASK_A_QUESTION_ALT.
    '</a>'; ?>


    <!--beg. Tell a Friend and Ask a Question -->
    <?php
    if ($flag_show_product_info_tell_a_friend == 1) { ?>
    <?php echo ($flag_show_product_info_tell_a_friend == 1 ? '<a href="' . zen_href_link(FILENAME_TELL_A_FRIEND, 'products_id=' . $_GET['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_MAIL , BUTTON_MAIL_ALT) . BUTTON_MAIL_ALT . '</a>' : ''); ?>
    <?php
    }
    ?>
    <!--end Tell a Friend and Ask a Question -->

    <!--bof Reviews button and count-->
    <?php
    if ($flag_show_product_info_reviews == 1) {
    // if more than 0 reviews, then show reviews button; otherwise, show the "write review" button
    if ($reviews->fields['count'] > 0 ) { ?>
    <?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">'. zen_image_button(BUTTON_IMAGE_REVIEW, BUTTON_REVIEW_ALT). BUTTON_REVIEW_ALT . '</a>'; ?>
    <?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?>
    <?php } else { ?>
    <?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_REVIEW, BUTTON_REVIEW_ALT). BUTTON_REVIEW_ALT . '</a>'; ?>
    <?php
    }
    }
    ?>
    <!--eof Reviews button and count -->

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: product info page help

    The code you show is looking for the button image, but it is not finding the definition for its filename, nor is it finding the definition for the alt text.
    Are the image files saved in the correct place? What is the exact path to them? (Since one of them shows, this is probably correct.)
    What file did you find the definitions in? What is the exact location of the file?

    The BUTTON_IMAGE_ASK_A_QUESTION is defined as the filename of the reviews button image, and that one definition is being found by the code.

  5. #5
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default Re: product info page help

    Thanks Glenn,
    I hope I know what you are asking.

    image files: all .gif found in /public_html/includes/templates/clean_business/buttons/english/
    example: btn_checkout_green.gif, button_tell_a_friend.gif, button_reviews.gif



    definitions: /public_html/includes/languages/english/
    example:account.php, button_names.php, product_info.php etc

    Does this help at all?

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: product info page help

    Do you have a file named
    /includes/languages/english/clean_business/button_names.php?

    That is where your customized files should be, and if there is something there, a copy in the default location will be ignored.

  7. #7
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default Re: product info page help

    Yes I do have that file.

    I've been able to make some progress on the product info page- but can't seem to get the "tell a friend" button to display.
    Here is whats in the button_names.php file for the "tell a friend" button:

    define('BUTTON_IMAGE_TELLAFRIEND', 'button_tellafriend.gif')

    define('BUTTON_TELLAFRIEND_ALT', 'Tell a Friend')

    I have tried everything and all combinations to get the button to display but no luck. Would you like to see the tpl_product_info_display file ?
    I just can't find the problem. My site is up to date at this point if you'd be kind enough to look.
    Thank you

  8. #8
    Join Date
    Feb 2008
    Location
    L.I., N.Y.
    Posts
    47
    Plugin Contributions
    0

    Default Re: product info page help

    Glenn, Kobra:
    Thanks you guys- I guess I didn't try all the alternatives, as I've fixed my problem!
    Your directions on where to concentrate my efforts proved a winner. I had to make small aterations to both the tpl_product_info_display file and the button_names.php file.
    And, I overlooked some small mistakes many times until I was finally able to see them.
    Thank you again

 

 

Similar Threads

  1. Product info page layout Help
    By dscott1966 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Jan 2011, 06:15 PM
  2. Product Info Page - Layout Help
    By thegoodlifestore in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 May 2008, 04:04 PM
  3. Please HELP with Product INFO page
    By james739 in forum General Questions
    Replies: 0
    Last Post: 12 Nov 2007, 10:28 PM
  4. Help moving around Product Info page content
    By shawnz28 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Jul 2007, 08:37 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