"Please Select Shipment Method" Loop - Shipment method is auto-selected.

Started by Baberidge, August 21, 2012, 05:35:32 AM

Previous topic - Next topic

Baberidge

Hello all.

I have been getting to grips with 2.0 - I  to have developed a problem which results in the shopper continually being asked to select a shipment method, even though one is automatically selected.  I am using different shopper groups (registered shoppers get a discount) but I have tried all combinations of groups/no groups, and even unpublishing the groups and removing them from the shipping config, to no avail.

I am using the VM Shipment by Weight, Zip and Countries.  I have disabled the Country field in Shopper Fields and do not have one selected in the shipment config.

Does anyone know how this can happen? I running VM 2.0.8e on Joomla! 2.5.6

I hope that I have been clear, and that this is not a stupid question!  8)

Baberidge

It would seem that my checkout is starting on step 4, then going to step 2, then back to step 4, and so on.  Is there a reinstallation method?

ivus

Hi Baberidge,

Why not start by turning on Joomla! debug... (NOT VM... JOOMLA!). What this will do is create extra divs at the bottom of each page where you can expand and drill down to see more data/information.

The one you're looking for in particular is SESSIONS, "_vm"

If you've setup your shipping method correctly, you should see the selected shipping method in the session array. If not, then the shipping method hasn't been selected, in which case check your logs or your config for that particular shipping method.




On a side note:

QuoteI am using the VM Shipment by Weight, Zip and Countries.  I have disabled the Country field in Shopper Fields and do not have one selected in the shipment config.

Isn't ZIP dependant on Country?

I helped a member yesterday who had a similar problem : http://forum.virtuemart.net/index.php?topic=106561

It may be of some help to you.

Baberidge

Heo Ivus. Thanks for your reply. The shipping method is in the array (or at least I am shown the following in the Debug div: {}s:12:"shipmentName";s:230:"logo_parcelforce Postage & Packing";s:12:"taxRulesBill";a:0:)

I have tried your suggestions as per the solution you gave to the OP yesterday, and I have re-enabled the Country field (and put my user in a country!) - still the same.  Checkout starts on step 4, goes to step 2, and repeats. 

This was working the other day, but since I tested it and it was working I have assigned a discount to the -default- shopper group. I have tried using both -default- and -anonymous- selected in the shipping config, both deselected and setting up different shipping for both users.  It always appears that the shipping has been selected - even selecting correctly per-user if that is set up, but then starts doing the same old tricks (starts on step 4, goes to step 2  and so on!) 

Thanks for your time and help with this!


ivus

Hi Baberidge,

be sure you're looking in the sessions after you select a shipping method.

QuoteThe one you're looking for in particular is SESSIONS, "_vm"

The shipping method will always be there "Debug div: {}s:12:"shipmentName";s:230:"logo_parcelforce Postage & Packing";s:12:"taxRulesBill";a:0:)" because it is what is drawn in the shipping selection page. It just sits there dormant until it gets called.

Baberidge

Hi ivus.

This is the point where I have to admit "I'm not sure what I should be looking at!". To my relatively noobish eyes it appears that the shipping method has already been selected and I don't notice any change in the debug output for "sessions" - __vm" from when I show the cart, click "check out now", am taken to the "Please select a shipping method" or back to the cart.

One thing - under the Sessions tab there are two copies of __vm and __default. Is this normal? Or an indication of oddness in my config?

Thanks again.

Baberidge

If it's any use to you, here is the output from "session __vm" after I have been asked to select a shipping method:



vmlastvisitedcategoryid ⇒ 56
vmcart ⇒ O:8:"stdClass":22:{s:8:"products";a:1:{i:365;O:8:"stdClass":41:{s:26:"virtuemart_manufacturer_id";a:0:{}s:4:"slug";s:29:"NAME_REMOVED";s:9:"published";s:1:"1";s:27:"virtuemart_product_price_id";s:3:"365";s:21:"virtuemart_product_id";s:3:"365";s:26:"virtuemart_shoppergroup_id";s:1:"3";s:13:"product_price";s:8:"39.99000";s:8:"override";s:1:"0";s:22:"product_override_price";s:7:"0.00000";s:14:"product_tax_id";N;s:19:"product_discount_id";s:2:"-1";s:16:"product_currency";s:1:"0";s:20:"virtuemart_vendor_id";s:1:"1";s:17:"product_parent_id";s:1:"0";s:11:"product_sku";s:5:"N3357";s:12:"product_name";s:29:"NAME REMOVED";s:14:"product_s_desc";s:407:"Short product description here";s:14:"product_weight";N;s:18:"product_weight_uom";N;s:14:"product_length";N;s:13:"product_width";N;s:14:"product_height";N;s:15:"product_lwh_uom";N;s:16:"product_in_stock";i:0;s:15:"product_ordered";N;s:13:"product_sales";N;s:12:"product_unit";N;s:17:"product_packaging";N;s:15:"min_order_level";d:0;s:15:"max_order_level";d:0;s:19:"virtuemart_media_id";a:1:{i:0;s:5:"17259";}s:5:"image";O:7:"VmImage":36:{s:16:"media_attributes";i:0;s:7:"setRole";b:0;s:30:"VmMediaHandler_foldersToTest";a:2:{i:0;s:72:"/home/content/43/8361343/html/antonio/images/stories/virtuemart/product/";i:1;s:80:"/home/content/43/8361343/html/antonio/images/stories/virtuemart/product/resized/";}s:24:"VmMediaHandler_actions";a:0:{}s:26:"VmMediaHandler_mLocation";a:0:{}s:23:"VmMediaHandler_hidden";a:0:{}s:19:"virtuemart_media_id";s:5:"17259";s:9:"theme_url";s:52:"http://antonioamore.co.uk/components/com_virtuemart/";s:20:"virtuemart_vendor_id";s:1:"1";s:10:"file_title";s:40:"n3357-_name_removed.jpg";s:16:"file_description";s:40:"n3357-_name_removed.jpg";s:9:"file_meta";s:40:"n3357-_name_removed.jpg";s:13:"file_mimetype";s:10:"image/jpeg";s:9:"file_type";s:7:"product";s:8:"file_url";s:67:"images/stories/virtuemart/product/NAME REMOVED.jpg";s:14:"file_url_thumb";s:75:"images/stories/virtuemart/product/Resized/NAME REMOVED.jpg";s:9:"published";s:1:"1";s:20:"file_is_downloadable";s:1:"0";s:15:"file_is_forSale";s:1:"0";s:21:"file_is_product_image";s:1:"1";s:6:"shared";s:1:"0";s:11:"file_params";N;s:13:"_translatable";b:0;s:12:"_tablePreFix";s:0:"";s:10:"created_on";s:19:"0000-00-00 00:00:00";s:10:"created_by";s:1:"0";s:11:"modified_on";s:19:"0000-00-00 00:00:00";s:11:"modified_by";s:1:"0";s:9:"locked_on";s:19:"0000-00-00 00:00:00";s:9:"locked_by";s:1:"0";s:15:"file_url_folder";s:34:"images/stories/virtuemart/product/";s:16:"file_path_folder";s:34:"images/stories/virtuemart/product/";s:21:"file_url_folder_thumb";s:42:"images/stories/virtuemart/product/resized/";s:9:"file_name";s:29:"NAME REMOVED";s:14:"file_extension";s:3:"jpg";s:10:"media_role";s:19:"file_is_displayable";}s:10:"categories";a:1:{i:0;s:2:"56";}s:22:"virtuemart_category_id";s:2:"56";s:13:"category_name";s:14:"Remote Control";s:4:"link";s:100:"/index.php/component/virtuemart/couples/remote-control/NAME_REMOVED-detail?Itemid=0";s:9:"packaging";s:0:"";s:8:"quantity";i:1;s:3:"url";s:100:"/index.php/component/virtuemart/couples/remote-control/NAME_REMOVED-detail?Itemid=0";s:12:"customfields";s:0:"";s:12:"cart_item_id";i:365;}}s:8:"vendorId";i:1;s:21:"lastVisitedCategoryId";i:0;s:28:"virtuemart_shipmentmethod_id";s:1:"8";s:27:"virtuemart_paymentmethod_id";s:1:"3";s:25:"automaticSelectedShipment";b:1;s:24:"automaticSelectedPayment";b:1;s:12:"order_number";N;s:2:"BT";a:11:{s:7:"company";s:0:"";s:5:"email";s:21:"dan@digitaldish.co.uk";s:5:"title";s:0:"";s:10:"first_name";s:3:"Dan";s:9:"last_name";s:5:"Baber";s:9:"address_1";s:16:"78b College Road";s:9:"address_2";s:0:"";s:3:"zip";s:7:"BR1 3PE";s:4:"city";s:7:"Bromley";s:21:"virtuemart_country_id";s:3:"222";s:7:"phone_1";s:13:"020 8290 6471";}s:2:"ST";i:0;s:11:"tosAccepted";i:1;s:16:"customer_comment";s:0:"";s:10:"couponCode";s:0:"";s:8:"cartData";a:7:{s:4:"duty";i:1;s:7:"payment";i:0;s:11:"paymentName";s:236:"paypal_logo - With or without a PayPal account!";s:14:"DBTaxRulesBill";a:0:{}s:12:"shipmentName";s:230:"logo_parcelforce Postage & Packing";s:12:"taxRulesBill";a:0:{}s:14:"DATaxRulesBill";a:1:{i:0;a:23:{s:18:"virtuemart_calc_id";s:1:"3";s:20:"virtuemart_vendor_id";s:1:"1";s:9:"calc_name";s:19:"Members 5% Discount";s:10:"calc_descr";s:0:"";s:9:"calc_kind";s:9:"DATaxBill";s:17:"calc_value_mathop";s:2:"-%";s:10:"calc_value";s:6:"5.0000";s:13:"calc_currency";s:2:"52";s:22:"calc_shopper_published";s:1:"1";s:21:"calc_vendor_published";s:1:"1";s:10:"publish_up";s:19:"2012-08-20 04:23:33";s:12:"publish_down";s:19:"0000-00-00 00:00:00";s:12:"for_override";s:1:"0";s:11:"calc_params";N;s:8:"ordering";s:1:"0";s:6:"shared";s:1:"0";s:9:"published";s:1:"1";s:10:"created_on";s:19:"2012-08-20 04:23:33";s:10:"created_by";s:2:"42";s:11:"modified_on";s:19:"2012-08-20 04:23:33";s:11:"modified_by";s:2:"42";s:9:"locked_on";s:19:"0000-00-00 00:00:00";s:9:"locked_by";s:1:"0";}}}s:5:"lists";a:2:{s:6:"shipTo";s:297:" **- Default (Same as Billing)**
";s:6:"billTo";s:1:"2";}s:17:"pricesUnformatted";a:29:{s:9:"basePrice";s:5:"39.99";s:16:"basePriceWithTax";s:1:"0";s:25:"discountedPriceWithoutTax";s:1:"0";s:10:"salesPrice";s:5:"39.99";s:9:"taxAmount";s:1:"0";s:22:"salesPriceWithDiscount";s:1:"0";s:14:"discountAmount";s:1:"0";s:15:"priceWithoutTax";s:5:"39.99";s:16:"subTotalProducts";s:1:"0";i:365;a:21:{s:9:"costPrice";s:8:"39.99000";s:9:"basePrice";s:5:"39.99";s:16:"basePriceVariant";s:5:"39.99";s:16:"basePriceWithTax";s:1:"0";s:25:"discountedPriceWithoutTax";s:1:"0";s:14:"priceBeforeTax";s:5:"39.99";s:10:"salesPrice";s:5:"39.99";s:9:"taxAmount";s:1:"0";s:22:"salesPriceWithDiscount";s:1:"0";s:14:"salesPriceTemp";s:5:"39.99";s:14:"discountAmount";s:1:"0";s:15:"priceWithoutTax";s:5:"39.99";s:19:"variantModification";s:1:"0";s:5:"DBTax";a:0:{}s:3:"Tax";a:0:{}s:6:"VatTax";a:0:{}s:5:"DATax";a:0:{}s:8:"subtotal";s:5:"39.99";s:19:"subtotal_tax_amount";s:1:"0";s:17:"subtotal_discount";s:1:"0";s:17:"subtotal_with_tax";s:5:"39.99";}s


ivus

LOL... what in hell are you selling ???... I editted your post to keep things G-rated.

Anyway, I can see the following:


a:0:{}s:12:"shipmentName";s:230:"logo_parcelforce Postage & Packing";


which indicates it has been selected.

I also see you have automatic select switched on:


s:25:"automaticSelectedShipment";


So now I'm at a loss? Have you checked you logs for any errors? Can you do a screendump of your shipping method config screen please.

Baberidge

Crikey I should have edited that. Yes, we sell, er "Themed Novelties".

My log folder is empty, but I have attached screen caps.

Thanks yet again.

[attachment cleanup by admin]

ivus

wouldn't you want the lowest weight to be 0.1, you've set the highest weight to be 0.1 so in all cases your cart returns false to that check?

Baberidge

They're normally left blank, since the products are dropshipped and we don't have their physical dimensions or weight. Postage is a flat fee.  I was fiddling with some settings earlier (that was one of them) but nothing seems to make any difference. 

Is it relevant that the checkout steps are in the wrong order, starting with 4 then going back to 2? 

This was working fine, but stopped working after I made the group discount.

ivus

Is this site online? If you want... create a new admin account for me and PM me the details and I'll go have a quick squizz around. There's gotta be a setting somewhere in this badboy that's fudging things up.

Baberidge

You, sir, are made of awesome. Thanks for your help with this.  Account details are in PM.

WebMercher

What was the solution? i have been fighting this problem for almost 2 weeks.

Same situation with mine except not using automatic select shipping/payment.

The "Select shipping/payment method" in my cart page is not updating but data is there in the database.

You have to either click on a link to the shopping cart to make refresh and then it shows but customers will end up selecting the shipping/payment twice to get the refresh thinking it did not save.

I have identical settings working on another site, why it does not work here confuses me.

I fixed previous problems with cart updates by removing "View Cart" from a menu.
(Odd that menu items causes problems on checkout with SEO/SEF)

I also notice that when I try to save shipping or payment, it routes to the cart but url shows same as menu item alias for "virtuemart category home' (seed-catalog) instead of /seed-catalog/cart.

Again, seems to be connected to a database/menu issue.
Why should menus break checkout functions? What is the connection?

I noticed the same thing when the Add/Edit billing address information redirected wrong until i removed my "Edit account info" menu link.

Link to site:

http://50.22.14.181
Joomla! 2.5.9
2.0.18a

Using a perm IP until issue is resolved.
to show using only IP is not the issue, change DNS on your router, etc... to:
50.22.23.34

then point browser to www.dollarseed.com and shipping/payment select still not loaded on page.

dont forget to change your DNS back when done, only works for sites on the server, not the rest of the internet.


IP address is required for SSL.
8 core server on high speed redundant network, nothing wrong with server or network.

i can ask my client to "go live" with a broken site but it's not my first option.

Any suggestions would be highly appreciated,
thanks in advance