Hi, I updated to the last version 2.0.14, and now when someone has to choose payment and shipment methods in checkout, every method is listed four times. :o I attached a screenshot.
[attachment cleanup by admin]
Ok, I have installed:
Joomla 2.5.4
Virtuemart 2.0.14
I checked the issue with the default joomla template, and that bug is still there. Is it possible to fix it easily?
Thanks.
luisch125
how did you update?
have you looked in the administrator, at the payment & shipping methods? Are there only 1?
Hi, I updated with the built-in updater, and then I also updated de virtuemart-aio. I have 2 payment methods and 2 shipment methods. It worked perfectly until version 2.0.12, this issue appeared with the last update. As I said, I tried the default joomla template, and that bug remains there. I have limited php knowledge, but I see nothing wrong in the correspondig files...
Please, any idea on this?
what happens when you create a new one?
does it have 4?
I added a new shipment method and it is shown four times, just like the others... I changed the template to the beez2, and the bug is still there...
Wow, we never had this before. Sorry, I have absolutly no clue. You could take a look on the paymentmethods table and check how much are there.
Maybe the reason is that the paymentmethods are not correctly checking if they should displayed or not.... a missing if(selectedThis) thing.
It happens since I updated to 2.0.14 and the same happens with payment methods. I don't thinks that's the case. However, can you show me the right code to compare it with mine?
Thanks.
Ok. I understand that you wanted me to check the database. I did it and it's ok. Each shipment and payment methods are there only once. I'm completely lost here...
I'm sorry to insist, but I plan to finish the store in a few days, and couldn't find a solution for this...
Any idea?
luisch125, are you using template overrides?
if so, what happens when you disable it for that page?
I'm using the template overrides, but as I said, if I change to the standard template, the bug is still there. And, as I said before, this is happening since the 2.0.14 update.
Thanks.
Hi, I updated to the 2.0.16 version, but the bug persist. Should I try to overwrite the affected files with the 2.0.12 version of them just to check if that fixes the problem?
You may provide me your login data via pn and I may take a look.
Thanks. I sent you a PM.
Quote from: Milbo on December 24, 2012, 22:56:32 PM
You may provide me your login data via pn and I may take a look.
Hi Milbo, I just have the same issue. This problems keeps going from virtuemart 2.0.8e to 2.0.10 to 2.0.14. Have you got a solution?
A mi me pasaba algo parecido pero con los métodos de pago, y al final resulta que los tenía creados en el virtuemart inglés.
Cambia el idioma a inglés en tu gestor de contenidos y fijate si te aparecen.
Saludos
----------------------------------------
Happened the same to me but with the payment methods and the reason was that I had them created in the english version of the website before I installed the spanish language in the site and change it.
So I had to change my default language from spanish to english again in joomla, go to virtuemart deleted those entries and then switch back to spanish and didnt have them duplicated anymore.
No es el mismo caso. Yo los he creado en español desde el principio, con los idiomas de joomla y virtuemart en español. De todas formas hice la prueba y no se ha solucionado...
-------------
I tried to change the languaje as you said, but the problem is still there... I updated again to 2.0.18 but there is no change on that either...
There was some other user who found a reason, The problem seems to be with a wrong multilanguage setup.
Ok! I finally found a clue! Here it is: If I leave the shopper-group empty, then the methods are shown just once. If there is more than a shopper type chosen, then the method is displayed once for every group.
So, is it ok to leave that field empty? Maybe I'm missing something...
Quote from: luisch125 on January 30, 2013, 18:56:32 PM
Ok! I finally found a clue! Here it is: If I leave the shopper-group empty, then the methods are shown just once. If there is more than a shopper type chosen, then the method is displayed once for every group.
So, is it ok to leave that field empty? Maybe I'm missing something...
I dont use shopper groups for anything.
Only reason to use them, is if you want separate prices, OR to not show prices except for them. (or separate discounts)
But it worked fine in previous versions. And I still think that's a bug, but anyway, it is working now, so that's something less to worry about...
Hello
QuoteI added a new shipment method and it is shown four times, just like the others... I changed the template to the beez2, and the bug is still there...
I think this bug started because now a shopper can be in several shopper group.
I have fixed it for the next version.
Go in administrator/components/com_virtuemart/plugins/vmpsplugin.php
line 550
replace
$q .= ' (s.`virtuemart_shoppergroup_id`) IS NULL ) ORDER BY v.`ordering`';
by
$q .= ' (s.`virtuemart_shoppergroup_id`) IS NULL ) GROUP BY v.`virtuemart_shipmentmethod_id` ORDER BY v.`ordering`';
Hi. I just saw your answer. I changed that code and chose all shopper groups for every payment method. Now I get the message that there are no payment methods defined... I'm reverting those changes for now... Here it is the debug text:
vmdebug self::$_jpConfig->lang es_es
vmdebug vmTime: loadConfig db no: 0.037944793701172
vmdebug Start used Ram 7.25M
vmdebug shipmentmethod Envío a domicilio = TRUE for variable weight = 0 Reason: is lower than the set 100
vmdebug shipmentmethod Envío a domicilio = TRUE for variable products quantity = 1 Reason: no boundary conditions set
vmdebug shipmentmethod Envío a domicilio = TRUE for variable order amount = 90 Reason: no boundary conditions set
vmdebug shipmentmethod Envío a domicilio = TRUE for variable zip = 03206 Reason: is lower than the set 99999
vmdebug shipmentmethod Envío a domicilio = TRUE for variable virtuemart_country_id = 195, Reason: Country in rule or none set
vmdebug shipmentmethod Nacex = TRUE for variable weight = 0 Reason: no boundary conditions set
vmdebug shipmentmethod Nacex = TRUE for variable products quantity = 1 Reason: no boundary conditions set
vmdebug shipmentmethod Nacex = TRUE for variable order amount = 90 Reason: no boundary conditions set
vmdebug shipmentmethod Nacex = TRUE for variable zip = 03206 Reason: is lower than the set 99999
vmdebug shipmentmethod Nacex = TRUE for variable virtuemart_country_id = 195, Reason: Country in rule or none set
vmdebug CustomsFieldCartDisplay Var1:
521::4215:9;4220:31;4223:32;4227:24;0
vmdebug vmTime: VirtuemartControllerCart Finished task editpayment: 0.53941607475281
vmdebug End used Ram 17.25M
vmdebug Peak memory peak 17.25M
Read the whole thread. I didn't assign any shopper group to the shipment methods and that corrected it.