VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: luisch125 on November 15, 2012, 10:52:50 AM

Title: [solved] Payment and shipment methods duplicated in checkout
Post by: luisch125 on November 15, 2012, 10:52:50 AM
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]
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on November 21, 2012, 19:58:01 PM
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.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: PRO on November 21, 2012, 20:13:17 PM
luisch125


how did you update?


have you looked in the administrator, at the payment & shipping methods? Are there only 1?

Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on November 22, 2012, 09:50:40 AM
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...
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on November 29, 2012, 12:03:01 PM
Please, any idea on this?
Title: Re: Payment and shipment methods duplicated in checkout
Post by: PRO on December 03, 2012, 23:17:22 PM
what happens when you create a new one?


does it have 4?

Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on December 04, 2012, 09:56:10 AM
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...
Title: Re: Payment and shipment methods duplicated in checkout
Post by: Milbo on December 04, 2012, 13:22:53 PM
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.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on December 04, 2012, 17:02:59 PM
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.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on December 10, 2012, 20:05:33 PM
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...
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on December 18, 2012, 20:24:15 PM
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?
Title: Re: Payment and shipment methods duplicated in checkout
Post by: PRO on December 18, 2012, 22:22:52 PM
luisch125, are you using template overrides?


if so, what happens when you disable it for that page?
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on December 19, 2012, 09:52:03 AM
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.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on December 24, 2012, 12:00:59 PM
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?
Title: Re: Payment and shipment methods duplicated in checkout
Post by: Milbo on December 24, 2012, 22:56:32 PM
You may provide me your login data via pn and I may take a look.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on December 26, 2012, 20:28:05 PM
Thanks. I sent you a PM.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: zhous98 on January 07, 2013, 07:00:39 AM
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?

Title: Re: Payment and shipment methods duplicated in checkout
Post by: lindapowers on January 07, 2013, 11:28:41 AM
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.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: luisch125 on January 10, 2013, 17:15:40 PM
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...
Title: Re: Payment and shipment methods duplicated in checkout
Post by: Milbo on January 11, 2013, 10:51:51 AM
There was some other user who found a reason, The problem seems to be with a wrong multilanguage setup.
Title: Re: Payment and shipment methods duplicated in checkout
Post by: 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...
Title: Re: Payment and shipment methods duplicated in checkout
Post by: PRO on January 30, 2013, 20:06:15 PM
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)
Title: Re: [solved]Payment and shipment methods duplicated in checkout
Post by: luisch125 on January 31, 2013, 19:57:42 PM
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...
Title: Re: [solved] Payment and shipment methods duplicated in checkout
Post by: alatak on February 01, 2013, 11:42:14 AM
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`';
Title: Re: [solved] Payment and shipment methods duplicated in checkout
Post by: luisch125 on February 08, 2013, 10:38:33 AM
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

Title: Re: [solved] Payment and shipment methods duplicated in checkout
Post by: luisch125 on February 09, 2013, 10:09:15 AM
Read the whole thread. I didn't assign any shopper group to the shipment methods and that corrected it.