Shipment setting "show in product details" / can't change anymore

Started by Tentaurus, October 06, 2016, 10:47:30 AM

Previous topic - Next topic

Tentaurus

...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

Tentaurus

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

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Milbo

Is unbelievable show_on_pdetails does not work, but show_onpdetails works !
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

The solution is to remove
$data['show_on_pdetails'] = (int) $data['show_on_pdetails'];
in line 604, casting to int seems to break it.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Anna_Bolika

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  :)