Ask A Question

Views: 120,989

Results 301 to 320 of 399
10 Mar 2013, 11:55 PM
#301
dharma avatar

dharma

Totally Zenned

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

Ask A Question

ATSWorld:

thanks ,,I've tried it a few times now and it never works for me ..weird

did you try the above link and change both files?

**/includes/templates/YOUR_TEMPLATE/templates/tpl_ask_a_question_default.php
**/includes/modules/pages/ask_a_question/header.php

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

27 May 2013, 4:35 PM
#302
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Ask A Question

swguy:

This is a good idea. Another thing you might do is add ask_a_question to the list ROBOTS_PAGES_TO_SKIP in includes/languages/english/YOUR_TEMPLATE/meta_tags.php.
Hello Scott - Since product name and image are being pulled and displayed, is it hard to code so it would pull the Meta tags for that product as well?

Using Zen Cart 1.5.1

27 May 2013, 4:59 PM
#303
swguy avatar

swguy

Administrator

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

Re: Ask A Question

It wouldn't be hard to do but I don't understand why you think this would be a good idea.

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.

27 May 2013, 5:40 PM
#304
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Ask A Question

Some search engines are ignoring both robots.txt and ROBOTS_PAGES_TO_SKIP.

Since they are ignoring the above, and are indexing these pages anyway, lets give them what they are looking for, the metas!

I hope I am making sense. Thanks.

Using Zen Cart 1.5.1

20 Jun 2013, 2:23 AM
#305
kevin205 avatar

kevin205

Totally Zenned

Join Date:
Dec 2012
Posts:
607
Plugin Contributions:
0

Re: Ask A Question

swguy:

It wouldn't be hard to do but I don't understand why you think this would be a good idea.

Scott - Would you please give a direction. Thanks

Using Zen Cart 1.5.1

25 Sep 2013, 1:49 AM
#306
lidlchris avatar

lidlchris

Zen Follower

Join Date:
Feb 2013
Posts:
345
Plugin Contributions:
0

Re: Ask A Question

lat9:

Me, too! Here's my updated copy, using the reCaptcha version:

<?php // // +----------------------------------------------------------------------+ // |zen-cart Open Source E-commerce | // | Ask a question page. Note that this uses the email settings from | // | the contact_us page; there are no separate settings. | // +----------------------------------------------------------------------+ // | Copyright (c) 2003 The zen-cart developers | // | | // | http://www.zen-cart.com/index.php | // | | // | Portions Copyright (c) 2003 osCommerce | // +----------------------------------------------------------------------+ // | This source file is subject to version 2.0 of the GPL license, | // | that is bundled with this package in the file LICENSE, and is | // | available through the world-wide-web at the following url: | // | http://www.zen-cart.com/license/2_0.txt. | // | If you did not receive a copy of the zen-cart license and are unable | // | to obtain it through the world-wide-web, please send a note to | // | [email protected] so we can mail you a copy immediately. | // +----------------------------------------------------------------------+ // ?> <div class="centerColumn" id="askAQuestion"> <?php echo zen_draw_form('ask_a_question', zen_href_link(FILENAME_ASK_A_QUESTION, 'action=send&products_id=' . $_GET['products_id'])); ?> <h1><?php echo HEADING_TITLE . $product_info->fields['products_name']; ?></h1> <?php if (isset($_GET['action']) && ($_GET['action'] == 'success')) { ?> <div class="mainContent success"><?php echo sprintf(TEXT_SUCCESS, $product_info->fields['products_name']); ?></div> <div class="buttonRow"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <?php } else { ?> <?php echo '<a href="' . zen_href_link(zen_get_info_page($_GET['products_id']), 'products_id=' . $_GET['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $product_info->fields['products_image'], $product_info->fields['products_name'], IMAGE_PRODUCT_LISTING_WIDTH, IMAGE_PRODUCT_LISTING_HEIGHT) . '</a>'; ?> <div id="contactUsNoticeContent" class="content"> <?php /** * require html_define for the contact_us page. */ require($define_page); ?> </div> <?php if ($messageStack->size('contact') > 0) echo $messageStack->output('contact'); ?> <fieldset id="contactUsForm"> <legend><?php echo FORM_TITLE; ?></legend> <div class="alert forward"><?php echo FORM_REQUIRED_INFORMATION; ?></div> <br class="clearBoth" /> <?php // show dropdown if set if (CONTACT_US_LIST !=''){ ?>

<label class="inputLabel" for="send-to"><?php echo SEND_TO_TEXT; ?></label>

<?php echo zen_draw_pull_down_menu('send_to', $send_to_array, 'id=\"send-to\"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" /> <?php } ?>

<label class="inputLabel" for="contactname"><?php echo ENTRY_NAME; ?></label>

<?php echo zen_draw_input_field('contactname', $name, ' size="40" id="contactname"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" />

<label class="inputLabel" for="email-address"><?php echo ENTRY_EMAIL; ?></label>

<?php echo zen_draw_input_field('email', ($error ? $_POST['email'] : $email), ' size="40" id="email-address"') . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?> <br class="clearBoth" />

<label for="enquiry"><?php echo ENTRY_ENQUIRY . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>

<?php echo zen_draw_textarea_field('enquiry', '30', '7', $enquiry, 'id="enquiry"'); ?> <?php /* * reCAPTCHA modification begin */ if(CONTACT_US_RECAPTCHA_STATUS == 'true') { ?>
         <!-- start modification for reCaptcha -->
         <div class="recaptcha">
         <label class="inputLabel" for="recaptcha"><?php echo ENTRY_SECURITY_CHECK . '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label>
          			<script language="javascript" type="text/javascript">
							var RecaptchaOptions = {
							   theme : '<?php echo CONTACT_US_RECAPTCHA_THEME;?>',
							   tabindex : 3
							};
					</script>              	
           <?php echo recaptcha_get_html(CONTACT_US_RECAPTCHA_PUBLIC_KEY); ?>
          </div>
          <!-- end modification for reCaptcha -->
<?php } /* * reCAPTCHA modification begin */ ?> </fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div> <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div> <?php } ?> </form> </div> ```

i added this code to the tpl_ask_a_question_default.php file and nothing happened.. no capcha shows up on my site.. what am i missing?? http://www.swordsofhonor.com/index.php?main_page=ask_a_question&products_id=4976

3 Dec 2015, 4:00 PM
#307
sle39lvr avatar

sle39lvr

Zen Follower

Join Date:
Jan 2011
Posts:
196
Plugin Contributions:
0

Re: Ask A Question

Medium Product Image

I want to display 'Medium' product image instead of the default 'Small' image in the 'Ask a Question' contact page.

Here's what I have in tpl_ask_a_question_default.php :

<?php echo '<br/><br/><CENTER><a href="' . zen_href_link(zen_get_info_page($_GET['products_id']), 'products_id=' . $_GET['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $product_info->fields['products_image'], $product_info->fields['products_name'], 250, 250) . '</a></CENTER>'; ?>

How can I change above to pull the 'Medium' product image?

Thanks in advance.

2 May 2016, 1:06 PM
#308
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ask A Question

For what it's worth, I recently submitted an update to this plugin to be more compatible with ZC 1.5.x, to apply applicable data sanitization, and to take advantage of the bot checks implemented in ZC 1.5.1.

I should have provided notification of submission, but that's come and gone. It is now available for download. It does not address other things like the recent discussion of images.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

23 Jun 2016, 10:35 PM
#310
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ask A Question

"Category" view is provided through tpl_product_listing_default. It takes a little bit to add a submit button as an individually controlled object, but the code provided in the readme can be applied anywhere the button is to be placed provided the appropriate products_id information is available.

I'm so sorry this didn't get sent sooner, I began the reply when the question was asked, and even pressed the submit button; however, where I was had a bad signal so it didn't go through. I was just now going through extra windows and chased down the thread number to realize this.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

24 Jun 2016, 12:12 AM
#311
mespe avatar

mespe

Zen Follower

Join Date:
Sep 2014
Location:
ohio
Posts:
216
Plugin Contributions:
0

Re: Ask A Question

Can't find a tpl_product_listing_default in version 1.55a

24 Jun 2016, 12:50 AM
#312
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ask A Question

mespe:

Can't find a tpl_product_listing_default in version 1.55a

Sorry, should have properly looked it up. The night before writing that I had been working on a similar file, anyways, tpl_index_product_list.php but also be prepared to dig in a little. There's a tpl_module related file referenced in that file.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Aug 2016, 5:54 PM
#313
utefan avatar

utefan

New Zenner

Join Date:
Feb 2016
Posts:
28
Plugin Contributions:
0

Re: Ask A Question

I have installed this plugin on my store. When someone clicks on the Ask a question button, the site takes them to the Contact US form instead of the usual ask a question form. This means that the product title and URL as lost in the message. Has anyone else experienced this issue and/or have a solution? Thank you.

5 Aug 2016, 6:19 PM
#314
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ask A Question

utefan:

I have installed this plugin on my store. When someone clicks on the Ask a question button, the site takes them to the Contact US form instead of the usual ask a question form. This means that the product title and URL as lost in the message. Has anyone else experienced this issue and/or have a solution? Thank you.

Are you sure that the destination page is truly the contact us page and not the look-a-like that is provided in the plugin? What are the parameters on the URL (following index.php) for the destination? Even more helpful would be to provide a link to the site where this is occurring. If installed as identified in the README.txt file, then the page is expected to look similar to the standard ZC contact us page, but will have additional data associated with the specific product in question.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Aug 2016, 6:29 PM
#315
utefan avatar

utefan

New Zenner

Join Date:
Feb 2016
Posts:
28
Plugin Contributions:
0

Re: Ask A Question

mc12345678:

Are you sure that the destination page is truly the contact us page and not the look-a-like that is provided in the plugin? What are the parameters on the URL (following index.php) for the destination? Even more helpful would be to provide a link to the site where this is occurring. If installed as identified in the README.txt file, then the page is expected to look similar to the standard ZC contact us page, but will have additional data associated with the specific product in question.

The destination page is index.php?main_page=contact_us. Here is a sample page:

http://www.biker-direct.com/engine-parts/pushrod-covers/sportster-pushrod-covers/xl-2004-up-sportster-collapsible-pushrod-cover-set

Thank you.

5 Aug 2016, 6:41 PM
#316
utefan avatar

utefan

New Zenner

Join Date:
Feb 2016
Posts:
28
Plugin Contributions:
0

Re: Ask A Question

Strange. I inspected the link on that page and it doesn't show going to the contact us form, but then it does. I wonder if this issue has something to do with the CEON URI Mapping plugin.

5 Aug 2016, 7:20 PM
#317
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Ask A Question

utefan:

Strange. I inspected the link on that page and it doesn't show going to the contact us form, but then it does. I wonder if this issue has something to do with the CEON URI Mapping plugin.

That would be my guess. I did a local search of a site with that plugin and did not find any hard code that would redirect ask_a_question to contact_us and as far as a base installation of that plugin it doesn't provide any such entries into the ceon_uri_mappings table. Would suggest looking there if you have access to phpmyadmin.

Though that too seems weird, because it should otherwise show a renamed uri if it was in the database.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

5 Aug 2016, 7:37 PM
#318
utefan avatar

utefan

New Zenner

Join Date:
Feb 2016
Posts:
28
Plugin Contributions:
0

Re: Ask A Question

Yeah, I checked the URI table and no re-directs there. I also tried re-installing the plugni and no change. A very strange issue. Nothing in the .htaccess files either. Thanks.

5 Oct 2016, 6:11 AM
#319
utefan avatar

utefan

New Zenner

Join Date:
Feb 2016
Posts:
28
Plugin Contributions:
0

Re: Ask A Question

In case anyone else runs into this contact us redirection issue, here is the solution. The problem is appears as soon as an SSL cert is installed on the site. In order to fix this issue, you need to go to public_html/includes/templates/yourtemplate/templates/tpl_product_info_display. In that file, you will find a section of code related to the Ask a Question mod. Make sure the URL is being generated using SSL. That will resolve the issue.

9 Jan 2017, 5:16 AM
#320
buildingblocks avatar

buildingblocks

Totally Zenned

Join Date:
Jun 2008
Posts:
629
Plugin Contributions:
0

Re: Ask A Question

utefan:

In case anyone else runs into this contact us redirection issue, here is the solution. The problem is appears as soon as an SSL cert is installed on the site. In order to fix this issue, you need to go to public_html/includes/templates/yourtemplate/templates/tpl_product_info_display. In that file, you will find a section of code related to the Ask a Question mod. Make sure the URL is being generated using SSL. That will resolve the issue.

several months later and I ran into this problem. Thanks for posting the fix.