VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Kschuler on January 21, 2012, 01:57:06 AM

Title: Shopping Cart Acting Strange
Post by: Kschuler on January 21, 2012, 01:57:06 AM
So I looked through the threads and could not find an issue like this.

I am using Joomla 1.7 and VM 2.0

When you add a product from the site it sometimes shows up in the shopping cart and sometimes it doesn't.  Sometimes the products that are added show up in other shoppers shopping carts.  So when other shoppers try to add a product it says that the product was added, but when they navigate to the cart it is not the product that they added, but the one that someone else added.

Anyone interested in this just go to my website, it is still getting products entered into it, and try adding some products to the cart and see what happens.   It is just acting very strange.  I have just over 600 products entered, but will eventually have over 3,000 products.  I noticed this strange behavior after I hit the 600 mark.

The website is www.thegrowshopllc.com

Any help on this would be greatly appreciated. 
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 21, 2012, 02:12:57 AM
Now all my links are broken.  What in the world is going on?  What just happened? 
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 21, 2012, 03:41:59 AM
you have java conflict with your slider module
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 21, 2012, 05:25:51 AM
Could you please point me in the correct direction to get that worked out, I can't seem to find anything.  Thanks for your reply!!
Title: Re: Shopping Cart Acting Strange
Post by: jenkinhill on January 21, 2012, 14:37:56 PM
This may help:  http://dev.virtuemart.net/projects/virtuemart/wiki/General_JS-Problems_with_templates_and_jQuery
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 21, 2012, 22:14:27 PM
OK OK, I know that I need to get out of this topic for this cart issue, but I can't seem to find out how exactly I need to fix jquery.  Where do I do that?  What file is the file that I need to make changes to?  What is the path to that file?  Could someone get me out of here, because I know that this isn't a bug.  So sorry.  I have not been this confused yet, but this one has me stumped.

Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 22, 2012, 19:22:57 PM
disable the slider module and see what happens

ALSO, you have a DOUBLE script declaration for

siteurl = 'http://www.thegrowshopllc.com/' ;
vmCartText = ' was added to your cart.' ;
vmCartError = 'There was an error while updating your cart.' ;
loadingImage = '/components/com_virtuemart/assets/images/facebox/loading.gif'  ;
closeImage = '/components/com_virtuemart/assets/images/facebox/closelabel.png' ;
faceboxHtml = "<div id='facebox' style='display:none;'><div class='popup'><div class='content'></div> <a href='#' class='close'><img src='/components/com_virtuemart/assets/images/facebox/closelabel.png' title='close' class='close_image' /></a></div></div>" ;


WHICH is the add to cart script
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 22, 2012, 22:57:01 PM
I don't see a "slider" module in my modules list.  How do disable it?  And I have no clue what you mean by double script declaration and all that stuff that you wrote.  Sorry, this is my first time doing any of this.
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 02:32:17 AM
<link rel="stylesheet" href="/templates/AnimalBusiness-FJT/css/NivooSlider.css" type="text/css" />
<script type="text/javascript" src="/templates/AnimalBusiness-FJT/slideshow/NivooSlider.js"></script>
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 17:22:39 PM
So do I delete or remove the file called NivooSlider.js using FTP?   There is not a module in my module list called nivooslider.  In my template set-up there is a place to enable a picture slider, but it is marked "hide". 
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 17:38:46 PM
I actually tried to click them and there is a 404, did you delete them?

I just added a product to my cart, and when I got to my cart it said this at the top

        Product quantity not successfully updated

        Product successfully removed
        Product successfully removed


make sure you have the joomla database setting on "mysql" NOT "mysqli".

Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 17:46:59 PM
I did remove them.  I was just trying different things while I wait for a reply.  I can put them back.  My Joomla is using Mysql, not Mysqli, I just checked.  I do thank you for your patience.
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 17:48:47 PM
I did now realize that if I log-in with a typical user that the cart works as it should.  I have no idea if this helps?
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 18:05:54 PM
what do you have your "session" settings set to?
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 18:18:28 PM
Session Lifetime- 15
Session Handler- Database
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 18:47:21 PM
what happens when you switch templates?>

what happens when you disable the add this module?
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 19:00:52 PM
I have tried to switch templates.  It takes about 30 min for the site to fully switch over to the new template.  I will have to try to switch it at night when there are not so many people on it, maybe it will go faster?

I cannot find a "add this module", would that be in my module list?

Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 19:07:46 PM
Quote from: Kschuler on January 23, 2012, 19:00:52 PM
I have tried to switch templates.  It takes about 30 min for the site to fully switch over to the new template.  I will have to try to switch it at night when there are not so many people on it, maybe it will go faster?
I cannot find a "add this module", would that be in my module list?



what do you mean it takes 30 minutes to fully switch over?

do you have the "system cache" plugin enabled? if so, turn it off.

The add this module is in the module manager, its the facebook, and all that at the top left of the page.

how long have you been using joomla?
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 19:16:57 PM
My system cache was enabled, I turned it off.  I can't seem to find out what module controls the facebook "add this" stuff.  I have turned off almost all my modules.  All that I have enabled is:
Breadcrumbs
Kunena Menu
Main Menu
Search
Top
User Menu
Who's online
Wrapper

Everything else is turned off.

This is my first website, so I have been doing this almost 2 months.
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 19:23:41 PM
go in module manager, and look at the type dropdown, like the picture attached



[attachment cleanup by admin]
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 19:33:23 PM
I do not see what I am suppose to?  I do not understand?  The types of the published modules:
Name                         Position                    Type
Breadcrumbs       breadcrumb       Breadcrumbs   
Kunena Menu       kunena_menu       Menu
User Menu       position-7       Menu
Main Menu       menuload       Menu   
Search               position-0       Search
Who's Online       :: None ::       Who's Online
Wrapper               :: None ::       Wrapper

Do I need to turn off one of these?
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 20:02:35 PM
is it in the plugins?

did your template come with it already?
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 20:22:00 PM
I found it!  In the templates, right next to the "slidshow" is the "add this".  So I clicked hide.  I hope same as disable.  I had to wait for a little bit for it to get off all pages.  As soon as I didn't see it at the top anymore, I tested.  No change.  Do I need to take the files away in FTP? Like I did with the slider?
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 20:39:03 PM
no, and dont go deleted things with ftp

to UNCHECK, use external google jquery
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 20:41:57 PM
turn on "product scripts" and that will fix your problem
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 20:57:29 PM
So the box next to "Use external google jquery library" has no check.  The box next to "Using the product Scripts" is checked.  If this is correct, still no change.  Thank you very much for your patience with me, I am so very sorry.  I will not go delete files using FTP.  I am thankful for your help.
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 21:01:47 PM
when you click the menu link at the top, it deletes products from cart, weird
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 21:03:10 PM
but if I click the link and it says deleted,

THEN, I change the link in the url bar to this

index.php?&Itemid=491

^^ which is the same link , but no com_virtuemart&view=cart    the item is back there.

are you using any template overrides?
Title: Re: Shopping Cart Acting Strange
Post by: Kschuler on January 23, 2012, 21:09:36 PM
I don't believe so? 
Title: Re: Shopping Cart Acting Strange
Post by: PRO on January 23, 2012, 21:10:21 PM
send me your login details in pm