Thread: Ask A Question

Page 10 of 40 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 399
  1. #91
    Join Date
    Sep 2006
    Location
    Leeds, UK
    Posts
    174
    Plugin Contributions
    1

    Default Re: Ask A Question

    There is no setting for alignment. I tried really hard to get it done in CSS but images are tricky. So i created a table yes, this is the code used in product_info_display.php

    <table align="center">
    <tr>
    <td>
    <!--bof Additional Product Images -->
    <?php
    /**
    * display the products additional images
    */
    require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); ?>
    <!--eof Additional Product Images -->
    </td>
    <td>
    <!--bof ask a question -->
    <div id="productAskQuestion">
    <?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) .
    '</a>'; ?></div>
    </a>
    </div>
    <!--eof ask a question -->
    </td>
    <td>
    <!--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 ) { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS, zen_get_all_get_params()) . '">' . zen_image_button(BUTTON_IMAGE_REVIEWS, BUTTON_REVIEWS_ALT) . '</a>'; ?></div>

    <p class="reviewCount"><?php echo ($flag_show_product_info_reviews_count == 1 ? TEXT_CURRENT_REVIEWS . ' ' . $reviews->fields['count'] : ''); ?></p>
    <?php } else { ?>
    <div id="productReviewLink" class="buttonRow back"><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, zen_get_all_get_params(array())) . '">' . zen_image_button(BUTTON_IMAGE_WRITE_REVIEW, BUTTON_WRITE_REVIEW_ALT) . '</a>'; ?></div>
    <br class="clearBoth" />
    <?php
    }
    }
    ?>
    <!--eof Reviews button and count -->
    </td>
    <td>
    <!--bof Tell a Friend button -->
    <?php
    if ($flag_show_product_info_tell_a_friend == 1) { ?>
    <div id="productTellFriendLink" class="buttonRow forward"><?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_TELLAFRIEND, BUTTON_TELLAFRIEND_ALT) . '</a>' : ''); ?></div>
    <?php
    }
    ?>
    <!--eof Tell a Friend button -->
    </td>
    </tr>
    </table>

  2. #92
    Join Date
    May 2006
    Posts
    725
    Plugin Contributions
    0

    Default Re: Ask A Question

    Thanks for the quick reply. Mine didn't work out like yours did when using tables so i had to use CSS instead.

    Do you know ho to move the main image itself? i.e. from the left to right or center? what is the code for it?

    Thank you

  3. #93
    Join Date
    Sep 2006
    Location
    Leeds, UK
    Posts
    174
    Plugin Contributions
    1

    Default Re: Ask A Question

    it should work ok, but you need to use the

    float: left;

    etc :)

  4. #94
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,291
    Plugin Contributions
    125

    Default Re: Ask A Question

    The fix discovered by NamSingh has been posted to the downloads area. Thanks, NamSingh!

    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  5. #95
    Join Date
    Nov 2006
    Posts
    81
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by swguy View Post
    When I did it in my cart, the button did not say, "Ask a Question" (I didn't use the supplied button), so I had to add some link text - but I forgot to delete this when I posted the solution. Thanks to Phid for noticing this - but he has missed one problem line (the extra div). The correct code is

    <div id="askQuestion" class="biggerText">
    <?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) . '</a>'; ?>
    </div>
    <br />
    <br class="clearBoth" />

    Thanks,
    Scott

    Ok. I'm slow. Where do I put this code in the file? Under what line?
    Thanks

  6. #96
    Join Date
    Nov 2006
    Posts
    81
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by [email protected] View Post
    Ok. I'm slow. Where do I put this code in the file? Under what line?
    Thanks
    Wow I am slow today. I guess I should read with my glasses on!
    Sorry about the dumb question.

    In the Read me file, I missed the word Alternately you can....


  7. #97
    Join Date
    May 2005
    Location
    Australia
    Posts
    334
    Plugin Contributions
    2

    Default Re: Ask A Question

    For anyone that is also interested, i have added a Sidebox to swguy mod. This allows for a sidebox to pop up when you are viewing a product. It only works when you are looking at Products and will be hidden when you are not..

    http://www.delightsoftheflesh.com/zencart/mods/ask.zip

    Thanks to swguy for making the original mod.

  8. #98
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,291
    Plugin Contributions
    125

    Default Re: Ask A Question

    The Zen Cart forum has a downloads area for sideboxes - you might consider hosting it here instead.

    http://www.zen-cart.com/index.php?ma...ex&cPath=40_52

    Thanks for your contribution!

    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #99
    Join Date
    May 2005
    Location
    Australia
    Posts
    334
    Plugin Contributions
    2

    Default Re: Ask A Question

    Quote Originally Posted by swguy View Post
    The Zen Cart forum has a downloads area for sideboxes - you might consider hosting it here instead.

    http://www.zen-cart.com/index.php?ma...ex&cPath=40_52

    Thanks for your contribution!

    Scott
    I uploaded it there several days ago and it still isnt showing so i decided to post it here as well, until it is uploaded.

  10. #100
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Ask A Question

    [FONT=Arial]Hi Scott,
    I have a query about your "Ask a Question" Contrib.
    [/FONT]
    [FONT=Arial]If I create a Zen Cart in Showcase mode - ie no commerce - I would like to use your ,"ask a question" contrib to enable prospective clients to email specific questions about any specific product. (now comes the tricky part)

    [/FONT]
    [FONT=Arial]However - when a client fills in a question and then presses send - can the email address details and name be held somehow - so that if the Client then goes to another product and asks another question etc - he/she does not have to re-enter all her details ad nauseum.[/FONT]
    [FONT=Arial][/FONT]
    [FONT=Arial]Is this possible as is with this contribution? As far as I can see a kind of similar thing that I may be thinking of is happening on this website - http://www.activepromo.com.au
    [/FONT]

 

 
Page 10 of 40 FirstFirst ... 8910111220 ... LastLast

Similar Threads

  1. Ask A Question module
    By okibi in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Apr 2007, 01:55 PM
  2. Ask a question 1.7
    By Kodam in forum All Other Contributions/Addons
    Replies: 7
    Last Post: 4 Apr 2007, 11:16 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR