VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jordantsap on March 26, 2020, 02:11:22 AM

Title: Multy variant dropdown on change, error updating page modal + 404 error
Post by: jordantsap on March 26, 2020, 02:11:22 AM
Joomla! 3.9.16
VirtueMart 3.6.10 10211
php 7.3.15
mysql database version 5.6.39

I have a multy variant custom field with 3 options.
When i choose any option from the dropdown, the spiner appears that the page is loading but a modal is shown which says error updating page and when i click to yes button the page redirects to 404 page VirtueMart product not found.
I have tryed several suggestions/solutions that i found here as display stock level or changing <div>"productdetails-view productdetails product-container"</div> classes order but nothing changed. The error is also appears in protostar template.

Any suggestions???
Title: Re: Multy variant dropdown on change, error updating page modal + 404 error
Post by: Studio 42 on March 26, 2020, 08:49:25 AM
disable product dynamic update in the Virtuemart config.
It's a little slower but should work
Title: Re: Multy variant dropdown on change, error updating page modal + 404 error
Post by: GJC Web Design on March 26, 2020, 10:55:59 AM
I personally prefer the manual reload as often when ajax changed it happens so subtly that the user doesn't even notice something happened/changed
Title: Re: Multy variant dropdown on change, error updating page modal + 404 error
Post by: jordantsap on March 26, 2020, 14:13:32 PM
Quote from: GJC Web Design on March 26, 2020, 10:55:59 AM
I personally prefer the manual reload as often when ajax changed it happens so subtly that the user doesn't even notice something happened/changed
So what do you suggest?
Title: Re: Multy variant dropdown on change, error updating page modal + 404 error
Post by: GJC Web Design on March 26, 2020, 15:41:32 PM
if u want ajax reloading then u need to trace further why the call is a 404 or error

if not then switch off the ajax as ST 42 suggested
Title: Re: Multy variant dropdown on change, error updating page modal + 404 error
Post by: jordantsap on March 26, 2020, 16:35:32 PM
Either way the redirection says the product does not exist.

Even if i disabled sef.

The child product is published but if i go to the child product admin page and click the link of that child product to open in thefront,
it still says product not found, isnt that weird?? What are your thoughts for that??
Title: Re: Multy variant dropdown on change, error updating page modal + 404 error
Post by: GJC Web Design on March 26, 2020, 17:16:18 PM
who can say ...  we can't see your config or your code..

do some digging .. set up up another product example .. go thru your setup, DB entries and check EVERYTHING ...
if correctly configured it works