Ask A Question

Views: 120,992

Results 61 to 80 of 399
18 Jan 2007, 1:08 AM
#61
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Ask A Question

It looks like your template is template_default - this is a bad thing. See

http://www.zen-cart.com/forum/faq.php?faq=catalog_issues#faq_template_customize

If you installed the files as they were in the zip, you created

./includes/templates/custom/templates/tpl_ask_a_question_default.php

which will only work if you create a template called custom and set your template to that value in admin - and this would be a good thing.

Good luck,
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.

25 Jan 2007, 1:01 AM
#62
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Ask A Question

Hello!

I like this mod, very much. I notice that unless I include a manufacturer in my listing AAQ does not show up on the product info page.

Is there some additional code, I need to place? Also how hard would it be change the AAQ text? to something like AAQ about this "item" instead of product.

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

25 Jan 2007, 1:18 AM
#63
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

If it's not showing up unless you have a manufacturer, you've put it inside an if block. Move it down a bit.

To change the text, edit ./includes/languages/english/html_includes/define_ask_a_question.php

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.

25 Jan 2007, 5:15 PM
#64
dharma avatar

dharma

Totally Zenned

Join Date:
Nov 2006
Posts:
505
Plugin Contributions:
0

Re: Ask A Question

If I move the AAQ down in the page, should I restore the original code under TEXT_PRODUCT_MANUFACTURER....</ul>
<br class="clearBoth" />?

here is what I have currently:

(<!--bof Product details list -->

<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?> <ul id="productDetailsList" class="floatingBox back"> <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT . $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>' : '') . "\n"; ?> <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?> </ul> <br /> <br /> <span id="productQuestions" class="biggerText"> <br /> <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b> </span> <br class="clearBoth" /> <?php } ?> <!--eof Product details list -->

Zencart 1.3.9h - PHP 5.2.13 - My SQL 5.0.84 - Apache 1.3.41

5 Feb 2007, 6:36 PM
#65
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

This mod was working recently, I can't remember if it has stopped since I upgraded to 1.3.7 but this is what is get.

"Sorry, my system does not understand your email address. Please try again."

I try any address and it's the same, Contact Us work's fine. Any ideas where I should be looking, which file is used for taking the question.

5 Feb 2007, 7:27 PM
#66
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

I think I have figured it out, let me know. When I logged in it worked!! Then I saw that the Allow guest to ask a question option has been deleted in this version.

Then I started checking code until I found the file

includes/modules/pages/ask_a_question/header_php.php

Line 13

reads

if (!$_SESSION['customer_id'] && (ALLOW_GUEST_TO_ASK_A_QUESTION == 'false')) {

I replaced it with

if (!$_SESSION['customer_id']) {

This then prompts me to login then it works. Was the decision to take away the Guest allow for some major reason?

5 Feb 2007, 9:17 PM
#67
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

This is a bug I've been meaning to fix for a while. I'll go ahead and do it now.

The variable ALLOW_GUEST_TO_ASK_A_QUESTION was a remnant from a previous version. People who've been running this for a while still have that entry in their admin; new people don't and might get caught by this bug.

Thanks,
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 Feb 2007, 10:00 PM
#68
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

Personally I think you should leave the Allow a Guest option to be configured in Admin. I have found that people come on my site and ask me product questions. My team is happy to help as it shows our high customer service. Even if they don't shop with us that time.

5 Feb 2007, 10:48 PM
#69
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

Guests can ask questions. What I removed was the ability to disallow guests from asking questions. People who want this flexibility are welcome to add it back in.

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.

6 Feb 2007, 9:04 AM
#70
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

ah ok, I will have to see if I can find the previous version. I'm guessing it's just a case of running the SQL line to insert the key into the configuration table for Allow Guest to Ask Question, then leave the code as you already have it?

6 Feb 2007, 9:55 AM
#71
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

The SQL is

INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Allow Guest To Ask A Product Question', 'ALLOW_GUEST_TO_ASK_A_QUESTION', 'true', 'Allow guests to ask a question about a product', '12', '24', 'zen_cfg_select_option(array('true', 'false'), ', now());

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.

6 Feb 2007, 11:00 AM
#72
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

I inserted the SQL back in and made sure the Allow Guest is True, then used the header_php.php provided but it still won't work. Same error, Sorry I don't understand your e-mail address. Which I know really mean's, you need to be logged in to ask a question.

6 Feb 2007, 8:26 PM
#73
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

Anybody got a copy of the previous version please, mine is not working now and I really need to have the Allow Guest Tell a Freind active.

6 Feb 2007, 8:30 PM
#74
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

Huh? If you download the latest version of Ask A Question, guests are allowed to ask a question. Tell a friend is built in software, not a contribution, with a different switch.

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.

6 Feb 2007, 8:36 PM
#75
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

Well my tell a friend work's fine too. What we're the configuration options available, looking at the readme file

Allow Guest To Ask A Product Question ...
Ask A Question Email To: ...
Ask A Question Name To ...

The last two are not there since i ran the cleanup.sql Have you got the sql used, maybe that's why it won't work.

6 Feb 2007, 8:57 PM
#76
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

Have you installed the new software? Because if you've deleted the database settings that the old software used without installing the new software, it's not going to work that well.

NONE of the three settings you've mentioned are used in the new software.

If you're running 1.3.0 or greater, you should be able to install the new software and be good to go.

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.

7 Feb 2007, 8:43 AM
#77
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

Yes, I did. I'm running zen cart 1.3.7. I will re-install the new versions again, but how do you tell it to allow guests if you delete the Configuration setting??

7 Feb 2007, 10:16 AM
#78
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,729
Plugin Contributions:
56

Re: Ask A Question

It Always Allows Guests. There Is No Config Setting.

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.

7 Feb 2007, 10:51 AM
#79
namsingh avatar

namsingh

Zen Follower

Join Date:
Sep 2006
Location:
Leeds, UK
Posts:
165
Plugin Contributions:
0

Re: Ask A Question

ok, thanks for the help. But it still isn't working. I'm thinking it's not compatible with 1.3.7? I remember some changes we're made to the e-mailing system in the new zen cart. If you login as a user and ask a question it is fine. Maybe it's using the e-mail settings of a logged in user. But as a guest it's the same, I don't understand your e-mail address error on every address I try. You can see what I mean, it's the site in my signature.

7 Feb 2007, 1:42 PM
#80
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Ask A Question

NamSingh:

I'm thinking it's not compatible with 1.3.7? I.
The mod works fine on my 1.37 shop, whether not logged in (as guest) or if logged in.

Unless you want spammers attempting to take advantage of your AAQ form (or contact form) you should consider requiring a login to sent the message. Everything has its pros and cons.

Woody