VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: melingmeier on June 30, 2012, 16:28:52 PM

Title: Auto selection of shipment doesn't work anymore with 2.08 (2.0.12)
Post by: melingmeier on June 30, 2012, 16:28:52 PM
I have only one shipment method configured. When I start the checkout process, system ask to chose a shipment method anyway...
This feature worked fine under 2.06

How do I get it to work?
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: erka on June 30, 2012, 23:23:09 PM
I have the same problem, a bug?
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: serapol on July 01, 2012, 19:49:08 PM
I confirm that the problem is. After the update is automatically stopped virtuemart_aio Select is selected method of delivery and payment. The problem is in virtuemart_aio
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: serapol on July 01, 2012, 20:32:27 PM
I found the reason. The problem of payment plugin Klarna.

At the moment the decision to simply disable the plug-in management.

Later, developers hope will understand why he disrupts the work of automatic selection
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: vigier on July 01, 2012, 21:59:50 PM
The problem is indeed the Klarna plugin. If you go to your standard payment plugin, edit it (don't change anything) and press save, it gives an error, I think it is about a CountryId. Disabling the plugin does the trick.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Milbo on July 01, 2012, 22:05:03 PM
Looks like that, thx.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: alatak on July 02, 2012, 13:47:42 PM
Hi,

thanks.
We have fixed the problem in 2.0.8a.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Ty3uK on July 02, 2012, 19:47:01 PM
guys! how u sold this problem? i have it.. write by steps please
i have version 2.0.8a (upgrade from 2.0.6 where all was fine)
avtoselection not worked and manual selection not worked to.. i added shipmens but in form when do order empty and i cant select  (there no variants)
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: vigier on July 02, 2012, 21:34:57 PM
Go to Pluginmanager (I have to translate it from Dutch so I don't know whether I translate it to the right English word), find "VM - Payment, Klarna" and switch it off. Problably there is a small green picture with sort of V in it, click it, the page will reload and it turns read.

F5 on your website and it does the trick again.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: srseale on July 03, 2012, 04:51:39 AM
I am experiencing the same problem as reported earlier in this thread (I am running Joomla 2.5.6 and VM 2.0.8a).  However, disabling the VM Payment, Klarna plugin did not work.  As soon as I select a Ship to, the "We are sorry, " message appears and I cannot select a Shipment method even though I only have 1 shipment method configured.  I have tried defaulting everything and I have tried to specify everything I could think of.  No approach seems to work.

Essentially, all order pricing is inclusive of shipment costs, so I don't really need a Shipment Address.  However, I have been using this area for some extra information I need for the order.  I had this working in 2.0.7f before I upgraded to 2.0.8a (stable).  I may have to return to 2.0.7x if I can't get this straightened out soon.

To make sure everyone understands, here are my configuration settings (perhaps I misunderstand how it should work):

Shipment Method Information

Shipment Name    - Pre-Paid
Published                 - Yes
Shipment Description    - All Shipments are included in your fee.
Shipment Method    - VM - Shipment, By weight, ZIP and countries
Shopper Group            - Select Some Options
List Order                    - 0

Configuration

Logo                                         - Select Some Options
Countries                                 - Select Some Options
ZIP range start                         -
ZIP range end                         -
Lowest Weight                         -
Highest Weight                         -
Weight Unit                         - Kilograms
Minimum number of products   -
Maximum number of products  -
Minimum order amount         -
Maximum order amount         -
Shipment Cost                         -
Package Fee                         -
Tax                                        -   Apply default rules
Min. Amt for Free Shipment     - 0.00

According to information I received previously, if this is your only Shipment Method, it should be automatically selected as long as you have Enable Automatic Selected Shipment checked in Configuration/Configuration/Checkout (which I have).

Has this changed or am I doing the configuration incorrectly?

Thank you.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: peizamo on July 03, 2012, 07:40:49 AM
Same problem here like above. (Klarna plugin disable did nothing)

It seems that country and zip-code must me provided before selecting shipment method even if shipment option doesn't require it.

I find that annoying because on my site shipment method is selected _before_ the billing/shipment address and customer in this case customer cannot choose any shipment option. 
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: jjk on July 03, 2012, 09:35:06 AM
Works for me without problems in 2.0.8 when 'Enable Automatic Selected Shipment?' is activated and only one shipping method is available (published) like this:
(BTW - zip code doesn't seem to be of any relevance)
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Ty3uK on July 03, 2012, 09:55:33 AM
all three methods not working. i have  only 1 country activated:
No country assigned in shipping method configuration » Shipping method not present
   One or more countries assigned in shipping method configuration ===    All countries assigned in shipping method configuration( 1 have only one country » Shipping method not present
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: alatak on July 03, 2012, 15:04:26 PM
Hello,

I am like jjk, I cannot reproduce the problem.

QuoteHowever, disabling the VM Payment, Klarna plugin did not work.
It was meant to disable klarna plugin via the Joomla plugin manager.

Can you send screen shot of the shipment configuration, and virtuemart configuration?

Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: srseale on July 03, 2012, 19:34:40 PM
alatak:

Now using 2.0.8b and Joomla 2.5.6

Attached are the screen shots of the Configuration/Configuration/Checkout, Shop/Shipment Method/Pre-Paid/Shipment Method Information and Shop/Shipment Method/Pre-Paid/Configuration.  If there are other parts of the configuration you would like to see, please let me know.

With this set up, everything works until you select a Ship to.  By that I mean that the one and only Shipment Method (Pre-Paid) is preselected.  As soon as you select a Ship to (Shipment Address), the one and only Shipment Method is deselected and you are prompted to select a Shipment Method.  When you try, you are confronted with the following message:

     Checkout Step 2
     Please select a shipment method

     We are sorry, no shipment method matches the characteristics of your order.

If I change Country or Shopper Group in an attempt to get things working, I get the same result.

I am open to suggestions on what this may be and how it may be corrected.  I expect that I am doing something wrong somewhere...

Thank you

[attachment cleanup by admin]
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Zer0g on July 04, 2012, 10:00:23 AM
Hello,

ive noticed the same thing that my auto shipment doesn't work. So i've deactivated the klarna plugin, as described in this thread...
This has helped, but i've noticed two things:

If user is already logged in, everthing works normally.
If a user puts an item into the cart and then registers or logs in, the automatic selection fails.

I am using 2.0.8b, Joomla 2.5.6, PHP 5.2.17
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: srseale on July 04, 2012, 17:49:14 PM
UPDATE from my previous e-mail  - System Information

PHP Built On            Linux web115.thewire.ca 2.6.32-220.13.1.el6.x86_64 #1 SMP Tue Apr 17 23:56:34 BST 2012 x86_64
Database Version    5.5.25
Database Collation    utf8_general_ci
PHP Version            5.3.14
Web Server            Apache/2
WebServer to PHP Interface    apache2handler
Joomla! Version    Joomla!             2.5.6 Stable [ Ember ] 19-June-2012 14:00 GMT
Joomla! Platform Version            Joomla Platform 11.4.0 Stable [ Brian Kernighan ] 03-Jan-2012 00:00 GMT
User Agent                            Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1

I am using 2.0.8b of Virtuemart and I still have the same issue.  My only Shipment Method cannot be selected as soon as I add a Shipment Address to my Cart that differs from my Bill to Address.  Both addresses have the same country and state/province ids (although I can remove this from the Shipment Address and it still fails).

I understand that some people are not experiencing issues with this.

To this point, I have tried using Shopper Groups, weights and Countries in various combinations but nothing seems to work.  My understanding is that the Enable Automatic Selected Shipment should work if you do not specify weight, Shopper Group or Countries as long as there is only one published Shipment Method.  Have I overlooked something?  Is this potentially linked to another issue?

Thank you
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Ty3uK on July 05, 2012, 12:25:17 PM
alatak i give you all access to my site. u may debug this issue
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Zer0g on July 05, 2012, 16:30:20 PM
just updated to 2.0.8c - problem is still there
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: srseale on July 05, 2012, 19:40:44 PM
By going back to 2.0.7j, I am able to automatically select my Shipment Method again.  I am using a slightly different environment, as follows:

Joomla 2.5.6
VM 2.0.7j
PHP 5.3.4
MYSQL 5.1.53

Somewhere between 2.0.7j and 2.0.8a/b enough changed to disable the automatic Shipment Method selection capability for circumstances where all you really want to do is incorporate the shipping for free.

If there is any other information I can provide, please let me know...

Thank you
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: srseale on July 05, 2012, 23:11:55 PM
Now using:

Joomla 2.5.6
VM 2.0.8c
PHP 5.3.14
Mysql 5.5.25

Same issue.  Single defined Shipment Method is selected until a Shipment Address is specified then the single Shipment Mehtod is unselected and the same message come up when yoyu try to select  the Shipment Method, as follows:

     Checkout Step 2
     Please select a shipment method

     We are sorry, no shipment method matches the characteristics of your order.

Again, no countries, no Shopper Groups, no weights are specified.  Everything is either null or defaulted. 

Is anyone else still experiencing this issue?

Thank you
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Milbo on July 06, 2012, 01:16:43 AM
thank you srseale, as I can see you do everything correct. Just send me your login data and maybe I can find it.

btw, did you tried it also as adminstrator?
http://forum.virtuemart.net/index.php?topic=104887.0
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Ty3uK on July 06, 2012, 15:07:24 PM
Milbo i got the some bug.. i send u personal message with access to my site.. try to find bug.
good luck
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: alatak on July 06, 2012, 16:51:03 PM
Hello,

I am checking why you have that problem Ty3uK.

This issue should have been fixed with virtuemart _aio version 2.0.8b.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: alatak on July 06, 2012, 17:18:52 PM
Hello Ty3uK

I have fixed the problem on your web site.
This code has not been changed for month.. i do not understand why it is not working for you.

For you i have removed the country condition on the shipment since you don't ask the shopper the country. I have also removed the shopper group condition.

the fix is the following:
in the file /plugins/vmshipment/weight_countries/weight_countries.php, around line 249
change this
 

if ($weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond) {
         
by this code

$cond=$weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond;
if ($cond) {


I will change the code for the 2.0.8.d
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: srseale on July 06, 2012, 19:13:51 PM
alatak:

I made the change you described to Ty3uK on my site and, at first blush, it appears to have solved the problem for me as well.  I will continue to confirm the fix but the initial results are indeed very encouraging.

Thank you for your assistance and to Milbo for his contribution.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: alatak on July 06, 2012, 19:51:10 PM
Hi,

Great :)
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Ty3uK on July 06, 2012, 20:12:45 PM
thanks,seems all works fine
Title: [SOLVED] Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: srseale on July 06, 2012, 20:24:55 PM
Ty3uK and I agree that the problem has been solved so I think it is relatively safe to make that a formal declaration.  I have tried some additional tests and, so far, everything seems to work as expected.

Again, thanks to all who participated in this thread and especially alatak and Milbo for their contributions.

A great example of the community at work...
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Javix on July 10, 2012, 02:10:44 AM
Hi,

I am having exactly the same issue but with automatic selection of payment.
It was working on 2.0.0. and after updating to 2.0.8 it does not work anymore. It does not autoselect and it does not allow to select any payment method.
It just says:
"We are sorry, no payment method matches the characteristics of your order. Please."

How can I solve this? In my setup I have two groups, Public, which uses Paypal and Pro, that uses "Offline Payment", that uses the "Standard Payment".
Is this still possible with virtuemart? It was working on 2.0.0

Any hints?

Thanks, regards.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: alatak on July 10, 2012, 13:46:15 PM
Hello,

have you tried to disable the klarna plugin in the joomla plugin manager?
If you did and it still does not work, please send me an admin account on your website via PM, i will have a look.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Javix on July 11, 2012, 00:00:51 AM
Hi @alatak,

I have no klarna installed.

But anyway, I have reinstalled from scratch the AIO extensions and now it works as expected. There may have been a corrupted installation, it run through the update panel.

Thanks anyway, this is solved, then.

Regards
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: alatak on July 11, 2012, 09:51:53 AM
Hello,

Great :)
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: John2400 on July 13, 2012, 02:47:13 AM
2.0.8 d - does not select automatically?  c was good.  -  I use only one method - weight-country - I use only numbers -  and a range .

No matter what number they type in the zip code - now all choices appear.  I have reinstalled twice the new software.  , interesting That I think the wording of gram and kilogram, are now in "french" -

I have mentioned this in another post but No orders appear in the back end - i tested buy reinstalling c then test - install d test and reinstall c again . - d  yes they are in the database

I like the new calandar - in products -
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: jjk on July 13, 2012, 08:02:34 AM
Quote from: John2400 on July 13, 2012, 02:47:13 AM
...interesting That I think the wording of gram and kilogram, are now in "french"

Hehe, are they really shown in french? I recently changed the metric strings from US-English to GB-English, because the source language files are en-GB (not en-US). (There was a UK user who complained about that, and all attempts by various US-Governments to urge Americans to use the metric system failed anyway :-)
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: John2400 on July 13, 2012, 08:38:15 AM
my French is poor to non - existant - but I can say I see all these words - with the mme added on .  In Australlia we have dropped all of these -  eg programme  is just program.  I think that was the last word to go  -http://mymemory.translated.net/t/French/English/kilogrammes

No really an issue but wondered why / how it changed.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: jjk on July 13, 2012, 09:10:29 AM
Just for playing with en-GB/en-US English: http://www.translatebritish.com/reverse.php (http://www.translatebritish.com/reverse.php)  ;)
Personally I prefer the US-strings, but all british dictionaries still list the older british versions
If users ask for it, I would open a special en-US translation at Transifex, but at present I doubt that anybody is interested in maintaining a special en-US version.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: Letterhead on July 24, 2012, 17:45:59 PM
Is there a solution for this please (selection of shipment doesn't work anymore with 2.08)

I am using 2.0.8E payments are fine, but i cannot select shipping

I have tried

removing country (although this is needed)
Upgrading AIO and deleted and redid the shipping and still the same

i have checked this line does not work http://forum.virtuemart.net/index.php?topic=104642.15 as suggested in the file weight_countries.php

Any ideas please

Thank you

I do suspect i have done something wrong, does this give you a guide to why the shipping cannot be selected?
Info: weigth_countries _weightCond orderWeight:0.4 method->weight_start:0.1 method->weight_stop:99999997777 result:1
Info: weigth_countries _nbproductsCond nbproducts:1 method->nbproducts_start:0 method->nbproducts_stop:20 result:1
weigth_countries _orderamountCond cart_amount:14.5 method->orderamount_start:1 method->orderamount_stop:3.33333333333E+16 result:
weigth_countries _zipCond zip:0

SOLVED FOR ME

This is resolved with the up and coming "less is more theory, using a nuclear bomb on a bird" the point is, i added to much information, which is the reason it did not work. my fault.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: djliquid on September 22, 2012, 19:44:19 PM
I still get that error with Klarna disabled. J2.5.7 and VM 2.0.10

I also have Google Checkout (OSE) but just am using just Standard Shipping

Quote from: vigier on July 01, 2012, 21:59:50 PM
The problem is indeed the Klarna plugin. If you go to your standard payment plugin, edit it (don't change anything) and press save, it gives an error, I think it is about a CountryId. Disabling the plugin does the trick.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: djliquid on September 22, 2012, 19:59:48 PM
Quote from: alatak on July 06, 2012, 17:18:52 PM
Hello Ty3uK

I have fixed the problem on your web site.
This code has not been changed for month.. i do not understand why it is not working for you.

For you i have removed the country condition on the shipment since you don't ask the shopper the country. I have also removed the shopper group condition.

the fix is the following:
in the file /plugins/vmshipment/weight_countries/weight_countries.php, around line 249
change this
 

if ($weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond) {
         
by this code

$cond=$weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond;
if ($cond) {


I will change the code for the 2.0.8.d



This line seems to be just commented out altogether in VM 2.0.10 ??

I get this, starting @ line 260


$allconditions = (int) $weight_cond + (int)$zip_cond + (int)$nbproducts_cond + (int)$orderamount_cond;
if($allconditions === 4){
return TRUE;
} else {
return FALSE;
}
//$cond=$weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond;

/* if ($cond) {
vmdebug('checkConditions '.$method->name.' fits?');
// this line does not work http://forum.virtuemart.net/index.php?topic=104642.15
//if ($weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond) {
return TRUE;
}*/
}
vmdebug('checkConditions '.$method->name.' does not fit');
return FALSE;
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: RevoLion on October 01, 2012, 21:18:33 PM
Alatak,

I can not get the USPS shipping method to show the shipping cost for the life of me. Humbly, I know I have to be configuring something not right. Can you please assist me? What information do you need to know?

Kindest Regards,
Jeremy
Title: Auto selection of shipment doesn't work anymore with 2.08
Post by: RevoLion on October 04, 2012, 03:43:28 AM
I am using VM 2.0 and Joomla 2.5.7... The website is http://host.revolutionwebstudios.com/~thehumm

Thank you for any direction.


Kindest Regards,
Jeremy
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: melingmeier on October 29, 2012, 23:03:31 PM
Any news on this topic? I updated to 2.0.12f and got my shipment selection page back (I have only one shipment option configured and the checkbox in backend is selected). I forgot how I skipped this step in 2.06. Is there a workaround how to activate the preselection?
Title: Re: Auto selection of shipment doesn't work anymore with 2.08
Post by: emptyindorill on November 07, 2012, 08:46:32 AM
Quote from: alatak on July 10, 2012, 13:46:15 PM
Hello,

have you tried to disable the klarna plugin in the joomla plugin manager?
If you did and it still does not work, please send me an admin account on your website via PM, i will have a look.
Hello, and I 2.0.12f version, and the same problem with non displayed choice of the price and delivery.
instead: if ($weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond) {
Here it is: return FALSE;
}
//$cond=$weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond;

/* if ($cond) {
vmdebug('checkConditions '.$method->name.' fits?');
// this line does not work http://forum.virtuemart.net/index.php?topic=104642.15
//if ($weight_cond AND $zip_cond AND $nbproducts_cond AND $orderamount_cond) {
return TRUE;
}*/
}
vmdebug('checkConditions '.$method->name.' does not fit');
return FALSE;
}

Please tell me what to do?
Title: Re: Auto selection of shipment doesn't work anymore with 2.08 (2.0.12)
Post by: beertje_007 on November 15, 2012, 21:28:58 PM
hi all,

does anyone have a solution yet?
i have joomla 2.5.8 with vm2.0.14 installed.
i have one payment method which works with auto fill. This method has NO countries selected.
It did not work with auto fill when i had countries selected in it.

Now the only method which does not work with auto fill is the shipping method.
shipping consists of 10 methods based on countries and weights.
Each time i go to the checkout form, VM presents only 1 shipping method but does not auto select it.

if someone has a solution please let me know.

kind regards,
Roy
Title: Re: Auto selection of shipment doesn't work anymore with 2.08 (2.0.12)
Post by: toad78 on November 15, 2012, 23:40:52 PM
Same issue here. J2.5 VM2.014

I am trying to:

VirtueMart Settings are in the screenshots, labeled.

Other problems:

[attachment cleanup by admin]
Title: Re: Auto selection of shipment doesn't work anymore with 2.08 (2.0.12)
Post by: brendan on November 28, 2012, 14:03:20 PM
Yes have the same issues in VM2.014. Checkout confusing and not at all intuitive.
I only have 1 shipment and 1 payment option. I don't need to display them. I want to remove those 2 lines and just show the check out now button.
How can I do this?
Help?
Title: Re: Auto selection of shipment doesn't work anymore with 2.08 (2.0.12)
Post by: toad78 on November 28, 2012, 17:18:04 PM
I just wound up using CSS to display: none;

I hope that future upgrades will allow for more options, and I also understand that it takes a great team of developers to try to create a stable system. Kudos to the VM Team for all that you do, and we hope to see further improvements.
Title: Re: Auto selection of shipment doesn't work anymore with 2.08 (2.0.12)
Post by: mmacchia on December 02, 2012, 17:05:23 PM
Quote from: beertje_007 on November 15, 2012, 21:28:58 PM
hi all,

does anyone have a solution yet?
i have joomla 2.5.8 with vm2.0.14 installed.
i have one payment method which works with auto fill. This method has NO countries selected.
It did not work with auto fill when i had countries selected in it.

Now the only method which does not work with auto fill is the shipping method.
shipping consists of 10 methods based on countries and weights.
Each time i go to the checkout form, VM presents only 1 shipping method but does not auto select it.

if someone has a solution please let me know.

kind regards,
Roy