Thread: Ask A Question

Page 3 of 40 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 399
  1. #21
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Ask A Question

    Hi,

    everyone here seems to atleast know how to put this module working.
    I uploaded everything like it should be, made the correction for the template that was needed but I do not see anything changing anywhere.

    Should I switch it on somewhere?

    Elli
    I may be blond but at least I found Zen.

  2. #22
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by ellivir
    Hi,

    everyone here seems to atleast know how to put this module working.
    I uploaded everything like it should be, made the correction for the template that was needed but I do not see anything changing anywhere.

    Should I switch it on somewhere?

    Elli
    ok, I got it working, I had made the corrections for the music info template instead of the one asked.
    Actually I needed this add-on only for one product and I would not like to have it visible for all other products. Can that be done?
    I may be blond but at least I found Zen.

  3. #23
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Ask A Question

    I would find this odd to only be able to ask questions about one product and not others. Nevertheless, if you truly want it to behave this way, simply wrap the ask a question logic in something like

    if ($_GET['products_id'] == 27) {
    ... ask a question logic
    }

    (assuming the product they can ask questions on is product id 27)

    Scott
    That Software Guy. My Store: Zen Cart Modifications
    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.

  4. #24
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by swguy
    I would find this odd to only be able to ask questions about one product and not others. Nevertheless, if you truly want it to behave this way, simply wrap the ask a question logic in something like

    if ($_GET['products_id'] == 27) {
    ... ask a question logic
    }

    (assuming the product they can ask questions on is product id 27)

    Scott
    This "Ask A Question" works better than Call For Price and I would use it for certain products like that and I will change the text "Ask a question about this product" for "Ask an offer regarding this product" or something like that...

    Of course later on I may have more than one product like that too... what shall I do then?
    Thanks for your answer already. I'll try that.

    Elli
    I may be blond but at least I found Zen.

  5. #25
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Ask A Question

    I got an idea:
    I could make the thing work by Product Type "Document - General" and then the product or later on the products that I want to have this function would be Document General Type ones.

    I tried to make the same correction for the file
    includes\templates\template_default\templates\tpl_document_general_info_display. php
    but it didn't work. Should I change something else in this add-on to get it working with this Product type?

    Elli
    I may be blond but at least I found Zen.

  6. #26
    Join Date
    Sep 2005
    Posts
    460
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by ellivir
    I got an idea:
    I could make the thing work by Product Type "Document - General" and then the product or later on the products that I want to have this function would be Document General Type ones.

    I tried to make the same correction for the file
    includes\templates\template_default\templates\tpl_document_general_info_display. php
    but it didn't work. Should I change something else in this add-on to get it working with this Product type?

    Elli

    I figured a kind of a bug out:
    if you have edited in admin the Layout for the Product type by switching off model number, weight etc., the text for Ask A Question will not appear!

    Settings when it won't appear:
    Product Type Info Page Layout options :: Product - General
    Title Value Action
    Show Model Number 0 Info
    Show Weight 0
    Show Attribute Weight 0 Info

    So, I do not want model numbers etc. visible, how would we make this add-on working in that case?

    For the Document - General type of Product this is not the problem but something else... so I would need to find out how to make it work with that one anyway...

    Elli
    I may be blond but at least I found Zen.

  7. #27
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Ask A Question

    The code simply needs to be added to every template you need it in. Remember the way you added it to tpl_product_info_display.php? It needs to be added to other display files you are using in the same way.

    Scott
    That Software Guy. My Store: Zen Cart Modifications
    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.

  8. #28
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Ask A Question

    BTW, the ask a question contrib has just been updated with instructions on how to use the button and a SQL file to allow you to remove the previous contribution's config (if you installed ask a question prior to 1.3.0).

    Scott
    That Software Guy. My Store: Zen Cart Modifications
    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. #29
    Join Date
    Nov 2005
    Location
    Narnia
    Posts
    822
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by swguy
    Assuming your template name is "custom":

    a) copy the button image into includes/templates/custom/buttons/english
    (create this directory if it doesn't exist).

    b) create includes/languages/english/custom/button_names.php if you have not already done so,
    from includes/languages/english/button_names.php

    Add the lines
    define('BUTTON_IMAGE_ASK_A_QUESTION','button_ask_question.gif');
    define('BUTTON_ASK_A_QUESTION_ALT', 'Ask a question');

    to this file.

    Then, in tpl_product_info_display.php, your code would be:

    <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 />
    ASK_A_QUESTION
    </a>
    </div>
    <br class="clearBoth" />

    Good luck,
    Scott
    May I ask what the purpose of the following is in the code you provided:

    Code:
    <br />
    ASK_A_QUESTION
    </a>

  10. #30
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Default Re: Ask A Question

    Accursed finger trouble, of course. :)

    It has been fixed.
    Scott
    That Software Guy. My Store: Zen Cart Modifications
    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.

 

 
Page 3 of 40 FirstFirst 1234513 ... 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