VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Tentaurus on October 06, 2016, 10:47:30 AM

Title: Shipment setting "show in product details" / can't change anymore
Post by: Tentaurus on October 06, 2016, 10:47:30 AM
...I can't change the shipment-setting "show on product details" anymore (since update to 3.0.18). The radio button will always change back to "yes" after saving.

VM 3.0.18
Joomla 3.6.2
Title: Re: Shipment setting "show in product details" / can't change anymore
Post by: Tentaurus on October 06, 2016, 14:58:25 PM
I saw in the database that the table _virtuemart_shipmentmethods column shipment_params is changed (show_on_pdetails=0) when I change the radio button in the backend.
The issue seems to be that the radio button status will not be changed, regardless the value of show_on_pdetails=0
Title: Re: Shipment setting "show in product details" / can't change anymore
Post by: GJC Web Design on October 06, 2016, 15:00:17 PM
standard template?
Title: Re: Shipment setting "show in product details" / can't change anymore
Post by: Tentaurus on October 06, 2016, 15:13:00 PM
yes (isis)
Title: Re: Shipment setting "show in product details" / can't change anymore
Post by: jenkinhill on October 06, 2016, 15:51:26 PM
Yup, seems the radio does not correctly show the status.
Title: Re: Shipment setting "show in product details" / can't change anymore
Post by: Milbo on October 06, 2016, 19:14:18 PM
Is unbelievable show_on_pdetails does not work, but show_onpdetails works !
Title: Re: Shipment setting "show in product details" / can't change anymore
Post by: Milbo on October 06, 2016, 19:58:46 PM
The solution is to remove
$data['show_on_pdetails'] = (int) $data['show_on_pdetails'];
in line 604, casting to int seems to break it.
Title: Re: Shipment setting "show in product details" / can't change anymore
Post by: Anna_Bolika on November 29, 2016, 12:08:46 PM
Same here.
As a quick fix I simply changed the default value to 0  in the form-xml (../plugins/vmshipment/weight_countries/weight_countries.xml:30)

from
                <field name="show_on_pdetails" type="radio" scope="com_virtuemart" default="1"
to
                <field name="show_on_pdetails" type="radio" scope="com_virtuemart" default="0"

Hope that helps, until it's fixed  :)