VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: jamesl-kemet on December 13, 2022, 16:19:42 PM

Title: checkout with different shipping address
Post by: jamesl-kemet on December 13, 2022, 16:19:42 PM
Hi, I'm having some issues regarding 'checking out' when trying to add shipping details. Virtuemart seems to go into a loop when I create a 'shipping address'. It's adding a selected radio button, but with no address (seen on attachment "Screenshot 2022-12-13 140025.png"). Then when you go to checkout, it shows the error 'Invalid data entered' and if you try again, it will repeat the same previously, adding another radio button.

If you leave the shipping address as default/same as billing, then it works fine.

https://www.kemet.co.uk/shop/metallographic-consumables

I've updated VM to version 4.0.10 to see if this would fix the issue and also on joomla version 4.2.5
Title: Re: checkout with different shipping address
Post by: jamesl-kemet on December 13, 2022, 16:20:29 PM
this is the debug report when receiving the 'invalid data entered'

1 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB
2 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB
3 vmdebug vmTime: time to import plugins vmextended: 4.29153442382812E-5
4 vmdebug vmTime: time to import plugins vmuserfield: 6.103515625E-5
5 vmdebug vmTime: time to load config param $lang=1 and iniLang=0 $exeTrig = 1 now = 0: 0.00562000274658203
6 vmdebug Set router vars Post, Get, self::$get and self::$request Var1:
Array
(
    [cartpos] => Array
        (
           
Title: Re: checkout with different shipping address
Post by: jamesl-kemet on December 13, 2022, 16:23:27 PM
I was originally trying to fix the issue in the attached (error - 'vmTable store updateObject'), but I was unable to replicate that error (image from mouseflow). The user was having the same issue with trying to add a different shipping address to the billing address
Title: Re: checkout with different shipping address
Post by: GJC Web Design on December 14, 2022, 11:44:59 AM
It may have been a "1st run" error after the update?

VM debug is generally not very helpful in tracing errors .. Joomla debug with the Debug plugin enabled should give you a much more useful php back trace so the source of the error can be found