Thread: Ask A Question

Results 1 to 10 of 399

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ask A Question

    Quote Originally Posted by Maynards View Post
    I have added this plugin and do not get the option of asking a question on product pages. This is a very simple plugin to add but where did I go wrong.
    I am using zencart version 155e with a template of westminster_new.

    Any ideas?

    Thanks in advance
    Typically and I love how so many different plugins do things differently and regardless the method of explaining/doing, none is "right", but the README.txt indicates how to "present" the option:

    Move includes/templates/template_default/templates/tpl_product_info_display.php
    to your own template directory, if it's not already there.
    In this file, find: <!-- eof Product details list -->

    On the following line, insert this block of code:

    <span id="productQuestions" class="biggerText">
    <br />
    <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id'], 'SSL') . '">' . ASK_A_QUESTION . '</a>'; ?></b>
    </span>
    <br class="clearBoth" />

    Alternately, you may use the button provided. To do this, insert

    <div id="askQuestion" class="biggerText">
    <?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id='
    . $_GET['products_id'], 'SSL') . '">' .
    zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) .
    '</a>'; ?></div>
    <br />
    <br class="clearBoth" />
    That is the "link" to the software being installed and the option being presented...

    How/where otherwise within your code/site you place this is up to your desire, but it is a starting point that works. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  2. #2
    Join Date
    Feb 2010
    Location
    Minnesota
    Posts
    391
    Plugin Contributions
    0

    Default Re: Ask A Question

    Thanks mc12345678 for your response.
    Not understanding every word you wrote but I did add the code in the Read me file and I put it in here:

    includes/templates/westminster_new/templates/tpl_product_info_display.php

    In my current site I have this plugin that is used often by customers. I see the Ask a Question button next to each product. I do not see it here.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ask A Question

    Quote Originally Posted by Maynards View Post
    Thanks mc12345678 for your response.
    Not understanding every word you wrote but I did add the code in the Read me file and I put it in here:

    includes/templates/westminster_new/templates/tpl_product_info_display.php

    In my current site I have this plugin that is used often by customers. I see the Ask a Question button next to each product. I do not see it here.
    Sorry to have offered what was considered the obvious reason. Next up would be to look at the source code of an affected product page, to see that one of the two options is presented there and if so then deal with whatever css/javascript is hiding it... it may require moving the code to a different location within the file to be outside of the effects of either of those two.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Feb 2010
    Location
    Minnesota
    Posts
    391
    Plugin Contributions
    0

    Default Re: Ask A Question

    Quote Originally Posted by mc12345678 View Post
    Sorry to have offered what was considered the obvious reason. Next up would be to look at the source code of an affected product page, to see that one of the two options is presented there and if so then deal with whatever css/javascript is hiding it... it may require moving the code to a different location within the file to be outside of the effects of either of those two.
    Thank you very much for your help. I added the code under the <!--eof Product description --> instead of <!-- eof Product details list --> and it works perfectly.

    Just in case anyone else has this problem.

  5. #5
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ask A Question

    Quote Originally Posted by Maynards View Post
    Thank you very much for your help. I added the code under the <!--eof Product description --> instead of <!-- eof Product details list --> and it works perfectly.

    Just in case anyone else has this problem.
    Welcome. :)

    And as to the other discussion that turned out to be confusing... See the original thought was that the code from the README didn't get inserted... Had that been correct then what I was saying was that this plugin was written to provide direction on where to insert some code to make the feature accessible. Other plugins provide a copy of the original file and some sort of notation that a change is needed at a certain point in the file, some give mixes of the two, etc... Well, I jumped the gun a little in thinking that the code hadn't been incorporated even though the referenced template likely has/had other modifications that could tuck the results away a little... But, seemed like the most likely cause with a secondary being where within the page... If it had gotten any more complex than either of those two then probably would have started asking for a web page. :)

    Regardless, glad it was able to be easily resolved, and thank you for your patience and continued professionalism in not expressing that I was possibly mistreating you and/or your experience. The information provided back helped significantly to guide towards a solution. :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Aug 2009
    Posts
    44
    Plugin Contributions
    0

    Default Re: Ask A Question

    I am in a bit of a funk. I am using this addon but when enabled I get no image only the "ask a question..." text and above that it reads in all caps a similar message however they both link to different pages. I am not sure what I did honestly. URL http://completelydevoteddesigns.com/...&products_id=8

    Any thoughts would be appreciated!

  7. #7
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Ask A Question

    Quote Originally Posted by gsallen101289 View Post
    I am in a bit of a funk. I am using this addon but when enabled I get no image only the "ask a question..." text and above that it reads in all caps a similar message however they both link to different pages. I am not sure what I did honestly. URL http://completelydevoteddesigns.com/...&products_id=8

    Any thoughts would be appreciated!
    Couple thoughts, though not entirely sure how it "happened".
    I accessed the site using a mobile device. There was no text that specified the ability to ask a question about the product on screen, but review of the source code identified that the ask a question content was in one way or another inserted into a sidebox. That sidebox; however, also has some "remnant" of a review link such as to offer a review of a product. That would be why the two links go to somewhere different.

    Not sure (yet) what the issue to resolve is, but if a sidebox was generated to show this option and there is "text" that is all caps, no spaces, that looks "wrong" then there probably is a language define that is missing for the sidebox. The link destination difference is because of how/what was incorporated and something similar for the lack of image. The text instructions in the download identify at least two ways that the plugin can be implemented. Many more are possible, but when having difficulty doing something not described, would suggest going back to what is known to work and then if necessary branch out from there and imitate what works.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

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

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