VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: borro on May 08, 2014, 14:13:45 PM

Title: SOLVED: All goods in basket become to have the same cost sometimes
Post by: borro on May 08, 2014, 14:13:45 PM
Hello, friends

At VirtueMart 2.0.18a+Joomla 2.5.19 i have such issue:
Visitor gather the basket of goods from the catregory view. I added add-to-cart functionality to category view by copying default_addtocart.php from detail view to the site/templates/mytemplate/html/com_virtuemart/category folder.
How it usially looks. Client fills his cart and at some new product adding operation all goods in a cart becoming to have the cost of this last product which doesn't go to the cart by itself. After this event everything continue to work fine - I mean that every new added product have its correct price. But all previously added goods have incorrect price of that product that wasn't added to a cart.
If you take a look at pdf file of invoice of such incorrect order you will see that links of product names lead to the page of unincluded product.
I've noticed that it often happens when:
1. you have more than 35 positions in a cart
2. AND you are trying to add some product to a cart rigth after or even while a new category page is being loaded

Do you know what is the reason of such issue?
Title: Re: All goods in basket become to have the same cost sometimes
Post by: Maxim Pishnyak on May 10, 2014, 17:04:00 PM
Borro, you should try 2.0.26d before posting this.
Title: Re: All goods in basket become to have the same cost sometimes
Post by: borro on May 16, 2014, 12:18:40 PM
Quote from: Maxim Pishnyak on May 10, 2014, 17:04:00 PM
Borro, you should try 2.0.26d before posting this.
Hello and thank you Maxim

Do you know what are the minimal and recommended versions of PHP for VM 2.0.26d?
Title: Re: All goods in basket become to have the same cost sometimes
Post by: jenkinhill on May 16, 2014, 12:31:31 PM
2.0.26d should work on PHP versions from 5.2.17 (which is very old) but to provide increased security VM should be updated to 2.6.1 which requires a minimum of PHP5.3.10 and preferably higher. The recommended PHP version for Joomla 2.5 is 5.4+
Title: Re: All goods in basket become to have a cost of not added product
Post by: borro on May 20, 2014, 15:16:45 PM
It seems like upgrade have fixed this trouble.
But now another issue - cart module information(quantity and total cost) cann't be updated dynamicly. Here is the site (http://www.antiloppagold.ru). If you are adding some product, the popup window will apear, and if you then just wait expecting refresh of this information you will not see any refreshing at the background without page reload. Only if you'll click "go to the cart" or "continue shopping" you'll see a new information about total quantity and cost in cart module section(right top conner of the site)
Title: Re: All goods in basket become to have the same cost sometimes
Post by: GJC Web Design on May 20, 2014, 15:26:09 PM
ajax call to cart returns
"NetworkError: 500 Internal Server Error - http://www.antiloppagold.ru/index.php?option=com_virtuemart&nosef=1&view=cart&task=viewJS&format=json&lang=ru&_=1400592190950"

Have you removed that Rupostal hack you were talking about?

Otherwise you need to debug why that is an error

you can paste that url in a browser - all u see is a white screen  - do the normal server error debugging
Title: Re: All goods in basket become to have the same cost sometimes
Post by: Maxim Pishnyak on May 21, 2014, 14:25:14 PM
Suhosin php extension should be enabled on your hosting.
Title: Re: All goods in basket become to have the same cost sometimes
Post by: borro on May 29, 2014, 09:46:24 AM
Quote from: GJC Web Design on May 20, 2014, 15:26:09 PM
Have you removed that Rupostal hack you were talking about?
Do you talk about this (http://forum.virtuemart.net/index.php?topic=95979.msg423360#msg423360)?
Quote from: GJC Web Design on May 20, 2014, 15:26:09 PM
do the normal server error debugging
I don't know how to do it or maybe I don't understand. Please supply some information about how to do what you said
Title: Re: All goods in basket become to have the same cost sometimes
Post by: borro on May 29, 2014, 09:59:28 AM
Quote from: Maxim Pishnyak on May 21, 2014, 14:25:14 PM
Suhosin php extension should be enabled on your hosting.
It's not available at our current hosting tariff. Why do we need it?