Solution to bug on Shipper list from http://forum.vmitalia.net/:
Go to: administrator/components/com_virtuemart/classes/ps_shipping.php
change the WRONG line 113 ($fields = array( 'shipping_carrier_name' => vmGet($d["shipping_carrier_name"]),) with this line:
$fields = array( 'shipping_carrier_name' => vmGet($d, 'shipping_carrier_name'),
And the Shipping list will be OK...Massimo
Thanks a million!
Small note for others: You need to replace the same line twice, on 113 and on 138
Any of the follow seem to work:
REPLACING: $fields = array( 'shipping_carrier_name' => vmGet($d["shipping_carrier_name"]),
WITH: $fields = array( 'shipping_carrier_name' => vmGet($d, 'shipping_carrier_name'),
OR WITH $fields = array( 'shipping_carrier_name' => vmGet($d, "shipping_carrier_name"),
OR WITH $fields = array( 'shipping_carrier_name' => ($d["shipping_carrier_name"]),
All work to fix the issue of trying to enter a new shipper or update the name of an existing shipper and ending up with the reported error message and a single character shipper name (first character of whatever you entered).
However, after applying the originally posted fix to lines 113 and 138 (or any of the other variations), when I try to save after adding a new shipper or update the name of an existing one, I get an empty dialog box with the word NOTICE and an OK button. Clinking OK closes the dialog, but it "appears" not to have saved. It actually does save and reloading the shipper list shows updated or inserted shippers. Did anyone else who applied this fix end up with the empty dialog and does anyone have any ideas how to fix this?
I also looked at the list of bugs for 1.1.3 and could find this bug (the error adding shippers in 1.1.3) in the official bug list at all. Has anyone submitted it?