Thread: Ask A Question

Page 1 of 40 12311 ... LastLast
Results 1 to 10 of 399
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,681
    Plugin Contributions
    123

    Idea or Suggestion Ask A Question

    I was disappointed when the mod "Ask A Question" wasn't included in 1.3, so I decided to integrate it myself. It's now listed as a contribution here:

    http://www.zen-cart.com/index.php?ma...roducts_id=206

    It doesn't use the database entries that the previous one did; it just reuses the email settings that Contact Us uses.

    I hope other people find this as useful as I did!
    Scott

    PS> Unfortunately, I did not create a graphic button for it, which I think would be a great addition; if someone out there has the time and inclination to do so, I would happily include this in an update.
    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.

  2. #2
    Join Date
    Feb 2006
    Posts
    235
    Plugin Contributions
    1

    Re: Ask A Question

    Great Mod, got it installed...
    However for multy languages I tried replacing:

    <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">Ask a Question about this product</a>'; ?></b>

    with this:
    <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '"><?php echo ASK_A_QUESTION; ?></a>'; ?></b>

    But did not work...obviously my php sucks..*lol*

    PS Yes I did:
    define('ASK_A_QUESTION', 'Ask a Question about this Product');
    in the language files I needed....

  3. #3
    Join Date
    Feb 2006
    Posts
    235
    Plugin Contributions
    1

    Default Re: Ask A Question

    Should replace with:
    <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">'.ASK_A_QUESTION.'</a>'; ?></b>

    works fine now.....

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

    Default Re: Ask A Question

    The readme file should say

    <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>


    and the file ./includes/languages/english/extra_definitions/ask_a_question_defines.php

    should be

    <?php

    define('ASK_A_QUESTION', 'Ask a question about this product');

    ?>

    I will fix this next time I upload. I'm still hoping some nice person will make a button! :)
    ~
    Thanks,
    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.

  5. #5
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Ask A Question

    Scott-

    Just to clarify, the edit recommended below is a replacement for the edit recommended in the readme for includes\templates\TYOUR_TEMAPLATE\templates\tpl_product_info_display.php

    The readme file should say

    <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>

    and the file
    /includes/languages/english/extra_definitions/ask_a_question_defines.php
    should include:

    define('ASK_A_QUESTION', 'Ask a question about this product');
    Also can you not incorporate the button Marg bundled with her previous version?

    And is your updated version known to work on all versions of Zen Cart 1.3x. And does it work on previous 1.2x versions? Hope so as I see Marg's version is no longer available in download area.

    I like your new leaner more efficient design and works well on v.1.3.0.2 (fresh install). Nice job.

    Woody

  6. #6
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Ask A Question

    In case anyone wants to visit the support thread for the previous mod version:
    http://www.zen-cart.com/forum/showthread.php?t=36598

    And the previous archives for that thread is at http://www.zen-cart.com/forum/showthread.php?t=6098

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

    Default Re: Ask A Question

    Your changes look good.

    I have only verified this with 1.3.0.2; you would have to verify it with other 1.3's. And I have no idea about 1.2.

    I downloaded Marg's contribution prior to it being deleted and there was no button in it. These things were all text prior to 1.3.

    Good luck,
    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. #8
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Ask A Question

    Quote Originally Posted by swguy
    I have only verified this with 1.3.0.2; you would have to verify it with other 1.3's. And I have no idea about 1.2.
    Yes that is why I was wondering why Marg's version was removed from the downloads area as it also support previous ZC versions

    Quote Originally Posted by swguy
    I downloaded Marg's contribution prior to it being deleted and there was no button in it. These things were all text prior to 1.3.
    Marg updated her "ask_a_question_v1.3.0" for 1.3x (last file change is May 24, 2006). I have it running on Zen Cart 1.3.0.1. Including the graphic button provided in that same version. Previous version from Apr 06, 2006, which also ran on ZC 1.3x also had the button included.

    Button is attached.
    Attached Images Attached Images  

  9. #9
    Join Date
    Oct 2005
    Posts
    38
    Plugin Contributions
    0

    Default Re: Ask A Question

    I have installed this contribution and it works fine - except when HTML emails are slected. The emaila is still sent but there is no reference to the actual product that the question is being asked about. Any ideas as to why this is?

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

    Default Re: Ask A Question

    With the html email, I think you'd have to add another file in the email directory ... I haven't used that so I didn't look into it.
    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 1 of 40 12311 ... 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