Author Topic: Not Checkout bug Not adding products not even on DEMO Virtuemart [SOLVED]  (Read 3926 times)

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
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.

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #1 on: April 08, 2017, 19:33:25 pm »
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


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10637
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #2 on: April 09, 2017, 11:49:13 am »
what are the EXACT urls of the page u come from & cart that u land on in this case?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #3 on: April 09, 2017, 12:04:30 pm »
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.

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #4 on: April 09, 2017, 12:47:13 pm »
You can also check the same exact behavior on my DEMO store I have here: http://lposselt.com/

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #5 on: April 10, 2017, 11:59:03 am »
Quote
Works 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.

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 858
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always the latest
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #6 on: April 10, 2017, 18:18:57 pm »
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:

Code: [Select]
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:

Code: [Select]
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.

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #7 on: April 10, 2017, 22:10:28 pm »
@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

Jumbo!

  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 858
  • Full-stack Web Developer
    • www.virtueplanet.com
  • VirtueMart Version: Always the latest
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #8 on: April 11, 2017, 07:37:27 am »
Just tested. Now it works fine in iPhone 6S.

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Checkout bug? Not adding products not even on DEMO Virtuemart
« Reply #9 on: April 11, 2017, 10:25:56 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?

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Checkout bug? Not adding products not even on DEMO Virtuemart [SOLVED]
« Reply #10 on: April 12, 2017, 00:03:04 am »
Solved and I just posted my solution

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10466
  • VM4.0.7 Eagle Owl
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Ehrm, I cannot see your solution
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

pablito88

  • Beginner
  • *
  • Posts: 26
  • A beginner
Quote
Ehrm, I cannot see your solution

Here it is the solution for my problem. It was all the down on the first post I made.

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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10637
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
so there was no bug? It was your cache?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation