VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: bestcons on July 25, 2022, 17:09:12 PM

Title: "Ask question" no longer working
Post by: bestcons on July 25, 2022, 17:09:12 PM
The website is based on Joomla 3.10.10 and VM 4.0.6 Recently I noticed that the Button "Ask question" in Product details is no longer working. Nothing has changed in the VM settings. Hovering with the cursor over the button shows the button points to....../askquestion?tmpl=component
Please advice.
Title: Re: "Ask question" no longer working
Post by: GJC Web Design on July 25, 2022, 17:36:16 PM
might need the next update .. I know any routing from a form POST got broken by the J4 router and there could be problems also with J3 as VM4 has been chasing it's tail trying to remain compatible with J4.
I know this routing problem is fixed (in J4/VM4) with the latest dev version
Title: Re: "Ask question" no longer working
Post by: bestcons on July 25, 2022, 21:52:36 PM
Hopefully this next update will be available soon, as it is an important feature on the website. Upgrade to J4 will not take place in the near future.
Title: Re: "Ask question" no longer working
Post by: bestcons on August 06, 2022, 19:47:45 PM
Can someone propose a work-around, as the feature is critical for us.
Title: Re: "Ask question" no longer working
Post by: GJC Web Design on August 07, 2022, 14:36:12 PM
revert to 4.0.2  maybe the routing works on this one .. or try the router from 4.0.2 in your install
Title: Re: "Ask question" no longer working
Post by: bestcons on August 07, 2022, 22:07:06 PM
Thanks for the advice. The problem is solved for the time-being  :)
Title: Re: "Ask question" no longer working
Post by: bestcons on October 16, 2022, 15:48:49 PM
Has the problem been solved in the upcoming 4.07 update of Virtuemart?
Title: Re: "Ask question" no longer working
Post by: jenkinhill on October 16, 2022, 15:53:08 PM
Ask question works OK for VM 4.0.7 10720  on J3.10.11  (I don't use J4)
Title: Re: "Ask question" no longer working
Post by: bestcons on October 16, 2022, 17:02:36 PM
Not for me with the samen Joomla version. I had once more to return to VM 4.0.2
Title: Re: "Ask question" no longer working
Post by: jenkinhill on October 16, 2022, 17:44:50 PM
Just a thought, have you got "Allow non logged-in to send a recommendation or ask a question" turned on?
Title: Re: "Ask question" no longer working
Post by: bestcons on October 16, 2022, 17:55:18 PM
Sure, otherwise VM 4.0.2 would not work either.
Title: Re: "Ask question" no longer working
Post by: bestcons on November 08, 2022, 12:56:45 PM
In the meantime I migrated my (test)website to Joomla 4.2.4. The"Ask question" is not resolved in combination with Virtuemart in version 4.0.6. So once more I had to return to 4.0.2  :(
Title: Re: "Ask question" no longer working
Post by: Milbo on November 10, 2022, 19:58:53 PM
It works for me on j3 with this https://dev.virtuemart.net/attachments/1340/com_virtuemart.4.0.7.10732_package_or_extract.zip
Title: Re: "Ask question" no longer working
Post by: bestcons on November 10, 2022, 20:51:31 PM
Not for me, neither on J3 as on J4. I had to return to 4.0.2
Title: Re: "Ask question" no longer working
Post by: joozen on November 27, 2022, 10:07:25 AM
Still not working for me. Link to manufacturer products stopped work as well. Link not opens in pop up but it opens if you choose "Open in new tab" from context menu. Tried 4.0.7 and now 4.0.8 problem not solved. Tried router from 4.0.2 it returns 404 on product detail page. Is it any solution yet?
Title: Re: "Ask question" no longer working
Post by: Milbo on December 20, 2022, 23:09:36 PM
Did you test with vm4.0.12 ? https://dev.virtuemart.net/projects/virtuemart/files
Title: Re: "Ask question" no longer working
Post by: bestcons on December 21, 2022, 14:52:17 PM
Yes, I did. Both on a Joomla 3 and a Joomla 4 website. Both were unsuccesful and I had to return to 4.0.2
Title: Re: "Ask question" no longer working
Post by: jenkinhill on December 21, 2022, 16:08:19 PM
Still working OK for me, VirtueMart 4.0.12 10777  Joomla 3.10.11 PHP 8.0.25

Does recommend to a friend not work for you either?
Title: Re: "Ask question" no longer working
Post by: bestcons on December 22, 2022, 17:32:59 PM
This function has never been implemented. At your request I selected this option in the Configuration. In VM 4.0.2 it works but in 4.0.12 the envelop icon shows up on the product page, but that 's it. Identical to the earlier indicated problem with "Ask question".
Title: Re: "Ask question" no longer working
Post by: bestcons on April 14, 2023, 17:33:58 PM
In the meantime I used my membership to download VM 4.0.16 10812. Unfortunately "Ask question" still not working!! Help!!
Title: Re: "Ask question" no longer working
Post by: bestcons on May 09, 2023, 12:54:09 PM
In the meantime I downloaded VM 4.0.20. "Ask Question" still not working   >:(. Is this topic still under consideration?
Title: Re: "Ask question" no longer working
Post by: jenkinhill on May 09, 2023, 15:15:32 PM
I just checked VM4.0.20 on VM J 4.3.1 - ask a question and recommend to a friend work just fine.

I should add that ask & recommend work also with  VM 4.0.20 on J 3.10.11 but only if the user is logged in.
Title: Re: "Ask question" no longer working
Post by: bestcons on May 09, 2023, 20:33:36 PM
I assume you are referring to Joomla 4.3.1. I use the same release and as concluded earlier, I still have the problem. VM 4.0.2 is the "golden" release that not has this problem.
Title: Re: "Ask question" no longer working
Post by: bestcons on June 04, 2023, 12:38:38 PM
In the meantime I installed VM 4.0.22 in my test environment with Joomla 4.3.2. "Ask question" still not working. This is an essential function and without I cannot migrate the website of the Historical Society from Joomla 3 to Joomla 4.
For those interested in this problem, please visit http://www.dedecanije.nl/beeld/foto-s/scholen-en-schoolfotos/medlerschool-1/f562001-detail and try the button: "Stel een vraag".
Please HELP.
Title: Re: "Ask question" no longer working
Post by: jenkinhill on June 04, 2023, 13:25:34 PM
Browser console shows JavaScript errors on the page, jquery related. What stands out is "Uncaught TypeError: $.facebox is not a function"  - you should be using Fancybox to dive the popup for the ask question link. Make sure it is turned on in VM configuration/Templates
Title: Re: "Ask question" no longer working
Post by: bestcons on June 04, 2023, 13:48:42 PM
Fancybox has been on all the time. As repeatedly stated: VM 4.0.2 is the golden standaard. In this version "Ask question" works, both for Joomla 3 and Joomla 4.
Title: Re: "Ask question" no longer working
Post by: jenkinhill on June 04, 2023, 14:52:12 PM
Does your VM4.0.2 give JS errors in the console on the product pages?  On my current test site of VirtueMart 4.0.22 on Joomla 4.3.1 there are no errors on product pages.

Actually, on a closer look, there seems to be a conflict with ARKeditor - maybe try disabling that plugin?
Title: Re: "Ask question" no longer working
Post by: bestcons on June 04, 2023, 20:39:43 PM
Disabling the Arkeditor does not lead to any improvement.
Title: Re: "Ask question" no longer working
Post by: Studio 42 on June 05, 2023, 08:02:42 AM
Uncaught TypeError: $.facebox is not a function
    at HTMLAnchorElement.<anonymous> (f562001-detail:706:11)
    at HTMLAnchorElement.dispatch (jquery.min.js?3.6.3:2:43336)
    at y.handle (jquery.min.js?3.6.3:2:41320)
Please enable fancybox. It should solve your problem
Title: Re: "Ask question" no longer working
Post by: bestcons on June 05, 2023, 08:21:54 AM
Fancybox has been enabled all the time. See attachment.
Title: Re: "Ask question" no longer working
Post by: Studio 42 on June 06, 2023, 00:22:06 AM
You have perhaps an error in your template override?
$.facebox javascript should not be in your product details page
This code
echo shopFunctionsF::renderVmSubLayout('askrecomjs',array('product'=>$this->product));
Load components\com_virtuemart\sublayouts\askrecomjs.php
And should autoload the right script
Because function loadPopUpLib detect from config
      if($fancy = VmConfig::get('usefancy',1)){
         self::fancybox();
      } else {
         vmJsApi::addJScript( 'facebox', false, true, false, false, '' );
         vmJsApi::css( 'facebox' );
      }
Title: Re: "Ask question" no longer working
Post by: tehryn on August 06, 2023, 14:06:01 PM
I have the same issue here on this shop: https://www.skladoleju.cz/index.php/obchod/agip-arnica-s-46-biologicky-odbouratelny-olej-20l-detail.html (dotaz na product right bellow 24H image)

Disabling fancybox will solve the issue (not completely tho, I will be able to send a message, but I won`t be able to return back). I have no template overrides for virtuemart. My version is Virtuemart 4.0.12 and I am running Joomla 4.3.3
Title: Re: "Ask question" no longer working
Post by: dudley389 on October 05, 2023, 23:32:56 PM
This issue has been going on for over a year now.
J4 and VM ver 4 still does not work.!!
Surly there is a fix for this by now.!!!

Getting really frustrated with VM
Title: Re: "Ask question" no longer working
Post by: jenkinhill on October 06, 2023, 12:14:16 PM
Ask a question is still working fine for me.

Joomla 4.3.4   VirtueMart 4.2.4 10922

(https://i.ibb.co/ryXt78c/askquestion.png) (https://ibb.co/SvZxsYd)
Title: Re: "Ask question" no longer working
Post by: dudley389 on October 07, 2023, 02:25:35 AM
Is a paid membership the only way we can get access to VM ver. 4.2.4??
If so it is fine.  I would say that most of us in the Joomla community would be more than willing to pay for this......... it would just be nice to know what the deal is.!!!
Title: Re: "Ask question" no longer working
Post by: jenkinhill on October 07, 2023, 11:25:26 AM
 Dud,  see the VirtueMart news items, starting with https://virtuemart.net/news/511-effective-and-sustainable-funding-with-a-virtuemart-membership
Title: Re: "Ask question" no longer working
Post by: dudley389 on October 08, 2023, 01:18:11 AM
Ok 'Dud"

Among all the bla-bla in the news item I can see that VM simply worked itself into a financial corner. 

I have been using VM for years and could not understand why it was free.!!  It should never have been so....... If you give someone something for free it will never be appreciated.... additionally, if you do something well never do it for free.

I will certainly be signing up for a membership as I am a real fan of VM.  It is easy to create your own views and product detail pages... and the like.

Thanks for responding.
Title: Re: "Ask question" no longer working
Post by: dudley389 on October 08, 2023, 02:53:17 AM
I have purchased a VM Membership and installed VirtueMart 4.2.4 10922
My system is running Joomla 4.3.4   VirtueMart 4.2.4 10922 and php 8.1.22

The Ask a Question form is still not posting.!
Title: Re: "Ask question" no longer working
Post by: ViPeS on October 08, 2023, 10:45:30 AM
The reason may be the site template.
My template had "The Ask a Question form" from an old version of VM and errors appeared in the form fields.
After replacing the old form with the form from VM 4.2.4 10922 everything worked.