Hi,
Let me explain my issue : usually, when I click on "Ask a question", the photo of the related product is displayed at the top of the form.
But when SEO URL is set to Yes in joomla global config AND if there is a menu item pointing to a specific category, the photo in ask a question form disappears for all items in that category....
Do you have any idea ?
Ex: item with a category menu item -> photo not displayed (https://demo.joomforest.net/j3/jf_siren ... arcu-porta)
Ex: item without a category menu -> photo displayed (https://demo.joomforest.net/j3/jf_siren ... rown-light)
Thanks in advance,
E.P-B
Ask question : photo not displayed when a category link in menu exists
-
- Phoca Member
- Posts: 12
- Joined: 13 Apr 2021, 21:42
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Ask question : photo not displayed when a category link in menu exists
Hi, hmmm, really hard to say, did you ask the template developer? If this is not related to template?
In standard output (component output), the displaying of image is not related to menu item settings, it is displayed standardly
components\com_phocacart\views\question\tmpl\default.php
Jan
In standard output (component output), the displaying of image is not related to menu item settings, it is displayed standardly
components\com_phocacart\views\question\tmpl\default.php
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 12
- Joined: 13 Apr 2021, 21:42
Re: Ask question : photo not displayed when a category link in menu exists
Hi again,
I solved this problem by hacking components/com_phocacart/views/question/view.html.php.
I changed line 84:
It's ok now.
Thank you for your help.
E.P-B
I solved this problem by hacking components/com_phocacart/views/question/view.html.php.
I changed line 84:
Code: Select all
// initial code: if ($id > 0 && $catid > 0) {
if ($id > 0) {
Thank you for your help.
E.P-B
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Ask question : photo not displayed when a category link in menu exists
Ok, thank you very much for this information.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 12
- Joined: 13 Apr 2021, 21:42
Re: Ask question : photo not displayed when a category link in menu exists
I hope there won't be any side effect... I guess it won't, but... who knows !
Regards,
E.P-B
Regards,
E.P-B