Problems with shipping types and shipping class prices
-
Hi!
We have a shipping zone with fixed price shipping type and some shipping classes. In this shipping type we has been configured a formula for every shipping classes. For example ([qty]*2)+7.93
When you save and edit again the shipping type, the formulas disappear and the edition modal show “N/D” for every shipping class.
In front store, if you select a product and adds it in cart, the calculated price for shipping type is right
After investigate, in database the formulas has been saved right. These options are saved in wp_options table with serialized values (for example, woocommerce_flat_rate_1_settings). In the Woocommerce administration page these values are right requested because in source page there is a javascript variable (shippingZoneMethodsLocalizeScript) but these are not shown when the modal is opened.
Example of this variable when we show the source of WC administration page:
var shippingZoneMethodsLocalizeScript = { methods: { 1: { cost: "", type: "order", supports: [ "shipping-zones", "instance-settings", "instance-settings-modal", ], id: "flat_rate", method_title: "Precio fijo", method_description: "<p>Te permite cobrar un precio fijo por env\u00edo.</p>\n", enabled: "yes", title: "gastos de env\u00edo", rates: [], tax_status: "taxable", fee: null, minimum_fee: null, instance_id: 1, instance_settings: { title: "gastos de env\u00edo", tax_status: "taxable", cost: "", class_cost_24: "([qty]*2)+7.93", class_cost_26: "([qty]*2)+7.93", class_cost_25: "", class_cost_23: "([qty]*2)+7.93", class_cost_27: "", no_class_cost: "", type: "order", class_cost_60: "", class_cost_64: "([qty]*2)+7.93", class_cost_62: "([qty]*2)+7.93", class_cost_65: "", class_cost_66: "([qty]*2)+7.93", class_cost_96: "", class_cost_95: "", },
The edition modal show:
Are we doing something wrong?
Thank you in advance!
- The topic ‘Problems with shipping types and shipping class prices’ is closed to new replies.