I have a fresh Joomla 3.6.5 and Virtuemart 3.2.1 Installations.
When I am on the Category Layout from Virtuemart, I click on "Add to cart" button and the modal popup box appears.
I see the two options "Continue Shopping" and "Show Cart" - SEE IMAGE #1
But here is the problem. HERE IT WORKS
If I click on desktops inside the "Show Cart" link, I get redirected to the checkout page and I can clearly see my item inside the cart together with the final price.
However - HERE DOES NOT WORKS
When I am testing this on iPhone (iOS 10.2.1) and Kindle Fire (OS 5.3.21).
I also get redirected successfully to the checkout page but the cart is always empty and equal to $0. SEE IMAGE #2
I was wondering why is this happening
I though the problem was my template but then I tried the Protostar template and the same problem.
So my last resort was to try Virtuemart Demo and the same problem happens.
IMPORTANT NOTE
The system works fine on Android 4.2.1 and 4.4.2
Can anyone help me on this?
UPDATE #1
Please read where it works and where it does NOT works.
IT WORKS
Again it works on Windows Desktops including Firefox, Chrome, and IE10+
It also works on Android Devices with OS version 4.2.1 and beyond.
IT DOES NOT WORKS
It does NOT works on iPhone Versions iOS 10.2.1 and beyond. I also tested on Version iOS 10.3.1 and the problem remains
It also does NOT works on Kindle Fire 5th Generation Version OS 5.3.21
SOLUTION
After finding out that other phones where working fine like iPhone 5 and iPhone 6
I had to fully reset my iPhone 5C and problem solved.
You can test this problem on the Virtuemart DEMO here: http://demo.virtuemart.net/
Or inside my demo site here: http://lposselt.com/
My site has two stores as I have different vendors/manufactures
what are the EXACT urls of the page u come from & cart that u land on in this case?
Any item when clicking on "Add to Cart" button.
Virtuemart don't add items to cart on iPhone and Kindle Fire 5th Generation
But if you want a more specific example please go to this URL: http://demo.virtuemart.net/
Then all the way down find the PRODUCTS section and click on "Add to Cart" on the item named "Zipper pullover" with a price of $49.17
On iPhone and Kindle Fire the "Add to Cart" button displays the pop up window but when I click "See Cart" the item never gets added to cart.
You can also check the same exact behavior on my DEMO store I have here: http://lposselt.com/
QuoteWorks for me at both your products at http://lposselt.com/store-fra and http://lposselt.com/store-mex using latest version of Firefox
Check if issue occurs on some different web browser.
Also, check if products has been added to cart when AJAX add to cart option turned off.
Thanks,
Jason
Did you read where the problem is?
iPhone uses Safari Browser not Firefox.
I also mentioned where this works and where it does not.
Safari does not support "defer" attribute for dom ready events and binding.
Try this hack.
Open - administrator/components/com_virtuemart/helpers/vmjsapi.php
Find the following codes between lines 91 to 98:
public static function addJScript($name, $script = false, $defer = true, $async = false, $inline = false, $ver = 0){
self::$_jsAdd[$name]['script'] = trim($script);
self::$_jsAdd[$name]['defer'] = $defer;
self::$_jsAdd[$name]['async'] = $async;
if(!isset(self::$_jsAdd[$name]['written']))self::$_jsAdd[$name]['written'] = false;
self::$_jsAdd[$name]['inline'] = $inline;
self::$_jsAdd[$name]['ver'] = $ver;
}
Replace above by:
public static function addJScript($name, $script = false, $defer = true, $async = false, $inline = false, $ver = 0){
self::$_jsAdd[$name]['script'] = trim($script);
self::$_jsAdd[$name]['defer'] = false; // Hard code it as false
self::$_jsAdd[$name]['async'] = $async;
if(!isset(self::$_jsAdd[$name]['written']))self::$_jsAdd[$name]['written'] = false;
self::$_jsAdd[$name]['inline'] = $inline;
self::$_jsAdd[$name]['ver'] = $ver;
}
Save the file and check again.
@Jumbo!
Yeah that makes sense, it has to be some JS related problem.
I just changed the PHP Code you posted but the problem still remains.
Again this is inside an iPhone 5C with version iOS 10.3.1.
If someone can test this inside another iPhone like 6 or 7 that would help too.
Thanks
Just tested. Now it works fine in iPhone 6S.
Quote from: Jumbo! on April 11, 2017, 07:37:27 AM
Just tested. Now it works fine in iPhone 6S.
Did you test my Virtuemart site demo lposselt?
What iOS Version you have on that iPhone 6S?
Do you know another solution because still it does not works on my iPhone 5C iOS 10.3.1?
Solved and I just posted my solution
Ehrm, I cannot see your solution
QuoteEhrm, I cannot see your solution
Here it is the solution for my problem. It was all the down on the first post I made.
SOLUTIONAfter finding out that other phones where working fine like iPhone 5 and iPhone 6
I had to fully reset my iPhone 5C and problem solved.
so there was no bug? It was your cache?