Ask A Question

Views: 120,986

Results 21 to 40 of 399
19 Sep 2006, 6:54 PM
#21
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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.

19 Sep 2006, 7:14 PM
#22
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Ask A Question

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.

19 Sep 2006, 7:27 PM
#23
swguy avatar

swguy

Administrator

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

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 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.

19 Sep 2006, 8:09 PM
#24
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Ask A Question

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.

19 Sep 2006, 8:59 PM
#25
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

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.

19 Sep 2006, 9:58 PM
#26
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Re: Ask A Question

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.

24 Sep 2006, 2:41 AM
#27
swguy avatar

swguy

Administrator

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

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 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.

24 Sep 2006, 2:54 AM
#28
swguy avatar

swguy

Administrator

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

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 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.

28 Sep 2006, 10:23 PM
#29
phid avatar

phid

Totally Zenned

Join Date:
Nov 2005
Location:
Narnia
Posts:
696
Plugin Contributions:
0

Re: Ask A Question

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:

<br />
ASK_A_QUESTION
</a>
28 Sep 2006, 10:29 PM
#30
swguy avatar

swguy

Administrator

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

Re: Ask A Question

Accursed finger trouble, of course. :)

It has been fixed.
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.

29 Sep 2006, 9:52 AM
#31
swguy avatar

swguy

Administrator

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

Re: Ask A Question

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

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.

29 Sep 2006, 5:21 PM
#32
phid avatar

phid

Totally Zenned

Join Date:
Nov 2005
Location:
Narnia
Posts:
696
Plugin Contributions:
0

Re: Ask A Question

Actually I saw that extra div and had to delete it from my page because it was messing things up. I guess I wasn't totally sure if it was a problem specific to my site because of the special formatting I'm doing. Regardless, it now looks good and the button is appearing.

P.S. in the contrib I downloaded only yesterday or the day before there were no button instructions included....only a reference to "Alternately, you may use the button provided."

30 Sep 2006, 12:22 AM
#33
swguy avatar

swguy

Administrator

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

Re: Ask A Question

Just downloaded the latest version (1.3.5) and button directions were there on l. 84-113. Are you sure you didn't download an old copy? This one has been up since 09/23.

In the next round, I will add the documentation fixes you have suggested.

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 Oct 2006, 1:02 PM
#34
rvagrrl avatar

rvagrrl

New Zenner

Join Date:
Oct 2005
Posts:
90
Plugin Contributions:
0

Re: Ask A Question

Hey there. I've install this module before and don't think I've had this problem, but the TEXT AREA is covering up the "Your question/message/whatever" bit. I feel like I've seen something about this before on the forums, but all I could find was about the Tell A Friend module and it was a different problem. Any ideas?

http://dana.lbdsites.com/index.php?main_page=ask_question&products_id=79

Thanks!

Leila

7 Oct 2006, 2:24 AM
#35
twistedsteel4x4 avatar

twistedsteel4x4

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

Re: Ask A Question

Ok...I'm stuck.

This mod is great....exactly what I was hoping for....

There's only one problem...when I click the "Ask a Question" button, I get:

Warning: main(includes/templates/template_default/templates/tpl_ask_a_question_default.php): failed to open stream: No such file or directory in xxxxx/includes/templates/template_default/common/tpl_main_page.php on line 115

Warning: main(includes/templates/template_default/templates/tpl_ask_a_question_default.php): failed to open stream: No such file or directory in xxxxx/includes/templates/template_default/common/tpl_main_page.php on line 115

Fatal error: main(): Failed opening required 'includes/templates/template_default/templates/tpl_ask_a_question_default.php' (include_path='.:/usr/local/lib/php') in xxxxx/includes/templates/template_default/common/tpl_main_page.php on line 115

where "xxxxx" of course is the rest of the server path....

I've checked that particular directory and the files ARE in fact there....I'm wondering if I may have missed something? Can anyone shed any light on what my little brain cramp may have been??

Site URL is https://www.twistedsteel4x4.com

Thanks so much!!!!

7 Oct 2006, 2:37 AM
#36
twistedsteel4x4 avatar

twistedsteel4x4

New Zenner

Join Date:
Jun 2006
Posts:
10
Plugin Contributions:
0

Re: Ask A Question

Nevermind.....figured out what I did wrong...was my own stupidity....

One of those :lamo: moments

7 Oct 2006, 4:15 PM
#37
swguy avatar

swguy

Administrator

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

Re: Ask A Question

rvagrrl, I notice you have <br class="clearBoth" /> after your textarea for message input
and you're not using float:left on it. I would change these things.

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.

11 Oct 2006, 7:40 AM
#38
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Ask A Question

swguy:

rvagrrl, I notice you have <br class="clearBoth" /> after your textarea for message input
and you're not using float:left on it. I would change these things.
I just tried to add to the CSS:

textarea{
clear: both;
}

And that seems the fix rvagrrl's problem.

11 Oct 2006, 10:59 PM
#39
swguy avatar

swguy

Administrator

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

Re: Ask A Question

Paulm, are you using the FF Web Developer extension? How did you perform this test? (I know you have a lot of knowledge in this area, and others would benefit from hearing how you figure this sort of stuff out. )

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.

11 Oct 2006, 11:33 PM
#40
paulm avatar

paulm

Totally Zenned

Join Date:
Nov 2003
Posts:
1,878
Plugin Contributions:
5

Re: Ask A Question

Hi scott,

Paulm, are you using the FF Web Developer extension?Yep

How did you perform this test?By using the web developer extension and editting the CSS (press Ctrl+Shift+e but I assume you already knew about this feature?).

I know you have a lot of knowledge in this area, and others would benefit from hearing how you figure this sort of stuff out.:-) Very nice to hear that. :blush:

More in general it's:

1.) Reading two books about CSS (written by Eric meyer)

2.) Years of trail and error (which is still going on). Not very scientific, I know ;-)

3.) Using tools (approx. 90% using the formentioned web developer tool, 5% using HTML kit (copying and pasting and preview HTML source), 2% using HTML validators and 3% using other tools).

hth