Hi there,

first I would like to say thanks for this mod! I'm in the middle of my first zencart site and I'm finding it very useful!

Second, I'm running the site in showcase mode and was looking for a way to make the ask a question button work in place of the contact us link on product listing pages.

I had gotten as far as getting the button to appear in place of "contact us" by editing includes/functions/functions_general.php and changing this

Code:
// show case only superceeds all other settings
if (STORE_STATUS != '0') {
return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_SHOWCASE_ONLY . '</a>';
}
to this

Code:
// show case only superceeds all other settings
if (STORE_STATUS != '0') {
return '<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>';
}
My problem was getting the product id for the link. After some trial and error I came up with this (I have little to no php experience so it took a while )

Code:
// show case only superceeds all other settings
if (STORE_STATUS != '0') {
return '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id='
   . (int)$product_id) . '">' .
   zen_image_button(BUTTON_IMAGE_ASK_A_QUESTION, BUTTON_ASK_A_QUESTION_ALT) .
   '</a>';
}
And its now working fine.

I'm sharing how I did this for anyone else who might be trying to do the same thing, though it may affect the same button on product info pages but I already have it disabled on those pages so can't be sure.

Now I dont really know what im doing so if there's a better way of doing this please share
Well that's my 2 cents, thanks again for the mod.

Andrew