Author Topic: Shopping Cart isn't working  (Read 850 times)

keithking101

  • Beginner
  • *
  • Posts: 6
  • A beginner
Shopping Cart isn't working
« on: December 18, 2017, 08:54:55 am »
Hello,
My shopping cart seem broken on my testing website located here
http://www.theanimecode.com/test/theflaghag/

After I'm on my cart after adding an item if I try to delete a item, try to pick my shipping, or try to pick how I pay there is a long load time before the error message appear of "Error updating cart" sometimes nothing load at all as if my site is down.

Problem found with
Joomla! 3.7.3 Stable
Database Version    5.6.27
PHP Version    5.6.32
VirtueMart 3.2.10

Updated to
Joomla! 3.8.3 Stable
Database Version    5.6.27
PHP Version    7.1.11
VirtueMart 3.2.10

Try to reload VirtueMart with no change.
The template do have custom changes built in, but renaming the HTML folder to HTMLBAK I still have the same problem. So the problem isn't with that.
I Also tried with two different computers with two different web browsers. Any ideas or thoughts would be appreciated.

(Edit, found mainsite didn't work with 7.1.11, backed down to 5.6.27, but shouldn't matter in this case.)

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1720
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Shopping Cart isn't working
« Reply #1 on: December 18, 2017, 10:10:33 am »
Hello

I would guess that the issue is connected to Your template. Try to test with Protostar and switch off SEF until you see that everything works as expected.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26992
  • Always on vacation
    • Jenkin Hill Internet
Re: Shopping Cart isn't working
« Reply #2 on: December 18, 2017, 10:42:05 am »
Console shows a critical JavaScript error:
SCRIPT438: Object doesn't support property or method 'carousel'
virtuemart (69,2)

Turn on  Joomla/VM debugging to see if that shows any other obvious issues .
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

keithking101

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Shopping Cart isn't working
« Reply #3 on: December 18, 2017, 16:26:33 pm »
Well I'm sort of thrown off. Changing to non SEF the shopping cart no longer loads.
Changing to Prostar I had to add a menu but now nothing stay in the shopping cart.

Both seem more broken although I understand that it shouldn't be more broken because of those actions.

I did turn on the debug thing for Joomla and toggle both the SEF and Template a few times but I didn't see anything that look strange, although I'm not a programmer ether so I may had miss something.

Thanks for the quick reply but I'm still unsure on how to continue.

keithking101

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Shopping Cart isn't working
« Reply #4 on: December 19, 2017, 06:21:32 am »
Alright, sorry for the late reply, I had to attend my day job.

It seems when Joomla debugging is turn on the cart crash before I make it into the cart. I have VM debugging on.
I went ahead and turn on my template. It seem to respond the same rather I have it on or off.

Trying to find out about the Console  that Mr. Jenkinhill spoke of I found out what he was looking at but my message came out a little different.

SCRIPT438: Object doesn't support property or method 'carousel'
index.php (81,3)

Exploring links it gives it lead me to my Joomla Monsters Simple Image Slider, which I suppose is a Carousel. I removed it but still have the same problem. I uninstall by the Extension Manager and have not removed any files by hand.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1720
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Shopping Cart isn't working
« Reply #5 on: December 19, 2017, 06:56:22 am »
Have you removed ALL references to this image slider ? Check that there aren´t any references in the index.php or in any loaded module.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

keithking101

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Shopping Cart isn't working
« Reply #6 on: December 19, 2017, 07:52:51 am »
I did so though the Extension Manager, Index.php is a simple 50 line file and I see nothing in it that point to it. I also looked to see if there was a folder in the mod folder that was for the old extension, there is not. I had a mod set to display on the front page of the site but it's now not listed in the mods area nor is it on the front of the site. I can't think of anywhere else to look.

Looking at the mod it did have a assets file with a javaScript file inside of it. But it seem to be gone. I clear the cache with no change.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1720
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Shopping Cart isn't working
« Reply #7 on: December 19, 2017, 08:07:39 am »
Have You checked this ?

Quote
index.php (81,3)

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

keithking101

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Shopping Cart isn't working
« Reply #8 on: December 19, 2017, 08:42:59 am »
I would love to, and trying my best to. When the error came up in the Console it was in index.php on the front in, but what the front sees as index.php appears to be all the files that is needed for the page push into one file. It's like now I can look at it and follow line for line down the page, from the console in the front that is. Right now the Console isn't having any errors at all. And the line said before that I seen that I knew was related to the mod I no longer see as well.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1720
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Shopping Cart isn't working
« Reply #9 on: December 19, 2017, 10:49:28 am »
I would break it down and take of the Heavy load from the template. And I would also turn off sef until You are sure that basic things work. I don´t think some one not working with Monster templates can help you much more. I believe this is very much related to You template or some ba_ related stuff.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26992
  • Always on vacation
    • Jenkin Hill Internet
Re: Shopping Cart isn't working
« Reply #10 on: December 19, 2017, 11:38:08 am »
Just took a quick look again. VMdebug is on and this line stands out to me:  11 vmdebug SSL enabled   - yet I am unable to access the site under https.   Is there no SSL on the server or no security certificate installed?
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1720
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Shopping Cart isn't working
« Reply #11 on: December 19, 2017, 12:42:09 pm »
Jenkins is probably right, if You don´t have any SSL certificate, switch off SSL in VM configuration.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

keithking101

  • Beginner
  • *
  • Posts: 6
  • A beginner
Re: Shopping Cart isn't working
« Reply #12 on: December 19, 2017, 16:27:05 pm »
Joomla Monsters, while they make good templates, wasn't where I got this template, I just used the image slider from them for this project.

But now I'm laughing a little about this all. It was likely the SSL setting the entire time. No I didn't get a SSL for it's current location because I plan on moving it and the site in front of that location is just a info site, no important information needed.
I feel really silly to had to bother the two of you for what end up being a simple setting. Thank you both for your time and effort.

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1720
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Shopping Cart isn't working
« Reply #13 on: December 20, 2017, 13:23:22 pm »
Happy to hear that it has worked out for You.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)