Just wanted to say I think this is a fantastic mod. Thanks!.
Just wanted to say I think this is a fantastic mod. Thanks!.
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
to thisCode:// show case only superceeds all other settings if (STORE_STATUS != '0') { return '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . TEXT_SHOWCASE_ONLY . '</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 whileCode:// 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>'; })
And its now working fine.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>'; }
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
After installing i've got get the button visible.
But when I click it it doesn't direct me to the contact page, but to a page with only the product name and image.
You can check it here... http://www.centrumgaia.nl/shop/jongl...e-lx-grey-p-94
I upoaded and renamed the files according the insructions, but I can't find the solution.
You have some kind of SEO software installed that doesn't play nicely with this contribution.
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.
Indeed, I installed Simple SEO Url.
Do I have to modify something or isn't it going to work altogether?
Hi,
I cant get this to work on the product listing page. For some reason, it doesnt insert the products id into the link. Can anyone help? I tried to replicate the solution from Marlboro, but it doesnt make a difference.
Thanks
Ask A Question 1.9 has been posted to the Free Software Add Ons area for those who require PHP 5.3 compatibility. No other functional changes were made in this update.
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.
Hi, Thank you for this useful module but I have some problem with it. I tried install this modules with new zencart 1.3.9e but when i click on the link ask a question it only display "HEADING_TITLE" and product image
do you know if there is any effect with 1.3.9e and this module?
I read post about and you said that "You have some kind of SEO software installed that doesn't play nicely with this contribution"
what do you mean by OSE software?
currently I have statezones, all invoices, direct bank deposit
and I don't see when these modules will have effect on ask a question module.
thanks
If anyone get this modules work with 1.3.9e pls let me know so i know i am doing something wrong.
I tried with fresh install and same thing still happen.
It works fine with 139e. You have installed it incorrectly. Remember that any directory named "custom" should be renamed to your template directory.
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.
Bookmarks